|
|
|
@ -131,12 +131,9 @@ type MigrateContractProposal struct {
|
|
|
|
|
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
|
|
|
|
// Description is a human readable text
|
|
|
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
|
|
|
// FIXME: I think this is unused? Migrate has no sender
|
|
|
|
|
// RunAs is the address that is passed to the contract's environment as sender
|
|
|
|
|
RunAs string `protobuf:"bytes,3,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"`
|
|
|
|
|
// Contract is the address of the smart contract
|
|
|
|
|
Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
|
|
|
|
|
// CodeID references the new WASM code
|
|
|
|
|
// CodeID references the new WASM codesudo
|
|
|
|
|
CodeID uint64 `protobuf:"varint,5,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
|
|
|
|
|
// Msg json encoded message to be passed to the contract on migration
|
|
|
|
|
Msg RawContractMessage `protobuf:"bytes,6,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"`
|
|
|
|
@ -229,7 +226,7 @@ type ExecuteContractProposal struct {
|
|
|
|
|
RunAs string `protobuf:"bytes,3,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"`
|
|
|
|
|
// Contract is the address of the smart contract
|
|
|
|
|
Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
|
|
|
|
|
// Msg json encoded message to be passed to the contract as sudo
|
|
|
|
|
// Msg json encoded message to be passed to the contract as execute
|
|
|
|
|
Msg RawContractMessage `protobuf:"bytes,5,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -453,53 +450,54 @@ func init() {
|
|
|
|
|
func init() { proto.RegisterFile("cosmwasm/wasm/v1/proposal.proto", fileDescriptor_be6422d717c730cb) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_be6422d717c730cb = []byte{
|
|
|
|
|
// 732 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0xc1, 0x6e, 0xd3, 0x40,
|
|
|
|
|
0x10, 0xcd, 0x36, 0x89, 0x93, 0x6e, 0x23, 0x08, 0x26, 0x6d, 0x43, 0x41, 0x76, 0x64, 0xa4, 0xca,
|
|
|
|
|
0x17, 0x6c, 0x52, 0x24, 0x04, 0xdc, 0xe2, 0xc0, 0xa1, 0x15, 0x95, 0x2a, 0x57, 0x55, 0x25, 0x2e,
|
|
|
|
|
0xd1, 0xc6, 0xde, 0xa6, 0x16, 0xb1, 0xd7, 0xf2, 0x6e, 0x9a, 0xe6, 0x2f, 0x38, 0x70, 0xe4, 0x03,
|
|
|
|
|
0x10, 0x07, 0x10, 0x7f, 0x51, 0x71, 0xaa, 0xc4, 0xa5, 0x27, 0x43, 0xd3, 0x3f, 0xc8, 0x11, 0x09,
|
|
|
|
|
0x09, 0xad, 0xd7, 0x09, 0x69, 0x41, 0x2d, 0x12, 0x05, 0xc4, 0xc5, 0xc9, 0x78, 0xde, 0xf8, 0xbd,
|
|
|
|
|
0x79, 0x9e, 0xf1, 0x42, 0xd5, 0x21, 0xd4, 0xef, 0x23, 0xea, 0x9b, 0xc9, 0x65, 0xaf, 0x6e, 0x86,
|
|
|
|
|
0x11, 0x09, 0x09, 0x45, 0x5d, 0x23, 0x8c, 0x08, 0x23, 0x72, 0x79, 0x0c, 0x30, 0x92, 0xcb, 0x5e,
|
|
|
|
|
0x7d, 0xa9, 0xd2, 0x21, 0x1d, 0x92, 0x24, 0x4d, 0xfe, 0x4f, 0xe0, 0x96, 0x14, 0x8e, 0x23, 0xd4,
|
|
|
|
|
0x6c, 0x23, 0x8a, 0xcd, 0xbd, 0x7a, 0x1b, 0x33, 0x54, 0x37, 0x1d, 0xe2, 0x05, 0x69, 0xfe, 0xd6,
|
|
|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f, 0x87, 0xdc, 0x35, 0xdf, 0xd8, 0x78, 0x05, 0x60, 0x75, 0x27,
|
|
|
|
|
0x20, 0xc2, 0x90, 0x6c, 0x06, 0xb4, 0x7e, 0x09, 0xc8, 0xa9, 0x4e, 0x12, 0xbd, 0x22, 0x77, 0x92,
|
|
|
|
|
0xbe, 0x36, 0xa6, 0xd0, 0xff, 0x7d, 0x05, 0xda, 0x59, 0x99, 0x24, 0xba, 0x2a, 0xab, 0xe7, 0x92,
|
|
|
|
|
0xc6, 0x65, 0x4a, 0xff, 0x0b, 0x4a, 0xe9, 0x58, 0x88, 0xcf, 0x9b, 0x37, 0x0b, 0x8e, 0x36, 0x4e,
|
|
|
|
|
0xf4, 0x92, 0x9c, 0x0b, 0x36, 0x49, 0xf4, 0x9f, 0xe5, 0x0a, 0xd3, 0x22, 0xc3, 0x2d, 0xc9, 0x59,
|
|
|
|
|
0x61, 0xc6, 0x6b, 0x00, 0xd5, 0x3d, 0x12, 0xfd, 0x48, 0x9c, 0x9d, 0x87, 0x27, 0xe7, 0x5a, 0xee,
|
|
|
|
|
0xec, 0x5c, 0xcb, 0x3d, 0x1f, 0x6b, 0xe0, 0x64, 0xac, 0x81, 0xd3, 0xb1, 0x06, 0xde, 0x8f, 0x35,
|
|
|
|
|
0xf0, 0xe4, 0x42, 0xcb, 0x9d, 0x5e, 0x68, 0xb9, 0xb3, 0x0b, 0x2d, 0xf7, 0x68, 0x7d, 0xee, 0x30,
|
|
|
|
|
0x6b, 0x53, 0x16, 0xee, 0x4f, 0x6f, 0x44, 0xdf, 0x3e, 0x96, 0x37, 0x63, 0x7a, 0xa0, 0x75, 0x95,
|
|
|
|
|
0xf4, 0x5e, 0xfc, 0xe7, 0x53, 0x00, 0x00, 0x00, 0xff, 0xff, 0x34, 0xa1, 0x57, 0x17, 0xa0, 0x07,
|
|
|
|
|
0x00, 0x00,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (this *StoreCodeProposal) Equal(that interface{}) bool {
|
|
|
|
@ -613,9 +611,6 @@ func (this *MigrateContractProposal) Equal(that interface{}) bool {
|
|
|
|
|
if this.Description != that1.Description {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
if this.RunAs != that1.RunAs {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
if this.Contract != that1.Contract {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
@ -1015,13 +1010,6 @@ func (m *MigrateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
|
}
|
|
|
|
|
if len(m.RunAs) > 0 {
|
|
|
|
|
i -= len(m.RunAs)
|
|
|
|
|
copy(dAtA[i:], m.RunAs)
|
|
|
|
|
i = encodeVarintProposal(dAtA, i, uint64(len(m.RunAs)))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
|
}
|
|
|
|
|
if len(m.Description) > 0 {
|
|
|
|
|
i -= len(m.Description)
|
|
|
|
|
copy(dAtA[i:], m.Description)
|
|
|
|
@ -1449,10 +1437,6 @@ func (m *MigrateContractProposal) Size() (n int) {
|
|
|
|
|
if l > 0 {
|
|
|
|
|
n += 1 + l + sovProposal(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
l = len(m.RunAs)
|
|
|
|
|
if l > 0 {
|
|
|
|
|
n += 1 + l + sovProposal(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
l = len(m.Contract)
|
|
|
|
|
if l > 0 {
|
|
|
|
|
n += 1 + l + sovProposal(uint64(l))
|
|
|
|
@ -2227,38 +2211,6 @@ func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error {
|
|
|
|
|
}
|
|
|
|
|
m.Description = string(dAtA[iNdEx:postIndex])
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 3:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RunAs", wireType)
|
|
|
|
|
}
|
|
|
|
|
var stringLen uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowProposal
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
|
if intStringLen < 0 {
|
|
|
|
|
return ErrInvalidLengthProposal
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthProposal
|
|
|
|
|
}
|
|
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.RunAs = string(dAtA[iNdEx:postIndex])
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 4:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType)
|
|
|
|
|