wormhole/wormchain/x/wormhole/types/tx.pb.go

2143 lines
56 KiB
Go

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: wormhole/tx.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type MsgExecuteGovernanceVAA struct {
Vaa []byte `protobuf:"bytes,1,opt,name=vaa,proto3" json:"vaa,omitempty"`
Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"`
}
func (m *MsgExecuteGovernanceVAA) Reset() { *m = MsgExecuteGovernanceVAA{} }
func (m *MsgExecuteGovernanceVAA) String() string { return proto.CompactTextString(m) }
func (*MsgExecuteGovernanceVAA) ProtoMessage() {}
func (*MsgExecuteGovernanceVAA) Descriptor() ([]byte, []int) {
return fileDescriptor_55f7aa067b0c517b, []int{0}
}
func (m *MsgExecuteGovernanceVAA) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgExecuteGovernanceVAA) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgExecuteGovernanceVAA.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgExecuteGovernanceVAA) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgExecuteGovernanceVAA.Merge(m, src)
}
func (m *MsgExecuteGovernanceVAA) XXX_Size() int {
return m.Size()
}
func (m *MsgExecuteGovernanceVAA) XXX_DiscardUnknown() {
xxx_messageInfo_MsgExecuteGovernanceVAA.DiscardUnknown(m)
}
var xxx_messageInfo_MsgExecuteGovernanceVAA proto.InternalMessageInfo
func (m *MsgExecuteGovernanceVAA) GetVaa() []byte {
if m != nil {
return m.Vaa
}
return nil
}
func (m *MsgExecuteGovernanceVAA) GetSigner() string {
if m != nil {
return m.Signer
}
return ""
}
type MsgExecuteGovernanceVAAResponse struct {
}
func (m *MsgExecuteGovernanceVAAResponse) Reset() { *m = MsgExecuteGovernanceVAAResponse{} }
func (m *MsgExecuteGovernanceVAAResponse) String() string { return proto.CompactTextString(m) }
func (*MsgExecuteGovernanceVAAResponse) ProtoMessage() {}
func (*MsgExecuteGovernanceVAAResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f7aa067b0c517b, []int{1}
}
func (m *MsgExecuteGovernanceVAAResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgExecuteGovernanceVAAResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgExecuteGovernanceVAAResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgExecuteGovernanceVAAResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgExecuteGovernanceVAAResponse.Merge(m, src)
}
func (m *MsgExecuteGovernanceVAAResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgExecuteGovernanceVAAResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgExecuteGovernanceVAAResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgExecuteGovernanceVAAResponse proto.InternalMessageInfo
type MsgRegisterAccountAsGuardian struct {
Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
GuardianPubkey *GuardianKey `protobuf:"bytes,2,opt,name=guardianPubkey,proto3" json:"guardianPubkey,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}
func (m *MsgRegisterAccountAsGuardian) Reset() { *m = MsgRegisterAccountAsGuardian{} }
func (m *MsgRegisterAccountAsGuardian) String() string { return proto.CompactTextString(m) }
func (*MsgRegisterAccountAsGuardian) ProtoMessage() {}
func (*MsgRegisterAccountAsGuardian) Descriptor() ([]byte, []int) {
return fileDescriptor_55f7aa067b0c517b, []int{2}
}
func (m *MsgRegisterAccountAsGuardian) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRegisterAccountAsGuardian) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRegisterAccountAsGuardian.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRegisterAccountAsGuardian) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRegisterAccountAsGuardian.Merge(m, src)
}
func (m *MsgRegisterAccountAsGuardian) XXX_Size() int {
return m.Size()
}
func (m *MsgRegisterAccountAsGuardian) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRegisterAccountAsGuardian.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRegisterAccountAsGuardian proto.InternalMessageInfo
func (m *MsgRegisterAccountAsGuardian) GetSigner() string {
if m != nil {
return m.Signer
}
return ""
}
func (m *MsgRegisterAccountAsGuardian) GetGuardianPubkey() *GuardianKey {
if m != nil {
return m.GuardianPubkey
}
return nil
}
func (m *MsgRegisterAccountAsGuardian) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
type MsgRegisterAccountAsGuardianResponse struct {
}
func (m *MsgRegisterAccountAsGuardianResponse) Reset() { *m = MsgRegisterAccountAsGuardianResponse{} }
func (m *MsgRegisterAccountAsGuardianResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRegisterAccountAsGuardianResponse) ProtoMessage() {}
func (*MsgRegisterAccountAsGuardianResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f7aa067b0c517b, []int{3}
}
func (m *MsgRegisterAccountAsGuardianResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRegisterAccountAsGuardianResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRegisterAccountAsGuardianResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRegisterAccountAsGuardianResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRegisterAccountAsGuardianResponse.Merge(m, src)
}
func (m *MsgRegisterAccountAsGuardianResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRegisterAccountAsGuardianResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRegisterAccountAsGuardianResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRegisterAccountAsGuardianResponse proto.InternalMessageInfo
// Same as from x/wasmd but with vaa auth
type MsgStoreCode struct {
// Signer is the that actor that signed the messages
Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
// WASMByteCode can be raw or gzip compressed
WASMByteCode []byte `protobuf:"bytes,2,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty"`
// vaa must be governance msg with payload containing sha3 256 hash of `wasm_byte_code`
Vaa []byte `protobuf:"bytes,3,opt,name=vaa,proto3" json:"vaa,omitempty"`
}
func (m *MsgStoreCode) Reset() { *m = MsgStoreCode{} }
func (m *MsgStoreCode) String() string { return proto.CompactTextString(m) }
func (*MsgStoreCode) ProtoMessage() {}
func (*MsgStoreCode) Descriptor() ([]byte, []int) {
return fileDescriptor_55f7aa067b0c517b, []int{4}
}
func (m *MsgStoreCode) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgStoreCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgStoreCode.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgStoreCode) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgStoreCode.Merge(m, src)
}
func (m *MsgStoreCode) XXX_Size() int {
return m.Size()
}
func (m *MsgStoreCode) XXX_DiscardUnknown() {
xxx_messageInfo_MsgStoreCode.DiscardUnknown(m)
}
var xxx_messageInfo_MsgStoreCode proto.InternalMessageInfo
func (m *MsgStoreCode) GetSigner() string {
if m != nil {
return m.Signer
}
return ""
}
func (m *MsgStoreCode) GetWASMByteCode() []byte {
if m != nil {
return m.WASMByteCode
}
return nil
}
func (m *MsgStoreCode) GetVaa() []byte {
if m != nil {
return m.Vaa
}
return nil
}
type MsgStoreCodeResponse struct {
// CodeID is the reference to the stored WASM code
CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
}
func (m *MsgStoreCodeResponse) Reset() { *m = MsgStoreCodeResponse{} }
func (m *MsgStoreCodeResponse) String() string { return proto.CompactTextString(m) }
func (*MsgStoreCodeResponse) ProtoMessage() {}
func (*MsgStoreCodeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f7aa067b0c517b, []int{5}
}
func (m *MsgStoreCodeResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgStoreCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgStoreCodeResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgStoreCodeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgStoreCodeResponse.Merge(m, src)
}
func (m *MsgStoreCodeResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgStoreCodeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgStoreCodeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgStoreCodeResponse proto.InternalMessageInfo
func (m *MsgStoreCodeResponse) GetCodeID() uint64 {
if m != nil {
return m.CodeID
}
return 0
}
// Same as from x/wasmd but with vaa auth
type MsgInstantiateContract struct {
// Signer is the that actor that signed the messages
Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
// CodeID is the reference to the stored WASM code
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"`
// Msg json encoded message to be passed to the contract on instantiation
Msg []byte `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"`
// vaa must be governance msg with payload containing sha3 256 hash of `bigEndian(code_id) || label || msg`
Vaa []byte `protobuf:"bytes,6,opt,name=vaa,proto3" json:"vaa,omitempty"`
}
func (m *MsgInstantiateContract) Reset() { *m = MsgInstantiateContract{} }
func (m *MsgInstantiateContract) String() string { return proto.CompactTextString(m) }
func (*MsgInstantiateContract) ProtoMessage() {}
func (*MsgInstantiateContract) Descriptor() ([]byte, []int) {
return fileDescriptor_55f7aa067b0c517b, []int{6}
}
func (m *MsgInstantiateContract) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgInstantiateContract.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgInstantiateContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgInstantiateContract.Merge(m, src)
}
func (m *MsgInstantiateContract) XXX_Size() int {
return m.Size()
}
func (m *MsgInstantiateContract) XXX_DiscardUnknown() {
xxx_messageInfo_MsgInstantiateContract.DiscardUnknown(m)
}
var xxx_messageInfo_MsgInstantiateContract proto.InternalMessageInfo
func (m *MsgInstantiateContract) GetSigner() string {
if m != nil {
return m.Signer
}
return ""
}
func (m *MsgInstantiateContract) GetCodeID() uint64 {
if m != nil {
return m.CodeID
}
return 0
}
func (m *MsgInstantiateContract) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *MsgInstantiateContract) GetMsg() []byte {
if m != nil {
return m.Msg
}
return nil
}
func (m *MsgInstantiateContract) GetVaa() []byte {
if m != nil {
return m.Vaa
}
return nil
}
type MsgInstantiateContractResponse struct {
// Address is the bech32 address of the new contract instance.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Data contains base64-encoded bytes to returned from the contract
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}
func (m *MsgInstantiateContractResponse) Reset() { *m = MsgInstantiateContractResponse{} }
func (m *MsgInstantiateContractResponse) String() string { return proto.CompactTextString(m) }
func (*MsgInstantiateContractResponse) ProtoMessage() {}
func (*MsgInstantiateContractResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f7aa067b0c517b, []int{7}
}
func (m *MsgInstantiateContractResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgInstantiateContractResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgInstantiateContractResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgInstantiateContractResponse.Merge(m, src)
}
func (m *MsgInstantiateContractResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgInstantiateContractResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgInstantiateContractResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgInstantiateContractResponse proto.InternalMessageInfo
func (m *MsgInstantiateContractResponse) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *MsgInstantiateContractResponse) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*MsgExecuteGovernanceVAA)(nil), "wormhole_foundation.wormchain.wormhole.MsgExecuteGovernanceVAA")
proto.RegisterType((*MsgExecuteGovernanceVAAResponse)(nil), "wormhole_foundation.wormchain.wormhole.MsgExecuteGovernanceVAAResponse")
proto.RegisterType((*MsgRegisterAccountAsGuardian)(nil), "wormhole_foundation.wormchain.wormhole.MsgRegisterAccountAsGuardian")
proto.RegisterType((*MsgRegisterAccountAsGuardianResponse)(nil), "wormhole_foundation.wormchain.wormhole.MsgRegisterAccountAsGuardianResponse")
proto.RegisterType((*MsgStoreCode)(nil), "wormhole_foundation.wormchain.wormhole.MsgStoreCode")
proto.RegisterType((*MsgStoreCodeResponse)(nil), "wormhole_foundation.wormchain.wormhole.MsgStoreCodeResponse")
proto.RegisterType((*MsgInstantiateContract)(nil), "wormhole_foundation.wormchain.wormhole.MsgInstantiateContract")
proto.RegisterType((*MsgInstantiateContractResponse)(nil), "wormhole_foundation.wormchain.wormhole.MsgInstantiateContractResponse")
}
func init() { proto.RegisterFile("wormhole/tx.proto", fileDescriptor_55f7aa067b0c517b) }
var fileDescriptor_55f7aa067b0c517b = []byte{
// 594 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x51, 0x6b, 0xd3, 0x5e,
0x18, 0xc6, 0x77, 0xfe, 0xed, 0x3a, 0xf6, 0xfe, 0xcb, 0x98, 0xb1, 0xcc, 0x18, 0x47, 0x3a, 0xa3,
0x8c, 0xdd, 0xd8, 0xc0, 0x26, 0x82, 0x28, 0x4a, 0xbb, 0x69, 0x29, 0x1a, 0x91, 0x14, 0x14, 0xf4,
0xa2, 0x9c, 0x26, 0xc7, 0xd3, 0xb0, 0x36, 0xa7, 0xe4, 0x9c, 0x6c, 0xcd, 0x95, 0x1f, 0x41, 0xbf,
0x80, 0xe0, 0x37, 0x10, 0xbf, 0x85, 0x97, 0xbb, 0xf4, 0x6a, 0x48, 0xfb, 0x31, 0xbc, 0x91, 0x93,
0x34, 0x69, 0x91, 0x46, 0x56, 0xe7, 0xdd, 0x79, 0xcf, 0xc9, 0xfb, 0x7b, 0x9e, 0x27, 0xe7, 0x6d,
0x03, 0x57, 0x4e, 0x59, 0x30, 0xe8, 0xb1, 0x3e, 0x31, 0xc5, 0xa8, 0x36, 0x0c, 0x98, 0x60, 0xca,
0x6e, 0xba, 0xd5, 0x79, 0xc7, 0x42, 0xdf, 0xc5, 0xc2, 0x63, 0x7e, 0x4d, 0xee, 0x39, 0x3d, 0xec,
0x25, 0x2b, 0x79, 0xaa, 0x55, 0x28, 0xa3, 0x2c, 0x6e, 0x31, 0xe5, 0x2a, 0xe9, 0xd6, 0x6e, 0x64,
0x40, 0x1a, 0xe2, 0xc0, 0xf5, 0xb0, 0xdf, 0x39, 0x26, 0x51, 0x72, 0x68, 0x1c, 0xc2, 0x35, 0x8b,
0xd3, 0x27, 0x23, 0xe2, 0x84, 0x82, 0x34, 0xd9, 0x09, 0x09, 0x7c, 0xec, 0x3b, 0xe4, 0x55, 0xbd,
0xae, 0x6c, 0x42, 0xe1, 0x04, 0x63, 0x15, 0xed, 0xa0, 0xbd, 0xb2, 0x2d, 0x97, 0xca, 0x16, 0x94,
0xb8, 0x47, 0x7d, 0x12, 0xa8, 0xff, 0xed, 0xa0, 0xbd, 0x75, 0x7b, 0x5a, 0x19, 0x37, 0xa1, 0x9a,
0x03, 0xb1, 0x09, 0x1f, 0x32, 0x9f, 0x13, 0xe3, 0x2b, 0x82, 0x6d, 0x8b, 0x53, 0x9b, 0x50, 0x8f,
0x0b, 0x12, 0xd4, 0x1d, 0x87, 0x85, 0xbe, 0xa8, 0xf3, 0xe6, 0xd4, 0xd2, 0x1c, 0x1b, 0xcd, 0xb3,
0x95, 0xb7, 0xb0, 0x91, 0xda, 0x7e, 0x19, 0x76, 0x8f, 0x49, 0x14, 0x6b, 0xff, 0xbf, 0x7f, 0x50,
0xbb, 0xd8, 0x4b, 0xa9, 0xa5, 0x0a, 0xcf, 0x48, 0x64, 0xff, 0x86, 0x52, 0xb6, 0x61, 0x5d, 0xca,
0x60, 0x11, 0x06, 0x44, 0x2d, 0xc4, 0x41, 0x67, 0x1b, 0xc6, 0x2e, 0xdc, 0xfe, 0x93, 0xe5, 0x2c,
0xdb, 0x10, 0xca, 0x16, 0xa7, 0x6d, 0xc1, 0x02, 0x72, 0xc8, 0x5c, 0x92, 0x1b, 0xe5, 0x1e, 0x6c,
0x9c, 0x62, 0x3e, 0xe8, 0x74, 0x23, 0x41, 0x3a, 0x0e, 0x73, 0x49, 0x1c, 0xa5, 0xdc, 0xd8, 0x1c,
0x9f, 0x57, 0xcb, 0xaf, 0xeb, 0x6d, 0xab, 0x11, 0x89, 0x98, 0x60, 0x97, 0xe5, 0x73, 0x69, 0x95,
0x5e, 0x44, 0x21, 0xbb, 0x08, 0xe3, 0x01, 0x54, 0xe6, 0x15, 0x53, 0x27, 0xca, 0x2d, 0x58, 0x93,
0xdc, 0x8e, 0xe7, 0xc6, 0xd2, 0xc5, 0x06, 0x8c, 0xcf, 0xab, 0x25, 0xf9, 0x48, 0xeb, 0xc8, 0x2e,
0xc9, 0xa3, 0x96, 0x6b, 0x7c, 0x40, 0xb0, 0x65, 0x71, 0xda, 0xf2, 0xb9, 0xc0, 0xbe, 0xf0, 0xb0,
0x54, 0xf1, 0x45, 0x80, 0x1d, 0x91, 0xeb, 0x7c, 0x8e, 0x5b, 0xc8, 0xe3, 0x2a, 0x15, 0x58, 0xed,
0xe3, 0x2e, 0xe9, 0xab, 0xc5, 0xb8, 0x37, 0x29, 0xa4, 0xf9, 0x01, 0xa7, 0xea, 0x6a, 0x62, 0x7e,
0xc0, 0x69, 0x1a, 0xa7, 0x34, 0x8b, 0xf3, 0x02, 0xf4, 0xc5, 0x86, 0xb2, 0x60, 0x2a, 0xac, 0x61,
0xd7, 0x0d, 0x08, 0xe7, 0x53, 0x67, 0x69, 0xa9, 0x28, 0x50, 0x74, 0xb1, 0xc0, 0xc9, 0xab, 0xb4,
0xe3, 0xf5, 0xfe, 0xcf, 0x22, 0x14, 0x2c, 0x4e, 0x95, 0xcf, 0x08, 0x2a, 0x0b, 0x47, 0xfb, 0xf1,
0x45, 0x87, 0x27, 0x67, 0xac, 0xb5, 0xe6, 0x25, 0x01, 0x59, 0xb0, 0x2f, 0x08, 0xae, 0xe7, 0xff,
0x28, 0x8e, 0x96, 0x90, 0xc9, 0xa5, 0x68, 0xcf, 0xff, 0x05, 0x25, 0x73, 0xfc, 0x1e, 0xd6, 0x67,
0xa3, 0x7e, 0x77, 0x09, 0x74, 0xd6, 0xa5, 0x3d, 0xfc, 0x9b, 0xae, 0xcc, 0xc0, 0x27, 0x04, 0x57,
0x17, 0x0d, 0xef, 0xa3, 0x25, 0xa8, 0x0b, 0xfa, 0xb5, 0xa7, 0x97, 0xeb, 0x4f, 0xfd, 0x35, 0xda,
0xdf, 0xc6, 0x3a, 0x3a, 0x1b, 0xeb, 0xe8, 0xc7, 0x58, 0x47, 0x1f, 0x27, 0xfa, 0xca, 0xd9, 0x44,
0x5f, 0xf9, 0x3e, 0xd1, 0x57, 0xde, 0xdc, 0xa7, 0x9e, 0xe8, 0x85, 0xdd, 0x9a, 0xc3, 0x06, 0x66,
0x4a, 0xbb, 0x33, 0xd3, 0x32, 0x33, 0x2d, 0x73, 0x64, 0xce, 0xbe, 0x02, 0xd1, 0x90, 0xf0, 0x6e,
0x29, 0xfe, 0xbb, 0x3e, 0xf8, 0x15, 0x00, 0x00, 0xff, 0xff, 0x58, 0x04, 0x5c, 0x24, 0x1e, 0x06,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
ExecuteGovernanceVAA(ctx context.Context, in *MsgExecuteGovernanceVAA, opts ...grpc.CallOption) (*MsgExecuteGovernanceVAAResponse, error)
RegisterAccountAsGuardian(ctx context.Context, in *MsgRegisterAccountAsGuardian, opts ...grpc.CallOption) (*MsgRegisterAccountAsGuardianResponse, error)
// StoreCode to submit Wasm code to the system
StoreCode(ctx context.Context, in *MsgStoreCode, opts ...grpc.CallOption) (*MsgStoreCodeResponse, error)
// Instantiate creates a new smart contract instance for the given code id.
InstantiateContract(ctx context.Context, in *MsgInstantiateContract, opts ...grpc.CallOption) (*MsgInstantiateContractResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) ExecuteGovernanceVAA(ctx context.Context, in *MsgExecuteGovernanceVAA, opts ...grpc.CallOption) (*MsgExecuteGovernanceVAAResponse, error) {
out := new(MsgExecuteGovernanceVAAResponse)
err := c.cc.Invoke(ctx, "/wormhole_foundation.wormchain.wormhole.Msg/ExecuteGovernanceVAA", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RegisterAccountAsGuardian(ctx context.Context, in *MsgRegisterAccountAsGuardian, opts ...grpc.CallOption) (*MsgRegisterAccountAsGuardianResponse, error) {
out := new(MsgRegisterAccountAsGuardianResponse)
err := c.cc.Invoke(ctx, "/wormhole_foundation.wormchain.wormhole.Msg/RegisterAccountAsGuardian", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) StoreCode(ctx context.Context, in *MsgStoreCode, opts ...grpc.CallOption) (*MsgStoreCodeResponse, error) {
out := new(MsgStoreCodeResponse)
err := c.cc.Invoke(ctx, "/wormhole_foundation.wormchain.wormhole.Msg/StoreCode", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) InstantiateContract(ctx context.Context, in *MsgInstantiateContract, opts ...grpc.CallOption) (*MsgInstantiateContractResponse, error) {
out := new(MsgInstantiateContractResponse)
err := c.cc.Invoke(ctx, "/wormhole_foundation.wormchain.wormhole.Msg/InstantiateContract", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
ExecuteGovernanceVAA(context.Context, *MsgExecuteGovernanceVAA) (*MsgExecuteGovernanceVAAResponse, error)
RegisterAccountAsGuardian(context.Context, *MsgRegisterAccountAsGuardian) (*MsgRegisterAccountAsGuardianResponse, error)
// StoreCode to submit Wasm code to the system
StoreCode(context.Context, *MsgStoreCode) (*MsgStoreCodeResponse, error)
// Instantiate creates a new smart contract instance for the given code id.
InstantiateContract(context.Context, *MsgInstantiateContract) (*MsgInstantiateContractResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) ExecuteGovernanceVAA(ctx context.Context, req *MsgExecuteGovernanceVAA) (*MsgExecuteGovernanceVAAResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ExecuteGovernanceVAA not implemented")
}
func (*UnimplementedMsgServer) RegisterAccountAsGuardian(ctx context.Context, req *MsgRegisterAccountAsGuardian) (*MsgRegisterAccountAsGuardianResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RegisterAccountAsGuardian not implemented")
}
func (*UnimplementedMsgServer) StoreCode(ctx context.Context, req *MsgStoreCode) (*MsgStoreCodeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StoreCode not implemented")
}
func (*UnimplementedMsgServer) InstantiateContract(ctx context.Context, req *MsgInstantiateContract) (*MsgInstantiateContractResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method InstantiateContract not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_ExecuteGovernanceVAA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgExecuteGovernanceVAA)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ExecuteGovernanceVAA(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/wormhole_foundation.wormchain.wormhole.Msg/ExecuteGovernanceVAA",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ExecuteGovernanceVAA(ctx, req.(*MsgExecuteGovernanceVAA))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RegisterAccountAsGuardian_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRegisterAccountAsGuardian)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RegisterAccountAsGuardian(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/wormhole_foundation.wormchain.wormhole.Msg/RegisterAccountAsGuardian",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RegisterAccountAsGuardian(ctx, req.(*MsgRegisterAccountAsGuardian))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_StoreCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgStoreCode)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).StoreCode(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/wormhole_foundation.wormchain.wormhole.Msg/StoreCode",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).StoreCode(ctx, req.(*MsgStoreCode))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_InstantiateContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgInstantiateContract)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).InstantiateContract(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/wormhole_foundation.wormchain.wormhole.Msg/InstantiateContract",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).InstantiateContract(ctx, req.(*MsgInstantiateContract))
}
return interceptor(ctx, in, info, handler)
}
var _Msg_serviceDesc = grpc.ServiceDesc{
ServiceName: "wormhole_foundation.wormchain.wormhole.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ExecuteGovernanceVAA",
Handler: _Msg_ExecuteGovernanceVAA_Handler,
},
{
MethodName: "RegisterAccountAsGuardian",
Handler: _Msg_RegisterAccountAsGuardian_Handler,
},
{
MethodName: "StoreCode",
Handler: _Msg_StoreCode_Handler,
},
{
MethodName: "InstantiateContract",
Handler: _Msg_InstantiateContract_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "wormhole/tx.proto",
}
func (m *MsgExecuteGovernanceVAA) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgExecuteGovernanceVAA) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgExecuteGovernanceVAA) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Signer) > 0 {
i -= len(m.Signer)
copy(dAtA[i:], m.Signer)
i = encodeVarintTx(dAtA, i, uint64(len(m.Signer)))
i--
dAtA[i] = 0x12
}
if len(m.Vaa) > 0 {
i -= len(m.Vaa)
copy(dAtA[i:], m.Vaa)
i = encodeVarintTx(dAtA, i, uint64(len(m.Vaa)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgExecuteGovernanceVAAResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgExecuteGovernanceVAAResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgExecuteGovernanceVAAResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgRegisterAccountAsGuardian) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRegisterAccountAsGuardian) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRegisterAccountAsGuardian) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Signature) > 0 {
i -= len(m.Signature)
copy(dAtA[i:], m.Signature)
i = encodeVarintTx(dAtA, i, uint64(len(m.Signature)))
i--
dAtA[i] = 0x1a
}
if m.GuardianPubkey != nil {
{
size, err := m.GuardianPubkey.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTx(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
if len(m.Signer) > 0 {
i -= len(m.Signer)
copy(dAtA[i:], m.Signer)
i = encodeVarintTx(dAtA, i, uint64(len(m.Signer)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgRegisterAccountAsGuardianResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRegisterAccountAsGuardianResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRegisterAccountAsGuardianResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgStoreCode) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgStoreCode) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgStoreCode) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Vaa) > 0 {
i -= len(m.Vaa)
copy(dAtA[i:], m.Vaa)
i = encodeVarintTx(dAtA, i, uint64(len(m.Vaa)))
i--
dAtA[i] = 0x1a
}
if len(m.WASMByteCode) > 0 {
i -= len(m.WASMByteCode)
copy(dAtA[i:], m.WASMByteCode)
i = encodeVarintTx(dAtA, i, uint64(len(m.WASMByteCode)))
i--
dAtA[i] = 0x12
}
if len(m.Signer) > 0 {
i -= len(m.Signer)
copy(dAtA[i:], m.Signer)
i = encodeVarintTx(dAtA, i, uint64(len(m.Signer)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgStoreCodeResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgStoreCodeResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgStoreCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.CodeID != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.CodeID))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *MsgInstantiateContract) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgInstantiateContract) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Vaa) > 0 {
i -= len(m.Vaa)
copy(dAtA[i:], m.Vaa)
i = encodeVarintTx(dAtA, i, uint64(len(m.Vaa)))
i--
dAtA[i] = 0x32
}
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
}
if len(m.Label) > 0 {
i -= len(m.Label)
copy(dAtA[i:], m.Label)
i = encodeVarintTx(dAtA, i, uint64(len(m.Label)))
i--
dAtA[i] = 0x22
}
if m.CodeID != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.CodeID))
i--
dAtA[i] = 0x18
}
if len(m.Signer) > 0 {
i -= len(m.Signer)
copy(dAtA[i:], m.Signer)
i = encodeVarintTx(dAtA, i, uint64(len(m.Signer)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgInstantiateContractResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Data) > 0 {
i -= len(m.Data)
copy(dAtA[i:], m.Data)
i = encodeVarintTx(dAtA, i, uint64(len(m.Data)))
i--
dAtA[i] = 0x12
}
if len(m.Address) > 0 {
i -= len(m.Address)
copy(dAtA[i:], m.Address)
i = encodeVarintTx(dAtA, i, uint64(len(m.Address)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
offset -= sovTx(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *MsgExecuteGovernanceVAA) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Vaa)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Signer)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgExecuteGovernanceVAAResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgRegisterAccountAsGuardian) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Signer)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.GuardianPubkey != nil {
l = m.GuardianPubkey.Size()
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Signature)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgRegisterAccountAsGuardianResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgStoreCode) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Signer)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.WASMByteCode)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Vaa)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgStoreCodeResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.CodeID != 0 {
n += 1 + sovTx(uint64(m.CodeID))
}
return n
}
func (m *MsgInstantiateContract) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Signer)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.CodeID != 0 {
n += 1 + sovTx(uint64(m.CodeID))
}
l = len(m.Label)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Msg)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Vaa)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgInstantiateContractResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Address)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Data)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func sovTx(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgExecuteGovernanceVAA) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgExecuteGovernanceVAA: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgExecuteGovernanceVAA: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Vaa", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Vaa = append(m.Vaa[:0], dAtA[iNdEx:postIndex]...)
if m.Vaa == nil {
m.Vaa = []byte{}
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
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 ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Signer = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgExecuteGovernanceVAAResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgExecuteGovernanceVAAResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgExecuteGovernanceVAAResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRegisterAccountAsGuardian) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRegisterAccountAsGuardian: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRegisterAccountAsGuardian: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
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 ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Signer = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field GuardianPubkey", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.GuardianPubkey == nil {
m.GuardianPubkey = &GuardianKey{}
}
if err := m.GuardianPubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...)
if m.Signature == nil {
m.Signature = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRegisterAccountAsGuardianResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRegisterAccountAsGuardianResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRegisterAccountAsGuardianResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgStoreCode) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgStoreCode: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgStoreCode: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
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 ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Signer = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field WASMByteCode", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.WASMByteCode = append(m.WASMByteCode[:0], dAtA[iNdEx:postIndex]...)
if m.WASMByteCode == nil {
m.WASMByteCode = []byte{}
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Vaa", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Vaa = append(m.Vaa[:0], dAtA[iNdEx:postIndex]...)
if m.Vaa == nil {
m.Vaa = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgStoreCodeResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgStoreCodeResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgStoreCodeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CodeID", wireType)
}
m.CodeID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CodeID |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgInstantiateContract) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgInstantiateContract: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgInstantiateContract: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
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 ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Signer = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CodeID", wireType)
}
m.CodeID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CodeID |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
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 ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Label = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...)
if m.Msg == nil {
m.Msg = []byte{}
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Vaa", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Vaa = append(m.Vaa[:0], dAtA[iNdEx:postIndex]...)
if m.Vaa == nil {
m.Vaa = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgInstantiateContractResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgInstantiateContractResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgInstantiateContractResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
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 ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Address = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
if m.Data == nil {
m.Data = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTx(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTx
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTx
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTx
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTx = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)