Rename 2 fields and regenerate protobuf

This commit is contained in:
Ethan Frey
2021-07-27 09:24:29 +02:00
parent 9a6f2b5c11
commit 1fa2165806
3 changed files with 76 additions and 78 deletions

View File

@@ -340,7 +340,7 @@ code id.
| `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 contract 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 |
@@ -375,7 +375,7 @@ MsgMigrateContract runs a code upgrade/ downgrade for a smart contract
| `sender` | [string](#string) | | Sender is the that actor that signed the messages |
| `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 |

View File

@@ -57,8 +57,8 @@ message MsgInstantiateContract {
uint64 code_id = 3 [ (gogoproto.customname) = "CodeID" ];
// Label is optional metadata to be stored with a contract instance.
string label = 4;
// InitMsg json encoded message to be passed to the contract on instantiation
bytes init_msg = 5;
// Msg json encoded message to be passed to the contract on instantiation
bytes msg = 5;
// Funds coins that are transferred to the contract on instantiation
repeated cosmos.base.v1beta1.Coin funds = 6 [
(gogoproto.nullable) = false,
@@ -102,8 +102,8 @@ message MsgMigrateContract {
string contract = 2;
// CodeID references the new WASM code
uint64 code_id = 3 [ (gogoproto.customname) = "CodeID" ];
// MigrateMsg json encoded message to be passed to the contract on migration
bytes migrate_msg = 4;
// Msg json encoded message to be passed to the contract on migration
bytes msg = 4;
}
// MsgMigrateContractResponse returns contract migration result data.

View File

@@ -129,8 +129,8 @@ type MsgInstantiateContract struct {
CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
// Label is optional metadata to be stored with a contract instance.
Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
// InitMsg json encoded message to be passed to the contract on instantiation
InitMsg []byte `protobuf:"bytes,5,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,5,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,6,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"`
}
@@ -301,8 +301,8 @@ type MsgMigrateContract struct {
Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
// CodeID references the new WASM code
CodeID uint64 `protobuf:"varint,3,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,4,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,4,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (m *MsgMigrateContract) Reset() { *m = MsgMigrateContract{} }
@@ -554,56 +554,54 @@ func init() {
func init() { proto.RegisterFile("cosmwasm/wasm/v1beta1/tx.proto", fileDescriptor_b74028d4038589a4) }
var fileDescriptor_b74028d4038589a4 = []byte{
// 769 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xd3, 0x4c,
0x14, 0x8d, 0xbf, 0xfc, 0x35, 0x37, 0xf9, 0x4a, 0x65, 0xda, 0xe2, 0x1a, 0xc9, 0x09, 0x29, 0xa0,
0x20, 0x68,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, 0x00, 0xff, 0xff, 0xfb, 0xb3, 0x1e, 0xb6, 0x60, 0x08, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -1003,10 +1001,10 @@ func (m *MsgInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
dAtA[i] = 0x32
}
}
if len(m.InitMsg) > 0 {
i -= len(m.InitMsg)
copy(dAtA[i:], m.InitMsg)
i = encodeVarintTx(dAtA, i, uint64(len(m.InitMsg)))
if len(m.Msg) > 0 {
i -= len(m.Msg)
copy(dAtA[i:], m.Msg)
i = encodeVarintTx(dAtA, i, uint64(len(m.Msg)))
i--
dAtA[i] = 0x2a
}
@@ -1184,10 +1182,10 @@ func (m *MsgMigrateContract) 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 = encodeVarintTx(dAtA, i, uint64(len(m.MigrateMsg)))
if len(m.Msg) > 0 {
i -= len(m.Msg)
copy(dAtA[i:], m.Msg)
i = encodeVarintTx(dAtA, i, uint64(len(m.Msg)))
i--
dAtA[i] = 0x22
}
@@ -1443,7 +1441,7 @@ func (m *MsgInstantiateContract) Size() (n int) {
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.InitMsg)
l = len(m.Msg)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
@@ -1530,7 +1528,7 @@ func (m *MsgMigrateContract) Size() (n int) {
if m.CodeID != 0 {
n += 1 + sovTx(uint64(m.CodeID))
}
l = len(m.MigrateMsg)
l = len(m.Msg)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
@@ -2043,7 +2041,7 @@ func (m *MsgInstantiateContract) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 5:
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 {
@@ -2070,9 +2068,9 @@ func (m *MsgInstantiateContract) 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 6:
@@ -2626,7 +2624,7 @@ func (m *MsgMigrateContract) Unmarshal(dAtA []byte) error {
}
case 4:
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 {
@@ -2653,9 +2651,9 @@ func (m *MsgMigrateContract) 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: