mirror of https://github.com/certusone/wasmd.git
Follow sdk amino naming convention
This commit is contained in:
parent
774f6d7876
commit
631aa8461c
|
@ -6,18 +6,18 @@ import (
|
|||
|
||||
// RegisterCodec registers the account types and interface
|
||||
func RegisterCodec(cdc *codec.Codec) {
|
||||
cdc.RegisterConcrete(&MsgStoreCode{}, "wasm/store-code", nil)
|
||||
cdc.RegisterConcrete(&MsgInstantiateContract{}, "wasm/instantiate", nil)
|
||||
cdc.RegisterConcrete(&MsgExecuteContract{}, "wasm/execute", nil)
|
||||
cdc.RegisterConcrete(&MsgMigrateContract{}, "wasm/migrate", nil)
|
||||
cdc.RegisterConcrete(&MsgUpdateAdmin{}, "wasm/update-contract-admin", nil)
|
||||
cdc.RegisterConcrete(&MsgClearAdmin{}, "wasm/clear-contract-admin", nil)
|
||||
cdc.RegisterConcrete(&MsgStoreCode{}, "wasm/MsgStoreCode", nil)
|
||||
cdc.RegisterConcrete(&MsgInstantiateContract{}, "wasm/MsgInstantiateContract", nil)
|
||||
cdc.RegisterConcrete(&MsgExecuteContract{}, "wasm/MsgExecuteContract", nil)
|
||||
cdc.RegisterConcrete(&MsgMigrateContract{}, "wasm/MsgMigrateContract", nil)
|
||||
cdc.RegisterConcrete(&MsgUpdateAdmin{}, "wasm/MsgUpdateAdmin", nil)
|
||||
cdc.RegisterConcrete(&MsgClearAdmin{}, "wasm/MsgClearAdmin", nil)
|
||||
|
||||
cdc.RegisterConcrete(StoreCodeProposal{}, "wasm/store-proposal", nil)
|
||||
cdc.RegisterConcrete(InstantiateContractProposal{}, "wasm/instantiate-proposal", nil)
|
||||
cdc.RegisterConcrete(MigrateContractProposal{}, "wasm/migrate-proposal", nil)
|
||||
cdc.RegisterConcrete(UpdateAdminProposal{}, "wasm/update-admin-proposal", nil)
|
||||
cdc.RegisterConcrete(ClearAdminProposal{}, "wasm/clear-admin-proposal", nil)
|
||||
cdc.RegisterConcrete(StoreCodeProposal{}, "wasm/StoreCodeProposal", nil)
|
||||
cdc.RegisterConcrete(InstantiateContractProposal{}, "wasm/InstantiateContractProposal", nil)
|
||||
cdc.RegisterConcrete(MigrateContractProposal{}, "wasm/MigrateContractProposal", nil)
|
||||
cdc.RegisterConcrete(UpdateAdminProposal{}, "wasm/UpdateAdminProposal", nil)
|
||||
cdc.RegisterConcrete(ClearAdminProposal{}, "wasm/ClearAdminProposal", nil)
|
||||
}
|
||||
|
||||
// ModuleCdc generic sealed codec to be used throughout module
|
||||
|
|
|
@ -39,11 +39,11 @@ func init() { // register new content types with the sdk
|
|||
govtypes.RegisterProposalType(string(ProposalTypeMigrateContract))
|
||||
govtypes.RegisterProposalType(string(ProposalTypeUpdateAdmin))
|
||||
govtypes.RegisterProposalType(string(ProposalTypeClearAdmin))
|
||||
govtypes.RegisterProposalTypeCodec(StoreCodeProposal{}, "wasm/store-proposal")
|
||||
govtypes.RegisterProposalTypeCodec(InstantiateContractProposal{}, "wasm/instantiate-proposal")
|
||||
govtypes.RegisterProposalTypeCodec(MigrateContractProposal{}, "wasm/migrate-proposal")
|
||||
govtypes.RegisterProposalTypeCodec(UpdateAdminProposal{}, "wasm/update-admin-proposal")
|
||||
govtypes.RegisterProposalTypeCodec(ClearAdminProposal{}, "wasm/clear-admin-proposal")
|
||||
govtypes.RegisterProposalTypeCodec(StoreCodeProposal{}, "wasm/StoreCodeProposal")
|
||||
govtypes.RegisterProposalTypeCodec(InstantiateContractProposal{}, "wasm/InstantiateContractProposal")
|
||||
govtypes.RegisterProposalTypeCodec(MigrateContractProposal{}, "wasm/MigrateContractProposal")
|
||||
govtypes.RegisterProposalTypeCodec(UpdateAdminProposal{}, "wasm/UpdateAdminProposal")
|
||||
govtypes.RegisterProposalTypeCodec(ClearAdminProposal{}, "wasm/ClearAdminProposal")
|
||||
}
|
||||
|
||||
// WasmProposal contains common proposal data.
|
||||
|
|
Loading…
Reference in New Issue