diff --git a/Makefile b/Makefile
index 376855e0..5487b558 100644
--- a/Makefile
+++ b/Makefile
@@ -134,6 +134,10 @@ proto-gen:
@echo "Generating Protobuf files"
$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(PROTO_BUILDER_IMAGE) sh ./scripts/protocgen.sh
+buf-push:
+ @echo "Pushing protobuf files to buf registry"
+ cd proto && buf push
+
###############################################################################
### Local Testnet (docker) ###
###############################################################################
diff --git a/app/app.go b/app/app.go
index bffac4bf..4b1a65ef 100644
--- a/app/app.go
+++ b/app/app.go
@@ -436,12 +436,12 @@ func New(
app.AllianceKeeper = alliancemodulekeeper.NewKeeper(
appCodec,
keys[alliancemoduletypes.StoreKey],
- app.GetSubspace(alliancemoduletypes.ModuleName),
app.AccountKeeper,
app.BankKeeper,
app.StakingKeeper,
app.DistrKeeper,
authtypes.FeeCollectorName,
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
app.BankKeeper.RegisterKeepers(app.AllianceKeeper, app.StakingKeeper)
@@ -574,7 +574,7 @@ func New(
params.NewAppModule(app.ParamsKeeper),
transferModule,
icaModule,
- alliancemodule.NewAppModule(appCodec, app.AllianceKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
+ alliancemodule.NewAppModule(appCodec, app.AllianceKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry, app.GetSubspace(alliancemoduletypes.ModuleName)),
// this line is used by starport scaffolding # stargate/app/appModule
)
@@ -881,21 +881,23 @@ func GetMaccPerms() map[string][]string {
}
// initParamsKeeper init params keeper and its subspaces
+//
+//nolint:staticcheck // ParamsKeyTable is deprecated but used here for migration
func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey storetypes.StoreKey) paramskeeper.Keeper {
paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey)
- paramsKeeper.Subspace(authtypes.ModuleName)
- paramsKeeper.Subspace(banktypes.ModuleName)
- paramsKeeper.Subspace(stakingtypes.ModuleName)
- paramsKeeper.Subspace(minttypes.ModuleName)
- paramsKeeper.Subspace(distrtypes.ModuleName)
- paramsKeeper.Subspace(slashingtypes.ModuleName)
- paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck
- paramsKeeper.Subspace(crisistypes.ModuleName)
+ paramsKeeper.Subspace(authtypes.ModuleName).WithKeyTable(authtypes.ParamKeyTable())
+ paramsKeeper.Subspace(banktypes.ModuleName).WithKeyTable(banktypes.ParamKeyTable())
+ paramsKeeper.Subspace(stakingtypes.ModuleName).WithKeyTable(stakingtypes.ParamKeyTable())
+ paramsKeeper.Subspace(minttypes.ModuleName).WithKeyTable(minttypes.ParamKeyTable())
+ paramsKeeper.Subspace(distrtypes.ModuleName).WithKeyTable(distrtypes.ParamKeyTable())
+ paramsKeeper.Subspace(slashingtypes.ModuleName).WithKeyTable(slashingtypes.ParamKeyTable())
+ paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable())
+ paramsKeeper.Subspace(crisistypes.ModuleName).WithKeyTable(crisistypes.ParamKeyTable())
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
paramsKeeper.Subspace(ibcexported.ModuleName)
paramsKeeper.Subspace(icahosttypes.SubModuleName)
- paramsKeeper.Subspace(alliancemoduletypes.ModuleName)
+ paramsKeeper.Subspace(alliancemoduletypes.ModuleName).WithKeyTable(alliancemoduletypes.ParamKeyTable())
// this line is used by starport scaffolding # stargate/app/paramSubspace
return paramsKeeper
diff --git a/config.yml b/config.yml
deleted file mode 100644
index 868e0e1f..00000000
--- a/config.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-version: 1
-accounts:
-- name: alice
- coins:
- - 20000token
- - 200000000stake
-- name: bob
- coins:
- - 10000token
- - 100000000stake
-client:
- openapi:
- path: docs/static/openapi.yml
-faucet:
- name: bob
- coins:
- - 5token
- - 100000stake
-validators:
-- name: alice
- bonded: 100000000stake
diff --git a/docs/proto/proto-docs.md b/docs/proto/proto-docs.md
index 919b8df1..4fb976a5 100644
--- a/docs/proto/proto-docs.md
+++ b/docs/proto/proto-docs.md
@@ -81,12 +81,20 @@
- [alliance/tx.proto](#alliance/tx.proto)
- [MsgClaimDelegationRewards](#alliance.MsgClaimDelegationRewards)
- [MsgClaimDelegationRewardsResponse](#alliance.MsgClaimDelegationRewardsResponse)
+ - [MsgCreateAlliance](#alliance.MsgCreateAlliance)
+ - [MsgCreateAllianceResponse](#alliance.MsgCreateAllianceResponse)
- [MsgDelegate](#alliance.MsgDelegate)
- [MsgDelegateResponse](#alliance.MsgDelegateResponse)
+ - [MsgDeleteAlliance](#alliance.MsgDeleteAlliance)
+ - [MsgDeleteAllianceResponse](#alliance.MsgDeleteAllianceResponse)
- [MsgRedelegate](#alliance.MsgRedelegate)
- [MsgRedelegateResponse](#alliance.MsgRedelegateResponse)
- [MsgUndelegate](#alliance.MsgUndelegate)
- [MsgUndelegateResponse](#alliance.MsgUndelegateResponse)
+ - [MsgUpdateAlliance](#alliance.MsgUpdateAlliance)
+ - [MsgUpdateAllianceResponse](#alliance.MsgUpdateAllianceResponse)
+ - [MsgUpdateParams](#alliance.MsgUpdateParams)
+ - [MsgUpdateParamsResponse](#alliance.MsgUpdateParamsResponse)
- [Msg](#alliance.Msg)
@@ -1207,6 +1215,37 @@ Params
+
+
+### MsgCreateAlliance
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `authority` | [string](#string) | | |
+| `denom` | [string](#string) | | Denom of the asset. It could either be a native token or an IBC token |
+| `reward_weight` | [string](#string) | | The reward weight specifies the ratio of rewards that will be given to each alliance asset It does not need to sum to 1. rate = weight / total_weight Native asset is always assumed to have a weight of 1. |
+| `take_rate` | [string](#string) | | A positive take rate is used for liquid staking derivatives. It defines an annualized reward rate that will be redirected to the distribution rewards pool |
+| `reward_change_rate` | [string](#string) | | |
+| `reward_change_interval` | [google.protobuf.Duration](#google.protobuf.Duration) | | |
+| `reward_weight_range` | [RewardWeightRange](#alliance.RewardWeightRange) | | set a bound of weight range to limit how much reward weights can scale. |
+
+
+
+
+
+
+
+
+### MsgCreateAllianceResponse
+
+
+
+
+
+
+
### MsgDelegate
@@ -1234,6 +1273,32 @@ Params
+
+
+### MsgDeleteAlliance
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `authority` | [string](#string) | | |
+| `denom` | [string](#string) | | |
+
+
+
+
+
+
+
+
+### MsgDeleteAllianceResponse
+
+
+
+
+
+
+
### MsgRedelegate
@@ -1288,6 +1353,62 @@ Params
+
+
+
+### MsgUpdateAlliance
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `authority` | [string](#string) | | |
+| `denom` | [string](#string) | | Denom of the asset. It could either be a native token or an IBC token |
+| `reward_weight` | [string](#string) | | The reward weight specifies the ratio of rewards that will be given to each alliance asset It does not need to sum to 1. rate = weight / total_weight Native asset is always assumed to have a weight of 1. |
+| `take_rate` | [string](#string) | | |
+| `reward_change_rate` | [string](#string) | | |
+| `reward_change_interval` | [google.protobuf.Duration](#google.protobuf.Duration) | | |
+
+
+
+
+
+
+
+
+### MsgUpdateAllianceResponse
+
+
+
+
+
+
+
+
+
+### MsgUpdateParams
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `authority` | [string](#string) | | |
+| `params` | [Params](#alliance.Params) | | |
+
+
+
+
+
+
+
+
+### MsgUpdateParamsResponse
+
+
+
+
+
+
@@ -1306,6 +1427,10 @@ Params
| `Redelegate` | [MsgRedelegate](#alliance.MsgRedelegate) | [MsgRedelegateResponse](#alliance.MsgRedelegateResponse) | | |
| `Undelegate` | [MsgUndelegate](#alliance.MsgUndelegate) | [MsgUndelegateResponse](#alliance.MsgUndelegateResponse) | | |
| `ClaimDelegationRewards` | [MsgClaimDelegationRewards](#alliance.MsgClaimDelegationRewards) | [MsgClaimDelegationRewardsResponse](#alliance.MsgClaimDelegationRewardsResponse) | | |
+| `UpdateParams` | [MsgUpdateParams](#alliance.MsgUpdateParams) | [MsgUpdateParamsResponse](#alliance.MsgUpdateParamsResponse) | | |
+| `CreateAlliance` | [MsgCreateAlliance](#alliance.MsgCreateAlliance) | [MsgCreateAllianceResponse](#alliance.MsgCreateAllianceResponse) | | |
+| `UpdateAlliance` | [MsgUpdateAlliance](#alliance.MsgUpdateAlliance) | [MsgUpdateAllianceResponse](#alliance.MsgUpdateAllianceResponse) | | |
+| `DeleteAlliance` | [MsgDeleteAlliance](#alliance.MsgDeleteAlliance) | [MsgDeleteAllianceResponse](#alliance.MsgDeleteAllianceResponse) | | |
diff --git a/go.mod b/go.mod
index f681c370..cbba8c97 100644
--- a/go.mod
+++ b/go.mod
@@ -3,14 +3,15 @@ module github.com/terra-money/alliance
go 1.20
require (
- cosmossdk.io/errors v1.0.0-beta.7
- cosmossdk.io/math v1.0.1
+ cosmossdk.io/errors v1.0.0
+ cosmossdk.io/math v1.1.2
cosmossdk.io/tools/rosetta v0.2.1
github.com/cometbft/cometbft v0.37.2
github.com/cometbft/cometbft-db v0.8.0
github.com/cosmos/cosmos-proto v1.0.0-beta.2
- github.com/cosmos/cosmos-sdk v0.47.3
- github.com/cosmos/ibc-go/v7 v7.1.0
+ github.com/cosmos/cosmos-sdk v0.47.5
+ github.com/cosmos/gogoproto v1.4.10
+ github.com/cosmos/ibc-go/v7 v7.3.0
github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.3
github.com/grpc-ecosystem/grpc-gateway v1.16.0
@@ -18,24 +19,22 @@ require (
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
github.com/stretchr/testify v1.8.4
- golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc
- google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1
- google.golang.org/grpc v1.55.0
- google.golang.org/protobuf v1.30.0
+ golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb
+ google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e
+ google.golang.org/grpc v1.57.0
+ google.golang.org/protobuf v1.31.0
)
-require github.com/cosmos/gogoproto v1.4.10
-
require (
- cloud.google.com/go v0.110.0 // indirect
- cloud.google.com/go/compute v1.19.0 // indirect
+ cloud.google.com/go v0.110.6 // indirect
+ cloud.google.com/go/compute v1.23.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
- cloud.google.com/go/iam v0.13.0 // indirect
- cloud.google.com/go/storage v1.29.0 // indirect
+ cloud.google.com/go/iam v1.1.1 // indirect
+ cloud.google.com/go/storage v1.30.1 // indirect
cosmossdk.io/api v0.3.1 // indirect
cosmossdk.io/core v0.5.1 // indirect
- cosmossdk.io/depinject v1.0.0-alpha.3 // indirect
- cosmossdk.io/log v1.1.0 // indirect
+ cosmossdk.io/depinject v1.0.0-alpha.4 // indirect
+ cosmossdk.io/log v1.2.1 // indirect
filippo.io/edwards25519 v1.0.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
@@ -51,6 +50,9 @@ require (
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chzyer/readline v1.5.1 // indirect
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
+ github.com/cockroachdb/errors v1.10.0 // indirect
+ github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
+ github.com/cockroachdb/redact v1.1.5 // indirect
github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect
github.com/confio/ics23/go v0.9.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
@@ -72,10 +74,10 @@ require (
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/felixge/httpsnoop v1.0.2 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
+ github.com/getsentry/sentry-go v0.23.0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
- github.com/go-playground/locales v0.14.0 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
@@ -85,10 +87,10 @@ require (
github.com/google/btree v1.1.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/orderedcode v0.0.1 // indirect
- github.com/google/s2a-go v0.1.3 // indirect
+ github.com/google/s2a-go v0.1.4 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
- github.com/googleapis/gax-go/v2 v2.8.0 // indirect
+ github.com/googleapis/gax-go/v2 v2.11.0 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
@@ -110,13 +112,15 @@ require (
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/klauspost/compress v1.16.3 // indirect
+ github.com/kr/pretty v0.3.1 // indirect
+ github.com/kr/text v0.2.0 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/linxGnu/grocksdb v1.7.16 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/manifoldco/promptui v0.9.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
- github.com/mattn/go-isatty v0.0.18 // indirect
+ github.com/mattn/go-isatty v0.0.19 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
@@ -134,8 +138,9 @@ require (
github.com/prometheus/procfs v0.9.0 // indirect
github.com/rakyll/statik v0.1.7 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
+ github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/rs/cors v1.8.3 // indirect
- github.com/rs/zerolog v1.29.1 // indirect
+ github.com/rs/zerolog v1.30.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
@@ -149,15 +154,18 @@ require (
github.com/zondax/ledger-go v0.14.1 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.opencensus.io v0.24.0 // indirect
- golang.org/x/crypto v0.9.0 // indirect
- golang.org/x/net v0.10.0 // indirect
- golang.org/x/oauth2 v0.7.0 // indirect
- golang.org/x/sys v0.8.0 // indirect
- golang.org/x/term v0.8.0 // indirect
- golang.org/x/text v0.9.0 // indirect
+ golang.org/x/crypto v0.12.0 // indirect
+ golang.org/x/net v0.14.0 // indirect
+ golang.org/x/oauth2 v0.8.0 // indirect
+ golang.org/x/sync v0.2.0 // indirect
+ golang.org/x/sys v0.11.0 // indirect
+ golang.org/x/term v0.11.0 // indirect
+ golang.org/x/text v0.12.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
- google.golang.org/api v0.122.0 // indirect
+ google.golang.org/api v0.126.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
+ google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect
+ google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
diff --git a/go.sum b/go.sum
index 5061ccb1..ea625504 100644
--- a/go.sum
+++ b/go.sum
@@ -32,8 +32,8 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9
cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc=
cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU=
cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA=
-cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys=
-cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY=
+cloud.google.com/go v0.110.6 h1:8uYAkj3YHTP/1iwReuHPxLSbdcyc+dSBbzFMrVwDR6Q=
+cloud.google.com/go v0.110.6/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI=
cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw=
cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY=
cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI=
@@ -70,8 +70,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz
cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU=
cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U=
cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU=
-cloud.google.com/go/compute v1.19.0 h1:+9zda3WGgW1ZSTlVppLCYFIr48Pa35q1uG2N1itbCEQ=
-cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU=
+cloud.google.com/go/compute v1.23.0 h1:tP41Zoavr8ptEqaW6j+LQOnyBBhO7OkOMAGrgLopTwY=
+cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM=
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I=
@@ -111,13 +111,12 @@ cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y97
cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc=
cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY=
cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc=
-cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k=
-cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0=
+cloud.google.com/go/iam v1.1.1 h1:lW7fzj15aVIXYHREOqjRBV9PsH0Z6u8Y46a1YGvQP4Y=
+cloud.google.com/go/iam v1.1.1/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU=
cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic=
cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI=
cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8=
cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08=
-cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM=
cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4=
cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w=
cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE=
@@ -175,8 +174,8 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f
cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y=
cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc=
cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s=
-cloud.google.com/go/storage v1.29.0 h1:6weCgzRvMg7lzuUurI4697AqIRPU1SvzHhynwpW31jI=
-cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4=
+cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM=
+cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E=
cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw=
cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g=
cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU=
@@ -192,14 +191,14 @@ cosmossdk.io/api v0.3.1 h1:NNiOclKRR0AOlO4KIqeaG6PS6kswOMhHD0ir0SscNXE=
cosmossdk.io/api v0.3.1/go.mod h1:DfHfMkiNA2Uhy8fj0JJlOCYOBp4eWUUJ1te5zBGNyIw=
cosmossdk.io/core v0.5.1 h1:vQVtFrIYOQJDV3f7rw4pjjVqc1id4+mE0L9hHP66pyI=
cosmossdk.io/core v0.5.1/go.mod h1:KZtwHCLjcFuo0nmDc24Xy6CRNEL9Vl/MeimQ2aC7NLE=
-cosmossdk.io/depinject v1.0.0-alpha.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw=
-cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU=
-cosmossdk.io/errors v1.0.0-beta.7 h1:gypHW76pTQGVnHKo6QBkb4yFOJjC+sUGRc5Al3Odj1w=
-cosmossdk.io/errors v1.0.0-beta.7/go.mod h1:mz6FQMJRku4bY7aqS/Gwfcmr/ue91roMEKAmDUDpBfE=
-cosmossdk.io/log v1.1.0 h1:v0ogPHYeTzPcBTcPR1A3j1hkei4pZama8kz8LKlCMv0=
-cosmossdk.io/log v1.1.0/go.mod h1:6zjroETlcDs+mm62gd8Ig7mZ+N+fVOZS91V17H+M4N4=
-cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg=
-cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k=
+cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc=
+cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU=
+cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04=
+cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0=
+cosmossdk.io/log v1.2.1 h1:Xc1GgTCicniwmMiKwDxUjO4eLhPxoVdI9vtMW8Ti/uk=
+cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4=
+cosmossdk.io/math v1.1.2 h1:ORZetZCTyWkI5GlZ6CZS28fMHi83ZYf+A2vVnHNzZBM=
+cosmossdk.io/math v1.1.2/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0=
cosmossdk.io/tools/rosetta v0.2.1 h1:ddOMatOH+pbxWbrGJKRAawdBkPYLfKXutK9IETnjYxw=
cosmossdk.io/tools/rosetta v0.2.1/go.mod h1:Pqdc1FdvkNV3LcNIkYWt2RQY6IP1ge6YWZk8MhhO9Hw=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
@@ -226,7 +225,6 @@ github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrd
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I=
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
-github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
@@ -299,8 +297,13 @@ github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWH
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E=
github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw=
-github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w=
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
+github.com/cockroachdb/errors v1.10.0 h1:lfxS8zZz1+OjtV4MtNWgboi/W5tyLEB6VQZBXN+0VUU=
+github.com/cockroachdb/errors v1.10.0/go.mod h1:lknhIsEVQ9Ss/qKDBQS/UqFSvPQjOwNq2qyKAxtHRqE=
+github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE=
+github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
+github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30=
+github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA=
github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c=
@@ -321,8 +324,8 @@ github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk=
github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis=
github.com/cosmos/cosmos-proto v1.0.0-beta.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8=
github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0=
-github.com/cosmos/cosmos-sdk v0.47.3 h1:r0hGmZoAzP2D+MaPaFGHwAaTdFQq3pNpHaUp1BsffbM=
-github.com/cosmos/cosmos-sdk v0.47.3/go.mod h1:c4OfLdAykA9zsj1CqrxBRqXzVz48I++JSvIMPSPcEmk=
+github.com/cosmos/cosmos-sdk v0.47.5 h1:n1+WjP/VM/gAEOx3TqU2/Ny734rj/MX1kpUnn7zVJP8=
+github.com/cosmos/cosmos-sdk v0.47.5/go.mod h1:EHwCeN9IXonsjKcjpS12MqeStdZvIdxt3VYXhus3G3c=
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
@@ -333,8 +336,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK
github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek=
github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38=
github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A=
-github.com/cosmos/ibc-go/v7 v7.1.0 h1:SCLgs7tqVnzdIDO5MRLgovAnc696vTTKl+8qsTu8IMM=
-github.com/cosmos/ibc-go/v7 v7.1.0/go.mod h1:7MptlWeIyqmDiuJeRAFqBvXKY8Hybd+rF8vMSmGd2zg=
+github.com/cosmos/ibc-go/v7 v7.3.0 h1:QtGeVMi/3JeLWuvEuC60sBHpAF40Oenx/y+bP8+wRRw=
+github.com/cosmos/ibc-go/v7 v7.3.0/go.mod h1:mUmaHFXpXrEdcxfdXyau+utZf14pGKVUiXwYftRZZfQ=
github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM=
github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0=
github.com/cosmos/ledger-cosmos-go v0.12.2 h1:/XYaBlE2BJxtvpkHiBm97gFGSGmYGKunKyF3nNqAXZA=
@@ -347,8 +350,7 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8=
github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM=
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
-github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0=
-github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts=
+github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0=
github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -403,11 +405,14 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
+github.com/getsentry/sentry-go v0.23.0 h1:dn+QRCeJv4pPt9OjVXiMcGIBIefaTJPw/h0bZWO05nE=
+github.com/getsentry/sentry-go v0.23.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
-github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14=
github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M=
+github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8=
+github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
@@ -426,11 +431,10 @@ github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KE
github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=
github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU=
-github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs=
github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho=
-github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY=
github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI=
+github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ=
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0=
@@ -439,10 +443,10 @@ github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8=
github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo=
github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
+github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk=
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0=
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
-github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc=
github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s=
github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c=
github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0=
@@ -543,8 +547,8 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe
github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
-github.com/google/s2a-go v0.1.3 h1:FAgZmpLl/SXurPEZyCMPBIiiYeTbqfjlbdnCNTAkbGE=
-github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A=
+github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc=
+github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A=
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
@@ -563,8 +567,8 @@ github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99
github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c=
github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo=
github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY=
-github.com/googleapis/gax-go/v2 v2.8.0 h1:UBtEZqx1bjXtOQ5BVTkuYghXrr3N4V123VKJK67vJZc=
-github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI=
+github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4=
+github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI=
github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4=
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
@@ -684,9 +688,11 @@ github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w=
github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw=
@@ -712,8 +718,8 @@ github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNx
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
-github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
-github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
+github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
@@ -799,6 +805,8 @@ github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 h1:hDSdbBuw3Lefr6
github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4=
github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
+github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4=
+github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
@@ -845,17 +853,18 @@ github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Ung
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM=
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
-github.com/regen-network/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M=
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
-github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
+github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
+github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo=
github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
-github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
-github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc=
-github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU=
+github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
+github.com/rs/zerolog v1.30.0 h1:SymVODrcRsaRaSInD9yQtKbtWqwsfoPcRff/oRXLj4c=
+github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w=
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
@@ -988,8 +997,8 @@ golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
-golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g=
-golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0=
+golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk=
+golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@@ -1001,8 +1010,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw=
-golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU=
-golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
+golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb h1:xIApU0ow1zwMa2uL1VDNeQlNVFTWMQxZUZCMDy0Q4Us=
+golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
@@ -1029,7 +1038,7 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
-golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
+golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -1091,8 +1100,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
-golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
-golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
+golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14=
+golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -1118,8 +1127,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A=
-golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g=
-golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4=
+golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8=
+golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -1134,7 +1143,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
+golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI=
+golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -1233,13 +1243,13 @@ golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
-golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
+golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
-golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols=
-golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
+golang.org/x/term v0.11.0 h1:F9tnn/DA/Im8nCwm+fX+1/eBwi4qFjRT++MhtVC4ZX0=
+golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -1251,8 +1261,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
-golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
+golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc=
+golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -1378,8 +1388,8 @@ google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ
google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70=
-google.golang.org/api v0.122.0 h1:zDobeejm3E7pEG1mNHvdxvjs5XJoCMzyNH+CmwL94Es=
-google.golang.org/api v0.122.0/go.mod h1:gcitW0lvnyWjSp9nKxAbdHKIZ6vF4aajGueeslZOyms=
+google.golang.org/api v0.126.0 h1:q4GJq+cAdMAC7XP7njvQ4tvohGLiSlytuL4BQxbIZ+o=
+google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@@ -1497,8 +1507,12 @@ google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqw
google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s=
-google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A=
-google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU=
+google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 h1:L6iMMGrtzgHsWofoFcihmDEMYeDR9KN/ThbPWGrh++g=
+google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5/go.mod h1:oH/ZOT02u4kWEp7oYBGYFFkCdKS/uYR9Z7+0/xuuFp8=
+google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e h1:z3vDksarJxsAKM5dmEGv0GHwE2hKJ096wZra71Vs4sw=
+google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878 h1:lv6/DhyiFFGsmzxbsUUTOkN29II+zeWHxvT8Lpdxsv0=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M=
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
@@ -1540,8 +1554,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu
google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
-google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag=
-google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8=
+google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw=
+google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
@@ -1558,8 +1572,8 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
-google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng=
-google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
+google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
+google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
@@ -1592,7 +1606,7 @@ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
-gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o=
+gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY=
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
diff --git a/proto/README.md b/proto/README.md
new file mode 100644
index 00000000..368f9b86
--- /dev/null
+++ b/proto/README.md
@@ -0,0 +1,12 @@
+# Terra Money Alliance Proto
+
+Alliance is an open-source Cosmos SDK module that leverages interchain staking to form economic alliances among blockchains. By boosting the economic activity across Cosmos chains through creating bilateral, mutually beneficial alliances, Alliance aims to give rise to a new wave of innovation, user adoption, and cross-chain collaboration.
+
+
+## Version Matrix
+
+| Release | Commit | CosmosSDK |
+|---------|-----------------------------------------------------------------------------------------------|-----------|
+| v0.3.x | [cbfa55eb74...](https://buf.build/terra-money/alliance/docs/cbfa55eb74e44245963386dc8405d84b) | 0.47 |
+| v0.2.x | [2347629bbf...](https://buf.build/terra-money/alliance/docs/2347629bbf524993b0b9b242b8e1a8ce) | 0.47 |
+| v0.1.x | [bb98190e9...](https://buf.build/terra-money/alliance/docs/bb98190e913b4a77b0eb0c74998934e0) | 0.46 |
\ No newline at end of file
diff --git a/proto/alliance/tx.proto b/proto/alliance/tx.proto
index d72c7606..74d40fee 100644
--- a/proto/alliance/tx.proto
+++ b/proto/alliance/tx.proto
@@ -5,6 +5,9 @@ import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos/base/v1beta1/coin.proto";
+import "alliance/params.proto";
+import "alliance/alliance.proto";
+import "google/protobuf/duration.proto";
option go_package = "github.com/terra-money/alliance/x/alliance/types";
@@ -13,6 +16,10 @@ service Msg {
rpc Redelegate(MsgRedelegate) returns(MsgRedelegateResponse);
rpc Undelegate(MsgUndelegate) returns(MsgUndelegateResponse);
rpc ClaimDelegationRewards(MsgClaimDelegationRewards) returns(MsgClaimDelegationRewardsResponse);
+ rpc UpdateParams(MsgUpdateParams) returns(MsgUpdateParamsResponse);
+ rpc CreateAlliance(MsgCreateAlliance) returns(MsgCreateAllianceResponse);
+ rpc UpdateAlliance(MsgUpdateAlliance) returns(MsgUpdateAllianceResponse);
+ rpc DeleteAlliance(MsgDeleteAlliance) returns(MsgDeleteAllianceResponse);
}
message MsgDelegate {
@@ -74,3 +81,91 @@ message MsgClaimDelegationRewards {
}
message MsgClaimDelegationRewardsResponse {}
+
+message MsgUpdateParams {
+ option (cosmos.msg.v1.signer) = "authority";
+
+ string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
+ Params params = 2 [(gogoproto.nullable) = false];
+}
+
+message MsgUpdateParamsResponse {}
+
+message MsgCreateAlliance {
+ option (cosmos.msg.v1.signer) = "authority";
+
+ string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
+ // Denom of the asset. It could either be a native token or an IBC token
+ string denom = 2 [(gogoproto.moretags) = "yaml:\"denom\""];
+ // The reward weight specifies the ratio of rewards that will be given to each alliance asset
+ // It does not need to sum to 1. rate = weight / total_weight
+ // Native asset is always assumed to have a weight of 1.
+ string reward_weight = 3 [
+ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
+ (gogoproto.nullable) = false
+ ];
+ // A positive take rate is used for liquid staking derivatives. It defines an annualized reward rate that
+ // will be redirected to the distribution rewards pool
+ string take_rate = 4 [
+ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
+ (gogoproto.nullable) = false
+ ];
+
+ string reward_change_rate = 5 [
+ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
+ (gogoproto.nullable) = false
+ ];
+
+ google.protobuf.Duration reward_change_interval = 6 [
+ (gogoproto.nullable) = false,
+ (gogoproto.stdduration) = true
+ ];
+
+ // set a bound of weight range to limit how much reward weights can scale.
+ RewardWeightRange reward_weight_range = 7 [
+ (gogoproto.nullable) = false
+ ];
+}
+
+message MsgCreateAllianceResponse {}
+
+message MsgUpdateAlliance {
+ option (cosmos.msg.v1.signer) = "authority";
+
+ string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
+ // Denom of the asset. It could either be a native token or an IBC token
+ string denom = 2 [(gogoproto.moretags) = "yaml:\"denom\""];
+ // The reward weight specifies the ratio of rewards that will be given to each alliance asset
+ // It does not need to sum to 1. rate = weight / total_weight
+ // Native asset is always assumed to have a weight of 1.
+ string reward_weight = 3 [
+ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
+ (gogoproto.nullable) = false
+ ];
+
+ string take_rate = 4 [
+ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
+ (gogoproto.nullable) = false
+ ];
+
+ string reward_change_rate = 5 [
+ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
+ (gogoproto.nullable) = false
+ ];
+
+ google.protobuf.Duration reward_change_interval = 6 [
+ (gogoproto.nullable) = false,
+ (gogoproto.stdduration) = true
+ ];
+}
+
+message MsgUpdateAllianceResponse {}
+
+message MsgDeleteAlliance {
+ option (cosmos.msg.v1.signer) = "authority";
+
+ string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
+ string denom = 2 [(gogoproto.moretags) = "yaml:\"denom\""];
+}
+
+message MsgDeleteAllianceResponse {}
diff --git a/x/alliance/keeper/asset.go b/x/alliance/keeper/asset.go
index 308630cf..a2cd662c 100644
--- a/x/alliance/keeper/asset.go
+++ b/x/alliance/keeper/asset.go
@@ -285,7 +285,9 @@ func (k Keeper) DeductAssetsWithTakeRate(ctx sdk.Context, lastClaim time.Time, a
// If start time has not been set, set the start time and do nothing for this block
if lastClaim.Equal(time.Time{}) {
- k.SetLastRewardClaimTime(ctx, ctx.BlockTime())
+ if err := k.SetLastRewardClaimTime(ctx, ctx.BlockTime()); err != nil {
+ return coins, err
+ }
return coins, nil
}
@@ -315,7 +317,9 @@ func (k Keeper) DeductAssetsWithTakeRate(ctx sdk.Context, lastClaim time.Time, a
// If there are no assets with positive take rate, continue to update last reward claim time and return
if assetsWithPositiveTakeRate == 0 {
- k.SetLastRewardClaimTime(ctx, ctx.BlockTime())
+ if err := k.SetLastRewardClaimTime(ctx, ctx.BlockTime()); err != nil {
+ return coins, err
+ }
return coins, nil
}
@@ -325,7 +329,9 @@ func (k Keeper) DeductAssetsWithTakeRate(ctx sdk.Context, lastClaim time.Time, a
return nil, err
}
// Only update if there was a token transfer to prevent < 1 amounts to be ignored
- k.SetLastRewardClaimTime(ctx, lastClaim.Add(rewardClaimInterval*time.Duration(intervalsSinceLastClaim)))
+ if err = k.SetLastRewardClaimTime(ctx, lastClaim.Add(rewardClaimInterval*time.Duration(intervalsSinceLastClaim))); err != nil {
+ return coins, err
+ }
_ = ctx.EventManager().EmitTypedEvent(&types.DeductAllianceAssetsEvent{Coins: coins})
}
return coins, nil
diff --git a/x/alliance/keeper/genesis.go b/x/alliance/keeper/genesis.go
index 47bbd7a2..9f88e9ce 100644
--- a/x/alliance/keeper/genesis.go
+++ b/x/alliance/keeper/genesis.go
@@ -10,7 +10,9 @@ import (
)
func (k Keeper) InitGenesis(ctx sdk.Context, g *types.GenesisState) []abci.ValidatorUpdate {
- k.SetParams(ctx, g.Params)
+ if err := k.SetParams(ctx, g.Params); err != nil {
+ panic(err)
+ }
for _, asset := range g.Assets {
if err := sdk.ValidateDenom(asset.Denom); err != nil {
panic(err)
@@ -112,7 +114,3 @@ func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState {
return &state
}
-
-func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
- k.paramstore.SetParamSet(ctx, ¶ms)
-}
diff --git a/x/alliance/keeper/grpc_query.go b/x/alliance/keeper/grpc_query.go
index a2b49757..7d37b6ff 100644
--- a/x/alliance/keeper/grpc_query.go
+++ b/x/alliance/keeper/grpc_query.go
@@ -143,13 +143,10 @@ func (k QueryServer) AllAllianceValidators(c context.Context, req *types.QueryAl
}
func (k QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
- // Define a variable that will store the params
- var params types.Params
-
// Get context with the information about the environment
ctx := sdk.UnwrapSDKContext(c)
- k.paramstore.GetParamSet(ctx, ¶ms)
+ params := k.GetParams(ctx)
return &types.QueryParamsResponse{
Params: params,
diff --git a/x/alliance/keeper/keeper.go b/x/alliance/keeper/keeper.go
index cbdf36af..b48be808 100644
--- a/x/alliance/keeper/keeper.go
+++ b/x/alliance/keeper/keeper.go
@@ -10,36 +10,29 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
- paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
type Keeper struct {
storeKey storetypes.StoreKey
- paramstore paramtypes.Subspace
cdc codec.BinaryCodec
accountKeeper types.AccountKeeper
bankKeeper types.BankKeeper
stakingKeeper types.StakingKeeper
distributionKeeper types.DistributionKeeper
feeCollectorName string // name of the FeeCollector ModuleAccount
+ authorityAddr string // name of the Gov ModuleAccount for permissioned messages
}
func NewKeeper(
cdc codec.BinaryCodec,
storeKey storetypes.StoreKey,
- ps paramtypes.Subspace,
accountKeeper types.AccountKeeper,
bankKeeper types.BankKeeper,
stakingKeeper types.StakingKeeper,
distributionKeeper types.DistributionKeeper,
feeCollectorName string,
+ authorityAddr string,
) Keeper {
- // set KeyTable if it has not already been set
- if !ps.HasKeyTable() {
- kt := paramtypes.NewKeyTable().RegisterParamSet(&types.Params{})
- ps = ps.WithKeyTable(kt)
- }
-
// make sure the fee collector module account exists
if accountKeeper.GetModuleAddress(feeCollectorName) == nil {
panic(fmt.Sprintf("%s module account has not been set", feeCollectorName))
@@ -47,13 +40,13 @@ func NewKeeper(
return Keeper{
storeKey: storeKey,
- paramstore: ps,
cdc: cdc,
accountKeeper: accountKeeper,
bankKeeper: bankKeeper,
stakingKeeper: stakingKeeper,
distributionKeeper: distributionKeeper,
feeCollectorName: feeCollectorName,
+ authorityAddr: authorityAddr,
}
}
@@ -70,3 +63,7 @@ func (k Keeper) StakingHooks() Hooks {
func (k Keeper) StoreKey() storetypes.StoreKey {
return k.storeKey
}
+
+func (k Keeper) GetAuthority() string {
+ return k.authorityAddr
+}
diff --git a/x/alliance/keeper/msg_server.go b/x/alliance/keeper/msg_server.go
index 21229217..cb1484e3 100644
--- a/x/alliance/keeper/msg_server.go
+++ b/x/alliance/keeper/msg_server.go
@@ -3,9 +3,12 @@ package keeper
import (
"context"
- "github.com/terra-money/alliance/x/alliance/types"
-
+ sdkerrors "cosmossdk.io/errors"
+ "cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
+ govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
+
+ "github.com/terra-money/alliance/x/alliance/types"
)
type MsgServer struct {
@@ -137,6 +140,94 @@ func (m MsgServer) ClaimDelegationRewards(ctx context.Context, msg *types.MsgCla
return &types.MsgClaimDelegationRewardsResponse{}, err
}
+func (m MsgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
+ if m.GetAuthority() != msg.Authority {
+ return nil, sdkerrors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", m.GetAuthority(), msg.Authority)
+ }
+
+ sdkCtx := sdk.UnwrapSDKContext(ctx)
+ if err := m.SetParams(sdkCtx, msg.Params); err != nil {
+ return nil, err
+ }
+ return &types.MsgUpdateParamsResponse{}, nil
+}
+
+func (m MsgServer) CreateAlliance(ctx context.Context, msg *types.MsgCreateAlliance) (*types.MsgCreateAllianceResponse, error) {
+ if m.GetAuthority() != msg.Authority {
+ return nil, sdkerrors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", m.GetAuthority(), msg.Authority)
+ }
+ sdkCtx := sdk.UnwrapSDKContext(ctx)
+ _, found := m.GetAssetByDenom(sdkCtx, msg.Denom)
+
+ if found {
+ return nil, types.ErrAlreadyExists
+ }
+ rewardStartTime := sdkCtx.BlockTime().Add(m.RewardDelayTime(sdkCtx))
+ asset := types.AllianceAsset{
+ Denom: msg.Denom,
+ RewardWeight: msg.RewardWeight,
+ RewardWeightRange: msg.RewardWeightRange,
+ TakeRate: msg.TakeRate,
+ TotalTokens: sdk.ZeroInt(),
+ TotalValidatorShares: sdk.ZeroDec(),
+ RewardStartTime: rewardStartTime,
+ RewardChangeRate: msg.RewardChangeRate,
+ RewardChangeInterval: msg.RewardChangeInterval,
+ LastRewardChangeTime: rewardStartTime,
+ }
+ m.SetAsset(sdkCtx, asset)
+ return &types.MsgCreateAllianceResponse{}, nil
+}
+
+func (m MsgServer) UpdateAlliance(ctx context.Context, msg *types.MsgUpdateAlliance) (*types.MsgUpdateAllianceResponse, error) {
+ if m.GetAuthority() != msg.Authority {
+ return nil, sdkerrors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", m.GetAuthority(), msg.Authority)
+ }
+ sdkCtx := sdk.UnwrapSDKContext(ctx)
+ asset, found := m.GetAssetByDenom(sdkCtx, msg.Denom)
+
+ if !found {
+ return nil, types.ErrUnknownAsset
+ }
+ if asset.RewardWeightRange.Min.GT(msg.RewardWeight) || asset.RewardWeightRange.Max.LT(msg.RewardWeight) {
+ return nil, types.ErrRewardWeightOutOfBound
+ }
+ asset.RewardWeight = msg.RewardWeight
+ asset.TakeRate = msg.TakeRate
+ asset.RewardChangeRate = msg.RewardChangeRate
+ asset.RewardChangeInterval = msg.RewardChangeInterval
+
+ err := m.UpdateAllianceAsset(sdkCtx, asset)
+ if err != nil {
+ return nil, err
+ }
+
+ return &types.MsgUpdateAllianceResponse{}, nil
+}
+
+func (m MsgServer) DeleteAlliance(ctx context.Context, msg *types.MsgDeleteAlliance) (*types.MsgDeleteAllianceResponse, error) {
+ if m.GetAuthority() != msg.Authority {
+ return nil, sdkerrors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", m.GetAuthority(), msg.Authority)
+ }
+ sdkCtx := sdk.UnwrapSDKContext(ctx)
+ asset, found := m.GetAssetByDenom(sdkCtx, msg.Denom)
+
+ if !found {
+ return nil, types.ErrUnknownAsset
+ }
+
+ if asset.TotalTokens.GT(math.ZeroInt()) {
+ return nil, types.ErrActiveDelegationsExists
+ }
+
+ err := m.DeleteAsset(sdkCtx, asset)
+ if err != nil {
+ return nil, err
+ }
+
+ return &types.MsgDeleteAllianceResponse{}, nil
+}
+
// NewMsgServerImpl returns an implementation of the MsgServer interface
// for the provided Keeper.
func NewMsgServerImpl(keeper Keeper) types.MsgServer {
diff --git a/x/alliance/keeper/params.go b/x/alliance/keeper/params.go
index 05692f31..f62b3644 100644
--- a/x/alliance/keeper/params.go
+++ b/x/alliance/keeper/params.go
@@ -9,20 +9,45 @@ import (
)
func (k Keeper) RewardDelayTime(ctx sdk.Context) (res time.Duration) {
- k.paramstore.Get(ctx, types.RewardDelayTime, &res)
- return
+ params := k.GetParams(ctx)
+ return params.RewardDelayTime
}
func (k Keeper) RewardClaimInterval(ctx sdk.Context) (res time.Duration) {
- k.paramstore.Get(ctx, types.TakeRateClaimInterval, &res)
- return
+ params := k.GetParams(ctx)
+ return params.TakeRateClaimInterval
}
func (k Keeper) LastRewardClaimTime(ctx sdk.Context) (res time.Time) {
- k.paramstore.Get(ctx, types.LastTakeRateClaimTime, &res)
+ params := k.GetParams(ctx)
+ return params.LastTakeRateClaimTime
+}
+
+func (k Keeper) SetLastRewardClaimTime(ctx sdk.Context, lastTime time.Time) error {
+ params := k.GetParams(ctx)
+ params.LastTakeRateClaimTime = lastTime
+ return k.SetParams(ctx, params)
+}
+
+func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) {
+ store := ctx.KVStore(k.storeKey)
+ bz := store.Get(types.ParamsKey)
+ if bz == nil {
+ return
+ }
+ k.cdc.MustUnmarshal(bz, ¶ms)
return
}
-func (k Keeper) SetLastRewardClaimTime(ctx sdk.Context, lastTime time.Time) {
- k.paramstore.Set(ctx, types.LastTakeRateClaimTime, &lastTime)
+func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error {
+ if err := types.ValidatePositiveDuration(params.RewardDelayTime); err != nil {
+ return err
+ }
+ if err := types.ValidatePositiveDuration(params.TakeRateClaimInterval); err != nil {
+ return err
+ }
+ store := ctx.KVStore(k.storeKey)
+ bz := k.cdc.MustMarshal(¶ms)
+ store.Set(types.ParamsKey, bz)
+ return nil
}
diff --git a/x/alliance/keeper/proposal.go b/x/alliance/keeper/proposal.go
index 9c35bf7c..25f0cdf2 100644
--- a/x/alliance/keeper/proposal.go
+++ b/x/alliance/keeper/proposal.go
@@ -3,77 +3,41 @@ package keeper
import (
"context"
- "cosmossdk.io/math"
- sdk "github.com/cosmos/cosmos-sdk/types"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
-
"github.com/terra-money/alliance/x/alliance/types"
)
func (k Keeper) CreateAlliance(ctx context.Context, req *types.MsgCreateAllianceProposal) error {
- sdkCtx := sdk.UnwrapSDKContext(ctx)
- _, found := k.GetAssetByDenom(sdkCtx, req.Denom)
-
- if found {
- return status.Errorf(codes.AlreadyExists, "Asset with denom: %s already exists", req.Denom)
- }
- rewardStartTime := sdkCtx.BlockTime().Add(k.RewardDelayTime(sdkCtx))
- asset := types.AllianceAsset{
+ ms := MsgServer{k}
+ _, err := ms.CreateAlliance(ctx, &types.MsgCreateAlliance{
+ Authority: k.GetAuthority(),
Denom: req.Denom,
RewardWeight: req.RewardWeight,
- RewardWeightRange: req.RewardWeightRange,
TakeRate: req.TakeRate,
- TotalTokens: sdk.ZeroInt(),
- TotalValidatorShares: sdk.ZeroDec(),
- RewardStartTime: rewardStartTime,
RewardChangeRate: req.RewardChangeRate,
RewardChangeInterval: req.RewardChangeInterval,
- LastRewardChangeTime: rewardStartTime,
- }
- k.SetAsset(sdkCtx, asset)
- return nil
+ RewardWeightRange: req.RewardWeightRange,
+ })
+ return err
}
func (k Keeper) UpdateAlliance(ctx context.Context, req *types.MsgUpdateAllianceProposal) error {
- sdkCtx := sdk.UnwrapSDKContext(ctx)
- asset, found := k.GetAssetByDenom(sdkCtx, req.Denom)
-
- if !found {
- return status.Errorf(codes.NotFound, "Asset with denom: %s does not exist", req.Denom)
- }
- if asset.RewardWeightRange.Min.GT(req.RewardWeight) || asset.RewardWeightRange.Max.LT(req.RewardWeight) {
- return types.ErrRewardWeightOutOfBound
- }
- asset.RewardWeight = req.RewardWeight
- asset.TakeRate = req.TakeRate
- asset.RewardChangeRate = req.RewardChangeRate
- asset.RewardChangeInterval = req.RewardChangeInterval
-
- err := k.UpdateAllianceAsset(sdkCtx, asset)
- if err != nil {
- return err
- }
-
- return nil
+ ms := MsgServer{k}
+ _, err := ms.UpdateAlliance(ctx, &types.MsgUpdateAlliance{
+ Authority: k.GetAuthority(),
+ Denom: req.Denom,
+ RewardWeight: req.RewardWeight,
+ TakeRate: req.TakeRate,
+ RewardChangeRate: req.RewardChangeRate,
+ RewardChangeInterval: req.RewardChangeInterval,
+ })
+ return err
}
func (k Keeper) DeleteAlliance(ctx context.Context, req *types.MsgDeleteAllianceProposal) error {
- sdkCtx := sdk.UnwrapSDKContext(ctx)
- asset, found := k.GetAssetByDenom(sdkCtx, req.Denom)
-
- if !found {
- return status.Errorf(codes.NotFound, "Asset with denom: %s does not exist", req.Denom)
- }
-
- if asset.TotalTokens.GT(math.ZeroInt()) {
- return status.Errorf(codes.Internal, "Asset cannot be deleted because there are still %s delegations associated with it", asset.TotalTokens)
- }
-
- err := k.DeleteAsset(sdkCtx, asset)
- if err != nil {
- return err
- }
-
- return nil
+ ms := MsgServer{k}
+ _, err := ms.DeleteAlliance(ctx, &types.MsgDeleteAlliance{
+ Authority: k.GetAuthority(),
+ Denom: req.Denom,
+ })
+ return err
}
diff --git a/x/alliance/keeper/slash.go b/x/alliance/keeper/slash.go
index fcd3cd84..63992436 100644
--- a/x/alliance/keeper/slash.go
+++ b/x/alliance/keeper/slash.go
@@ -4,6 +4,7 @@ import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
+
"github.com/terra-money/alliance/x/alliance/types"
)
diff --git a/x/alliance/keeper/tests/proposal_test.go b/x/alliance/keeper/tests/proposal_test.go
index 8cfddc38..15148739 100644
--- a/x/alliance/keeper/tests/proposal_test.go
+++ b/x/alliance/keeper/tests/proposal_test.go
@@ -4,6 +4,9 @@ import (
"testing"
"time"
+ authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
+ govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
+
"github.com/terra-money/alliance/x/alliance/keeper"
"github.com/terra-money/alliance/x/alliance/types"
@@ -171,3 +174,64 @@ func TestDeleteAlliance(t *testing.T) {
},
})
}
+
+func TestUpdateParams(t *testing.T) {
+ // GIVEN
+ app, ctx := createTestContext(t)
+ startTime := time.Now()
+ ctx.WithBlockTime(startTime).WithBlockHeight(1)
+ app.AllianceKeeper.InitGenesis(ctx, &types.GenesisState{
+ Params: types.DefaultParams(),
+ Assets: []types.AllianceAsset{
+ types.NewAllianceAsset("uluna", sdk.NewDec(1), sdk.ZeroDec(), sdk.NewDec(2), sdk.NewDec(0), startTime),
+ },
+ })
+ timeNow := time.Now().UTC()
+ govAddr := authtypes.NewModuleAddress(govtypes.ModuleName).String()
+
+ // WHEN
+ msgServer := keeper.MsgServer{Keeper: app.AllianceKeeper}
+ _, err := msgServer.UpdateParams(sdk.WrapSDKContext(ctx), &types.MsgUpdateParams{
+ Authority: govAddr,
+ Params: types.Params{
+ RewardDelayTime: 100,
+ TakeRateClaimInterval: 100,
+ LastTakeRateClaimTime: timeNow,
+ },
+ })
+ require.NoError(t, err)
+
+ // THEN
+ params := app.AllianceKeeper.GetParams(ctx)
+ require.Equal(t, time.Duration(100), params.RewardDelayTime)
+ require.Equal(t, time.Duration(100), params.TakeRateClaimInterval)
+ require.Equal(t, timeNow, params.LastTakeRateClaimTime)
+}
+
+func TestUnauthorizedUpdateParams(t *testing.T) {
+ // GIVEN
+ app, ctx := createTestContext(t)
+ startTime := time.Now()
+ ctx.WithBlockTime(startTime).WithBlockHeight(1)
+ app.AllianceKeeper.InitGenesis(ctx, &types.GenesisState{
+ Params: types.DefaultParams(),
+ Assets: []types.AllianceAsset{
+ types.NewAllianceAsset("uluna", sdk.NewDec(1), sdk.ZeroDec(), sdk.NewDec(2), sdk.NewDec(0), startTime),
+ },
+ })
+ timeNow := time.Now().UTC()
+
+ // WHEN
+ msgServer := keeper.MsgServer{Keeper: app.AllianceKeeper}
+ _, err := msgServer.UpdateParams(sdk.WrapSDKContext(ctx), &types.MsgUpdateParams{
+ Authority: sdk.MustBech32ifyAddressBytes(sdk.GetConfig().GetBech32AccountAddrPrefix(), []byte("random")),
+ Params: types.Params{
+ RewardDelayTime: 100,
+ TakeRateClaimInterval: 100,
+ LastTakeRateClaimTime: timeNow,
+ },
+ })
+
+ // THEN
+ require.NotNil(t, err)
+}
diff --git a/x/alliance/migrations/v5/migration.go b/x/alliance/migrations/v5/migration.go
new file mode 100644
index 00000000..1ff0f39e
--- /dev/null
+++ b/x/alliance/migrations/v5/migration.go
@@ -0,0 +1,17 @@
+package v5
+
+import (
+ sdk "github.com/cosmos/cosmos-sdk/types"
+ paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
+
+ alliancekeeper "github.com/terra-money/alliance/x/alliance/keeper"
+ "github.com/terra-money/alliance/x/alliance/types"
+)
+
+func Migrate(k alliancekeeper.Keeper, subspace paramtypes.Subspace) func(ctx sdk.Context) error {
+ return func(ctx sdk.Context) error {
+ var params types.Params
+ subspace.GetParamSet(ctx, ¶ms)
+ return k.SetParams(ctx, params)
+ }
+}
diff --git a/x/alliance/module.go b/x/alliance/module.go
index 31dddf48..aeffb73a 100644
--- a/x/alliance/module.go
+++ b/x/alliance/module.go
@@ -5,6 +5,8 @@ import (
"encoding/json"
"fmt"
+ paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
+
simulation2 "github.com/terra-money/alliance/x/alliance/tests/simulation"
// this line is used by starport scaffolding # 1
@@ -17,6 +19,7 @@ import (
"github.com/terra-money/alliance/x/alliance/client/cli"
"github.com/terra-money/alliance/x/alliance/keeper"
migrationsv4 "github.com/terra-money/alliance/x/alliance/migrations/v4"
+ migrationsv5 "github.com/terra-money/alliance/x/alliance/migrations/v5"
"github.com/terra-money/alliance/x/alliance/types"
"github.com/cosmos/cosmos-sdk/client"
@@ -42,6 +45,7 @@ type AppModuleBasic struct {
// NewAppModule creates a new AppModule object
func NewAppModule(cdc codec.Codec, keeper keeper.Keeper, sk types.StakingKeeper,
ak types.AccountKeeper, bk types.BankKeeper, registry cdctypes.InterfaceRegistry,
+ subspace paramstypes.Subspace,
) AppModule {
return AppModule{
AppModuleBasic: AppModuleBasic{cdc: cdc, pcdc: codec.NewProtoCodec(registry)},
@@ -49,6 +53,7 @@ func NewAppModule(cdc codec.Codec, keeper keeper.Keeper, sk types.StakingKeeper,
stakingKeeper: sk,
bankKeeper: bk,
accountKeeper: ak,
+ subspace: subspace,
}
}
@@ -96,6 +101,7 @@ type AppModule struct {
stakingKeeper types.StakingKeeper
bankKeeper types.BankKeeper
accountKeeper types.AccountKeeper
+ subspace paramstypes.Subspace // Legacy for migration only
}
func (a AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate {
@@ -125,10 +131,14 @@ func (a AppModule) RegisterServices(cfg module.Configurator) {
if err != nil {
panic(fmt.Sprintf("failed to migrate x/alliance from version 3 to 4: %v", err))
}
+ err = cfg.RegisterMigration(types.ModuleName, 4, migrationsv5.Migrate(a.keeper, a.subspace))
+ if err != nil {
+ panic(fmt.Sprintf("failed to migrate x/alliance from version 4 to 5: %v", err))
+ }
}
func (a AppModule) ConsensusVersion() uint64 {
- return 4
+ return 5
}
func (a AppModule) GenerateGenesisState(simState *module.SimulationState) {
diff --git a/x/alliance/types/errors.go b/x/alliance/types/errors.go
index 5419b675..757dacf8 100644
--- a/x/alliance/types/errors.go
+++ b/x/alliance/types/errors.go
@@ -7,14 +7,16 @@ import (
var (
ErrInvalidGenesisState = sdkerrors.Register(ModuleName, 0, "invalid genesis state")
- ErrEmptyValidatorAddr = sdkerrors.Register(ModuleName, 10, "empty validator address")
- ErrValidatorNotFound = sdkerrors.Register(ModuleName, 11, "validator not found")
- ErrDelegationNotFound = sdkerrors.Register(ModuleName, 12, "delegation not found")
+ ErrEmptyValidatorAddr = sdkerrors.Register(ModuleName, 10, "empty validator address")
+ ErrValidatorNotFound = sdkerrors.Register(ModuleName, 11, "validator not found")
+ ErrDelegationNotFound = sdkerrors.Register(ModuleName, 12, "delegation not found")
+ ErrActiveDelegationsExists = sdkerrors.Register(ModuleName, 13, "active delegations exists")
ErrZeroDelegations = sdkerrors.Register(ModuleName, 20, "there are no delegations yet")
ErrInsufficientTokens = sdkerrors.Register(ModuleName, 21, "insufficient tokens")
- ErrUnknownAsset = sdkerrors.Register(ModuleName, 30, "alliance asset is not whitelisted")
+ ErrUnknownAsset = sdkerrors.Register(ModuleName, 30, "alliance asset is not whitelisted")
+ ErrAlreadyExists = sdkerrors.Register(ModuleName, 31, "alliance asset already exists")
ErrRewardWeightOutOfBound = sdkerrors.Register(ModuleName, 40, "alliance asset must be between reward_weight_range")
)
diff --git a/x/alliance/types/keys.go b/x/alliance/types/keys.go
index 1fa9fb5f..8e764d42 100644
--- a/x/alliance/types/keys.go
+++ b/x/alliance/types/keys.go
@@ -29,6 +29,7 @@ const (
var (
ModuleAccKey = []byte{0x01}
+ ParamsKey = []byte{0x02}
AssetKey = []byte{0x11}
ValidatorInfoKey = []byte{0x12}
diff --git a/x/alliance/types/msg.go b/x/alliance/types/msg.go
index 585883b3..b23a46e7 100644
--- a/x/alliance/types/msg.go
+++ b/x/alliance/types/msg.go
@@ -1,6 +1,7 @@
package types
import (
+ sdkerrors "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
"google.golang.org/grpc/codes"
@@ -12,11 +13,19 @@ var (
_ sdk.Msg = &MsgRedelegate{}
_ sdk.Msg = &MsgUndelegate{}
_ sdk.Msg = &MsgClaimDelegationRewards{}
+ _ sdk.Msg = &MsgUpdateParams{}
+ _ sdk.Msg = &MsgCreateAlliance{}
+ _ sdk.Msg = &MsgUpdateAlliance{}
+ _ sdk.Msg = &MsgDeleteAlliance{}
_ legacytx.LegacyMsg = &MsgDelegate{}
_ legacytx.LegacyMsg = &MsgRedelegate{}
_ legacytx.LegacyMsg = &MsgUndelegate{}
_ legacytx.LegacyMsg = &MsgClaimDelegationRewards{}
+ _ legacytx.LegacyMsg = &MsgUpdateParams{}
+ _ legacytx.LegacyMsg = &MsgCreateAlliance{}
+ _ legacytx.LegacyMsg = &MsgUpdateAlliance{}
+ _ legacytx.LegacyMsg = &MsgDeleteAlliance{}
)
var (
@@ -24,6 +33,10 @@ var (
MsgUndelegateType = "msg_undelegate"
MsgRedelegateType = "msg_redelegate"
MsgClaimDelegationRewardsType = "claim_delegation_rewards"
+ MsgUpdateParamsType = "update_params"
+ MsgCreateAllianceType = "create_alliance"
+ MsgUpdateAllianceType = "update_alliance"
+ MsgDeleteAllianceType = "delete_alliance"
)
func NewMsgDelegate(delegatorAddress, validatorAddress string, amount sdk.Coin) *MsgDelegate {
@@ -158,3 +171,169 @@ func (msg *MsgClaimDelegationRewards) GetSigners() []sdk.AccAddress {
}
func (msg MsgClaimDelegationRewards) Type() string { return MsgClaimDelegationRewardsType }
+
+func (msg *MsgUpdateParams) ValidateBasic() error {
+ if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
+ return sdkerrors.Wrap(err, "invalid authority address")
+ }
+ if err := ValidatePositiveDuration(msg.Params.RewardDelayTime); err != nil {
+ return err
+ }
+ return ValidatePositiveDuration(msg.Params.TakeRateClaimInterval)
+}
+
+func (msg MsgUpdateParams) Route() string {
+ return sdk.MsgTypeURL(&msg)
+}
+
+func (msg MsgUpdateParams) GetSignBytes() []byte {
+ return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg))
+}
+
+func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress {
+ signer, err := sdk.AccAddressFromBech32(msg.Authority)
+ if err != nil {
+ panic("Authority is not valid")
+ }
+ return []sdk.AccAddress{signer}
+}
+
+func (msg MsgUpdateParams) Type() string { return MsgUpdateParamsType }
+
+func (msg *MsgCreateAlliance) ValidateBasic() error {
+ if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
+ return sdkerrors.Wrap(err, "invalid authority address")
+ }
+
+ if msg.Denom == "" {
+ return status.Errorf(codes.InvalidArgument, "Alliance denom must have a value")
+ }
+
+ if err := sdk.ValidateDenom(msg.Denom); err != nil {
+ return err
+ }
+
+ if msg.RewardWeight.IsNil() || msg.RewardWeight.LT(sdk.ZeroDec()) {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardWeight must be zero or a positive number")
+ }
+
+ if msg.RewardWeightRange.Min.IsNil() || msg.RewardWeightRange.Min.LT(sdk.ZeroDec()) ||
+ msg.RewardWeightRange.Max.IsNil() || msg.RewardWeightRange.Max.LT(sdk.ZeroDec()) {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardWeight min and max must be zero or a positive number")
+ }
+
+ if msg.RewardWeightRange.Min.GT(msg.RewardWeightRange.Max) {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardWeight min must be less or equal to rewardWeight max")
+ }
+
+ if msg.RewardWeight.LT(msg.RewardWeightRange.Min) || msg.RewardWeight.GT(msg.RewardWeightRange.Max) {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardWeight must be bounded in RewardWeightRange")
+ }
+
+ if msg.TakeRate.IsNil() || msg.TakeRate.IsNegative() || msg.TakeRate.GTE(sdk.OneDec()) {
+ return status.Errorf(codes.InvalidArgument, "Alliance takeRate must be more or equals to 0 but strictly less than 1")
+ }
+
+ if msg.RewardChangeRate.IsZero() || msg.RewardChangeRate.IsNegative() {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardChangeRate must be strictly a positive number")
+ }
+
+ if msg.RewardChangeInterval < 0 {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardChangeInterval must be strictly a positive number")
+ }
+
+ return nil
+}
+
+func (msg MsgCreateAlliance) Route() string {
+ return sdk.MsgTypeURL(&msg)
+}
+
+func (msg MsgCreateAlliance) GetSignBytes() []byte {
+ return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg))
+}
+
+func (msg *MsgCreateAlliance) GetSigners() []sdk.AccAddress {
+ signer, err := sdk.AccAddressFromBech32(msg.Authority)
+ if err != nil {
+ panic("Authority is not valid")
+ }
+ return []sdk.AccAddress{signer}
+}
+
+func (msg MsgCreateAlliance) Type() string { return MsgCreateAllianceType }
+
+func (msg *MsgUpdateAlliance) ValidateBasic() error {
+ if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
+ return sdkerrors.Wrap(err, "invalid authority address")
+ }
+
+ if msg.Denom == "" {
+ return status.Errorf(codes.InvalidArgument, "Alliance denom must have a value")
+ }
+
+ if msg.RewardWeight.IsNil() || msg.RewardWeight.LT(sdk.ZeroDec()) {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardWeight must be zero or a positive number")
+ }
+
+ if msg.TakeRate.IsNil() || msg.TakeRate.IsNegative() || msg.TakeRate.GTE(sdk.OneDec()) {
+ return status.Errorf(codes.InvalidArgument, "Alliance takeRate must be more or equals to 0 but strictly less than 1")
+ }
+
+ if msg.RewardChangeRate.IsZero() || msg.RewardChangeRate.IsNegative() {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardChangeRate must be strictly a positive number")
+ }
+
+ if msg.RewardChangeInterval < 0 {
+ return status.Errorf(codes.InvalidArgument, "Alliance rewardChangeInterval must be strictly a positive number")
+ }
+
+ return nil
+}
+
+func (msg MsgUpdateAlliance) Route() string {
+ return sdk.MsgTypeURL(&msg)
+}
+
+func (msg MsgUpdateAlliance) GetSignBytes() []byte {
+ return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg))
+}
+
+func (msg *MsgUpdateAlliance) GetSigners() []sdk.AccAddress {
+ signer, err := sdk.AccAddressFromBech32(msg.Authority)
+ if err != nil {
+ panic("Authority is not valid")
+ }
+ return []sdk.AccAddress{signer}
+}
+
+func (msg MsgUpdateAlliance) Type() string { return MsgUpdateAllianceType }
+
+func (msg *MsgDeleteAlliance) ValidateBasic() error {
+ if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
+ return sdkerrors.Wrap(err, "invalid authority address")
+ }
+
+ if msg.Denom == "" {
+ return status.Errorf(codes.InvalidArgument, "Alliance denom must have a value")
+ }
+ return nil
+}
+
+func (msg MsgDeleteAlliance) Route() string {
+ return sdk.MsgTypeURL(&msg)
+}
+
+func (msg MsgDeleteAlliance) GetSignBytes() []byte {
+ return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg))
+}
+
+func (msg *MsgDeleteAlliance) GetSigners() []sdk.AccAddress {
+ signer, err := sdk.AccAddressFromBech32(msg.Authority)
+ if err != nil {
+ panic("Authority is not valid")
+ }
+ return []sdk.AccAddress{signer}
+}
+
+func (msg MsgDeleteAlliance) Type() string { return MsgDeleteAllianceType }
diff --git a/x/alliance/types/params.go b/x/alliance/types/params.go
index b1aef989..34faa563 100644
--- a/x/alliance/types/params.go
+++ b/x/alliance/types/params.go
@@ -13,10 +13,16 @@ var (
RewardDelayTime = []byte("RewardDelayTime")
TakeRateClaimInterval = []byte("TakeRateClaimInterval")
LastTakeRateClaimTime = []byte("LastTakeRateClaimTime")
+ // ParamKeyTable deprecated - only used for migration
)
var _ paramtypes.ParamSet = (*Params)(nil)
+// Deprecated: ParamKeyTable for auth module
+func ParamKeyTable() paramtypes.KeyTable {
+ return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
+}
+
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
return paramtypes.ParamSetPairs{
paramtypes.NewParamSetPair(RewardDelayTime, &p.RewardDelayTime, validatePositiveDuration),
@@ -73,3 +79,10 @@ func (r RewardHistories) GetIndexByDenom(denom string) (ri *RewardHistory, found
}
return &r[idx], true
}
+
+func ValidatePositiveDuration(t time.Duration) error {
+ if t < 0 {
+ return fmt.Errorf("duration must be positive: %d", t)
+ }
+ return nil
+}
diff --git a/x/alliance/types/tx.pb.go b/x/alliance/types/tx.pb.go
index cc8f82a9..1cf00f11 100644
--- a/x/alliance/types/tx.pb.go
+++ b/x/alliance/types/tx.pb.go
@@ -13,18 +13,22 @@ import (
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
+ github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
+ _ "google.golang.org/protobuf/types/known/durationpb"
io "io"
math "math"
math_bits "math/bits"
+ time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
+var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
@@ -333,6 +337,399 @@ func (m *MsgClaimDelegationRewardsResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_MsgClaimDelegationRewardsResponse proto.InternalMessageInfo
+type MsgUpdateParams struct {
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
+}
+
+func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} }
+func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
+func (*MsgUpdateParams) ProtoMessage() {}
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ddcb3ed838213b4a, []int{8}
+}
+func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgUpdateParams.Merge(m, src)
+}
+func (m *MsgUpdateParams) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgUpdateParams) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
+
+func (m *MsgUpdateParams) GetAuthority() string {
+ if m != nil {
+ return m.Authority
+ }
+ return ""
+}
+
+func (m *MsgUpdateParams) GetParams() Params {
+ if m != nil {
+ return m.Params
+ }
+ return Params{}
+}
+
+type MsgUpdateParamsResponse struct {
+}
+
+func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} }
+func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ddcb3ed838213b4a, []int{9}
+}
+func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
+}
+func (m *MsgUpdateParamsResponse) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
+
+type MsgCreateAlliance struct {
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // Denom of the asset. It could either be a native token or an IBC token
+ Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
+ // The reward weight specifies the ratio of rewards that will be given to each alliance asset
+ // It does not need to sum to 1. rate = weight / total_weight
+ // Native asset is always assumed to have a weight of 1.
+ RewardWeight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=reward_weight,json=rewardWeight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"reward_weight"`
+ // A positive take rate is used for liquid staking derivatives. It defines an annualized reward rate that
+ // will be redirected to the distribution rewards pool
+ TakeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=take_rate,json=takeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"take_rate"`
+ RewardChangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=reward_change_rate,json=rewardChangeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"reward_change_rate"`
+ RewardChangeInterval time.Duration `protobuf:"bytes,6,opt,name=reward_change_interval,json=rewardChangeInterval,proto3,stdduration" json:"reward_change_interval"`
+ // set a bound of weight range to limit how much reward weights can scale.
+ RewardWeightRange RewardWeightRange `protobuf:"bytes,7,opt,name=reward_weight_range,json=rewardWeightRange,proto3" json:"reward_weight_range"`
+}
+
+func (m *MsgCreateAlliance) Reset() { *m = MsgCreateAlliance{} }
+func (m *MsgCreateAlliance) String() string { return proto.CompactTextString(m) }
+func (*MsgCreateAlliance) ProtoMessage() {}
+func (*MsgCreateAlliance) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ddcb3ed838213b4a, []int{10}
+}
+func (m *MsgCreateAlliance) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgCreateAlliance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgCreateAlliance.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *MsgCreateAlliance) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgCreateAlliance.Merge(m, src)
+}
+func (m *MsgCreateAlliance) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgCreateAlliance) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgCreateAlliance.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgCreateAlliance proto.InternalMessageInfo
+
+func (m *MsgCreateAlliance) GetAuthority() string {
+ if m != nil {
+ return m.Authority
+ }
+ return ""
+}
+
+func (m *MsgCreateAlliance) GetDenom() string {
+ if m != nil {
+ return m.Denom
+ }
+ return ""
+}
+
+func (m *MsgCreateAlliance) GetRewardChangeInterval() time.Duration {
+ if m != nil {
+ return m.RewardChangeInterval
+ }
+ return 0
+}
+
+func (m *MsgCreateAlliance) GetRewardWeightRange() RewardWeightRange {
+ if m != nil {
+ return m.RewardWeightRange
+ }
+ return RewardWeightRange{}
+}
+
+type MsgCreateAllianceResponse struct {
+}
+
+func (m *MsgCreateAllianceResponse) Reset() { *m = MsgCreateAllianceResponse{} }
+func (m *MsgCreateAllianceResponse) String() string { return proto.CompactTextString(m) }
+func (*MsgCreateAllianceResponse) ProtoMessage() {}
+func (*MsgCreateAllianceResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ddcb3ed838213b4a, []int{11}
+}
+func (m *MsgCreateAllianceResponse) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgCreateAllianceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgCreateAllianceResponse.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *MsgCreateAllianceResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgCreateAllianceResponse.Merge(m, src)
+}
+func (m *MsgCreateAllianceResponse) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgCreateAllianceResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgCreateAllianceResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgCreateAllianceResponse proto.InternalMessageInfo
+
+type MsgUpdateAlliance struct {
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // Denom of the asset. It could either be a native token or an IBC token
+ Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
+ // The reward weight specifies the ratio of rewards that will be given to each alliance asset
+ // It does not need to sum to 1. rate = weight / total_weight
+ // Native asset is always assumed to have a weight of 1.
+ RewardWeight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=reward_weight,json=rewardWeight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"reward_weight"`
+ TakeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=take_rate,json=takeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"take_rate"`
+ RewardChangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=reward_change_rate,json=rewardChangeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"reward_change_rate"`
+ RewardChangeInterval time.Duration `protobuf:"bytes,6,opt,name=reward_change_interval,json=rewardChangeInterval,proto3,stdduration" json:"reward_change_interval"`
+}
+
+func (m *MsgUpdateAlliance) Reset() { *m = MsgUpdateAlliance{} }
+func (m *MsgUpdateAlliance) String() string { return proto.CompactTextString(m) }
+func (*MsgUpdateAlliance) ProtoMessage() {}
+func (*MsgUpdateAlliance) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ddcb3ed838213b4a, []int{12}
+}
+func (m *MsgUpdateAlliance) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgUpdateAlliance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgUpdateAlliance.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *MsgUpdateAlliance) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgUpdateAlliance.Merge(m, src)
+}
+func (m *MsgUpdateAlliance) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgUpdateAlliance) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgUpdateAlliance.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgUpdateAlliance proto.InternalMessageInfo
+
+func (m *MsgUpdateAlliance) GetAuthority() string {
+ if m != nil {
+ return m.Authority
+ }
+ return ""
+}
+
+func (m *MsgUpdateAlliance) GetDenom() string {
+ if m != nil {
+ return m.Denom
+ }
+ return ""
+}
+
+func (m *MsgUpdateAlliance) GetRewardChangeInterval() time.Duration {
+ if m != nil {
+ return m.RewardChangeInterval
+ }
+ return 0
+}
+
+type MsgUpdateAllianceResponse struct {
+}
+
+func (m *MsgUpdateAllianceResponse) Reset() { *m = MsgUpdateAllianceResponse{} }
+func (m *MsgUpdateAllianceResponse) String() string { return proto.CompactTextString(m) }
+func (*MsgUpdateAllianceResponse) ProtoMessage() {}
+func (*MsgUpdateAllianceResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ddcb3ed838213b4a, []int{13}
+}
+func (m *MsgUpdateAllianceResponse) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgUpdateAllianceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgUpdateAllianceResponse.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *MsgUpdateAllianceResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgUpdateAllianceResponse.Merge(m, src)
+}
+func (m *MsgUpdateAllianceResponse) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgUpdateAllianceResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgUpdateAllianceResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgUpdateAllianceResponse proto.InternalMessageInfo
+
+type MsgDeleteAlliance struct {
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
+}
+
+func (m *MsgDeleteAlliance) Reset() { *m = MsgDeleteAlliance{} }
+func (m *MsgDeleteAlliance) String() string { return proto.CompactTextString(m) }
+func (*MsgDeleteAlliance) ProtoMessage() {}
+func (*MsgDeleteAlliance) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ddcb3ed838213b4a, []int{14}
+}
+func (m *MsgDeleteAlliance) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgDeleteAlliance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgDeleteAlliance.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *MsgDeleteAlliance) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgDeleteAlliance.Merge(m, src)
+}
+func (m *MsgDeleteAlliance) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgDeleteAlliance) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgDeleteAlliance.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgDeleteAlliance proto.InternalMessageInfo
+
+func (m *MsgDeleteAlliance) GetAuthority() string {
+ if m != nil {
+ return m.Authority
+ }
+ return ""
+}
+
+func (m *MsgDeleteAlliance) GetDenom() string {
+ if m != nil {
+ return m.Denom
+ }
+ return ""
+}
+
+type MsgDeleteAllianceResponse struct {
+}
+
+func (m *MsgDeleteAllianceResponse) Reset() { *m = MsgDeleteAllianceResponse{} }
+func (m *MsgDeleteAllianceResponse) String() string { return proto.CompactTextString(m) }
+func (*MsgDeleteAllianceResponse) ProtoMessage() {}
+func (*MsgDeleteAllianceResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ddcb3ed838213b4a, []int{15}
+}
+func (m *MsgDeleteAllianceResponse) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgDeleteAllianceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgDeleteAllianceResponse.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *MsgDeleteAllianceResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgDeleteAllianceResponse.Merge(m, src)
+}
+func (m *MsgDeleteAllianceResponse) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgDeleteAllianceResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgDeleteAllianceResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgDeleteAllianceResponse proto.InternalMessageInfo
+
func init() {
proto.RegisterType((*MsgDelegate)(nil), "alliance.MsgDelegate")
proto.RegisterType((*MsgDelegateResponse)(nil), "alliance.MsgDelegateResponse")
@@ -342,47 +739,78 @@ func init() {
proto.RegisterType((*MsgRedelegateResponse)(nil), "alliance.MsgRedelegateResponse")
proto.RegisterType((*MsgClaimDelegationRewards)(nil), "alliance.MsgClaimDelegationRewards")
proto.RegisterType((*MsgClaimDelegationRewardsResponse)(nil), "alliance.MsgClaimDelegationRewardsResponse")
+ proto.RegisterType((*MsgUpdateParams)(nil), "alliance.MsgUpdateParams")
+ proto.RegisterType((*MsgUpdateParamsResponse)(nil), "alliance.MsgUpdateParamsResponse")
+ proto.RegisterType((*MsgCreateAlliance)(nil), "alliance.MsgCreateAlliance")
+ proto.RegisterType((*MsgCreateAllianceResponse)(nil), "alliance.MsgCreateAllianceResponse")
+ proto.RegisterType((*MsgUpdateAlliance)(nil), "alliance.MsgUpdateAlliance")
+ proto.RegisterType((*MsgUpdateAllianceResponse)(nil), "alliance.MsgUpdateAllianceResponse")
+ proto.RegisterType((*MsgDeleteAlliance)(nil), "alliance.MsgDeleteAlliance")
+ proto.RegisterType((*MsgDeleteAllianceResponse)(nil), "alliance.MsgDeleteAllianceResponse")
}
func init() { proto.RegisterFile("alliance/tx.proto", fileDescriptor_ddcb3ed838213b4a) }
var fileDescriptor_ddcb3ed838213b4a = []byte{
- // 546 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x3f, 0x6f, 0xd3, 0x40,
- 0x14, 0xb7, 0x53, 0xa8, 0xca, 0x55, 0x48, 0xd4, 0x4d, 0x48, 0x62, 0x09, 0xbb, 0xa4, 0x03, 0x15,
- 0x28, 0x36, 0x29, 0x1b, 0x13, 0xa4, 0x85, 0x01, 0x91, 0xc5, 0x15, 0x0b, 0x4b, 0x75, 0xb6, 0x4f,
- 0x87, 0xc1, 0xbe, 0x8b, 0xee, 0xae, 0xa1, 0x5d, 0x99, 0x18, 0xf9, 0x06, 0x94, 0x6f, 0xc0, 0xc0,
- 0x37, 0x60, 0xe9, 0x58, 0x31, 0x21, 0x86, 0x82, 0x92, 0x01, 0x3e, 0x01, 0x33, 0x4a, 0xee, 0xfc,
- 0x8f, 0x24, 0x6a, 0x06, 0x24, 0x18, 0x98, 0x7c, 0xf7, 0x7e, 0xf7, 0xfb, 0x9d, 0xde, 0xef, 0x3d,
- 0xbf, 0x03, 0x6b, 0x30, 0x8e, 0x23, 0x48, 0x02, 0xe4, 0x8a, 0x43, 0xa7, 0xcf, 0xa8, 0xa0, 0xc6,
- 0x4a, 0x1a, 0x32, 0xab, 0x98, 0x62, 0x3a, 0x09, 0xba, 0xe3, 0x95, 0xc4, 0xcd, 0x66, 0x40, 0x79,
- 0x42, 0xf9, 0xbe, 0x04, 0xe4, 0x46, 0x41, 0x75, 0xb9, 0x73, 0x13, 0x8e, 0xdd, 0x41, 0x67, 0xfc,
- 0x51, 0x80, 0xa5, 0x00, 0x1f, 0x72, 0xe4, 0x0e, 0x3a, 0x3e, 0x12, 0xb0, 0xe3, 0x06, 0x34, 0x22,
- 0x12, 0x6f, 0xbd, 0xad, 0x80, 0xd5, 0x1e, 0xc7, 0xbb, 0x28, 0x46, 0x18, 0x0a, 0x64, 0x3c, 0x00,
- 0x6b, 0xa1, 0x5c, 0x53, 0xb6, 0x0f, 0xc3, 0x90, 0x21, 0xce, 0x1b, 0xfa, 0x86, 0xbe, 0x75, 0xa9,
- 0xdb, 0xf8, 0xf4, 0xa1, 0x5d, 0x55, 0xb7, 0xde, 0x97, 0xc8, 0x9e, 0x60, 0x11, 0xc1, 0xde, 0x95,
- 0x8c, 0xa2, 0xe2, 0x63, 0x99, 0x01, 0x8c, 0xa3, 0xb0, 0x24, 0x53, 0x39, 0x4f, 0x26, 0xa3, 0xa4,
- 0x32, 0x3e, 0x58, 0x86, 0x09, 0x3d, 0x20, 0xa2, 0xb1, 0xb4, 0xa1, 0x6f, 0xad, 0x6e, 0x37, 0x1d,
- 0x45, 0x1c, 0xa7, 0xe3, 0xa8, 0x74, 0x9c, 0x1d, 0x1a, 0x91, 0xae, 0x7b, 0x72, 0x66, 0x6b, 0x5f,
- 0xce, 0xec, 0x1b, 0x38, 0x12, 0xcf, 0x0e, 0x7c, 0x27, 0xa0, 0x89, 0xb2, 0x48, 0x7d, 0xda, 0x3c,
- 0x7c, 0xe1, 0x8a, 0xa3, 0x3e, 0xe2, 0x13, 0x82, 0xa7, 0x94, 0xef, 0x5a, 0xaf, 0x8f, 0x6d, 0xed,
- 0xc7, 0xb1, 0xad, 0xbd, 0xfa, 0xfe, 0xfe, 0xe6, 0x74, 0xf2, 0xad, 0x1a, 0x58, 0x2f, 0x18, 0xe4,
- 0x21, 0xde, 0xa7, 0x84, 0xa3, 0xd6, 0xbb, 0x0a, 0xb8, 0xdc, 0xe3, 0xf8, 0x09, 0x09, 0xff, 0x5b,
- 0x37, 0xcf, 0xba, 0x3a, 0xa8, 0x95, 0x2c, 0xca, 0xcc, 0xfb, 0x29, 0xcd, 0xf3, 0xd0, 0x9f, 0x36,
- 0xef, 0x31, 0xa8, 0xe5, 0xe6, 0x71, 0x16, 0x2c, 0x6c, 0xe0, 0x7a, 0x46, 0xdb, 0x63, 0xc1, 0x4c,
- 0xb5, 0x90, 0x8b, 0x4c, 0x6d, 0x69, 0x61, 0xb5, 0x5d, 0x2e, 0xa6, 0x2b, 0x72, 0xe1, 0x2f, 0x57,
- 0x24, 0xf7, 0x3d, 0xab, 0xc8, 0x57, 0x1d, 0x34, 0x7b, 0x1c, 0xef, 0xc4, 0x30, 0x4a, 0x54, 0xaf,
- 0x47, 0x94, 0x78, 0xe8, 0x25, 0x64, 0x21, 0xff, 0xc7, 0x5a, 0xbb, 0x0a, 0x2e, 0x86, 0x88, 0xd0,
- 0x44, 0x96, 0xc1, 0x93, 0x9b, 0x73, 0x53, 0xdf, 0x04, 0xd7, 0xe7, 0x26, 0x98, 0xda, 0xb0, 0xfd,
- 0xb1, 0x02, 0x96, 0x7a, 0x1c, 0x1b, 0xf7, 0xc0, 0x4a, 0x36, 0x12, 0x6b, 0x4e, 0x3a, 0x97, 0x9d,
- 0xc2, 0x20, 0x30, 0xaf, 0xcd, 0x0c, 0xa7, 0x4a, 0xc6, 0x43, 0x00, 0x0a, 0xed, 0x5d, 0x2f, 0x1d,
- 0xce, 0x01, 0xd3, 0x9e, 0x03, 0x14, 0x75, 0x0a, 0x33, 0xa6, 0xac, 0x93, 0x03, 0xbf, 0xe9, 0x4c,
- 0xff, 0x72, 0xc6, 0x73, 0x70, 0x75, 0x4e, 0x71, 0x37, 0x4b, 0xd4, 0xd9, 0x87, 0xcc, 0x5b, 0x0b,
- 0x1c, 0x4a, 0xef, 0xea, 0x3e, 0x3a, 0x19, 0x5a, 0xfa, 0xe9, 0xd0, 0xd2, 0xbf, 0x0d, 0x2d, 0xfd,
- 0xcd, 0xc8, 0xd2, 0x4e, 0x47, 0x96, 0xf6, 0x79, 0x64, 0x69, 0x4f, 0x6f, 0x17, 0x1a, 0x5a, 0x20,
- 0xc6, 0x60, 0x3b, 0xa1, 0x04, 0x1d, 0xb9, 0xd9, 0x63, 0x78, 0x98, 0x2f, 0x27, 0xed, 0xed, 0x2f,
- 0x4f, 0xde, 0xa9, 0x3b, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x87, 0x74, 0x76, 0x30, 0x07,
- 0x00, 0x00,
+ // 926 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x97, 0x4d, 0x6f, 0xe3, 0x44,
+ 0x18, 0xc7, 0xe3, 0xbe, 0xd1, 0x4e, 0xbb, 0x4b, 0xeb, 0x36, 0xdb, 0xbc, 0x08, 0x67, 0x37, 0x95,
+ 0x96, 0x15, 0xa8, 0x36, 0x2d, 0x12, 0x87, 0x9e, 0xd8, 0x34, 0x20, 0x01, 0x1b, 0x09, 0x5c, 0x21,
+ 0x04, 0x42, 0x8a, 0x26, 0xf6, 0xe0, 0x98, 0xb5, 0x3d, 0xd1, 0xcc, 0x24, 0xbb, 0xb9, 0xc2, 0x05,
+ 0x0e, 0x48, 0x1c, 0xb9, 0xb1, 0x7c, 0x03, 0x90, 0xf8, 0x10, 0x7b, 0x5c, 0x71, 0x42, 0x1c, 0xb2,
+ 0xa8, 0x3d, 0xc0, 0x99, 0x03, 0x67, 0xe4, 0x99, 0xf1, 0xd8, 0x4e, 0x62, 0x1a, 0x56, 0x88, 0x17,
+ 0x69, 0x4f, 0xb1, 0xe7, 0x99, 0xf9, 0xf9, 0x99, 0xff, 0xf3, 0x9f, 0x97, 0x80, 0x1d, 0x18, 0x04,
+ 0x3e, 0x8c, 0x1c, 0x64, 0xb1, 0xfb, 0xe6, 0x80, 0x60, 0x86, 0xf5, 0xf5, 0xa4, 0xa9, 0xb6, 0xe7,
+ 0x61, 0x0f, 0xf3, 0x46, 0x2b, 0x7e, 0x12, 0xf1, 0x5a, 0xd5, 0xc1, 0x34, 0xc4, 0xb4, 0x2b, 0x02,
+ 0xe2, 0x45, 0x86, 0xf6, 0xc5, 0x9b, 0x15, 0x52, 0xcf, 0x1a, 0x1d, 0xc5, 0x3f, 0x32, 0x60, 0xc8,
+ 0x40, 0x0f, 0x52, 0x64, 0x8d, 0x8e, 0x7a, 0x88, 0xc1, 0x23, 0xcb, 0xc1, 0x7e, 0x24, 0xe3, 0x65,
+ 0x95, 0xc6, 0x00, 0x12, 0x18, 0x2a, 0x9e, 0x6a, 0x4e, 0x1e, 0x12, 0x9e, 0x87, 0xb1, 0x17, 0x20,
+ 0x8b, 0xbf, 0xf5, 0x86, 0x1f, 0x59, 0xee, 0x90, 0x40, 0xe6, 0x63, 0xc9, 0x6b, 0x7e, 0xbd, 0x04,
+ 0x36, 0x3b, 0xd4, 0x6b, 0xa3, 0x00, 0x79, 0x90, 0x21, 0xfd, 0x35, 0xb0, 0xe3, 0x8a, 0x67, 0x4c,
+ 0xba, 0xd0, 0x75, 0x09, 0xa2, 0xb4, 0xa2, 0x5d, 0xd7, 0x6e, 0x6d, 0xb4, 0x2a, 0x3f, 0x7c, 0x7f,
+ 0xb8, 0x27, 0x67, 0x71, 0x5b, 0x44, 0xce, 0x18, 0xf1, 0x23, 0xcf, 0xde, 0x56, 0x43, 0x64, 0x7b,
+ 0x8c, 0x19, 0xc1, 0xc0, 0x77, 0x73, 0x98, 0xa5, 0xcb, 0x30, 0x6a, 0x48, 0x82, 0xe9, 0x81, 0x35,
+ 0x18, 0xe2, 0x61, 0xc4, 0x2a, 0xcb, 0xd7, 0xb5, 0x5b, 0x9b, 0xc7, 0x55, 0x53, 0x0e, 0x8c, 0xe5,
+ 0x31, 0xa5, 0x3c, 0xe6, 0x29, 0xf6, 0xa3, 0x96, 0xf5, 0x70, 0xd2, 0x28, 0xfd, 0x34, 0x69, 0x3c,
+ 0xef, 0xf9, 0xac, 0x3f, 0xec, 0x99, 0x0e, 0x0e, 0xa5, 0xe4, 0xf2, 0xe7, 0x90, 0xba, 0x77, 0x2d,
+ 0x36, 0x1e, 0x20, 0xca, 0x07, 0xd8, 0x92, 0x7c, 0x62, 0x7c, 0xf6, 0xa0, 0x51, 0xfa, 0xf5, 0x41,
+ 0xa3, 0xf4, 0xc9, 0x2f, 0xdf, 0xbe, 0x30, 0x3b, 0xf9, 0x66, 0x19, 0xec, 0x66, 0x04, 0xb2, 0x11,
+ 0x1d, 0xe0, 0x88, 0xa2, 0xe6, 0x37, 0x4b, 0xe0, 0x4a, 0x87, 0x7a, 0xef, 0x46, 0xee, 0x53, 0xe9,
+ 0x8a, 0xa4, 0xdb, 0x07, 0xe5, 0x9c, 0x44, 0x4a, 0xbc, 0xdf, 0x85, 0x78, 0x36, 0xfa, 0xbb, 0xc5,
+ 0xbb, 0x03, 0xca, 0xa9, 0x78, 0x94, 0x38, 0x0b, 0x0b, 0xb8, 0xab, 0x86, 0x9d, 0x11, 0x67, 0x2e,
+ 0xcd, 0xa5, 0x4c, 0xd1, 0x96, 0x17, 0xa6, 0xb5, 0x29, 0x9b, 0xad, 0xc8, 0xca, 0xbf, 0x5c, 0x91,
+ 0x54, 0x77, 0x55, 0x91, 0xc7, 0x1a, 0xa8, 0x76, 0xa8, 0x77, 0x1a, 0x40, 0x3f, 0x94, 0x5e, 0xf7,
+ 0x71, 0x64, 0xa3, 0x7b, 0x90, 0xb8, 0xf4, 0x3f, 0x66, 0xed, 0x3d, 0xb0, 0xea, 0xa2, 0x08, 0x87,
+ 0xa2, 0x0c, 0xb6, 0x78, 0xb9, 0x74, 0xea, 0x07, 0xe0, 0x46, 0xe1, 0x04, 0x95, 0x0c, 0x9f, 0x6b,
+ 0xe0, 0xd9, 0xd8, 0xb2, 0x03, 0x17, 0x32, 0xf4, 0x36, 0xdf, 0x61, 0xf5, 0x57, 0xc0, 0x06, 0x1c,
+ 0xb2, 0x3e, 0x26, 0x3e, 0x1b, 0x5f, 0x3a, 0xe9, 0xb4, 0xab, 0x6e, 0x82, 0x35, 0xb1, 0x47, 0xf3,
+ 0x29, 0x6e, 0x1e, 0x6f, 0x9b, 0x6a, 0x6f, 0x16, 0xe4, 0xd6, 0x4a, 0x5c, 0x66, 0x5b, 0xf6, 0x3a,
+ 0xb9, 0x1a, 0x27, 0x9e, 0x8e, 0x6f, 0x56, 0xc1, 0xfe, 0x54, 0x2a, 0x2a, 0xcd, 0xef, 0x56, 0xc0,
+ 0x4e, 0x3c, 0x19, 0x82, 0x20, 0x43, 0xb7, 0x25, 0xf5, 0x89, 0x13, 0xbd, 0x99, 0xe8, 0x29, 0x4a,
+ 0xb1, 0xfd, 0xdb, 0xa4, 0xb1, 0x35, 0x86, 0x61, 0x70, 0xd2, 0xe4, 0xcd, 0x4d, 0xa9, 0xb0, 0x7e,
+ 0x06, 0xae, 0x10, 0xae, 0x57, 0xf7, 0x1e, 0xf2, 0xbd, 0x3e, 0x93, 0xcb, 0xc0, 0x94, 0x66, 0xbd,
+ 0xb9, 0x80, 0x59, 0xdb, 0xc8, 0xb1, 0xb7, 0x04, 0xe4, 0x3d, 0xce, 0xd0, 0xdf, 0x02, 0x1b, 0x0c,
+ 0xde, 0x45, 0x5d, 0x02, 0x19, 0xe2, 0x0b, 0xe3, 0xaf, 0x03, 0xd7, 0x63, 0x80, 0x1d, 0xef, 0x22,
+ 0x1f, 0x02, 0x5d, 0x66, 0xe8, 0xf4, 0x61, 0xe4, 0x49, 0xea, 0xea, 0x13, 0x51, 0xb7, 0x05, 0xe9,
+ 0x94, 0x83, 0x38, 0xfd, 0x7d, 0x70, 0x2d, 0x4f, 0xf7, 0x23, 0x86, 0xc8, 0x08, 0x06, 0x95, 0x35,
+ 0xb9, 0xa0, 0xc5, 0x61, 0x6b, 0x26, 0x87, 0xad, 0xd9, 0x96, 0x87, 0x6d, 0x6b, 0x3d, 0xfe, 0xf8,
+ 0x57, 0x8f, 0x1b, 0x9a, 0xbd, 0x97, 0xc5, 0xbe, 0x21, 0x01, 0xfa, 0x3b, 0x60, 0x37, 0x27, 0x6d,
+ 0x97, 0xc4, 0xe1, 0xca, 0x33, 0x9c, 0x5b, 0x4f, 0x8d, 0x63, 0x67, 0xa4, 0xb3, 0xe3, 0x2e, 0xd2,
+ 0x43, 0x3b, 0x64, 0x3a, 0x30, 0x63, 0xa7, 0xba, 0x58, 0xe0, 0x39, 0xcb, 0x28, 0x43, 0x4d, 0x96,
+ 0xb9, 0xa1, 0x84, 0xd9, 0x9e, 0x1a, 0xea, 0x7f, 0x6f, 0xa8, 0x82, 0xea, 0xe7, 0xeb, 0xab, 0xaa,
+ 0xff, 0xa9, 0xc6, 0xab, 0x1f, 0x6f, 0x8b, 0xff, 0x5c, 0xf5, 0x0b, 0x52, 0xcc, 0x27, 0x91, 0xa4,
+ 0x78, 0xfc, 0xc5, 0x2a, 0x58, 0xee, 0x50, 0x4f, 0x7f, 0x15, 0xac, 0xab, 0xbb, 0x6a, 0x39, 0x5d,
+ 0x17, 0x99, 0x1b, 0x5a, 0xed, 0xb9, 0xb9, 0xcd, 0x09, 0x49, 0x7f, 0x1d, 0x80, 0xcc, 0xbd, 0x63,
+ 0x3f, 0xd7, 0x39, 0x0d, 0xd4, 0x1a, 0x05, 0x81, 0x2c, 0x27, 0x73, 0xf9, 0xcb, 0x73, 0xd2, 0xc0,
+ 0x14, 0x67, 0xf6, 0x2e, 0xa4, 0x7f, 0x0c, 0xae, 0x15, 0x9c, 0xba, 0x07, 0xb9, 0xa1, 0xf3, 0x3b,
+ 0xd5, 0x5e, 0x5c, 0xa0, 0x93, 0xfa, 0xd6, 0x1d, 0xb0, 0x95, 0x3b, 0xda, 0xaa, 0xf9, 0xe4, 0x32,
+ 0xa1, 0xda, 0x8d, 0xc2, 0x90, 0xa2, 0xd9, 0xe0, 0xea, 0xd4, 0x09, 0x54, 0xcf, 0x27, 0x93, 0x0b,
+ 0xd6, 0x0e, 0xfe, 0x24, 0x98, 0x65, 0x4e, 0x6d, 0x42, 0xf5, 0x39, 0x89, 0x14, 0x30, 0xe7, 0xdb,
+ 0x3b, 0x66, 0x4e, 0x59, 0xbb, 0x3e, 0x63, 0x91, 0x42, 0xe6, 0x7c, 0x3f, 0xb6, 0xde, 0x7c, 0x78,
+ 0x6e, 0x68, 0x8f, 0xce, 0x0d, 0xed, 0xe7, 0x73, 0x43, 0xfb, 0xf2, 0xc2, 0x28, 0x3d, 0xba, 0x30,
+ 0x4a, 0x3f, 0x5e, 0x18, 0xa5, 0x0f, 0x5e, 0xca, 0x6c, 0x07, 0x0c, 0x11, 0x02, 0x0f, 0x43, 0x1c,
+ 0xa1, 0xb1, 0xfa, 0x63, 0x66, 0xdd, 0x4f, 0x1f, 0xf9, 0xe6, 0xd0, 0x5b, 0xe3, 0xcb, 0xfb, 0xe5,
+ 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x0e, 0xc7, 0x55, 0x6c, 0x63, 0x0e, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -401,6 +829,10 @@ type MsgClient interface {
Redelegate(ctx context.Context, in *MsgRedelegate, opts ...grpc.CallOption) (*MsgRedelegateResponse, error)
Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
ClaimDelegationRewards(ctx context.Context, in *MsgClaimDelegationRewards, opts ...grpc.CallOption) (*MsgClaimDelegationRewardsResponse, error)
+ UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
+ CreateAlliance(ctx context.Context, in *MsgCreateAlliance, opts ...grpc.CallOption) (*MsgCreateAllianceResponse, error)
+ UpdateAlliance(ctx context.Context, in *MsgUpdateAlliance, opts ...grpc.CallOption) (*MsgUpdateAllianceResponse, error)
+ DeleteAlliance(ctx context.Context, in *MsgDeleteAlliance, opts ...grpc.CallOption) (*MsgDeleteAllianceResponse, error)
}
type msgClient struct {
@@ -447,12 +879,52 @@ func (c *msgClient) ClaimDelegationRewards(ctx context.Context, in *MsgClaimDele
return out, nil
}
+func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
+ out := new(MsgUpdateParamsResponse)
+ err := c.cc.Invoke(ctx, "/alliance.Msg/UpdateParams", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) CreateAlliance(ctx context.Context, in *MsgCreateAlliance, opts ...grpc.CallOption) (*MsgCreateAllianceResponse, error) {
+ out := new(MsgCreateAllianceResponse)
+ err := c.cc.Invoke(ctx, "/alliance.Msg/CreateAlliance", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) UpdateAlliance(ctx context.Context, in *MsgUpdateAlliance, opts ...grpc.CallOption) (*MsgUpdateAllianceResponse, error) {
+ out := new(MsgUpdateAllianceResponse)
+ err := c.cc.Invoke(ctx, "/alliance.Msg/UpdateAlliance", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) DeleteAlliance(ctx context.Context, in *MsgDeleteAlliance, opts ...grpc.CallOption) (*MsgDeleteAllianceResponse, error) {
+ out := new(MsgDeleteAllianceResponse)
+ err := c.cc.Invoke(ctx, "/alliance.Msg/DeleteAlliance", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
// MsgServer is the server API for Msg service.
type MsgServer interface {
Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error)
Redelegate(context.Context, *MsgRedelegate) (*MsgRedelegateResponse, error)
Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error)
ClaimDelegationRewards(context.Context, *MsgClaimDelegationRewards) (*MsgClaimDelegationRewardsResponse, error)
+ UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
+ CreateAlliance(context.Context, *MsgCreateAlliance) (*MsgCreateAllianceResponse, error)
+ UpdateAlliance(context.Context, *MsgUpdateAlliance) (*MsgUpdateAllianceResponse, error)
+ DeleteAlliance(context.Context, *MsgDeleteAlliance) (*MsgDeleteAllianceResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
@@ -471,6 +943,18 @@ func (*UnimplementedMsgServer) Undelegate(ctx context.Context, req *MsgUndelegat
func (*UnimplementedMsgServer) ClaimDelegationRewards(ctx context.Context, req *MsgClaimDelegationRewards) (*MsgClaimDelegationRewardsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ClaimDelegationRewards not implemented")
}
+func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
+}
+func (*UnimplementedMsgServer) CreateAlliance(ctx context.Context, req *MsgCreateAlliance) (*MsgCreateAllianceResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateAlliance not implemented")
+}
+func (*UnimplementedMsgServer) UpdateAlliance(ctx context.Context, req *MsgUpdateAlliance) (*MsgUpdateAllianceResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateAlliance not implemented")
+}
+func (*UnimplementedMsgServer) DeleteAlliance(ctx context.Context, req *MsgDeleteAlliance) (*MsgDeleteAllianceResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteAlliance not implemented")
+}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
@@ -548,33 +1032,121 @@ func _Msg_ClaimDelegationRewards_Handler(srv interface{}, ctx context.Context, d
return interceptor(ctx, in, info, handler)
}
-var _Msg_serviceDesc = grpc.ServiceDesc{
- ServiceName: "alliance.Msg",
- HandlerType: (*MsgServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Delegate",
- Handler: _Msg_Delegate_Handler,
- },
- {
- MethodName: "Redelegate",
- Handler: _Msg_Redelegate_Handler,
- },
- {
- MethodName: "Undelegate",
- Handler: _Msg_Undelegate_Handler,
- },
- {
- MethodName: "ClaimDelegationRewards",
- Handler: _Msg_ClaimDelegationRewards_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "alliance/tx.proto",
-}
-
-func (m *MsgDelegate) Marshal() (dAtA []byte, err error) {
- size := m.Size()
+func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgUpdateParams)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).UpdateParams(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/alliance.Msg/UpdateParams",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_CreateAlliance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgCreateAlliance)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).CreateAlliance(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/alliance.Msg/CreateAlliance",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).CreateAlliance(ctx, req.(*MsgCreateAlliance))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_UpdateAlliance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgUpdateAlliance)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).UpdateAlliance(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/alliance.Msg/UpdateAlliance",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).UpdateAlliance(ctx, req.(*MsgUpdateAlliance))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_DeleteAlliance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgDeleteAlliance)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).DeleteAlliance(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/alliance.Msg/DeleteAlliance",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).DeleteAlliance(ctx, req.(*MsgDeleteAlliance))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+var _Msg_serviceDesc = grpc.ServiceDesc{
+ ServiceName: "alliance.Msg",
+ HandlerType: (*MsgServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "Delegate",
+ Handler: _Msg_Delegate_Handler,
+ },
+ {
+ MethodName: "Redelegate",
+ Handler: _Msg_Redelegate_Handler,
+ },
+ {
+ MethodName: "Undelegate",
+ Handler: _Msg_Undelegate_Handler,
+ },
+ {
+ MethodName: "ClaimDelegationRewards",
+ Handler: _Msg_ClaimDelegationRewards_Handler,
+ },
+ {
+ MethodName: "UpdateParams",
+ Handler: _Msg_UpdateParams_Handler,
+ },
+ {
+ MethodName: "CreateAlliance",
+ Handler: _Msg_CreateAlliance_Handler,
+ },
+ {
+ MethodName: "UpdateAlliance",
+ Handler: _Msg_UpdateAlliance_Handler,
+ },
+ {
+ MethodName: "DeleteAlliance",
+ Handler: _Msg_DeleteAlliance_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "alliance/tx.proto",
+}
+
+func (m *MsgDelegate) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
@@ -857,142 +1429,1410 @@ func (m *MsgClaimDelegationRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (i
return len(dAtA) - i, nil
}
-func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
- offset -= sovTx(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
+func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
}
- dAtA[offset] = uint8(v)
- return base
+ return dAtA[:n], nil
}
-func (m *MsgDelegate) Size() (n int) {
- if m == nil {
- return 0
- }
+
+func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- l = len(m.DelegatorAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
+ {
+ size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintTx(dAtA, i, uint64(size))
}
- l = len(m.ValidatorAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
+ i--
+ dAtA[i] = 0x12
+ if len(m.Authority) > 0 {
+ i -= len(m.Authority)
+ copy(dAtA[i:], m.Authority)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
+ i--
+ dAtA[i] = 0xa
}
- l = m.Amount.Size()
- n += 1 + l + sovTx(uint64(l))
- return n
+ return len(dAtA) - i, nil
}
-func (m *MsgDelegateResponse) Size() (n int) {
- if m == nil {
- return 0
+func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
}
- var l int
- _ = l
- return n
+ return dAtA[:n], nil
}
-func (m *MsgUndelegate) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.DelegatorAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
- }
- l = len(m.ValidatorAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
- }
- l = m.Amount.Size()
- n += 1 + l + sovTx(uint64(l))
- return n
+func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *MsgUndelegateResponse) Size() (n int) {
- if m == nil {
- return 0
- }
+func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- return n
+ return len(dAtA) - i, nil
}
-func (m *MsgRedelegate) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.DelegatorAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
- }
- l = len(m.ValidatorSrcAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
- }
- l = len(m.ValidatorDstAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
+func (m *MsgCreateAlliance) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
}
- l = m.Amount.Size()
- n += 1 + l + sovTx(uint64(l))
- return n
+ return dAtA[:n], nil
}
-func (m *MsgRedelegateResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- return n
+func (m *MsgCreateAlliance) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *MsgClaimDelegationRewards) Size() (n int) {
- if m == nil {
- return 0
- }
+func (m *MsgCreateAlliance) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- l = len(m.DelegatorAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
+ {
+ size, err := m.RewardWeightRange.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintTx(dAtA, i, uint64(size))
}
- l = len(m.ValidatorAddress)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
+ i--
+ dAtA[i] = 0x3a
+ n6, err6 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.RewardChangeInterval, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.RewardChangeInterval):])
+ if err6 != nil {
+ return 0, err6
}
- l = len(m.Denom)
- if l > 0 {
- n += 1 + l + sovTx(uint64(l))
+ i -= n6
+ i = encodeVarintTx(dAtA, i, uint64(n6))
+ i--
+ dAtA[i] = 0x32
+ {
+ size := m.RewardChangeRate.Size()
+ i -= size
+ if _, err := m.RewardChangeRate.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
+ i = encodeVarintTx(dAtA, i, uint64(size))
}
- return n
-}
-
-func (m *MsgClaimDelegationRewardsResponse) Size() (n int) {
- if m == nil {
- return 0
+ i--
+ dAtA[i] = 0x2a
+ {
+ size := m.TakeRate.Size()
+ i -= size
+ if _, err := m.TakeRate.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
+ i = encodeVarintTx(dAtA, i, uint64(size))
}
- var l int
- _ = l
- return n
-}
-
-func sovTx(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
-}
-func sozTx(x uint64) (n int) {
- return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+ i--
+ dAtA[i] = 0x22
+ {
+ size := m.RewardWeight.Size()
+ i -= size
+ if _, err := m.RewardWeight.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
+ i = encodeVarintTx(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ if len(m.Denom) > 0 {
+ i -= len(m.Denom)
+ copy(dAtA[i:], m.Denom)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Denom)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.Authority) > 0 {
+ i -= len(m.Authority)
+ copy(dAtA[i:], m.Authority)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *MsgCreateAllianceResponse) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *MsgCreateAllianceResponse) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MsgCreateAllianceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ return len(dAtA) - i, nil
+}
+
+func (m *MsgUpdateAlliance) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *MsgUpdateAlliance) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MsgUpdateAlliance) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ n7, err7 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.RewardChangeInterval, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.RewardChangeInterval):])
+ if err7 != nil {
+ return 0, err7
+ }
+ i -= n7
+ i = encodeVarintTx(dAtA, i, uint64(n7))
+ i--
+ dAtA[i] = 0x32
+ {
+ size := m.RewardChangeRate.Size()
+ i -= size
+ if _, err := m.RewardChangeRate.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
+ i = encodeVarintTx(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ {
+ size := m.TakeRate.Size()
+ i -= size
+ if _, err := m.TakeRate.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
+ i = encodeVarintTx(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ {
+ size := m.RewardWeight.Size()
+ i -= size
+ if _, err := m.RewardWeight.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
+ i = encodeVarintTx(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ if len(m.Denom) > 0 {
+ i -= len(m.Denom)
+ copy(dAtA[i:], m.Denom)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Denom)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.Authority) > 0 {
+ i -= len(m.Authority)
+ copy(dAtA[i:], m.Authority)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *MsgUpdateAllianceResponse) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *MsgUpdateAllianceResponse) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MsgUpdateAllianceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ return len(dAtA) - i, nil
+}
+
+func (m *MsgDeleteAlliance) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *MsgDeleteAlliance) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MsgDeleteAlliance) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Denom) > 0 {
+ i -= len(m.Denom)
+ copy(dAtA[i:], m.Denom)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Denom)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.Authority) > 0 {
+ i -= len(m.Authority)
+ copy(dAtA[i:], m.Authority)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *MsgDeleteAllianceResponse) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *MsgDeleteAllianceResponse) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MsgDeleteAllianceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ return len(dAtA) - i, nil
+}
+
+func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
+ offset -= sovTx(v)
+ base := offset
+ for v >= 1<<7 {
+ dAtA[offset] = uint8(v&0x7f | 0x80)
+ v >>= 7
+ offset++
+ }
+ dAtA[offset] = uint8(v)
+ return base
+}
+func (m *MsgDelegate) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.DelegatorAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.ValidatorAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = m.Amount.Size()
+ n += 1 + l + sovTx(uint64(l))
+ return n
+}
+
+func (m *MsgDelegateResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func (m *MsgUndelegate) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.DelegatorAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.ValidatorAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = m.Amount.Size()
+ n += 1 + l + sovTx(uint64(l))
+ return n
+}
+
+func (m *MsgUndelegateResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func (m *MsgRedelegate) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.DelegatorAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.ValidatorSrcAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.ValidatorDstAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = m.Amount.Size()
+ n += 1 + l + sovTx(uint64(l))
+ return n
+}
+
+func (m *MsgRedelegateResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func (m *MsgClaimDelegationRewards) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.DelegatorAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.ValidatorAddress)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.Denom)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ return n
+}
+
+func (m *MsgClaimDelegationRewardsResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func (m *MsgUpdateParams) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Authority)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = m.Params.Size()
+ n += 1 + l + sovTx(uint64(l))
+ return n
+}
+
+func (m *MsgUpdateParamsResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func (m *MsgCreateAlliance) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Authority)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.Denom)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = m.RewardWeight.Size()
+ n += 1 + l + sovTx(uint64(l))
+ l = m.TakeRate.Size()
+ n += 1 + l + sovTx(uint64(l))
+ l = m.RewardChangeRate.Size()
+ n += 1 + l + sovTx(uint64(l))
+ l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.RewardChangeInterval)
+ n += 1 + l + sovTx(uint64(l))
+ l = m.RewardWeightRange.Size()
+ n += 1 + l + sovTx(uint64(l))
+ return n
+}
+
+func (m *MsgCreateAllianceResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func (m *MsgUpdateAlliance) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Authority)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.Denom)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = m.RewardWeight.Size()
+ n += 1 + l + sovTx(uint64(l))
+ l = m.TakeRate.Size()
+ n += 1 + l + sovTx(uint64(l))
+ l = m.RewardChangeRate.Size()
+ n += 1 + l + sovTx(uint64(l))
+ l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.RewardChangeInterval)
+ n += 1 + l + sovTx(uint64(l))
+ return n
+}
+
+func (m *MsgUpdateAllianceResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func (m *MsgDeleteAlliance) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Authority)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ l = len(m.Denom)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ return n
+}
+
+func (m *MsgDeleteAllianceResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func sovTx(x uint64) (n int) {
+ return (math_bits.Len64(x|1) + 6) / 7
+}
+func sozTx(x uint64) (n int) {
+ return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (m *MsgDelegate) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgDelegate: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgDelegate: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgDelegateResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgDelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgUndelegate) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgUndelegate: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgUndelegate: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgUndelegateResponse) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgUndelegateResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgUndelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgRedelegate) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgRedelegate: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgRedelegate: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidatorSrcAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ValidatorSrcAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidatorDstAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ValidatorDstAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgRedelegateResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgRedelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgClaimDelegationRewards) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgClaimDelegationRewards: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgClaimDelegationRewards: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Denom = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgClaimDelegationRewardsResponse) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgClaimDelegationRewardsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgClaimDelegationRewardsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
}
-func (m *MsgDelegate) Unmarshal(dAtA []byte) error {
+func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1015,15 +2855,278 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgDelegate: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgDelegate: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := skipTx(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthTx
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgCreateAlliance) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MsgCreateAlliance: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgCreateAlliance: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Denom = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RewardWeight", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.RewardWeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TakeRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1051,11 +3154,13 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
+ if err := m.TakeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
iNdEx = postIndex
- case 2:
+ case 5:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field RewardChangeRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1083,11 +3188,13 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
+ if err := m.RewardChangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
iNdEx = postIndex
- case 3:
+ case 6:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field RewardChangeInterval", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -1114,7 +3221,40 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.RewardChangeInterval, dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RewardWeightRange", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthTx
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthTx
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.RewardWeightRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -1139,7 +3279,7 @@ func (m *MsgDelegate) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error {
+func (m *MsgCreateAllianceResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1162,10 +3302,10 @@ func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgDelegateResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgCreateAllianceResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgDelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgCreateAllianceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
@@ -1189,7 +3329,7 @@ func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgUndelegate) Unmarshal(dAtA []byte) error {
+func (m *MsgUpdateAlliance) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1212,15 +3352,15 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgUndelegate: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgUpdateAlliance: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgUndelegate: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgUpdateAlliance: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1248,11 +3388,11 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
+ m.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1280,144 +3420,11 @@ func (m *MsgUndelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
+ m.Denom = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowTx
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthTx
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthTx
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipTx(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthTx
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *MsgUndelegateResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowTx
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: MsgUndelegateResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgUndelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipTx(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthTx
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *MsgRedelegate) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowTx
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: MsgRedelegate: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgRedelegate: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field RewardWeight", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1445,11 +3452,13 @@ func (m *MsgRedelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
+ if err := m.RewardWeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
iNdEx = postIndex
- case 2:
+ case 4:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ValidatorSrcAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field TakeRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1477,11 +3486,13 @@ func (m *MsgRedelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.ValidatorSrcAddress = string(dAtA[iNdEx:postIndex])
+ if err := m.TakeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
iNdEx = postIndex
- case 3:
+ case 5:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ValidatorDstAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field RewardChangeRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1509,11 +3520,13 @@ func (m *MsgRedelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.ValidatorDstAddress = string(dAtA[iNdEx:postIndex])
+ if err := m.RewardChangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
iNdEx = postIndex
- case 4:
+ case 6:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field RewardChangeInterval", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -1540,7 +3553,7 @@ func (m *MsgRedelegate) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.RewardChangeInterval, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -1565,7 +3578,7 @@ func (m *MsgRedelegate) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error {
+func (m *MsgUpdateAllianceResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1588,10 +3601,10 @@ func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgRedelegateResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgUpdateAllianceResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgRedelegateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgUpdateAllianceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
@@ -1615,7 +3628,7 @@ func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgClaimDelegationRewards) Unmarshal(dAtA []byte) error {
+func (m *MsgDeleteAlliance) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1638,15 +3651,15 @@ func (m *MsgClaimDelegationRewards) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgClaimDelegationRewards: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgDeleteAlliance: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgClaimDelegationRewards: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgDeleteAlliance: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1674,41 +3687,9 @@ func (m *MsgClaimDelegationRewards) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
+ m.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowTx
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthTx
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthTx
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType)
}
@@ -1761,7 +3742,7 @@ func (m *MsgClaimDelegationRewards) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgClaimDelegationRewardsResponse) Unmarshal(dAtA []byte) error {
+func (m *MsgDeleteAllianceResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1784,10 +3765,10 @@ func (m *MsgClaimDelegationRewardsResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgClaimDelegationRewardsResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgDeleteAllianceResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgClaimDelegationRewardsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgDeleteAllianceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default: