mirror of https://github.com/certusone/wasmd.git
{Init,Migrate}Msg -> Msg in proposals as well
This commit is contained in:
parent
1fa2165806
commit
e144b2ea76
|
@ -675,7 +675,7 @@ contract.
|
|||
| `admin` | [string](#string) | | Admin is an optional address that can execute migrations |
|
||||
| `code_id` | [uint64](#uint64) | | CodeID is the reference to the stored WASM code |
|
||||
| `label` | [string](#string) | | Label is optional metadata to be stored with a constract instance. |
|
||||
| `init_msg` | [bytes](#bytes) | | InitMsg json encoded message to be passed to the contract on instantiation |
|
||||
| `msg` | [bytes](#bytes) | | Msg json encoded message to be passed to the contract on instantiation |
|
||||
| `funds` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | Funds coins that are transferred to the contract on instantiation |
|
||||
|
||||
|
||||
|
@ -696,7 +696,7 @@ MigrateContractProposal gov proposal content type to migrate a contract.
|
|||
| `run_as` | [string](#string) | | RunAs is the address that is passed to the contract's environment as sender |
|
||||
| `contract` | [string](#string) | | Contract is the address of the smart contract |
|
||||
| `code_id` | [uint64](#uint64) | | CodeID references the new WASM code |
|
||||
| `migrate_msg` | [bytes](#bytes) | | MigrateMsg json encoded message to be passed to the contract on migration |
|
||||
| `msg` | [bytes](#bytes) | | Msg json encoded message to be passed to the contract on migration |
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -44,8 +44,8 @@ message InstantiateContractProposal {
|
|||
uint64 code_id = 5 [ (gogoproto.customname) = "CodeID" ];
|
||||
// Label is optional metadata to be stored with a constract instance.
|
||||
string label = 6;
|
||||
// InitMsg json encoded message to be passed to the contract on instantiation
|
||||
bytes init_msg = 7;
|
||||
// Msg json encoded message to be passed to the contract on instantiation
|
||||
bytes msg = 7;
|
||||
// Funds coins that are transferred to the contract on instantiation
|
||||
repeated cosmos.base.v1beta1.Coin funds = 8 [
|
||||
(gogoproto.nullable) = false,
|
||||
|
@ -65,8 +65,8 @@ message MigrateContractProposal {
|
|||
string contract = 4;
|
||||
// CodeID references the new WASM code
|
||||
uint64 code_id = 5 [ (gogoproto.customname) = "CodeID" ];
|
||||
// MigrateMsg json encoded message to be passed to the contract on migration
|
||||
bytes migrate_msg = 6;
|
||||
// Msg json encoded message to be passed to the contract on migration
|
||||
bytes msg = 6;
|
||||
}
|
||||
|
||||
// UpdateAdminProposal gov proposal content type to set an admin for a contract.
|
||||
|
|
|
@ -92,8 +92,8 @@ type InstantiateContractProposal struct {
|
|||
CodeID uint64 `protobuf:"varint,5,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
|
||||
// Label is optional metadata to be stored with a constract instance.
|
||||
Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
|
||||
// InitMsg json encoded message to be passed to the contract on instantiation
|
||||
InitMsg []byte `protobuf:"bytes,7,opt,name=init_msg,json=initMsg,proto3" json:"init_msg,omitempty"`
|
||||
// Msg json encoded message to be passed to the contract on instantiation
|
||||
Msg []byte `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"`
|
||||
// Funds coins that are transferred to the contract on instantiation
|
||||
Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,8,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"`
|
||||
}
|
||||
|
@ -142,8 +142,8 @@ type MigrateContractProposal struct {
|
|||
Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
|
||||
// CodeID references the new WASM code
|
||||
CodeID uint64 `protobuf:"varint,5,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
|
||||
// MigrateMsg json encoded message to be passed to the contract on migration
|
||||
MigrateMsg []byte `protobuf:"bytes,6,opt,name=migrate_msg,json=migrateMsg,proto3" json:"migrate_msg,omitempty"`
|
||||
// Msg json encoded message to be passed to the contract on migration
|
||||
Msg []byte `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty"`
|
||||
}
|
||||
|
||||
func (m *MigrateContractProposal) Reset() { *m = MigrateContractProposal{} }
|
||||
|
@ -366,52 +366,50 @@ func init() {
|
|||
}
|
||||
|
||||
var fileDescriptor_6428c760f8f86eed = []byte{
|
||||
// 707 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0xcd, 0x6a, 0xdb, 0x4a,
|
||||
0x14, 0xb6, 0xe2, 0xf8, 0x27, 0x63, 0x73, 0xaf, 0xef, 0x5c, 0x27, 0x57, 0xc9, 0x05, 0xc9, 0x55,
|
||||
0x4a, 0xf0, 0xa6, 0x76, 0x93, 0x42, 0x69, 0xbb, 0xb3, 0xdc, 0x4d, 0xa0, 0x86, 0xa0, 0x10, 0x02,
|
||||
0xd9, 0x98, 0xb1, 0x34, 0x51, 0x86, 0x5a, 0x33, 0x42, 0x33, 0x6e, 0xea, 0xb7, 0xe8, 0x03, 0xf4,
|
||||
0x01, 0x42, 0x37, 0xa5, 0xeb, 0xbe, 0x40, 0xe8, 0x2a, 0xcb, 0xac, 0xd4, 0xc6, 0x79, 0x03, 0x3f,
|
||||
0x41, 0x99, 0x19, 0xd9, 0x75, 0x4a, 0x28, 0x85, 0xfe, 0x40, 0x37, 0xb2, 0xcf, 0x9c, 0x6f, 0xce,
|
||||
0xf7, 0xcd, 0x77, 0x8e, 0x46, 0xe0, 0xae, 0xcf, 0x78, 0x74, 0x8a, 0x78, 0xd4, 0x56, 0x8f, 0x17,
|
||||
0xdb, 0x03, 0x2c, 0xd0, 0x76, 0x3b, 0x4e, 0x58, 0xcc, 0x38, 0x1a, 0xb6, 0xe2, 0x84, 0x09, 0x06,
|
||||
0x57, 0x67, 0xa8, 0x96, 0x7a, 0x64, 0xa8, 0x8d, 0x7a, 0xc8, 0x42, 0xa6, 0x10, 0x6d, 0xf9, 0x4f,
|
||||
0x83, 0x37, 0x2c, 0x09, 0x66, 0xbc, 0x3d, 0x40, 0x1c, 0xcf, 0x0b, 0xfa, 0x8c, 0xd0, 0x2c, 0x7f,
|
||||
0xe7, 0x76, 0x4a, 0x31, 0x8e, 0x31, 0xd7, 0x10, 0xe7, 0x6c, 0x09, 0xfc, 0xb3, 0x2f, 0x58, 0x82,
|
||||
0xbb, 0x2c, 0xc0, 0x7b, 0x99, 0x16, 0x58, 0x07, 0x05, 0x41, 0xc4, 0x10, 0x9b, 0x46, 0xc3, 0x68,
|
||||
0xae, 0x78, 0x3a, 0x80, 0x0d, 0x50, 0x09, 0x30, 0xf7, 0x13, 0x12, 0x0b, 0xc2, 0xa8, 0xb9, 0xa4,
|
||||
0x72, 0x8b, 0x4b, 0x70, 0x15, 0x14, 0x93, 0x11, 0xed, 0x23, 0x6e, 0xe6, 0xf5, 0xc6, 0x64, 0x44,
|
||||
0x3b, 0x1c, 0x3e, 0x04, 0x7f, 0x49, 0x01, 0xfd, 0xc1, 0x58, 0xe0, 0xbe, 0xcf, 0x02, 0x6c, 0x2e,
|
||||
0x37, 0x8c, 0x66, 0xd5, 0xad, 0x4d, 0x52, 0xbb, 0x7a, 0xd8, 0xd9, 0xef, 0xb9, 0x63, 0xa1, 0x04,
|
||||
0x78, 0x55, 0x89, 0x9b, 0x45, 0x70, 0x0d, 0x14, 0x39, 0x1b, 0x25, 0x3e, 0x36, 0x0b, 0xaa, 0x5c,
|
||||
0x16, 0x41, 0x13, 0x94, 0x06, 0x23, 0x32, 0x0c, 0x70, 0x62, 0x16, 0x55, 0x62, 0x16, 0xc2, 0x23,
|
||||
0xb0, 0x46, 0x28, 0x17, 0x88, 0x0a, 0x82, 0x04, 0xee, 0xc7, 0x38, 0x89, 0x08, 0xe7, 0x52, 0x6d,
|
||||
0xa9, 0x61, 0x34, 0x2b, 0x3b, 0x9b, 0xad, 0x5b, 0xfd, 0x6d, 0x75, 0x7c, 0x1f, 0x73, 0xde, 0x65,
|
||||
0xf4, 0x98, 0x84, 0xde, 0xea, 0x42, 0x89, 0xbd, 0x79, 0x05, 0xe7, 0xfd, 0x12, 0xf8, 0x7f, 0xf7,
|
||||
0x4b, 0xa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40, 0xbd, 0x96,
|
||||
0x83, 0xa2, 0xba, 0xf9, 0x1f, 0x7c, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x7f, 0xdb, 0xe2, 0xec, 0x91,
|
||||
0x06, 0x00, 0x00,
|
||||
// 687 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0xcf, 0x6e, 0xd3, 0x30,
|
||||
0x18, 0x6f, 0xd6, 0xb5, 0xdd, 0xbc, 0x0a, 0x8a, 0xe9, 0x46, 0x18, 0x52, 0x52, 0x32, 0x34, 0xf5,
|
||||
0x42, 0xcb, 0x86, 0x84, 0x80, 0x5b, 0x53, 0x2e, 0x93, 0x98, 0x34, 0x65, 0x9a, 0x26, 0xed, 0x52,
|
||||
0xb9, 0x89, 0xd7, 0x59, 0x34, 0x76, 0x14, 0xbb, 0x8c, 0xbe, 0x05, 0x0f, 0xc0, 0x03, 0x4c, 0x5c,
|
||||
0x10, 0x5c, 0x79, 0x81, 0x1d, 0x77, 0xdc, 0x29, 0xb0, 0xec, 0x0d, 0xfa, 0x04, 0xc8, 0x76, 0x1a,
|
||||
0x3a, 0x34, 0x21, 0x24, 0xfe, 0x48, 0x5c, 0x92, 0x7c, 0xf9, 0x7e, 0xfe, 0x7e, 0x3f, 0xff, 0xbe,
|
||||
0xcf, 0x06, 0x0f, 0x7c, 0xc6, 0xc3, 0x63, 0xc4, 0xc3, 0xb6, 0x7a, 0xbc, 0xde, 0xe8, 0x63, 0x81,
|
||||
0x36, 0xda, 0x51, 0xcc, 0x22, 0xc6, 0xd1, 0xb0, 0x15, 0xc5, 0x4c, 0x30, 0xb8, 0x3c, 0x45, 0xb5,
|
||||
0xd4, 0x23, 0x43, 0xad, 0xd6, 0x07, 0x6c, 0xc0, 0x14, 0xa2, 0x2d, 0xbf, 0x34, 0x78, 0xd5, 0x92,
|
||||
0x60, 0xc6, 0xdb, 0x7d, 0xc4, 0x71, 0x5e, 0xd0, 0x67, 0x84, 0x66, 0xf9, 0xfb, 0xd7, 0x53, 0x8a,
|
||||
0x71, 0x84, 0xb9, 0x86, 0x38, 0x27, 0x73, 0xe0, 0xd6, 0xae, 0x60, 0x31, 0xee, 0xb2, 0x00, 0xef,
|
||||
0x64, 0x5a, 0x60, 0x1d, 0x94, 0x04, 0x11, 0x43, 0x6c, 0x1a, 0x0d, 0xa3, 0xb9, 0xe8, 0xe9, 0x00,
|
||||
0x36, 0xc0, 0x52, 0x80, 0xb9, 0x1f, 0x93, 0x48, 0x10, 0x46, 0xcd, 0x39, 0x95, 0x9b, 0xfd, 0x05,
|
||||
0x97, 0x41, 0x39, 0x1e, 0xd1, 0x1e, 0xe2, 0x66, 0x51, 0x2f, 0x8c, 0x47, 0xb4, 0xc3, 0xe1, 0x13,
|
||||
0x70, 0x43, 0x0a, 0xe8, 0xf5, 0xc7, 0x02, 0xf7, 0x7c, 0x16, 0x60, 0x73, 0xbe, 0x61, 0x34, 0xab,
|
||||
0x6e, 0x2d, 0x4d, 0xec, 0xea, 0x7e, 0x67, 0x77, 0xdb, 0x1d, 0x0b, 0x25, 0xc0, 0xab, 0x4a, 0xdc,
|
||||
0x34, 0x82, 0x2b, 0xa0, 0xcc, 0xd9, 0x28, 0xf6, 0xb1, 0x59, 0x52, 0xe5, 0xb2, 0x08, 0x9a, 0xa0,
|
||||
0xd2, 0x1f, 0x91, 0x61, 0x80, 0x63, 0xb3, 0xac, 0x12, 0xd3, 0x10, 0x1e, 0x80, 0x15, 0x42, 0xb9,
|
||||
0x40, 0x54, 0x10, 0x24, 0x70, 0x2f, 0xc2, 0x71, 0x48, 0x38, 0x97, 0x6a, 0x2b, 0x0d, 0xa3, 0xb9,
|
||||
0xb4, 0xb9, 0xd6, 0xba, 0xd6, 0xdf, 0x56, 0xc7, 0xf7, 0x31, 0xe7, 0x5d, 0x46, 0x0f, 0xc9, 0xc0,
|
||||
0x5b, 0x9e, 0x29, 0xb1, 0x93, 0x57, 0x70, 0x3e, 0xcd, 0x81, 0x7b, 0x5b, 0xdf, 0x33, 0x5d, 0x46,
|
||||
0x45, 0x8c, 0x7c, 0xf1, 0xb7, 0x4c, 0xab, 0x83, 0x12, 0x0a, 0x42, 0x42, 0x95, 0x57, 0x8b, 0x9e,
|
||||
0x0e, 0xe0, 0x1a, 0xa8, 0x48, 0x03, 0x7b, 0x24, 0x50, 0x9e, 0xcc, 0xbb, 0x20, 0x4d, 0xec, 0xb2,
|
||||
0x74, 0x6b, 0xeb, 0x85, 0x57, 0x96, 0xa9, 0xad, 0x40, 0x2e, 0x1d, 0xa2, 0x3e, 0x1e, 0x66, 0xee,
|
||||
0xe8, 0x00, 0xd6, 0x40, 0x31, 0xe4, 0x03, 0x65, 0x44, 0xd5, 0x93, 0x9f, 0x10, 0x81, 0xd2, 0xe1,
|
||||
0x88, 0x06, 0xdc, 0x5c, 0x68, 0x14, 0x9b, 0x4b, 0x9b, 0x77, 0x5b, 0x7a, 0x9e, 0x5a, 0x72, 0x9e,
|
||||
0x72, 0x6b, 0xba, 0x8c, 0x50, 0xf7, 0xd1, 0x69, 0x62, 0x17, 0xde, 0x7f, 0xb1, 0x9b, 0x03, 0x22,
|
||||
0x8e, 0x46, 0xfd, 0x96, 0xcf, 0xc2, 0x76, 0x36, 0x7c, 0xfa, 0xf5, 0x90, 0x07, 0xaf, 0xb2, 0xc1,
|
||||
0x92, 0x0b, 0xb8, 0xa7, 0x2b, 0x3b, 0x9f, 0x0d, 0x70, 0x67, 0x9b, 0x0c, 0xe2, 0x7f, 0x60, 0xd8,
|
||||
0x2a, 0x58, 0xf0, 0x33, 0x8a, 0xcc, 0xb3, 0x3c, 0xfe, 0x35, 0xdb, 0x32, 0x83, 0xca, 0xb9, 0x41,
|
||||
0xce, 0x3b, 0x03, 0xdc, 0xde, 0x8b, 0x02, 0x24, 0x70, 0x47, 0xba, 0xff, 0xdb, 0xca, 0x37, 0xc0,
|
||||
0x22, 0xc5, 0xc7, 0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b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x63, 0xde, 0x63, 0x60, 0x79, 0x06, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *StoreCodeProposal) Equal(that interface{}) bool {
|
||||
|
@ -493,7 +491,7 @@ func (this *InstantiateContractProposal) Equal(that interface{}) bool {
|
|||
if this.Label != that1.Label {
|
||||
return false
|
||||
}
|
||||
if !bytes.Equal(this.InitMsg, that1.InitMsg) {
|
||||
if !bytes.Equal(this.Msg, that1.Msg) {
|
||||
return false
|
||||
}
|
||||
if len(this.Funds) != len(that1.Funds) {
|
||||
|
@ -540,7 +538,7 @@ func (this *MigrateContractProposal) Equal(that interface{}) bool {
|
|||
if this.CodeID != that1.CodeID {
|
||||
return false
|
||||
}
|
||||
if !bytes.Equal(this.MigrateMsg, that1.MigrateMsg) {
|
||||
if !bytes.Equal(this.Msg, that1.Msg) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
@ -789,10 +787,10 @@ func (m *InstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, er
|
|||
dAtA[i] = 0x42
|
||||
}
|
||||
}
|
||||
if len(m.InitMsg) > 0 {
|
||||
i -= len(m.InitMsg)
|
||||
copy(dAtA[i:], m.InitMsg)
|
||||
i = encodeVarintProposal(dAtA, i, uint64(len(m.InitMsg)))
|
||||
if len(m.Msg) > 0 {
|
||||
i -= len(m.Msg)
|
||||
copy(dAtA[i:], m.Msg)
|
||||
i = encodeVarintProposal(dAtA, i, uint64(len(m.Msg)))
|
||||
i--
|
||||
dAtA[i] = 0x3a
|
||||
}
|
||||
|
@ -859,10 +857,10 @@ func (m *MigrateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.MigrateMsg) > 0 {
|
||||
i -= len(m.MigrateMsg)
|
||||
copy(dAtA[i:], m.MigrateMsg)
|
||||
i = encodeVarintProposal(dAtA, i, uint64(len(m.MigrateMsg)))
|
||||
if len(m.Msg) > 0 {
|
||||
i -= len(m.Msg)
|
||||
copy(dAtA[i:], m.Msg)
|
||||
i = encodeVarintProposal(dAtA, i, uint64(len(m.Msg)))
|
||||
i--
|
||||
dAtA[i] = 0x32
|
||||
}
|
||||
|
@ -1184,7 +1182,7 @@ func (m *InstantiateContractProposal) Size() (n int) {
|
|||
if l > 0 {
|
||||
n += 1 + l + sovProposal(uint64(l))
|
||||
}
|
||||
l = len(m.InitMsg)
|
||||
l = len(m.Msg)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovProposal(uint64(l))
|
||||
}
|
||||
|
@ -1222,7 +1220,7 @@ func (m *MigrateContractProposal) Size() (n int) {
|
|||
if m.CodeID != 0 {
|
||||
n += 1 + sovProposal(uint64(m.CodeID))
|
||||
}
|
||||
l = len(m.MigrateMsg)
|
||||
l = len(m.Msg)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovProposal(uint64(l))
|
||||
}
|
||||
|
@ -1819,7 +1817,7 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
case 7:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field InitMsg", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
|
||||
}
|
||||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
|
@ -1846,9 +1844,9 @@ func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error {
|
|||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.InitMsg = append(m.InitMsg[:0], dAtA[iNdEx:postIndex]...)
|
||||
if m.InitMsg == nil {
|
||||
m.InitMsg = []byte{}
|
||||
m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...)
|
||||
if m.Msg == nil {
|
||||
m.Msg = []byte{}
|
||||
}
|
||||
iNdEx = postIndex
|
||||
case 8:
|
||||
|
@ -2084,7 +2082,7 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
case 6:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field MigrateMsg", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
|
||||
}
|
||||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
|
@ -2111,9 +2109,9 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error {
|
|||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.MigrateMsg = append(m.MigrateMsg[:0], dAtA[iNdEx:postIndex]...)
|
||||
if m.MigrateMsg == nil {
|
||||
m.MigrateMsg = []byte{}
|
||||
m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...)
|
||||
if m.Msg == nil {
|
||||
m.Msg = []byte{}
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue