Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
a6f0b642d8
commit
68ec945293
@ -336,11 +336,11 @@ The signature of the extension interface `HasRegisterInterfaces` has been change
|
||||
+func (AppModule) RegisterInterfaces(registry registry.InterfaceRegistrar) {
|
||||
```
|
||||
|
||||
The signature of the extension interface `HasAminoCodec` has been changed to accept a `cosmossdk.io/core/legacy.Amino` instead of a `codec.LegacyAmino`. Modules should update their `HasAminoCodec` implementation to accept a `cosmossdk.io/core/legacy.Amino` interface.
|
||||
The signature of the extension interface `HasAminoCodec` has been changed to accept a `cosmossdk.io/core/registry.AminoRegistrar` instead of a `codec.LegacyAmino`. Modules should update their `HasAminoCodec` implementation to accept a `cosmossdk.io/core/registry.AminoRegistrar` interface.
|
||||
|
||||
```diff
|
||||
-func (AppModule) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
+func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
+func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
```
|
||||
|
||||
##### Simulation
|
||||
|
||||
@ -178,7 +178,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ./../../x/bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
cmttypes "github.com/cometbft/cometbft/types"
|
||||
"github.com/tendermint/go-amino"
|
||||
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
||||
)
|
||||
@ -25,7 +25,7 @@ func (cdc *LegacyAmino) Seal() {
|
||||
cdc.Amino.Seal()
|
||||
}
|
||||
|
||||
var _ legacy.Amino = &LegacyAmino{}
|
||||
var _ registry.AminoRegistrar = &LegacyAmino{}
|
||||
|
||||
func NewLegacyAmino() *LegacyAmino {
|
||||
return &LegacyAmino{amino.NewCodec()}
|
||||
@ -33,9 +33,9 @@ func NewLegacyAmino() *LegacyAmino {
|
||||
|
||||
// RegisterEvidences registers CometBFT evidence types with the provided Amino
|
||||
// codec.
|
||||
func RegisterEvidences(cdc legacy.Amino) {
|
||||
cdc.RegisterInterface((*cmttypes.Evidence)(nil), nil)
|
||||
cdc.RegisterConcrete(&cmttypes.DuplicateVoteEvidence{}, "tendermint/DuplicateVoteEvidence")
|
||||
func RegisterEvidences(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterInterface((*cmttypes.Evidence)(nil), nil)
|
||||
registrar.RegisterConcrete(&cmttypes.DuplicateVoteEvidence{}, "tendermint/DuplicateVoteEvidence")
|
||||
}
|
||||
|
||||
// MarshalJSONIndent provides a utility for indented JSON encoding of an object
|
||||
@ -179,7 +179,7 @@ func (*LegacyAmino) UnpackAny(*types.Any, interface{}) error {
|
||||
return errors.New("AminoCodec can't handle unpack protobuf Any's")
|
||||
}
|
||||
|
||||
func (cdc *LegacyAmino) RegisterInterface(ptr interface{}, iopts *legacy.InterfaceOptions) {
|
||||
func (cdc *LegacyAmino) RegisterInterface(ptr interface{}, iopts *registry.AminoInterfaceOptions) {
|
||||
if iopts == nil {
|
||||
cdc.Amino.RegisterInterface(ptr, nil)
|
||||
} else {
|
||||
|
||||
@ -8,7 +8,6 @@ import (
|
||||
authmodulev1 "cosmossdk.io/api/cosmos/auth/module/v1"
|
||||
stakingmodulev1 "cosmossdk.io/api/cosmos/staking/module/v1"
|
||||
"cosmossdk.io/core/address"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/depinject"
|
||||
"cosmossdk.io/x/tx/signing"
|
||||
@ -45,7 +44,7 @@ func ProvideInterfaceRegistry(
|
||||
return interfaceRegistry, interfaceRegistry, nil
|
||||
}
|
||||
|
||||
func ProvideLegacyAmino() legacy.Amino {
|
||||
func ProvideLegacyAmino() registry.AminoRegistrar {
|
||||
return NewLegacyAmino()
|
||||
}
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ package legacy
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
@ -11,9 +11,9 @@ import (
|
||||
// RegisterAminoMsg first checks that the msgName is <40 chars
|
||||
// (else this would break ledger nano signing: https://github.com/cosmos/cosmos-sdk/issues/10870),
|
||||
// then registers the concrete msg type with amino.
|
||||
func RegisterAminoMsg(cdc legacy.Amino, msg sdk.Msg, msgName string) {
|
||||
func RegisterAminoMsg(registrar registry.AminoRegistrar, msg sdk.Msg, msgName string) {
|
||||
if len(msgName) > 39 {
|
||||
panic(fmt.Errorf("msg name %s is too long to be registered with amino", msgName))
|
||||
}
|
||||
cdc.RegisterConcrete(msg, msgName)
|
||||
registrar.RegisterConcrete(msg, msgName)
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@ package codec
|
||||
import (
|
||||
"github.com/cometbft/cometbft/crypto/sr25519"
|
||||
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
|
||||
bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381"
|
||||
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
||||
@ -14,24 +14,23 @@ import (
|
||||
|
||||
// RegisterCrypto registers all crypto dependency types with the provided Amino
|
||||
// codec.
|
||||
func RegisterCrypto(cdc legacy.Amino) {
|
||||
cdc.RegisterInterface((*cryptotypes.PubKey)(nil), nil)
|
||||
cdc.RegisterConcrete(sr25519.PubKey{},
|
||||
func RegisterCrypto(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterInterface((*cryptotypes.PubKey)(nil), nil)
|
||||
registrar.RegisterConcrete(sr25519.PubKey{},
|
||||
sr25519.PubKeyName)
|
||||
cdc.RegisterConcrete(&ed25519.PubKey{},
|
||||
registrar.RegisterConcrete(&ed25519.PubKey{},
|
||||
ed25519.PubKeyName)
|
||||
cdc.RegisterConcrete(&secp256k1.PubKey{},
|
||||
registrar.RegisterConcrete(&secp256k1.PubKey{},
|
||||
secp256k1.PubKeyName)
|
||||
cdc.RegisterConcrete(&bls12_381.PubKey{}, bls12_381.PubKeyName)
|
||||
cdc.RegisterConcrete(&kmultisig.LegacyAminoPubKey{},
|
||||
registrar.RegisterConcrete(&bls12_381.PubKey{}, bls12_381.PubKeyName)
|
||||
registrar.RegisterConcrete(&kmultisig.LegacyAminoPubKey{},
|
||||
kmultisig.PubKeyAminoRoute)
|
||||
|
||||
cdc.RegisterInterface((*cryptotypes.PrivKey)(nil), nil)
|
||||
cdc.RegisterConcrete(sr25519.PrivKey{},
|
||||
registrar.RegisterInterface((*cryptotypes.PrivKey)(nil), nil)
|
||||
registrar.RegisterConcrete(sr25519.PrivKey{},
|
||||
sr25519.PrivKeyName)
|
||||
cdc.RegisterConcrete(&ed25519.PrivKey{},
|
||||
registrar.RegisterConcrete(&ed25519.PrivKey{},
|
||||
ed25519.PrivKeyName)
|
||||
cdc.RegisterConcrete(&secp256k1.PrivKey{},
|
||||
registrar.RegisterConcrete(&secp256k1.PrivKey{},
|
||||
secp256k1.PrivKeyName)
|
||||
cdc.RegisterConcrete(&bls12_381.PrivKey{}, bls12_381.PrivKeyName)
|
||||
registrar.RegisterConcrete(&bls12_381.PrivKey{}, bls12_381.PrivKeyName)
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ The usage of extension interfaces allows modules to define only the functionalit
|
||||
https://github.com/cosmos/cosmos-sdk/blob/eee5e21e1c8d0995b6d4f83b7f55ec0b58d27ba7/core/appmodule/module.go#L74-L78
|
||||
```
|
||||
|
||||
* `RegisterLegacyAminoCodec(*codec.LegacyAmino)`: Registers the `amino` codec for the module, which is used to marshal and unmarshal structs to/from `[]byte` in order to persist them in the module's `KVStore`.
|
||||
* `RegisterLegacyAminoCodec(registry.AminoRegistrar)`: Registers the `amino` codec for the module, which is used to marshal and unmarshal structs to/from `[]byte` in order to persist them in the module's `KVStore`.
|
||||
|
||||
### `HasRegisterInterfaces`
|
||||
|
||||
|
||||
2
go.mod
2
go.mod
@ -186,7 +186,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ./x/bank
|
||||
|
||||
4
go.sum
4
go.sum
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
|
||||
runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1"
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/log"
|
||||
storetypes "cosmossdk.io/store/types"
|
||||
|
||||
@ -50,7 +50,7 @@ type App struct {
|
||||
storeKeys []storetypes.StoreKey
|
||||
interfaceRegistry codectypes.InterfaceRegistry
|
||||
cdc codec.Codec
|
||||
amino legacy.Amino
|
||||
amino registry.AminoRegistrar
|
||||
baseAppOptions []BaseAppOption
|
||||
msgServiceRouter *baseapp.MsgServiceRouter
|
||||
grpcQueryRouter *baseapp.GRPCQueryRouter
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1"
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/comet"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/core/server"
|
||||
"cosmossdk.io/core/store"
|
||||
"cosmossdk.io/depinject"
|
||||
@ -112,7 +112,7 @@ func init() {
|
||||
|
||||
func ProvideApp(
|
||||
interfaceRegistry codectypes.InterfaceRegistry,
|
||||
amino legacy.Amino,
|
||||
amino registry.AminoRegistrar,
|
||||
protoCodec *codec.ProtoCodec,
|
||||
) (
|
||||
*AppBuilder,
|
||||
@ -159,7 +159,7 @@ type AppInputs struct {
|
||||
ModuleManager *module.Manager
|
||||
BaseAppOptions []BaseAppOption
|
||||
InterfaceRegistry codectypes.InterfaceRegistry
|
||||
LegacyAmino legacy.Amino
|
||||
LegacyAmino registry.AminoRegistrar
|
||||
AppOptions servertypes.AppOptions `optional:"true"` // can be nil in client wiring
|
||||
}
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../../../x/bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
clienthelpers "cosmossdk.io/client/v2/helpers"
|
||||
"cosmossdk.io/core/address"
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/depinject"
|
||||
"cosmossdk.io/log"
|
||||
"cosmossdk.io/x/accounts"
|
||||
@ -66,7 +66,7 @@ var (
|
||||
// capabilities aren't needed for testing.
|
||||
type SimApp struct {
|
||||
*runtime.App
|
||||
legacyAmino legacy.Amino
|
||||
legacyAmino registry.AminoRegistrar
|
||||
appCodec codec.Codec
|
||||
txConfig client.TxConfig
|
||||
interfaceRegistry codectypes.InterfaceRegistry
|
||||
|
||||
@ -242,7 +242,7 @@ replace (
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/client/v2 => ../client/v2
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/tools/confix => ../tools/confix
|
||||
|
||||
@ -196,8 +196,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
stakingv1 "cosmossdk.io/api/cosmos/staking/module/v1"
|
||||
"cosmossdk.io/client/v2/autocli"
|
||||
"cosmossdk.io/core/address"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/depinject"
|
||||
"cosmossdk.io/log"
|
||||
"cosmossdk.io/simapp"
|
||||
@ -100,7 +100,7 @@ func ProvideClientContext(
|
||||
appCodec codec.Codec,
|
||||
interfaceRegistry codectypes.InterfaceRegistry,
|
||||
txConfigOpts tx.ConfigOptions,
|
||||
legacyAmino legacy.Amino,
|
||||
legacyAmino registry.AminoRegistrar,
|
||||
addressCodec address.Codec,
|
||||
validatorAddressCodec address.ValidatorAddressCodec,
|
||||
consensusAddressCodec address.ConsensusAddressCodec,
|
||||
|
||||
@ -6,7 +6,7 @@ import (
|
||||
"github.com/spf13/viper"
|
||||
|
||||
clienthelpers "cosmossdk.io/client/v2/helpers"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/core/server"
|
||||
"cosmossdk.io/core/transaction"
|
||||
"cosmossdk.io/depinject"
|
||||
@ -47,7 +47,7 @@ var DefaultNodeHome string
|
||||
// capabilities aren't needed for testing.
|
||||
type SimApp[T transaction.Tx] struct {
|
||||
*runtime.App[T]
|
||||
legacyAmino legacy.Amino
|
||||
legacyAmino registry.AminoRegistrar
|
||||
appCodec codec.Codec
|
||||
txConfig client.TxConfig
|
||||
interfaceRegistry codectypes.InterfaceRegistry
|
||||
|
||||
@ -10,7 +10,7 @@ require (
|
||||
cosmossdk.io/depinject v1.0.0
|
||||
cosmossdk.io/log v1.4.1
|
||||
cosmossdk.io/math v1.3.0
|
||||
cosmossdk.io/runtime/v2 v2.0.0-20240827121911-e98b8e96174f // main
|
||||
cosmossdk.io/runtime/v2 v2.0.0-20240905114452-a57b25418a59 // main
|
||||
cosmossdk.io/server/v2 v2.0.0-20240829074658-81a225e6a29b // main
|
||||
cosmossdk.io/server/v2/cometbft v0.0.0-00010101000000-000000000000
|
||||
cosmossdk.io/store/v2 v2.0.0-20240815194237-858ec2fcb897 // main
|
||||
@ -33,7 +33,7 @@ require (
|
||||
cosmossdk.io/x/staking v0.0.0-00010101000000-000000000000
|
||||
cosmossdk.io/x/upgrade v0.0.0-20230613133644-0a778132a60f
|
||||
github.com/cometbft/cometbft v1.0.0-rc1
|
||||
github.com/cosmos/cosmos-db v1.0.2 // indirect
|
||||
github.com/cosmos/cosmos-db v1.0.3-0.20240829004618-717cba019b33 // indirect
|
||||
// this version is not used as it is always replaced by the latest Cosmos SDK version
|
||||
github.com/cosmos/cosmos-sdk v0.53.0
|
||||
github.com/spf13/cobra v1.8.1
|
||||
@ -184,7 +184,7 @@ require (
|
||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
||||
github.com/prometheus/client_golang v1.20.2 // indirect
|
||||
github.com/prometheus/client_model v0.6.1 // indirect
|
||||
github.com/prometheus/common v0.57.0 // indirect
|
||||
github.com/prometheus/common v0.58.0 // indirect
|
||||
github.com/prometheus/procfs v0.15.1 // indirect
|
||||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
||||
github.com/rivo/uniseg v0.2.0 // indirect
|
||||
@ -219,7 +219,7 @@ require (
|
||||
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
|
||||
golang.org/x/mod v0.19.0 // indirect
|
||||
golang.org/x/net v0.28.0 // indirect
|
||||
golang.org/x/oauth2 v0.21.0 // indirect
|
||||
golang.org/x/oauth2 v0.22.0 // indirect
|
||||
golang.org/x/sync v0.8.0 // indirect
|
||||
golang.org/x/sys v0.24.0 // indirect
|
||||
golang.org/x/term v0.23.0 // indirect
|
||||
@ -229,8 +229,8 @@ require (
|
||||
google.golang.org/api v0.185.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20240617180043-68d350f18fd4 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240808171019-573a1156607a // indirect
|
||||
google.golang.org/grpc v1.65.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed // indirect
|
||||
google.golang.org/grpc v1.66.0 // indirect
|
||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
gotest.tools/v3 v3.5.1 // indirect
|
||||
@ -251,7 +251,7 @@ replace (
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/client/v2 => ../../client/v2
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
cosmossdk.io/server/v2/cometbft => ../../server/v2/cometbft
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
|
||||
@ -196,8 +196,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
@ -210,8 +210,8 @@ cosmossdk.io/log v1.4.1 h1:wKdjfDRbDyZRuWa8M+9nuvpVYxrEOwbD/CA8hvhU8QM=
|
||||
cosmossdk.io/log v1.4.1/go.mod h1:k08v0Pyq+gCP6phvdI6RCGhLf/r425UT6Rk/m+o74rU=
|
||||
cosmossdk.io/math v1.3.0 h1:RC+jryuKeytIiictDslBP9i1fhkVm6ZDmZEoNP316zE=
|
||||
cosmossdk.io/math v1.3.0/go.mod h1:vnRTxewy+M7BtXBNFybkuhSH4WfedVAAnERHgVFhp3k=
|
||||
cosmossdk.io/runtime/v2 v2.0.0-20240827121911-e98b8e96174f h1:k/naA1PbdzhQ6EdiPhawCeTIeHXjLBlSAkmQeO+2ylA=
|
||||
cosmossdk.io/runtime/v2 v2.0.0-20240827121911-e98b8e96174f/go.mod h1:SoCx1xyZn+tVPAtTAuLSEYjocVtZips+O2QLGBj99/c=
|
||||
cosmossdk.io/runtime/v2 v2.0.0-20240905114452-a57b25418a59 h1:9p9X7mTme7w0dznm6Zqr5APd7qhakJZx7CqGJyAYtYE=
|
||||
cosmossdk.io/runtime/v2 v2.0.0-20240905114452-a57b25418a59/go.mod h1:yrRIRz4pLdpntieuC6DrCx+7AZGcy6zVI1kOEYzZTmo=
|
||||
cosmossdk.io/schema v0.2.0 h1:UH5CR1DqUq8yP+5Np8PbvG4YX0zAUsTN2Qk6yThmfMk=
|
||||
cosmossdk.io/schema v0.2.0/go.mod h1:RDAhxIeNB4bYqAlF4NBJwRrgtnciMcyyg0DOKnhNZQQ=
|
||||
cosmossdk.io/server/v2 v2.0.0-20240829074658-81a225e6a29b h1:FFixNVq2SbtRlYvr1fB/WikfYTRrA0o/35ImIhhZzrE=
|
||||
@ -334,8 +334,8 @@ github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1A
|
||||
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||
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-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs=
|
||||
github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA=
|
||||
github.com/cosmos/cosmos-db v1.0.3-0.20240829004618-717cba019b33 h1:NnqmEOIzUPazzBrhGenzI1AQCBtJ0Hbnb/DDoykpko0=
|
||||
github.com/cosmos/cosmos-db v1.0.3-0.20240829004618-717cba019b33/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA=
|
||||
github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA=
|
||||
github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec=
|
||||
github.com/cosmos/crypto v0.1.2 h1:Yn500sPY+9sKVdhiPUSDtt8JOpBGMB515dOmla4zfls=
|
||||
@ -762,8 +762,8 @@ github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p
|
||||
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
|
||||
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
|
||||
github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4=
|
||||
github.com/prometheus/common v0.57.0 h1:Ro/rKjwdq9mZn1K5QPctzh+MA4Lp0BuYk5ZZEVhoNcY=
|
||||
github.com/prometheus/common v0.57.0/go.mod h1:7uRPFSUTbfZWsJ7MHY56sqt7hLQu3bxXHDnNhl8E9qI=
|
||||
github.com/prometheus/common v0.58.0 h1:N+N8vY4/23r6iYfD3UQZUoJPnUYAo7v6LG5XZxjZTXo=
|
||||
github.com/prometheus/common v0.58.0/go.mod h1:GpWM7dewqmVYcd7SmRaiWVe9SSqjf0UrwnYnpEZNuT0=
|
||||
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
|
||||
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
|
||||
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
|
||||
@ -1015,8 +1015,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.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs=
|
||||
golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
|
||||
golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA=
|
||||
golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
|
||||
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=
|
||||
@ -1373,8 +1373,8 @@ google.golang.org/genproto v0.0.0-20240617180043-68d350f18fd4 h1:CUiCqkPw1nNrNQz
|
||||
google.golang.org/genproto v0.0.0-20240617180043-68d350f18fd4/go.mod h1:EvuUDCulqGgV80RvP1BHuom+smhX4qtlhnNatHuroGQ=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f h1:b1Ln/PG8orm0SsBbHZWke8dDp2lrCD4jSmfglFpTZbk=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f/go.mod h1:AHT0dDg3SoMOgZGnZk29b5xTbPHMoEC8qthmBLJCpys=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240808171019-573a1156607a h1:EKiZZXueP9/T68B8Nl0GAx9cjbQnCId0yP3qPMgaaHs=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240808171019-573a1156607a/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed h1:J6izYgfBXAI3xTKLgxzTmUltdYaLsuBxFCgDHWJ/eXg=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
||||
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
||||
@ -1410,8 +1410,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.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc=
|
||||
google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ=
|
||||
google.golang.org/grpc v1.66.0 h1:DibZuoBznOxbDQxRINckZcUvnCEvrW9pcWIE2yF9r1c=
|
||||
google.golang.org/grpc v1.66.0/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y=
|
||||
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=
|
||||
|
||||
@ -8,7 +8,7 @@ import (
|
||||
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
|
||||
"cosmossdk.io/client/v2/autocli"
|
||||
"cosmossdk.io/core/address"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/core/transaction"
|
||||
"cosmossdk.io/depinject"
|
||||
"cosmossdk.io/log"
|
||||
@ -99,7 +99,7 @@ func ProvideClientContext(
|
||||
appCodec codec.Codec,
|
||||
interfaceRegistry codectypes.InterfaceRegistry,
|
||||
txConfigOpts tx.ConfigOptions,
|
||||
legacyAmino legacy.Amino,
|
||||
legacyAmino registry.AminoRegistrar,
|
||||
addressCodec address.Codec,
|
||||
validatorAddressCodec address.ValidatorAddressCodec,
|
||||
consensusAddressCodec address.ConsensusAddressCodec,
|
||||
@ -108,7 +108,7 @@ func ProvideClientContext(
|
||||
|
||||
amino, ok := legacyAmino.(*codec.LegacyAmino)
|
||||
if !ok {
|
||||
panic("legacy.Amino must be an *codec.LegacyAmino instance for legacy ClientContext")
|
||||
panic("registry.AminoRegistrar must be an *codec.LegacyAmino instance for legacy ClientContext")
|
||||
}
|
||||
|
||||
clientCtx := client.Context{}.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package std
|
||||
|
||||
import (
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
@ -11,10 +10,10 @@ import (
|
||||
)
|
||||
|
||||
// RegisterLegacyAminoCodec registers types with the Amino codec.
|
||||
func RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
sdk.RegisterLegacyAminoCodec(cdc)
|
||||
cryptocodec.RegisterCrypto(cdc)
|
||||
codec.RegisterEvidences(cdc)
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
sdk.RegisterLegacyAminoCodec(registrar)
|
||||
cryptocodec.RegisterCrypto(registrar)
|
||||
codec.RegisterEvidences(registrar)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers Interfaces from sdk/types, vesting, crypto, tx.
|
||||
|
||||
@ -239,7 +239,7 @@ replace (
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/client/v2 => ../client/v2
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/accounts => ../x/accounts
|
||||
|
||||
@ -196,8 +196,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
WAIT_TIME ?= 45s
|
||||
|
||||
all: test
|
||||
all: test format
|
||||
|
||||
test:
|
||||
go test -mod=readonly -failfast -tags='system_test' ./... --wait-time=$(WAIT_TIME) --verbose $(if $(findstring v2,$(COSMOS_BUILD_OPTIONS)),--binary=simdv2)
|
||||
|
||||
@ -8,7 +8,7 @@ import (
|
||||
context "context"
|
||||
reflect "reflect"
|
||||
|
||||
legacy "cosmossdk.io/core/legacy"
|
||||
registry "cosmossdk.io/core/registry"
|
||||
client "github.com/cosmos/cosmos-sdk/client"
|
||||
types "github.com/cosmos/cosmos-sdk/types"
|
||||
module "github.com/cosmos/cosmos-sdk/types/module"
|
||||
@ -53,7 +53,7 @@ func (mr *MockAppModuleBasicMockRecorder) RegisterGRPCGatewayRoutes(arg0, arg1 i
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec mocks base method.
|
||||
func (m *MockAppModuleBasic) RegisterLegacyAminoCodec(arg0 legacy.Amino) {
|
||||
func (m *MockAppModuleBasic) RegisterLegacyAminoCodec(arg0 registry.AminoRegistrar) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "RegisterLegacyAminoCodec", arg0)
|
||||
}
|
||||
@ -149,7 +149,7 @@ func (m *MockHasAminoCodec) EXPECT() *MockHasAminoCodecMockRecorder {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec mocks base method.
|
||||
func (m *MockHasAminoCodec) RegisterLegacyAminoCodec(arg0 legacy.Amino) {
|
||||
func (m *MockHasAminoCodec) RegisterLegacyAminoCodec(arg0 registry.AminoRegistrar) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "RegisterLegacyAminoCodec", arg0)
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ import (
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"cosmossdk.io/core/address"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/depinject"
|
||||
"cosmossdk.io/log"
|
||||
sdkmath "cosmossdk.io/math"
|
||||
@ -168,7 +168,7 @@ func DefaultConfigWithAppConfig(appConfig depinject.Config, baseappOpts ...func(
|
||||
var (
|
||||
appBuilder *runtime.AppBuilder
|
||||
txConfig client.TxConfig
|
||||
legacyAmino legacy.Amino
|
||||
legacyAmino registry.AminoRegistrar
|
||||
cdc codec.Codec
|
||||
interfaceRegistry codectypes.InterfaceRegistry
|
||||
addressCodec address.Codec
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
"cosmossdk.io/core/transaction"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -12,9 +11,9 @@ const (
|
||||
)
|
||||
|
||||
// RegisterLegacyAminoCodec registers the sdk message type.
|
||||
func RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
cdc.RegisterInterface((*coretransaction.Msg)(nil), nil)
|
||||
cdc.RegisterInterface((*Tx)(nil), nil)
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterInterface((*transaction.Msg)(nil), nil)
|
||||
registrar.RegisterInterface((*Tx)(nil), nil)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the sdk message type.
|
||||
|
||||
@ -9,7 +9,6 @@ import (
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/genesis"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
storetypes "cosmossdk.io/store/types"
|
||||
|
||||
@ -198,9 +197,9 @@ func (c coreAppModuleAdaptor) RegisterInterfaces(reg registry.InterfaceRegistrar
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec implements HasAminoCodec
|
||||
func (c coreAppModuleAdaptor) RegisterLegacyAminoCodec(amino legacy.Amino) {
|
||||
func (c coreAppModuleAdaptor) RegisterLegacyAminoCodec(amino registry.AminoRegistrar) {
|
||||
if mod, ok := c.module.(interface {
|
||||
RegisterLegacyAminoCodec(amino legacy.Amino)
|
||||
RegisterLegacyAminoCodec(amino registry.AminoRegistrar)
|
||||
}); ok {
|
||||
mod.RegisterLegacyAminoCodec(amino)
|
||||
}
|
||||
|
||||
@ -36,7 +36,6 @@ import (
|
||||
"cosmossdk.io/core/appmodule"
|
||||
appmodulev2 "cosmossdk.io/core/appmodule/v2"
|
||||
"cosmossdk.io/core/genesis"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
storetypes "cosmossdk.io/store/types"
|
||||
@ -69,7 +68,7 @@ type HasGenesisBasics = appmodule.HasGenesisBasics
|
||||
// HasAminoCodec is the interface for modules that have amino codec registration.
|
||||
// Deprecated: modules should not need to register their own amino codecs.
|
||||
type HasAminoCodec interface {
|
||||
RegisterLegacyAminoCodec(legacy.Amino)
|
||||
RegisterLegacyAminoCodec(registry.AminoRegistrar)
|
||||
}
|
||||
|
||||
// HasGRPCGateway is the interface for modules to register their gRPC gateway routes.
|
||||
@ -294,14 +293,14 @@ func (m *Manager) SetOrderMigrations(moduleNames ...string) {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers all module codecs
|
||||
func (m *Manager) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
func (m *Manager) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
for name, b := range m.Modules {
|
||||
if _, ok := b.(interface{ RegisterLegacyAminoCodec(*codec.LegacyAmino) }); ok {
|
||||
panic(fmt.Sprintf("%s uses a deprecated amino registration api, implement HasAminoCodec instead if necessary", name))
|
||||
}
|
||||
|
||||
if mod, ok := b.(HasAminoCodec); ok {
|
||||
mod.RegisterLegacyAminoCodec(cdc)
|
||||
mod.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -152,7 +152,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/accounts => ../../.
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -175,7 +175,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/accounts => ../../.
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -179,7 +179,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/accounts/defaults/lockup => ./defaults/lockup
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
package legacytx
|
||||
|
||||
import (
|
||||
"cosmossdk.io/core/legacy"
|
||||
)
|
||||
import "cosmossdk.io/core/registry"
|
||||
|
||||
func RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
cdc.RegisterConcrete(StdTx{}, "cosmos-sdk/StdTx")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterConcrete(StdTx{}, "cosmos-sdk/StdTx")
|
||||
}
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
appmodulev2 "cosmossdk.io/core/appmodule/v2"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/core/transaction"
|
||||
|
||||
@ -75,8 +74,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the auth module's types for the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the auth module.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -13,18 +12,18 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers the account interfaces and concrete types on the
|
||||
// provided LegacyAmino codec. These types are used for Amino JSON serialization
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
cdc.RegisterInterface((*sdk.ModuleAccountI)(nil), nil)
|
||||
cdc.RegisterInterface((*GenesisAccount)(nil), nil)
|
||||
cdc.RegisterInterface((*sdk.AccountI)(nil), nil)
|
||||
cdc.RegisterConcrete(&BaseAccount{}, "cosmos-sdk/BaseAccount")
|
||||
cdc.RegisterConcrete(&ModuleAccount{}, "cosmos-sdk/ModuleAccount")
|
||||
cdc.RegisterConcrete(Params{}, "cosmos-sdk/x/auth/Params")
|
||||
cdc.RegisterConcrete(&ModuleCredential{}, "cosmos-sdk/GroupAccountCredential")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterInterface((*sdk.ModuleAccountI)(nil), nil)
|
||||
registrar.RegisterInterface((*GenesisAccount)(nil), nil)
|
||||
registrar.RegisterInterface((*sdk.AccountI)(nil), nil)
|
||||
registrar.RegisterConcrete(&BaseAccount{}, "cosmos-sdk/BaseAccount")
|
||||
registrar.RegisterConcrete(&ModuleAccount{}, "cosmos-sdk/ModuleAccount")
|
||||
registrar.RegisterConcrete(Params{}, "cosmos-sdk/x/auth/Params")
|
||||
registrar.RegisterConcrete(&ModuleCredential{}, "cosmos-sdk/GroupAccountCredential")
|
||||
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/auth/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateParams{}, "cosmos-sdk/x/auth/MsgUpdateParams")
|
||||
|
||||
legacytx.RegisterLegacyAminoCodec(cdc)
|
||||
legacytx.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterInterfaces associates protoName with AccountI interface
|
||||
|
||||
@ -2,7 +2,6 @@ package vesting
|
||||
|
||||
import (
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/x/auth/keeper"
|
||||
@ -34,8 +33,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the module's types with the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the module's interfaces and implementations with
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@ -11,13 +10,13 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers the vesting interfaces and concrete types on the
|
||||
// provided LegacyAmino codec. These types are used for Amino JSON serialization
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
cdc.RegisterInterface((*exported.VestingAccount)(nil), nil)
|
||||
cdc.RegisterConcrete(&BaseVestingAccount{}, "cosmos-sdk/BaseVestingAccount")
|
||||
cdc.RegisterConcrete(&ContinuousVestingAccount{}, "cosmos-sdk/ContinuousVestingAccount")
|
||||
cdc.RegisterConcrete(&DelayedVestingAccount{}, "cosmos-sdk/DelayedVestingAccount")
|
||||
cdc.RegisterConcrete(&PeriodicVestingAccount{}, "cosmos-sdk/PeriodicVestingAccount")
|
||||
cdc.RegisterConcrete(&PermanentLockedAccount{}, "cosmos-sdk/PermanentLockedAccount")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterInterface((*exported.VestingAccount)(nil), nil)
|
||||
registrar.RegisterConcrete(&BaseVestingAccount{}, "cosmos-sdk/BaseVestingAccount")
|
||||
registrar.RegisterConcrete(&ContinuousVestingAccount{}, "cosmos-sdk/ContinuousVestingAccount")
|
||||
registrar.RegisterConcrete(&DelayedVestingAccount{}, "cosmos-sdk/DelayedVestingAccount")
|
||||
registrar.RegisterConcrete(&PeriodicVestingAccount{}, "cosmos-sdk/PeriodicVestingAccount")
|
||||
registrar.RegisterConcrete(&PermanentLockedAccount{}, "cosmos-sdk/PermanentLockedAccount")
|
||||
}
|
||||
|
||||
// RegisterInterfaces associates protoName with AccountI and VestingAccount
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package authz
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
bank "cosmossdk.io/x/bank/types"
|
||||
@ -13,13 +12,13 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers the necessary x/authz interfaces and concrete types
|
||||
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
legacy.RegisterAminoMsg(cdc, &MsgGrant{}, "cosmos-sdk/MsgGrant")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgRevoke{}, "cosmos-sdk/MsgRevoke")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgExec{}, "cosmos-sdk/MsgExec")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
legacy.RegisterAminoMsg(registrar, &MsgGrant{}, "cosmos-sdk/MsgGrant")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgRevoke{}, "cosmos-sdk/MsgRevoke")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgExec{}, "cosmos-sdk/MsgExec")
|
||||
|
||||
cdc.RegisterInterface((*Authorization)(nil), nil)
|
||||
cdc.RegisterConcrete(&GenericAuthorization{}, "cosmos-sdk/GenericAuthorization")
|
||||
registrar.RegisterInterface((*Authorization)(nil), nil)
|
||||
registrar.RegisterConcrete(&GenericAuthorization{}, "cosmos-sdk/GenericAuthorization")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the interfaces types with the interface registry
|
||||
|
||||
@ -176,7 +176,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/errors"
|
||||
"cosmossdk.io/x/authz"
|
||||
@ -93,8 +92,8 @@ func (am AppModule) RegisterMigrations(mr appmodule.MigrationRegistrar) error {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the authz module's types for the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
authz.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
authz.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the authz module's interface types
|
||||
|
||||
@ -175,7 +175,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/consensus => ../consensus
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/x/bank/client/cli"
|
||||
"cosmossdk.io/x/bank/keeper"
|
||||
@ -63,8 +62,8 @@ func (am AppModule) IsAppModule() {}
|
||||
func (AppModule) Name() string { return types.ModuleName }
|
||||
|
||||
// RegisterLegacyAminoCodec registers the bank module's types on the LegacyAmino codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the bank module.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -11,14 +10,14 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers the necessary x/bank interfaces and concrete types
|
||||
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSend{}, "cosmos-sdk/MsgSend")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgMultiSend{}, "cosmos-sdk/MsgMultiSend")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/bank/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSetSendEnabled{}, "cosmos-sdk/MsgSetSendEnabled")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSend{}, "cosmos-sdk/MsgSend")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgMultiSend{}, "cosmos-sdk/MsgMultiSend")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateParams{}, "cosmos-sdk/x/bank/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSetSendEnabled{}, "cosmos-sdk/MsgSetSendEnabled")
|
||||
|
||||
cdc.RegisterConcrete(&SendAuthorization{}, "cosmos-sdk/SendAuthorization")
|
||||
cdc.RegisterConcrete(&Params{}, "cosmos-sdk/x/bank/Params")
|
||||
registrar.RegisterConcrete(&SendAuthorization{}, "cosmos-sdk/SendAuthorization")
|
||||
registrar.RegisterConcrete(&Params{}, "cosmos-sdk/x/bank/Params")
|
||||
}
|
||||
|
||||
func RegisterInterfaces(registrar registry.InterfaceRegistrar) {
|
||||
|
||||
@ -176,7 +176,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -173,7 +173,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -8,7 +8,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/x/consensus/keeper"
|
||||
"cosmossdk.io/x/consensus/types"
|
||||
@ -72,8 +71,8 @@ func (AppModule) IsAppModule() {}
|
||||
func (AppModule) Name() string { return types.ModuleName }
|
||||
|
||||
// RegisterLegacyAminoCodec registers the consensus module's types on the LegacyAmino codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -21,6 +20,6 @@ func RegisterInterfaces(registrar registry.InterfaceRegistrar) {
|
||||
|
||||
// RegisterLegacyAminoCodec registers the necessary x/consensus interfaces and concrete types
|
||||
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/consensus/MsgUpdateParams")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateParams{}, "cosmos-sdk/x/consensus/MsgUpdateParams")
|
||||
}
|
||||
|
||||
@ -177,7 +177,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/x/distribution/client/cli"
|
||||
"cosmossdk.io/x/distribution/keeper"
|
||||
@ -73,8 +72,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the distribution module's types for the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the distribution module.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -12,14 +11,14 @@ import (
|
||||
// RegisterLegacyAminoCodec registers the necessary x/distribution interfaces
|
||||
// and concrete types on the provided LegacyAmino codec. These types are used
|
||||
// for Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
legacy.RegisterAminoMsg(cdc, &MsgWithdrawDelegatorReward{}, "cosmos-sdk/MsgWithdrawDelegationReward")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgWithdrawValidatorCommission{}, "cosmos-sdk/MsgWithdrawValCommission")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSetWithdrawAddress{}, "cosmos-sdk/MsgModifyWithdrawAddress")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/distribution/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgDepositValidatorRewardsPool{}, "cosmos-sdk/distr/MsgDepositValRewards")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
legacy.RegisterAminoMsg(registrar, &MsgWithdrawDelegatorReward{}, "cosmos-sdk/MsgWithdrawDelegationReward")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgWithdrawValidatorCommission{}, "cosmos-sdk/MsgWithdrawValCommission")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSetWithdrawAddress{}, "cosmos-sdk/MsgModifyWithdrawAddress")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateParams{}, "cosmos-sdk/distribution/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgDepositValidatorRewardsPool{}, "cosmos-sdk/distr/MsgDepositValRewards")
|
||||
|
||||
cdc.RegisterConcrete(Params{}, "cosmos-sdk/x/distribution/Params")
|
||||
registrar.RegisterConcrete(Params{}, "cosmos-sdk/x/distribution/Params")
|
||||
}
|
||||
|
||||
func RegisterInterfaces(registrar registry.InterfaceRegistrar) {
|
||||
|
||||
@ -175,7 +175,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/x/epochs/keeper"
|
||||
"cosmossdk.io/x/epochs/simulation"
|
||||
"cosmossdk.io/x/epochs/types"
|
||||
@ -56,7 +56,7 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the epochs module's types for the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {}
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the epochs module.
|
||||
func (AppModule) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux) {
|
||||
|
||||
@ -176,7 +176,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -11,7 +11,6 @@ import (
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/comet"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
eviclient "cosmossdk.io/x/evidence/client"
|
||||
"cosmossdk.io/x/evidence/client/cli"
|
||||
@ -66,8 +65,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the evidence module's types to the LegacyAmino codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the evidence module.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
"cosmossdk.io/x/evidence/exported"
|
||||
@ -12,10 +11,10 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers all the necessary types and interfaces for the
|
||||
// evidence module.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
cdc.RegisterInterface((*exported.Evidence)(nil), nil)
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSubmitEvidence{}, "cosmos-sdk/MsgSubmitEvidence")
|
||||
cdc.RegisterConcrete(&Equivocation{}, "cosmos-sdk/Equivocation")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterInterface((*exported.Evidence)(nil), nil)
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSubmitEvidence{}, "cosmos-sdk/MsgSubmitEvidence")
|
||||
registrar.RegisterConcrete(&Equivocation{}, "cosmos-sdk/Equivocation")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the interfaces types with the interface registry.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package feegrant
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -11,14 +10,14 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers the necessary x/feegrant interfaces and concrete types
|
||||
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
legacy.RegisterAminoMsg(cdc, &MsgGrantAllowance{}, "cosmos-sdk/MsgGrantAllowance")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgRevokeAllowance{}, "cosmos-sdk/MsgRevokeAllowance")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
legacy.RegisterAminoMsg(registrar, &MsgGrantAllowance{}, "cosmos-sdk/MsgGrantAllowance")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgRevokeAllowance{}, "cosmos-sdk/MsgRevokeAllowance")
|
||||
|
||||
cdc.RegisterInterface((*FeeAllowanceI)(nil), nil)
|
||||
cdc.RegisterConcrete(&BasicAllowance{}, "cosmos-sdk/BasicAllowance")
|
||||
cdc.RegisterConcrete(&PeriodicAllowance{}, "cosmos-sdk/PeriodicAllowance")
|
||||
cdc.RegisterConcrete(&AllowedMsgAllowance{}, "cosmos-sdk/AllowedMsgAllowance")
|
||||
registrar.RegisterInterface((*FeeAllowanceI)(nil), nil)
|
||||
registrar.RegisterConcrete(&BasicAllowance{}, "cosmos-sdk/BasicAllowance")
|
||||
registrar.RegisterConcrete(&PeriodicAllowance{}, "cosmos-sdk/PeriodicAllowance")
|
||||
registrar.RegisterConcrete(&AllowedMsgAllowance{}, "cosmos-sdk/AllowedMsgAllowance")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the interfaces types with the interface registry
|
||||
|
||||
@ -180,7 +180,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/errors"
|
||||
"cosmossdk.io/x/feegrant"
|
||||
@ -68,8 +67,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the feegrant module's types for the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
feegrant.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
feegrant.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the feegrant module's interface types
|
||||
|
||||
@ -179,7 +179,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
govclient "cosmossdk.io/x/gov/client"
|
||||
"cosmossdk.io/x/gov/client/cli"
|
||||
@ -79,9 +78,9 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the gov module's types for the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
v1beta1.RegisterLegacyAminoCodec(cdc)
|
||||
v1.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
v1beta1.RegisterLegacyAminoCodec(registrar)
|
||||
v1.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the gov module.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -11,16 +10,16 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers all the necessary types and interfaces for the
|
||||
// governance module.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSubmitProposal{}, "cosmos-sdk/v1/MsgSubmitProposal")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSubmitMultipleChoiceProposal{}, "gov/MsgSubmitMultipleChoiceProposal")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgDeposit{}, "cosmos-sdk/v1/MsgDeposit")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgVote{}, "cosmos-sdk/v1/MsgVote")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgVoteWeighted{}, "cosmos-sdk/v1/MsgVoteWeighted")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgExecLegacyContent{}, "cosmos-sdk/v1/MsgExecLegacyContent")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/gov/v1/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateMessageParams{}, "x/gov/v1/MsgUpdateMessageParams")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSudoExec{}, "cosmos-sdk/x/gov/v1/MsgSudoExec")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSubmitProposal{}, "cosmos-sdk/v1/MsgSubmitProposal")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSubmitMultipleChoiceProposal{}, "gov/MsgSubmitMultipleChoiceProposal")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgDeposit{}, "cosmos-sdk/v1/MsgDeposit")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgVote{}, "cosmos-sdk/v1/MsgVote")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgVoteWeighted{}, "cosmos-sdk/v1/MsgVoteWeighted")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgExecLegacyContent{}, "cosmos-sdk/v1/MsgExecLegacyContent")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateParams{}, "cosmos-sdk/x/gov/v1/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateMessageParams{}, "x/gov/v1/MsgUpdateMessageParams")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSudoExec{}, "cosmos-sdk/x/gov/v1/MsgSudoExec")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the interfaces types with the Interface Registry.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -11,13 +10,13 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers all the necessary types and interfaces for the
|
||||
// governance module.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
cdc.RegisterInterface((*Content)(nil), nil)
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSubmitProposal{}, "cosmos-sdk/MsgSubmitProposal")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgDeposit{}, "cosmos-sdk/MsgDeposit")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgVote{}, "cosmos-sdk/MsgVote")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgVoteWeighted{}, "cosmos-sdk/MsgVoteWeighted")
|
||||
cdc.RegisterConcrete(&TextProposal{}, "cosmos-sdk/TextProposal")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterInterface((*Content)(nil), nil)
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSubmitProposal{}, "cosmos-sdk/MsgSubmitProposal")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgDeposit{}, "cosmos-sdk/MsgDeposit")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgVote{}, "cosmos-sdk/MsgVote")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgVoteWeighted{}, "cosmos-sdk/MsgVoteWeighted")
|
||||
registrar.RegisterConcrete(&TextProposal{}, "cosmos-sdk/TextProposal")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the interfaces types with the Interface Registry.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package group
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -12,25 +11,25 @@ import (
|
||||
// RegisterLegacyAminoCodec registers all the necessary group module concrete
|
||||
// types and interfaces with the provided codec reference.
|
||||
// These types are used for Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
cdc.RegisterInterface((*DecisionPolicy)(nil), nil)
|
||||
cdc.RegisterConcrete(&ThresholdDecisionPolicy{}, "cosmos-sdk/ThresholdDecisionPolicy")
|
||||
cdc.RegisterConcrete(&PercentageDecisionPolicy{}, "cosmos-sdk/PercentageDecisionPolicy")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterInterface((*DecisionPolicy)(nil), nil)
|
||||
registrar.RegisterConcrete(&ThresholdDecisionPolicy{}, "cosmos-sdk/ThresholdDecisionPolicy")
|
||||
registrar.RegisterConcrete(&PercentageDecisionPolicy{}, "cosmos-sdk/PercentageDecisionPolicy")
|
||||
|
||||
legacy.RegisterAminoMsg(cdc, &MsgCreateGroup{}, "cosmos-sdk/MsgCreateGroup")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateGroupMembers{}, "cosmos-sdk/MsgUpdateGroupMembers")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateGroupAdmin{}, "cosmos-sdk/MsgUpdateGroupAdmin")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateGroupMetadata{}, "cosmos-sdk/MsgUpdateGroupMetadata")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgCreateGroupWithPolicy{}, "cosmos-sdk/MsgCreateGroupWithPolicy")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgCreateGroupPolicy{}, "cosmos-sdk/MsgCreateGroupPolicy")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateGroupPolicyAdmin{}, "cosmos-sdk/MsgUpdateGroupPolicyAdmin")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateGroupPolicyDecisionPolicy{}, "cosmos-sdk/MsgUpdateGroupDecisionPolicy")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateGroupPolicyMetadata{}, "cosmos-sdk/MsgUpdateGroupPolicyMetadata")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgSubmitProposal{}, "cosmos-sdk/group/MsgSubmitProposal")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgWithdrawProposal{}, "cosmos-sdk/group/MsgWithdrawProposal")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgVote{}, "cosmos-sdk/group/MsgVote")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgExec{}, "cosmos-sdk/group/MsgExec")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgLeaveGroup{}, "cosmos-sdk/group/MsgLeaveGroup")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgCreateGroup{}, "cosmos-sdk/MsgCreateGroup")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateGroupMembers{}, "cosmos-sdk/MsgUpdateGroupMembers")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateGroupAdmin{}, "cosmos-sdk/MsgUpdateGroupAdmin")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateGroupMetadata{}, "cosmos-sdk/MsgUpdateGroupMetadata")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgCreateGroupWithPolicy{}, "cosmos-sdk/MsgCreateGroupWithPolicy")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgCreateGroupPolicy{}, "cosmos-sdk/MsgCreateGroupPolicy")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateGroupPolicyAdmin{}, "cosmos-sdk/MsgUpdateGroupPolicyAdmin")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateGroupPolicyDecisionPolicy{}, "cosmos-sdk/MsgUpdateGroupDecisionPolicy")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateGroupPolicyMetadata{}, "cosmos-sdk/MsgUpdateGroupPolicyMetadata")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgSubmitProposal{}, "cosmos-sdk/group/MsgSubmitProposal")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgWithdrawProposal{}, "cosmos-sdk/group/MsgWithdrawProposal")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgVote{}, "cosmos-sdk/group/MsgVote")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgExec{}, "cosmos-sdk/group/MsgExec")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgLeaveGroup{}, "cosmos-sdk/group/MsgLeaveGroup")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the interfaces types with the interface registry.
|
||||
|
||||
@ -187,7 +187,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/accounts => ../accounts
|
||||
@ -197,6 +197,7 @@ replace (
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
cosmossdk.io/x/consensus => ../consensus
|
||||
cosmossdk.io/x/distribution => ../distribution
|
||||
cosmossdk.io/x/epochs => ../epochs
|
||||
cosmossdk.io/x/gov => ../gov
|
||||
cosmossdk.io/x/mint => ../mint
|
||||
cosmossdk.io/x/protocolpool => ../protocolpool
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
@ -24,8 +24,6 @@ cosmossdk.io/schema v0.2.0 h1:UH5CR1DqUq8yP+5Np8PbvG4YX0zAUsTN2Qk6yThmfMk=
|
||||
cosmossdk.io/schema v0.2.0/go.mod h1:RDAhxIeNB4bYqAlF4NBJwRrgtnciMcyyg0DOKnhNZQQ=
|
||||
cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 h1:o024zaPHYtmUGL2BCX1ns9rfZmMc19U4hQ2CAPt2Xgg=
|
||||
cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897/go.mod h1:Ma4uny4RFegWTbU71fBmkSIoHrWHlLC/JwwgWgehZm4=
|
||||
cosmossdk.io/x/epochs v0.0.0-20240522060652-a1ae4c3e0337 h1:GuBrfHsK3RD5vlD4DuBz3DXslR6VlnzrYmHOC3L679Q=
|
||||
cosmossdk.io/x/epochs v0.0.0-20240522060652-a1ae4c3e0337/go.mod h1:PhLn1pMBilyRC4GfRkoYhm+XVAYhF4adVrzut8AdpJI=
|
||||
cosmossdk.io/x/tx v0.13.4-0.20240815194237-858ec2fcb897 h1:J3vS3G41JtTWkUX3wVKcXdy1yPUca0d3QnexCR52PeY=
|
||||
cosmossdk.io/x/tx v0.13.4-0.20240815194237-858ec2fcb897/go.mod h1:5+Hpds6bhT6CdR7DqPh0dVOqyqL7NJkq+x+yjLdYSQU=
|
||||
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/x/group"
|
||||
"cosmossdk.io/x/group/client/cli"
|
||||
@ -88,8 +87,8 @@ func (AppModule) RegisterInterfaces(registrar registry.InterfaceRegistrar) {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the group module's types for the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
group.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
group.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterInvariants does nothing, there are no invariants to enforce
|
||||
|
||||
@ -180,7 +180,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -9,7 +9,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/x/mint/keeper"
|
||||
"cosmossdk.io/x/mint/simulation"
|
||||
@ -80,8 +79,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the mint module's types on the given LegacyAmino codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the module's interface types
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -10,9 +9,9 @@ import (
|
||||
)
|
||||
|
||||
// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
cdc.RegisterConcrete(Params{}, "cosmos-sdk/x/mint/Params")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/mint/MsgUpdateParams")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterConcrete(Params{}, "cosmos-sdk/x/mint/Params")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateParams{}, "cosmos-sdk/x/mint/MsgUpdateParams")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the interfaces types with the interface registry.
|
||||
|
||||
@ -175,7 +175,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -176,7 +176,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -7,7 +7,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/x/params/keeper"
|
||||
"cosmossdk.io/x/params/types/proposal"
|
||||
@ -51,8 +50,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the params module's types on the given LegacyAmino codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
proposal.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
proposal.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the params module.
|
||||
|
||||
@ -1,14 +1,13 @@
|
||||
package proposal
|
||||
|
||||
import (
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
govtypes "cosmossdk.io/x/gov/types/v1beta1"
|
||||
)
|
||||
|
||||
// RegisterLegacyAminoCodec registers all necessary param module types with a given LegacyAmino codec.
|
||||
func RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
cdc.RegisterConcrete(&ParameterChangeProposal{}, "cosmos-sdk/ParameterChangeProposal")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterConcrete(&ParameterChangeProposal{}, "cosmos-sdk/ParameterChangeProposal")
|
||||
}
|
||||
|
||||
func RegisterInterfaces(registrar registry.InterfaceRegistrar) {
|
||||
|
||||
@ -176,7 +176,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -177,7 +177,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/comet"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/x/slashing/keeper"
|
||||
"cosmossdk.io/x/slashing/simulation"
|
||||
@ -81,8 +80,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the slashing module's types for the given codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the slashing module's interface types
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -10,10 +9,10 @@ import (
|
||||
)
|
||||
|
||||
// RegisterLegacyAminoCodec registers concrete types on LegacyAmino codec
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
cdc.RegisterConcrete(Params{}, "cosmos-sdk/x/slashing/Params")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUnjail{}, "cosmos-sdk/MsgUnjail")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/slashing/MsgUpdateParams")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
registrar.RegisterConcrete(Params{}, "cosmos-sdk/x/slashing/Params")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUnjail{}, "cosmos-sdk/MsgUnjail")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateParams{}, "cosmos-sdk/x/slashing/MsgUpdateParams")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the interfaces types with the Interface Registry.
|
||||
|
||||
@ -175,7 +175,7 @@ replace (
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 // main
|
||||
cosmossdk.io/core => cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 // main
|
||||
// pseudo version lower than the latest tag
|
||||
cosmossdk.io/store => cosmossdk.io/store v1.0.0-rc.0.0.20240815194237-858ec2fcb897 // main
|
||||
cosmossdk.io/x/bank => ../bank
|
||||
|
||||
@ -8,8 +8,8 @@ cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897 h1:YV9M+9pClbzPncO5XMSc3kI
|
||||
cosmossdk.io/api v0.7.3-0.20240815194237-858ec2fcb897/go.mod h1:oqpDMZQpEgSo0Cm4F+0yxoC9UQbo/SlodZR4zeOqBsE=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab h1:E/IWad76v1Nc4Atswaccpt7twJ0VwHkbY94/PhmZfTo=
|
||||
cosmossdk.io/collections v0.4.1-0.20240802064046-23fac2f1b8ab/go.mod h1:Or+5eVAo1aiS1DnPK90eQykGc59LGBWtqwBoJcxXTmw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8 h1:F5bO9Z/MVHk4nj48OERj2Bx3rBPDSj7GCsoTdFdzGkw=
|
||||
cosmossdk.io/core v0.12.1-0.20240903222005-6fc677faecf8/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59 h1:bmfBC5ctHAsyYI+7UJsEFHEtJt8sYNqAfYuE8JQbQmI=
|
||||
cosmossdk.io/core v0.12.1-0.20240905114452-a57b25418a59/go.mod h1:abgLjeFLhtuKIYZWSPlVUgQBrKObO7ULV35KYfexE90=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a h1:ZGdQEJkQLXOcU9lPkowIFxPR4kjZuqoq3jDJ5Qe4D3Y=
|
||||
cosmossdk.io/core/testing v0.0.0-20240903211221-70488a89a87a/go.mod h1:+k84x9hU54Ckuc/JtppTSSQ+niEOU3CWcQghNz5NJWY=
|
||||
cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050=
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
"cosmossdk.io/depinject"
|
||||
"cosmossdk.io/x/staking/client/cli"
|
||||
@ -75,8 +74,8 @@ func (AppModule) Name() string {
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the staking module's types on the given LegacyAmino codec.
|
||||
func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
func (AppModule) RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
types.RegisterLegacyAminoCodec(registrar)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the module's interface types
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
corelegacy "cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/registry"
|
||||
coretransaction "cosmossdk.io/core/transaction"
|
||||
|
||||
@ -11,21 +10,21 @@ import (
|
||||
|
||||
// RegisterLegacyAminoCodec registers the necessary x/staking interfaces and concrete types
|
||||
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc corelegacy.Amino) {
|
||||
legacy.RegisterAminoMsg(cdc, &MsgCreateValidator{}, "cosmos-sdk/MsgCreateValidator")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgEditValidator{}, "cosmos-sdk/MsgEditValidator")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgDelegate{}, "cosmos-sdk/MsgDelegate")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUndelegate{}, "cosmos-sdk/MsgUndelegate")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgBeginRedelegate{}, "cosmos-sdk/MsgBeginRedelegate")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgCancelUnbondingDelegation{}, "cosmos-sdk/MsgCancelUnbondingDelegation")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/staking/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgRotateConsPubKey{}, "cosmos-sdk/MsgRotateConsPubKey")
|
||||
func RegisterLegacyAminoCodec(registrar registry.AminoRegistrar) {
|
||||
legacy.RegisterAminoMsg(registrar, &MsgCreateValidator{}, "cosmos-sdk/MsgCreateValidator")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgEditValidator{}, "cosmos-sdk/MsgEditValidator")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgDelegate{}, "cosmos-sdk/MsgDelegate")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUndelegate{}, "cosmos-sdk/MsgUndelegate")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgBeginRedelegate{}, "cosmos-sdk/MsgBeginRedelegate")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgCancelUnbondingDelegation{}, "cosmos-sdk/MsgCancelUnbondingDelegation")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgUpdateParams{}, "cosmos-sdk/x/staking/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(registrar, &MsgRotateConsPubKey{}, "cosmos-sdk/MsgRotateConsPubKey")
|
||||
|
||||
cdc.RegisterInterface((*isStakeAuthorization_Validators)(nil), nil)
|
||||
cdc.RegisterConcrete(&StakeAuthorization_AllowList{}, "cosmos-sdk/StakeAuthorization/AllowList")
|
||||
cdc.RegisterConcrete(&StakeAuthorization_DenyList{}, "cosmos-sdk/StakeAuthorization/DenyList")
|
||||
cdc.RegisterConcrete(&StakeAuthorization{}, "cosmos-sdk/StakeAuthorization")
|
||||
cdc.RegisterConcrete(Params{}, "cosmos-sdk/x/staking/Params")
|
||||
registrar.RegisterInterface((*isStakeAuthorization_Validators)(nil), nil)
|
||||
registrar.RegisterConcrete(&StakeAuthorization_AllowList{}, "cosmos-sdk/StakeAuthorization/AllowList")
|
||||
registrar.RegisterConcrete(&StakeAuthorization_DenyList{}, "cosmos-sdk/StakeAuthorization/DenyList")
|
||||
registrar.RegisterConcrete(&StakeAuthorization{}, "cosmos-sdk/StakeAuthorization")
|
||||
registrar.RegisterConcrete(Params{}, "cosmos-sdk/x/staking/Params")
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the x/staking interfaces types with the interface registry
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user