2343 lines
60 KiB
Go
2343 lines
60 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: cosmos/accounts/v1/tx.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
|
|
types "github.com/cosmos/cosmos-sdk/types"
|
|
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
|
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
|
grpc1 "github.com/cosmos/gogoproto/grpc"
|
|
proto "github.com/cosmos/gogoproto/proto"
|
|
any "github.com/cosmos/gogoproto/types/any"
|
|
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
|
|
|
|
// MsgInit defines the Create request type for the Msg/Create RPC method.
|
|
type MsgInit struct {
|
|
// sender is the address of the sender of this message.
|
|
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
|
|
// account_type is the type of the account to be created.
|
|
AccountType string `protobuf:"bytes,2,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
|
|
// message is the message to be sent to the account.
|
|
Message *any.Any `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
// funds contains the coins that the account wants to
|
|
// send alongside the request.
|
|
Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"`
|
|
// address_seed can be used to deterministically create the address of the account.
|
|
// If not present the address will be generated based on its associated account number.
|
|
AddressSeed []byte `protobuf:"bytes,5,opt,name=address_seed,json=addressSeed,proto3" json:"address_seed,omitempty"`
|
|
}
|
|
|
|
func (m *MsgInit) Reset() { *m = MsgInit{} }
|
|
func (m *MsgInit) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgInit) ProtoMessage() {}
|
|
func (*MsgInit) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_29c2b6d8a13d4189, []int{0}
|
|
}
|
|
func (m *MsgInit) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *MsgInit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_MsgInit.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 *MsgInit) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgInit.Merge(m, src)
|
|
}
|
|
func (m *MsgInit) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *MsgInit) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgInit.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgInit proto.InternalMessageInfo
|
|
|
|
func (m *MsgInit) GetSender() string {
|
|
if m != nil {
|
|
return m.Sender
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgInit) GetAccountType() string {
|
|
if m != nil {
|
|
return m.AccountType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgInit) GetMessage() *any.Any {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *MsgInit) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins {
|
|
if m != nil {
|
|
return m.Funds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *MsgInit) GetAddressSeed() []byte {
|
|
if m != nil {
|
|
return m.AddressSeed
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgInitResponse defines the Create response type for the Msg/Create RPC method.
|
|
type MsgInitResponse struct {
|
|
// account_address is the address of the newly created account.
|
|
AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
|
|
// response is the response returned by the account implementation.
|
|
Response *any.Any `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
|
|
}
|
|
|
|
func (m *MsgInitResponse) Reset() { *m = MsgInitResponse{} }
|
|
func (m *MsgInitResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgInitResponse) ProtoMessage() {}
|
|
func (*MsgInitResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_29c2b6d8a13d4189, []int{1}
|
|
}
|
|
func (m *MsgInitResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *MsgInitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_MsgInitResponse.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 *MsgInitResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgInitResponse.Merge(m, src)
|
|
}
|
|
func (m *MsgInitResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *MsgInitResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgInitResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgInitResponse proto.InternalMessageInfo
|
|
|
|
func (m *MsgInitResponse) GetAccountAddress() string {
|
|
if m != nil {
|
|
return m.AccountAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgInitResponse) GetResponse() *any.Any {
|
|
if m != nil {
|
|
return m.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgExecute defines the Execute request type for the Msg/Execute RPC method.
|
|
type MsgExecute struct {
|
|
// sender is the address of the sender of this message.
|
|
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
|
|
// target is the address of the account to be executed.
|
|
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
|
|
// message is the message to be sent to the account.
|
|
Message *any.Any `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
// funds contains the coins that the account wants to
|
|
// send alongside the request.
|
|
Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"`
|
|
}
|
|
|
|
func (m *MsgExecute) Reset() { *m = MsgExecute{} }
|
|
func (m *MsgExecute) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgExecute) ProtoMessage() {}
|
|
func (*MsgExecute) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_29c2b6d8a13d4189, []int{2}
|
|
}
|
|
func (m *MsgExecute) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *MsgExecute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_MsgExecute.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 *MsgExecute) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgExecute.Merge(m, src)
|
|
}
|
|
func (m *MsgExecute) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *MsgExecute) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgExecute.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgExecute proto.InternalMessageInfo
|
|
|
|
func (m *MsgExecute) GetSender() string {
|
|
if m != nil {
|
|
return m.Sender
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgExecute) GetTarget() string {
|
|
if m != nil {
|
|
return m.Target
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgExecute) GetMessage() *any.Any {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *MsgExecute) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins {
|
|
if m != nil {
|
|
return m.Funds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgExecuteResponse defines the Execute response type for the Msg/Execute RPC method.
|
|
type MsgExecuteResponse struct {
|
|
// response is the response returned by the account implementation.
|
|
Response *any.Any `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
|
|
}
|
|
|
|
func (m *MsgExecuteResponse) Reset() { *m = MsgExecuteResponse{} }
|
|
func (m *MsgExecuteResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgExecuteResponse) ProtoMessage() {}
|
|
func (*MsgExecuteResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_29c2b6d8a13d4189, []int{3}
|
|
}
|
|
func (m *MsgExecuteResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *MsgExecuteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_MsgExecuteResponse.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 *MsgExecuteResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgExecuteResponse.Merge(m, src)
|
|
}
|
|
func (m *MsgExecuteResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *MsgExecuteResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgExecuteResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgExecuteResponse proto.InternalMessageInfo
|
|
|
|
func (m *MsgExecuteResponse) GetResponse() *any.Any {
|
|
if m != nil {
|
|
return m.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgExecuteBundle defines the ExecuteBundle request type for the Msg/ExecuteBundle RPC method.
|
|
type MsgExecuteBundle struct {
|
|
// bundler defines the entity going through the standard TX flow
|
|
// to execute one or multiple UserOperations on behalf of others.
|
|
Bundler string `protobuf:"bytes,1,opt,name=bundler,proto3" json:"bundler,omitempty"`
|
|
// txs defines the txs to execute on behalf of other users.
|
|
Txs [][]byte `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
|
|
}
|
|
|
|
func (m *MsgExecuteBundle) Reset() { *m = MsgExecuteBundle{} }
|
|
func (m *MsgExecuteBundle) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgExecuteBundle) ProtoMessage() {}
|
|
func (*MsgExecuteBundle) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_29c2b6d8a13d4189, []int{4}
|
|
}
|
|
func (m *MsgExecuteBundle) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *MsgExecuteBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_MsgExecuteBundle.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 *MsgExecuteBundle) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgExecuteBundle.Merge(m, src)
|
|
}
|
|
func (m *MsgExecuteBundle) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *MsgExecuteBundle) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgExecuteBundle.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgExecuteBundle proto.InternalMessageInfo
|
|
|
|
func (m *MsgExecuteBundle) GetBundler() string {
|
|
if m != nil {
|
|
return m.Bundler
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgExecuteBundle) GetTxs() [][]byte {
|
|
if m != nil {
|
|
return m.Txs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// BundledTxResponse defines the response of a bundled tx.
|
|
// If the operation fails the error field will be populated, the used gas fields will also be
|
|
// populated depending on when the execution stopped. Bundler payment responses will be populated
|
|
// if the execution fails.
|
|
type BundledTxResponse struct {
|
|
// authentication_gas_used defines the gas used for the authentication part of the UserOperation.
|
|
AuthenticationGasUsed uint64 `protobuf:"varint,1,opt,name=authentication_gas_used,json=authenticationGasUsed,proto3" json:"authentication_gas_used,omitempty"`
|
|
// bundler_payment_gas_used defines the gas used for the bundler payment part of the UserOperation.
|
|
BundlerPaymentGasUsed uint64 `protobuf:"varint,2,opt,name=bundler_payment_gas_used,json=bundlerPaymentGasUsed,proto3" json:"bundler_payment_gas_used,omitempty"`
|
|
// bundler_payment_responses defines the responses of the bundler payment messages.
|
|
// It can be empty if the bundler does not need any form of payment.
|
|
BundlerPaymentResponses []*any.Any `protobuf:"bytes,3,rep,name=bundler_payment_responses,json=bundlerPaymentResponses,proto3" json:"bundler_payment_responses,omitempty"`
|
|
// execution_gas_used defines the gas used for the execution part of the UserOperation.
|
|
ExecutionGasUsed uint64 `protobuf:"varint,4,opt,name=execution_gas_used,json=executionGasUsed,proto3" json:"execution_gas_used,omitempty"`
|
|
// execution_responses defines the responses of the execution messages.
|
|
ExecutionResponses []*any.Any `protobuf:"bytes,5,rep,name=execution_responses,json=executionResponses,proto3" json:"execution_responses,omitempty"`
|
|
// error defines the error that occurred during the execution of the UserOperation.
|
|
// If the error is not empty, the UserOperation failed.
|
|
// Other fields might be populated even if the error is not empty, for example
|
|
// if the operation fails after the authentication step, the authentication_gas_used
|
|
// field will be populated.
|
|
Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *BundledTxResponse) Reset() { *m = BundledTxResponse{} }
|
|
func (m *BundledTxResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BundledTxResponse) ProtoMessage() {}
|
|
func (*BundledTxResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_29c2b6d8a13d4189, []int{5}
|
|
}
|
|
func (m *BundledTxResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BundledTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BundledTxResponse.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 *BundledTxResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BundledTxResponse.Merge(m, src)
|
|
}
|
|
func (m *BundledTxResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BundledTxResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BundledTxResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BundledTxResponse proto.InternalMessageInfo
|
|
|
|
func (m *BundledTxResponse) GetAuthenticationGasUsed() uint64 {
|
|
if m != nil {
|
|
return m.AuthenticationGasUsed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *BundledTxResponse) GetBundlerPaymentGasUsed() uint64 {
|
|
if m != nil {
|
|
return m.BundlerPaymentGasUsed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *BundledTxResponse) GetBundlerPaymentResponses() []*any.Any {
|
|
if m != nil {
|
|
return m.BundlerPaymentResponses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BundledTxResponse) GetExecutionGasUsed() uint64 {
|
|
if m != nil {
|
|
return m.ExecutionGasUsed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *BundledTxResponse) GetExecutionResponses() []*any.Any {
|
|
if m != nil {
|
|
return m.ExecutionResponses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BundledTxResponse) GetError() string {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// MsgExecuteBundleResponse defines the ExecuteBundle response type for the Msg/ExecuteBundle RPC method.
|
|
type MsgExecuteBundleResponse struct {
|
|
// responses is the list of responses from the bundle txs.
|
|
Responses []*BundledTxResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
|
|
}
|
|
|
|
func (m *MsgExecuteBundleResponse) Reset() { *m = MsgExecuteBundleResponse{} }
|
|
func (m *MsgExecuteBundleResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgExecuteBundleResponse) ProtoMessage() {}
|
|
func (*MsgExecuteBundleResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_29c2b6d8a13d4189, []int{6}
|
|
}
|
|
func (m *MsgExecuteBundleResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *MsgExecuteBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_MsgExecuteBundleResponse.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 *MsgExecuteBundleResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgExecuteBundleResponse.Merge(m, src)
|
|
}
|
|
func (m *MsgExecuteBundleResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *MsgExecuteBundleResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgExecuteBundleResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgExecuteBundleResponse proto.InternalMessageInfo
|
|
|
|
func (m *MsgExecuteBundleResponse) GetResponses() []*BundledTxResponse {
|
|
if m != nil {
|
|
return m.Responses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*MsgInit)(nil), "cosmos.accounts.v1.MsgInit")
|
|
proto.RegisterType((*MsgInitResponse)(nil), "cosmos.accounts.v1.MsgInitResponse")
|
|
proto.RegisterType((*MsgExecute)(nil), "cosmos.accounts.v1.MsgExecute")
|
|
proto.RegisterType((*MsgExecuteResponse)(nil), "cosmos.accounts.v1.MsgExecuteResponse")
|
|
proto.RegisterType((*MsgExecuteBundle)(nil), "cosmos.accounts.v1.MsgExecuteBundle")
|
|
proto.RegisterType((*BundledTxResponse)(nil), "cosmos.accounts.v1.BundledTxResponse")
|
|
proto.RegisterType((*MsgExecuteBundleResponse)(nil), "cosmos.accounts.v1.MsgExecuteBundleResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("cosmos/accounts/v1/tx.proto", fileDescriptor_29c2b6d8a13d4189) }
|
|
|
|
var fileDescriptor_29c2b6d8a13d4189 = []byte{
|
|
// 702 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x4b, 0x4f, 0xdb, 0x40,
|
|
0x10, 0x8e, 0xf3, 0x2c, 0x93, 0xb4, 0xd0, 0x2d, 0x05, 0x13, 0x24, 0x93, 0xa6, 0xaf, 0x08, 0xd1,
|
|
0x35, 0xa1, 0x55, 0x2b, 0x71, 0x03, 0x44, 0x1f, 0x52, 0x91, 0xa8, 0x4b, 0x2f, 0xbd, 0x44, 0x8e,
|
|
0xbd, 0x98, 0x08, 0xe2, 0x8d, 0x3c, 0x6b, 0x94, 0xdc, 0xaa, 0x5e, 0x7a, 0xab, 0xfa, 0x3b, 0x7a,
|
|
0xe2, 0x67, 0x70, 0xe4, 0xd8, 0x43, 0xd5, 0x07, 0x1c, 0xf8, 0x1b, 0x55, 0xd6, 0xeb, 0x98, 0xf0,
|
|
0x88, 0x38, 0xf6, 0x94, 0xdd, 0xf9, 0x66, 0xbe, 0xf9, 0xe6, 0x9b, 0xd8, 0x86, 0x59, 0x87, 0x63,
|
|
0x9b, 0xa3, 0x69, 0x3b, 0x0e, 0x0f, 0x7d, 0x81, 0xe6, 0x7e, 0xdd, 0x14, 0x5d, 0xda, 0x09, 0xb8,
|
|
0xe0, 0x84, 0x44, 0x20, 0x8d, 0x41, 0xba, 0x5f, 0x2f, 0xcf, 0x78, 0x9c, 0x7b, 0x7b, 0xcc, 0x94,
|
|
0x19, 0xcd, 0x70, 0xdb, 0xb4, 0xfd, 0x5e, 0x94, 0x5e, 0x9e, 0x56, 0x5c, 0x6d, 0xf4, 0xfa, 0x34,
|
|
0x6d, 0xf4, 0x14, 0x60, 0x28, 0xa0, 0x69, 0x23, 0x33, 0xf7, 0xeb, 0x4d, 0x26, 0xec, 0xba, 0xe9,
|
|
0xf0, 0x96, 0xaf, 0xf0, 0x49, 0x8f, 0x7b, 0x5c, 0x1e, 0xcd, 0xfe, 0x29, 0x8a, 0x56, 0xbf, 0xa4,
|
|
0xa1, 0xb0, 0x81, 0xde, 0x1b, 0xbf, 0x25, 0xc8, 0x14, 0xe4, 0x91, 0xf9, 0x2e, 0x0b, 0x74, 0xad,
|
|
0xa2, 0xd5, 0xc6, 0x2c, 0x75, 0x23, 0xf7, 0xa0, 0xa4, 0xc4, 0x35, 0x44, 0xaf, 0xc3, 0xf4, 0xb4,
|
|
0x44, 0x8b, 0x2a, 0xb6, 0xd5, 0xeb, 0x30, 0x42, 0xa1, 0xd0, 0x66, 0x88, 0xb6, 0xc7, 0xf4, 0x4c,
|
|
0x45, 0xab, 0x15, 0x97, 0x26, 0x69, 0x34, 0x02, 0x8d, 0x47, 0xa0, 0x2b, 0x7e, 0xcf, 0x8a, 0x93,
|
|
0x88, 0x0d, 0xb9, 0xed, 0xd0, 0x77, 0x51, 0xcf, 0x56, 0x32, 0xb5, 0xe2, 0xd2, 0x0c, 0x55, 0x26,
|
|
0xf4, 0xc5, 0x53, 0x25, 0x9e, 0xae, 0xf1, 0x96, 0xbf, 0xba, 0x78, 0xf8, 0x6b, 0x2e, 0xf5, 0xfd,
|
|
0xf7, 0x5c, 0xcd, 0x6b, 0x89, 0x9d, 0xb0, 0x49, 0x1d, 0xde, 0x36, 0xd5, 0xa4, 0xd1, 0xcf, 0x13,
|
|
0x74, 0x77, 0xcd, 0xbe, 0x2e, 0x94, 0x05, 0x68, 0x45, 0xcc, 0x52, 0xb5, 0xeb, 0x06, 0x0c, 0xb1,
|
|
0x81, 0x8c, 0xb9, 0x7a, 0xae, 0xa2, 0xd5, 0x4a, 0x56, 0x51, 0xc5, 0xde, 0x33, 0xe6, 0x2e, 0x17,
|
|
0x3f, 0x9f, 0x1e, 0xcc, 0xab, 0x29, 0xab, 0x7b, 0x30, 0xae, 0x8c, 0xb0, 0x18, 0x76, 0xb8, 0x8f,
|
|
0x8c, 0x3c, 0x86, 0xf1, 0x78, 0x70, 0x55, 0xa6, 0x9c, 0xb9, 0xa5, 0xc2, 0x2b, 0x51, 0x94, 0x2c,
|
|
0xc2, 0x8d, 0x40, 0x15, 0x49, 0x77, 0xae, 0x9a, 0x7f, 0x90, 0x55, 0xfd, 0xa9, 0x01, 0x6c, 0xa0,
|
|
0xb7, 0xde, 0x65, 0x4e, 0x28, 0xd8, 0x95, 0xd6, 0x4f, 0x41, 0x5e, 0xd8, 0x81, 0xc7, 0x84, 0x32,
|
|
0x5d, 0xdd, 0xfe, 0x43, 0xbf, 0x87, 0xcd, 0x7c, 0x09, 0x24, 0x99, 0x6e, 0xe0, 0xe7, 0x59, 0x9b,
|
|
0xb4, 0x6b, 0xd9, 0xf4, 0x16, 0x26, 0x12, 0x9e, 0xd5, 0xd0, 0x77, 0xf7, 0x18, 0xd1, 0xa1, 0xd0,
|
|
0x94, 0xa7, 0xd8, 0xac, 0xf8, 0x4a, 0x26, 0x20, 0x23, 0xba, 0xa8, 0xa7, 0x2b, 0x99, 0x5a, 0xc9,
|
|
0xea, 0x1f, 0x97, 0x4b, 0x7d, 0x51, 0x31, 0x5e, 0xfd, 0x9b, 0x86, 0xdb, 0x11, 0x89, 0xbb, 0xd5,
|
|
0x1d, 0xa8, 0x7a, 0x0e, 0xd3, 0x76, 0x28, 0x76, 0x98, 0x2f, 0x5a, 0x8e, 0x2d, 0x5a, 0xdc, 0x6f,
|
|
0x78, 0x36, 0x36, 0x42, 0x64, 0xae, 0xe4, 0xcf, 0x5a, 0x77, 0x87, 0xe1, 0x57, 0x36, 0x7e, 0x40,
|
|
0xe6, 0x92, 0x17, 0xa0, 0x2b, 0xe2, 0x46, 0xc7, 0xee, 0xb5, 0x99, 0x2f, 0x92, 0xc2, 0x74, 0x54,
|
|
0xa8, 0xf0, 0xcd, 0x08, 0x8e, 0x0b, 0x37, 0x61, 0xe6, 0x7c, 0x61, 0x3c, 0x30, 0xea, 0x19, 0xb9,
|
|
0xa0, 0xcb, 0x7d, 0x99, 0x1e, 0xe6, 0x8b, 0x27, 0x40, 0xb2, 0x00, 0x84, 0x49, 0x8f, 0x86, 0xd4,
|
|
0x67, 0xa5, 0x88, 0x89, 0x01, 0x12, 0xf7, 0x5f, 0x87, 0x3b, 0x49, 0x76, 0xd2, 0x39, 0x37, 0xa2,
|
|
0x73, 0x42, 0x9f, 0x34, 0x9d, 0x84, 0x1c, 0x0b, 0x02, 0x1e, 0xe8, 0x79, 0xb9, 0x85, 0xe8, 0x52,
|
|
0x6d, 0x80, 0x7e, 0x7e, 0x63, 0x03, 0xa7, 0xd7, 0x60, 0x2c, 0x69, 0xa7, 0xc9, 0x76, 0x0f, 0xe9,
|
|
0xc5, 0xd7, 0x1f, 0xbd, 0xb0, 0x23, 0x2b, 0xa9, 0x5b, 0xfa, 0x9a, 0x86, 0xcc, 0x06, 0x7a, 0xe4,
|
|
0x35, 0x64, 0xe5, 0x5b, 0x6b, 0xf6, 0x32, 0x06, 0xf5, 0x24, 0x97, 0xef, 0x8f, 0x00, 0x07, 0xb2,
|
|
0xde, 0x41, 0x21, 0x7e, 0x0e, 0x8d, 0x2b, 0xf2, 0x15, 0x5e, 0x7e, 0x34, 0x1a, 0x1f, 0x50, 0x3a,
|
|
0x70, 0x73, 0xf8, 0x4f, 0xfb, 0x60, 0x74, 0x61, 0x94, 0x55, 0x5e, 0xb8, 0x4e, 0x56, 0xdc, 0xa4,
|
|
0x9c, 0xfb, 0x74, 0x7a, 0x30, 0xaf, 0xad, 0x3e, 0x3b, 0x3c, 0x36, 0xb4, 0xa3, 0x63, 0x43, 0xfb,
|
|
0x73, 0x6c, 0x68, 0xdf, 0x4e, 0x8c, 0xd4, 0xd1, 0x89, 0x91, 0xfa, 0x71, 0x62, 0xa4, 0x3e, 0x96,
|
|
0x23, 0x36, 0x74, 0x77, 0x69, 0x8b, 0x9b, 0xdd, 0xb3, 0xdf, 0x9f, 0x66, 0x5e, 0xee, 0xf7, 0xe9,
|
|
0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4a, 0xc9, 0x1e, 0xc7, 0x9c, 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 {
|
|
// Init creates a new account in the chain.
|
|
Init(ctx context.Context, in *MsgInit, opts ...grpc.CallOption) (*MsgInitResponse, error)
|
|
// Execute executes a message to the target account.
|
|
Execute(ctx context.Context, in *MsgExecute, opts ...grpc.CallOption) (*MsgExecuteResponse, error)
|
|
// ExecuteBundle pertains account abstraction, it is used by the bundler
|
|
// to execute multiple UserOperations in a single transaction message.
|
|
ExecuteBundle(ctx context.Context, in *MsgExecuteBundle, opts ...grpc.CallOption) (*MsgExecuteBundleResponse, error)
|
|
}
|
|
|
|
type msgClient struct {
|
|
cc grpc1.ClientConn
|
|
}
|
|
|
|
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
|
|
return &msgClient{cc}
|
|
}
|
|
|
|
func (c *msgClient) Init(ctx context.Context, in *MsgInit, opts ...grpc.CallOption) (*MsgInitResponse, error) {
|
|
out := new(MsgInitResponse)
|
|
err := c.cc.Invoke(ctx, "/cosmos.accounts.v1.Msg/Init", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *msgClient) Execute(ctx context.Context, in *MsgExecute, opts ...grpc.CallOption) (*MsgExecuteResponse, error) {
|
|
out := new(MsgExecuteResponse)
|
|
err := c.cc.Invoke(ctx, "/cosmos.accounts.v1.Msg/Execute", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *msgClient) ExecuteBundle(ctx context.Context, in *MsgExecuteBundle, opts ...grpc.CallOption) (*MsgExecuteBundleResponse, error) {
|
|
out := new(MsgExecuteBundleResponse)
|
|
err := c.cc.Invoke(ctx, "/cosmos.accounts.v1.Msg/ExecuteBundle", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// MsgServer is the server API for Msg service.
|
|
type MsgServer interface {
|
|
// Init creates a new account in the chain.
|
|
Init(context.Context, *MsgInit) (*MsgInitResponse, error)
|
|
// Execute executes a message to the target account.
|
|
Execute(context.Context, *MsgExecute) (*MsgExecuteResponse, error)
|
|
// ExecuteBundle pertains account abstraction, it is used by the bundler
|
|
// to execute multiple UserOperations in a single transaction message.
|
|
ExecuteBundle(context.Context, *MsgExecuteBundle) (*MsgExecuteBundleResponse, error)
|
|
}
|
|
|
|
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedMsgServer struct {
|
|
}
|
|
|
|
func (*UnimplementedMsgServer) Init(ctx context.Context, req *MsgInit) (*MsgInitResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Init not implemented")
|
|
}
|
|
func (*UnimplementedMsgServer) Execute(ctx context.Context, req *MsgExecute) (*MsgExecuteResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Execute not implemented")
|
|
}
|
|
func (*UnimplementedMsgServer) ExecuteBundle(ctx context.Context, req *MsgExecuteBundle) (*MsgExecuteBundleResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ExecuteBundle not implemented")
|
|
}
|
|
|
|
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
|
|
s.RegisterService(&_Msg_serviceDesc, srv)
|
|
}
|
|
|
|
func _Msg_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgInit)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MsgServer).Init(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/cosmos.accounts.v1.Msg/Init",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MsgServer).Init(ctx, req.(*MsgInit))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Msg_Execute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgExecute)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MsgServer).Execute(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/cosmos.accounts.v1.Msg/Execute",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MsgServer).Execute(ctx, req.(*MsgExecute))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Msg_ExecuteBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgExecuteBundle)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MsgServer).ExecuteBundle(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/cosmos.accounts.v1.Msg/ExecuteBundle",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MsgServer).ExecuteBundle(ctx, req.(*MsgExecuteBundle))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var Msg_serviceDesc = _Msg_serviceDesc
|
|
var _Msg_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "cosmos.accounts.v1.Msg",
|
|
HandlerType: (*MsgServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Init",
|
|
Handler: _Msg_Init_Handler,
|
|
},
|
|
{
|
|
MethodName: "Execute",
|
|
Handler: _Msg_Execute_Handler,
|
|
},
|
|
{
|
|
MethodName: "ExecuteBundle",
|
|
Handler: _Msg_ExecuteBundle_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "cosmos/accounts/v1/tx.proto",
|
|
}
|
|
|
|
func (m *MsgInit) 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 *MsgInit) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *MsgInit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.AddressSeed) > 0 {
|
|
i -= len(m.AddressSeed)
|
|
copy(dAtA[i:], m.AddressSeed)
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.AddressSeed)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if len(m.Funds) > 0 {
|
|
for iNdEx := len(m.Funds) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Funds[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.Message != nil {
|
|
{
|
|
size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.AccountType) > 0 {
|
|
i -= len(m.AccountType)
|
|
copy(dAtA[i:], m.AccountType)
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.AccountType)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Sender) > 0 {
|
|
i -= len(m.Sender)
|
|
copy(dAtA[i:], m.Sender)
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Sender)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *MsgInitResponse) 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 *MsgInitResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *MsgInitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Response != nil {
|
|
{
|
|
size, err := m.Response.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.AccountAddress) > 0 {
|
|
i -= len(m.AccountAddress)
|
|
copy(dAtA[i:], m.AccountAddress)
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.AccountAddress)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *MsgExecute) 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 *MsgExecute) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *MsgExecute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Funds) > 0 {
|
|
for iNdEx := len(m.Funds) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Funds[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.Message != nil {
|
|
{
|
|
size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Target) > 0 {
|
|
i -= len(m.Target)
|
|
copy(dAtA[i:], m.Target)
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Target)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Sender) > 0 {
|
|
i -= len(m.Sender)
|
|
copy(dAtA[i:], m.Sender)
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Sender)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *MsgExecuteResponse) 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 *MsgExecuteResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *MsgExecuteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Response != nil {
|
|
{
|
|
size, err := m.Response.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *MsgExecuteBundle) 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 *MsgExecuteBundle) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *MsgExecuteBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Txs) > 0 {
|
|
for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Txs[iNdEx])
|
|
copy(dAtA[i:], m.Txs[iNdEx])
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Txs[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
}
|
|
if len(m.Bundler) > 0 {
|
|
i -= len(m.Bundler)
|
|
copy(dAtA[i:], m.Bundler)
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Bundler)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BundledTxResponse) 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 *BundledTxResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BundledTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Error) > 0 {
|
|
i -= len(m.Error)
|
|
copy(dAtA[i:], m.Error)
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Error)))
|
|
i--
|
|
dAtA[i] = 0x32
|
|
}
|
|
if len(m.ExecutionResponses) > 0 {
|
|
for iNdEx := len(m.ExecutionResponses) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.ExecutionResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if m.ExecutionGasUsed != 0 {
|
|
i = encodeVarintTx(dAtA, i, uint64(m.ExecutionGasUsed))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if len(m.BundlerPaymentResponses) > 0 {
|
|
for iNdEx := len(m.BundlerPaymentResponses) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.BundlerPaymentResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
}
|
|
if m.BundlerPaymentGasUsed != 0 {
|
|
i = encodeVarintTx(dAtA, i, uint64(m.BundlerPaymentGasUsed))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.AuthenticationGasUsed != 0 {
|
|
i = encodeVarintTx(dAtA, i, uint64(m.AuthenticationGasUsed))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *MsgExecuteBundleResponse) 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 *MsgExecuteBundleResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *MsgExecuteBundleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Responses) > 0 {
|
|
for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
|
}
|
|
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 *MsgInit) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Sender)
|
|
if l > 0 {
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
l = len(m.AccountType)
|
|
if l > 0 {
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
if m.Message != nil {
|
|
l = m.Message.Size()
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
if len(m.Funds) > 0 {
|
|
for _, e := range m.Funds {
|
|
l = e.Size()
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.AddressSeed)
|
|
if l > 0 {
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *MsgInitResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.AccountAddress)
|
|
if l > 0 {
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
if m.Response != nil {
|
|
l = m.Response.Size()
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *MsgExecute) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Sender)
|
|
if l > 0 {
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
l = len(m.Target)
|
|
if l > 0 {
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
if m.Message != nil {
|
|
l = m.Message.Size()
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
if len(m.Funds) > 0 {
|
|
for _, e := range m.Funds {
|
|
l = e.Size()
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *MsgExecuteResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Response != nil {
|
|
l = m.Response.Size()
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *MsgExecuteBundle) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Bundler)
|
|
if l > 0 {
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
if len(m.Txs) > 0 {
|
|
for _, b := range m.Txs {
|
|
l = len(b)
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BundledTxResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.AuthenticationGasUsed != 0 {
|
|
n += 1 + sovTx(uint64(m.AuthenticationGasUsed))
|
|
}
|
|
if m.BundlerPaymentGasUsed != 0 {
|
|
n += 1 + sovTx(uint64(m.BundlerPaymentGasUsed))
|
|
}
|
|
if len(m.BundlerPaymentResponses) > 0 {
|
|
for _, e := range m.BundlerPaymentResponses {
|
|
l = e.Size()
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
}
|
|
if m.ExecutionGasUsed != 0 {
|
|
n += 1 + sovTx(uint64(m.ExecutionGasUsed))
|
|
}
|
|
if len(m.ExecutionResponses) > 0 {
|
|
for _, e := range m.ExecutionResponses {
|
|
l = e.Size()
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.Error)
|
|
if l > 0 {
|
|
n += 1 + l + sovTx(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *MsgExecuteBundleResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Responses) > 0 {
|
|
for _, e := range m.Responses {
|
|
l = e.Size()
|
|
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 *MsgInit) 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: MsgInit: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: MsgInit: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AccountType", 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.AccountType = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message == nil {
|
|
m.Message = &any.Any{}
|
|
}
|
|
if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Funds", 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
|
|
}
|
|
m.Funds = append(m.Funds, types.Coin{})
|
|
if err := m.Funds[len(m.Funds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AddressSeed", 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.AddressSeed = append(m.AddressSeed[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.AddressSeed == nil {
|
|
m.AddressSeed = []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 *MsgInitResponse) 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: MsgInitResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: MsgInitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AccountAddress", 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.AccountAddress = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Response", 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.Response == nil {
|
|
m.Response = &any.Any{}
|
|
}
|
|
if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
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 *MsgExecute) 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: MsgExecute: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: MsgExecute: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Target", 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.Target = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message == nil {
|
|
m.Message = &any.Any{}
|
|
}
|
|
if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Funds", 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
|
|
}
|
|
m.Funds = append(m.Funds, types.Coin{})
|
|
if err := m.Funds[len(m.Funds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
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 *MsgExecuteResponse) 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: MsgExecuteResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: MsgExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Response", 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.Response == nil {
|
|
m.Response = &any.Any{}
|
|
}
|
|
if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
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 *MsgExecuteBundle) 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: MsgExecuteBundle: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: MsgExecuteBundle: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Bundler", 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.Bundler = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Txs", 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.Txs = append(m.Txs, make([]byte, postIndex-iNdEx))
|
|
copy(m.Txs[len(m.Txs)-1], 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 *BundledTxResponse) 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: BundledTxResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BundledTxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationGasUsed", wireType)
|
|
}
|
|
m.AuthenticationGasUsed = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowTx
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.AuthenticationGasUsed |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BundlerPaymentGasUsed", wireType)
|
|
}
|
|
m.BundlerPaymentGasUsed = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowTx
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.BundlerPaymentGasUsed |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BundlerPaymentResponses", 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
|
|
}
|
|
m.BundlerPaymentResponses = append(m.BundlerPaymentResponses, &any.Any{})
|
|
if err := m.BundlerPaymentResponses[len(m.BundlerPaymentResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ExecutionGasUsed", wireType)
|
|
}
|
|
m.ExecutionGasUsed = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowTx
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.ExecutionGasUsed |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ExecutionResponses", 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
|
|
}
|
|
m.ExecutionResponses = append(m.ExecutionResponses, &any.Any{})
|
|
if err := m.ExecutionResponses[len(m.ExecutionResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Error", 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.Error = 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 *MsgExecuteBundleResponse) 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: MsgExecuteBundleResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: MsgExecuteBundleResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Responses", 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
|
|
}
|
|
m.Responses = append(m.Responses, &BundledTxResponse{})
|
|
if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
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")
|
|
)
|