1026 lines
25 KiB
Go
1026 lines
25 KiB
Go
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||
|
// source: cosmos/gov/v1beta1/tx.proto
|
||
|
|
||
|
package types
|
||
|
|
||
|
import (
|
||
|
bytes "bytes"
|
||
|
fmt "fmt"
|
||
|
types "github.com/cosmos/cosmos-sdk/codec/types"
|
||
|
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
|
||
|
types1 "github.com/cosmos/cosmos-sdk/types"
|
||
|
_ "github.com/gogo/protobuf/gogoproto"
|
||
|
proto "github.com/gogo/protobuf/proto"
|
||
|
_ "github.com/regen-network/cosmos-proto"
|
||
|
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
|
||
|
|
||
|
// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
||
|
// proposal Content.
|
||
|
type MsgSubmitProposal struct {
|
||
|
Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||
|
InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"initial_deposit" yaml:"initial_deposit"`
|
||
|
Proposer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,3,opt,name=proposer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"proposer,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} }
|
||
|
func (*MsgSubmitProposal) ProtoMessage() {}
|
||
|
func (*MsgSubmitProposal) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_3c053992595e3dce, []int{0}
|
||
|
}
|
||
|
func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error {
|
||
|
return m.Unmarshal(b)
|
||
|
}
|
||
|
func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
if deterministic {
|
||
|
return xxx_messageInfo_MsgSubmitProposal.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 *MsgSubmitProposal) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_MsgSubmitProposal.Merge(m, src)
|
||
|
}
|
||
|
func (m *MsgSubmitProposal) XXX_Size() int {
|
||
|
return m.Size()
|
||
|
}
|
||
|
func (m *MsgSubmitProposal) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_MsgSubmitProposal.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_MsgSubmitProposal proto.InternalMessageInfo
|
||
|
|
||
|
// MsgVote defines a message to cast a vote
|
||
|
type MsgVote struct {
|
||
|
ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id" yaml:"proposal_id"`
|
||
|
Voter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=voter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"voter,omitempty"`
|
||
|
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *MsgVote) Reset() { *m = MsgVote{} }
|
||
|
func (*MsgVote) ProtoMessage() {}
|
||
|
func (*MsgVote) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_3c053992595e3dce, []int{1}
|
||
|
}
|
||
|
func (m *MsgVote) XXX_Unmarshal(b []byte) error {
|
||
|
return m.Unmarshal(b)
|
||
|
}
|
||
|
func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
if deterministic {
|
||
|
return xxx_messageInfo_MsgVote.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 *MsgVote) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_MsgVote.Merge(m, src)
|
||
|
}
|
||
|
func (m *MsgVote) XXX_Size() int {
|
||
|
return m.Size()
|
||
|
}
|
||
|
func (m *MsgVote) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_MsgVote.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_MsgVote proto.InternalMessageInfo
|
||
|
|
||
|
// MsgDeposit defines a message to submit a deposit to an existing proposal
|
||
|
type MsgDeposit struct {
|
||
|
ProposalID uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id" yaml:"proposal_id"`
|
||
|
Depositor github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=depositor,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"depositor,omitempty"`
|
||
|
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
|
||
|
}
|
||
|
|
||
|
func (m *MsgDeposit) Reset() { *m = MsgDeposit{} }
|
||
|
func (*MsgDeposit) ProtoMessage() {}
|
||
|
func (*MsgDeposit) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_3c053992595e3dce, []int{2}
|
||
|
}
|
||
|
func (m *MsgDeposit) XXX_Unmarshal(b []byte) error {
|
||
|
return m.Unmarshal(b)
|
||
|
}
|
||
|
func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
if deterministic {
|
||
|
return xxx_messageInfo_MsgDeposit.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 *MsgDeposit) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_MsgDeposit.Merge(m, src)
|
||
|
}
|
||
|
func (m *MsgDeposit) XXX_Size() int {
|
||
|
return m.Size()
|
||
|
}
|
||
|
func (m *MsgDeposit) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_MsgDeposit.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_MsgDeposit proto.InternalMessageInfo
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos.gov.v1beta1.MsgSubmitProposal")
|
||
|
proto.RegisterType((*MsgVote)(nil), "cosmos.gov.v1beta1.MsgVote")
|
||
|
proto.RegisterType((*MsgDeposit)(nil), "cosmos.gov.v1beta1.MsgDeposit")
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("cosmos/gov/v1beta1/tx.proto", fileDescriptor_3c053992595e3dce) }
|
||
|
|
||
|
var fileDescriptor_3c053992595e3dce = []byte{
|
||
|
// 525 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xcf, 0x6b, 0x13, 0x41,
|
||
|
0x14, 0xde, 0x4d, 0x6b, 0xa2, 0x13, 0xa9, 0x38, 0x14, 0x49, 0xab, 0xcc, 0x86, 0x9c, 0x72, 0xc9,
|
||
|
0xac, 0x49, 0xc1, 0x43, 0x3d, 0x25, 0x2d, 0x48, 0x85, 0x58, 0x89, 0xe2, 0xc1, 0x4b, 0xd8, 0x1f,
|
||
|
0xe3, 0x38, 0x98, 0xec, 0x5b, 0x32, 0x93, 0xd0, 0xdc, 0xfc, 0x0b, 0xc4, 0xbf, 0x40, 0x3c, 0x7b,
|
||
|
0x16, 0xff, 0x86, 0xe0, 0xa9, 0xc7, 0x9e, 0x56, 0x9b, 0x80, 0x88, 0xc7, 0x1e, 0x3d, 0x49, 0x66,
|
||
|
0x66, 0x6b, 0x51, 0xf1, 0x27, 0x9e, 0x76, 0xdf, 0x7c, 0xef, 0xfb, 0x76, 0xbe, 0x6f, 0xdf, 0x43,
|
||
|
0x57, 0x23, 0x90, 0x43, 0x90, 0x3e, 0x87, 0x89, 0x3f, 0x69, 0x86, 0x4c, 0x05, 0x4d, 0x5f, 0x1d,
|
||
|
0xd0, 0x74, 0x04, 0x0a, 0x30, 0x36, 0x20, 0xe5, 0x30, 0xa1, 0x16, 0xdc, 0x24, 0x96, 0x10, 0x06,
|
||
|
0x92, 0x9d, 0x32, 0x22, 0x10, 0x89, 0xe1, 0x6c, 0x5e, 0xfb, 0x81, 0xe0, 0x92, 0x6f, 0xd0, 0x0d,
|
||
|
0x83, 0xf6, 0x75, 0xe5, 0x5b, 0x79, 0x03, 0xad, 0x73, 0xe0, 0x60, 0xce, 0x97, 0x6f, 0x39, 0x81,
|
||
|
0x03, 0xf0, 0x01, 0xf3, 0x75, 0x15, 0x8e, 0x1f, 0xf9, 0x41, 0x32, 0x35, 0x50, 0xed, 0x4d, 0x01,
|
||
|
0x5d, 0xee, 0x4a, 0x7e, 0x6f, 0x1c, 0x0e, 0x85, 0xba, 0x3b, 0x82, 0x14, 0x64, 0x30, 0xc0, 0x37,
|
||
|
0x51, 0x29, 0x82, 0x44, 0xb1, 0x44, 0x55, 0xdc, 0xaa, 0x5b, 0x2f, 0xb7, 0xd6, 0xa9, 0x91, 0xa0,
|
||
|
0xb9, 0x04, 0x6d, 0x27, 0xd3, 0x4e, 0xf9, 0xed, 0xeb, 0x46, 0x69, 0xc7, 0x34, 0xf6, 0x72, 0x06,
|
||
|
0x7e, 0xe6, 0xa2, 0x4b, 0x22, 0x11, 0x4a, 0x04, 0x83, 0x7e, 0xcc, 0x52, 0x90, 0x42, 0x55, 0x0a,
|
||
|
0xd5, 0x95, 0x7a, 0xb9, 0xb5, 0x41, 0xed, 0x65, 0x97, 0xbe, 0xf3, 0x30, 0xe8, 0x0e, 0x88, 0xa4,
|
||
|
0x73, 0x7b, 0x96, 0x79, 0xce, 0x49, 0xe6, 0x5d, 0x99, 0x06, 0xc3, 0xc1, 0x76, 0xed, 0x1b, 0x7e,
|
||
|
0xed, 0xd5, 0x3b, 0xaf, 0xce, 0x85, 0x7a, 0x3c, 0x0e, 0x69, 0x04, 0x43, 0xeb, 0xd9, 0x3e, 0x1a,
|
||
|
0x32, 0x7e, 0xe2, 0xab, 0x69, 0xca, 0xa4, 0x96, 0x92, 0xbd, 0x35, 0xcb, 0xde, 0x35, 0x64, 0xdc,
|
||
|
0x45, 0xe7, 0x53, 0xed, 0x8c, 0x8d, 0x2a, 0x2b, 0x55, 0xb7, 0x7e, 0xb1, 0xd3, 0xfc, 0x9c, 0x79,
|
||
|
0x8d, 0xdf, 0xd0, 0x6b, 0x47, 0x51, 0x3b, 0x8e, 0x47, 0x4c, 0xca, 0xde, 0xa9, 0xc4, 0xf6, 0xea,
|
||
|
0xc7, 0x97, 0x9e, 0x5b, 0xfb, 0xe0, 0xa2, 0x52, 0x57, 0xf2, 0x07, 0xa0, 0x18, 0xbe, 0x8f, 0xca,
|
||
|
0xa9, 0x8d, 0xae, 0x2f, 0x62, 0x1d, 0xd9, 0x6a, 0x67, 0x6b, 0x9e, 0x79, 0x28, 0x4f, 0x74, 0x6f,
|
||
|
0xf7, 0x53, 0xe6, 0x9d, 0x6d, 0x3a, 0xc9, 0x3c, 0x6c, 0xac, 0x9e, 0x39, 0xac, 0xf5, 0x50, 0x5e,
|
||
|
0xed, 0xc5, 0xf8, 0x16, 0x3a, 0x37, 0x01, 0xc5, 0x46, 0x95, 0xc2, 0xdf, 0xde, 0xd9, 0xf0, 0xf1,
|
||
|
0x0d, 0x54, 0x84, 0x54, 0x09, 0x48, 0xb4, 0xfb, 0xb5, 0x16, 0xa1, 0xdf, 0x8f, 0x24, 0x5d, 0x1a,
|
||
|
0xd9, 0xd7, 0x5d, 0x3d, 0xdb, 0x6d, 0x8d, 0xbe, 0x28, 0x20, 0xd4, 0x95, 0x3c, 0x0f, 0xf3, 0xff,
|
||
|
0x78, 0xdd, 0x47, 0x17, 0xec, 0xaf, 0x86, 0x7f, 0xf0, 0xfb, 0x55, 0x03, 0x47, 0xa8, 0x18, 0x0c,
|
||
|
0x61, 0x9c, 0xa8, 0xca, 0xca, 0xaf, 0x46, 0xef, 0xfa, 0x72, 0xf4, 0xfe, 0x68, 0xc0, 0xac, 0xb4,
|
||
|
0x09, 0xa8, 0x73, 0x67, 0x76, 0x4c, 0x9c, 0xa3, 0x63, 0xe2, 0x3c, 0x9d, 0x13, 0x67, 0x36, 0x27,
|
||
|
0xee, 0xe1, 0x9c, 0xb8, 0xef, 0xe7, 0xc4, 0x7d, 0xbe, 0x20, 0xce, 0xe1, 0x82, 0x38, 0x47, 0x0b,
|
||
|
0xe2, 0x3c, 0xfc, 0xb9, 0xfa, 0x81, 0x5e, 0x75, 0xfd, 0x8d, 0xb0, 0xa8, 0x77, 0x6c, 0xeb, 0x4b,
|
||
|
0x00, 0x00, 0x00, 0xff, 0xff, 0x70, 0x5e, 0xd0, 0x13, 0x56, 0x04, 0x00, 0x00,
|
||
|
}
|
||
|
|
||
|
func (this *MsgSubmitProposal) Equal(that interface{}) bool {
|
||
|
if that == nil {
|
||
|
return this == nil
|
||
|
}
|
||
|
|
||
|
that1, ok := that.(*MsgSubmitProposal)
|
||
|
if !ok {
|
||
|
that2, ok := that.(MsgSubmitProposal)
|
||
|
if ok {
|
||
|
that1 = &that2
|
||
|
} else {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
if that1 == nil {
|
||
|
return this == nil
|
||
|
} else if this == nil {
|
||
|
return false
|
||
|
}
|
||
|
if !this.Content.Equal(that1.Content) {
|
||
|
return false
|
||
|
}
|
||
|
if len(this.InitialDeposit) != len(that1.InitialDeposit) {
|
||
|
return false
|
||
|
}
|
||
|
for i := range this.InitialDeposit {
|
||
|
if !this.InitialDeposit[i].Equal(&that1.InitialDeposit[i]) {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
if !bytes.Equal(this.Proposer, that1.Proposer) {
|
||
|
return false
|
||
|
}
|
||
|
return true
|
||
|
}
|
||
|
func (this *MsgVote) Equal(that interface{}) bool {
|
||
|
if that == nil {
|
||
|
return this == nil
|
||
|
}
|
||
|
|
||
|
that1, ok := that.(*MsgVote)
|
||
|
if !ok {
|
||
|
that2, ok := that.(MsgVote)
|
||
|
if ok {
|
||
|
that1 = &that2
|
||
|
} else {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
if that1 == nil {
|
||
|
return this == nil
|
||
|
} else if this == nil {
|
||
|
return false
|
||
|
}
|
||
|
if this.ProposalID != that1.ProposalID {
|
||
|
return false
|
||
|
}
|
||
|
if !bytes.Equal(this.Voter, that1.Voter) {
|
||
|
return false
|
||
|
}
|
||
|
if this.Option != that1.Option {
|
||
|
return false
|
||
|
}
|
||
|
return true
|
||
|
}
|
||
|
func (this *MsgDeposit) Equal(that interface{}) bool {
|
||
|
if that == nil {
|
||
|
return this == nil
|
||
|
}
|
||
|
|
||
|
that1, ok := that.(*MsgDeposit)
|
||
|
if !ok {
|
||
|
that2, ok := that.(MsgDeposit)
|
||
|
if ok {
|
||
|
that1 = &that2
|
||
|
} else {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
if that1 == nil {
|
||
|
return this == nil
|
||
|
} else if this == nil {
|
||
|
return false
|
||
|
}
|
||
|
if this.ProposalID != that1.ProposalID {
|
||
|
return false
|
||
|
}
|
||
|
if !bytes.Equal(this.Depositor, that1.Depositor) {
|
||
|
return false
|
||
|
}
|
||
|
if len(this.Amount) != len(that1.Amount) {
|
||
|
return false
|
||
|
}
|
||
|
for i := range this.Amount {
|
||
|
if !this.Amount[i].Equal(&that1.Amount[i]) {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
return true
|
||
|
}
|
||
|
func (m *MsgSubmitProposal) 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 *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) {
|
||
|
size := m.Size()
|
||
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
||
|
}
|
||
|
|
||
|
func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||
|
i := len(dAtA)
|
||
|
_ = i
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(m.Proposer) > 0 {
|
||
|
i -= len(m.Proposer)
|
||
|
copy(dAtA[i:], m.Proposer)
|
||
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Proposer)))
|
||
|
i--
|
||
|
dAtA[i] = 0x1a
|
||
|
}
|
||
|
if len(m.InitialDeposit) > 0 {
|
||
|
for iNdEx := len(m.InitialDeposit) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
{
|
||
|
size, err := m.InitialDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
||
|
if err != nil {
|
||
|
return 0, err
|
||
|
}
|
||
|
i -= size
|
||
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
||
|
}
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
}
|
||
|
if m.Content != nil {
|
||
|
{
|
||
|
size, err := m.Content.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 *MsgVote) 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 *MsgVote) MarshalTo(dAtA []byte) (int, error) {
|
||
|
size := m.Size()
|
||
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
||
|
}
|
||
|
|
||
|
func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||
|
i := len(dAtA)
|
||
|
_ = i
|
||
|
var l int
|
||
|
_ = l
|
||
|
if m.Option != 0 {
|
||
|
i = encodeVarintTx(dAtA, i, uint64(m.Option))
|
||
|
i--
|
||
|
dAtA[i] = 0x18
|
||
|
}
|
||
|
if len(m.Voter) > 0 {
|
||
|
i -= len(m.Voter)
|
||
|
copy(dAtA[i:], m.Voter)
|
||
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Voter)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if m.ProposalID != 0 {
|
||
|
i = encodeVarintTx(dAtA, i, uint64(m.ProposalID))
|
||
|
i--
|
||
|
dAtA[i] = 0x8
|
||
|
}
|
||
|
return len(dAtA) - i, nil
|
||
|
}
|
||
|
|
||
|
func (m *MsgDeposit) 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 *MsgDeposit) MarshalTo(dAtA []byte) (int, error) {
|
||
|
size := m.Size()
|
||
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
||
|
}
|
||
|
|
||
|
func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||
|
i := len(dAtA)
|
||
|
_ = i
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(m.Amount) > 0 {
|
||
|
for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
{
|
||
|
size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
||
|
if err != nil {
|
||
|
return 0, err
|
||
|
}
|
||
|
i -= size
|
||
|
i = encodeVarintTx(dAtA, i, uint64(size))
|
||
|
}
|
||
|
i--
|
||
|
dAtA[i] = 0x1a
|
||
|
}
|
||
|
}
|
||
|
if len(m.Depositor) > 0 {
|
||
|
i -= len(m.Depositor)
|
||
|
copy(dAtA[i:], m.Depositor)
|
||
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Depositor)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if m.ProposalID != 0 {
|
||
|
i = encodeVarintTx(dAtA, i, uint64(m.ProposalID))
|
||
|
i--
|
||
|
dAtA[i] = 0x8
|
||
|
}
|
||
|
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 *MsgSubmitProposal) Size() (n int) {
|
||
|
if m == nil {
|
||
|
return 0
|
||
|
}
|
||
|
var l int
|
||
|
_ = l
|
||
|
if m.Content != nil {
|
||
|
l = m.Content.Size()
|
||
|
n += 1 + l + sovTx(uint64(l))
|
||
|
}
|
||
|
if len(m.InitialDeposit) > 0 {
|
||
|
for _, e := range m.InitialDeposit {
|
||
|
l = e.Size()
|
||
|
n += 1 + l + sovTx(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
l = len(m.Proposer)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + sovTx(uint64(l))
|
||
|
}
|
||
|
return n
|
||
|
}
|
||
|
|
||
|
func (m *MsgVote) Size() (n int) {
|
||
|
if m == nil {
|
||
|
return 0
|
||
|
}
|
||
|
var l int
|
||
|
_ = l
|
||
|
if m.ProposalID != 0 {
|
||
|
n += 1 + sovTx(uint64(m.ProposalID))
|
||
|
}
|
||
|
l = len(m.Voter)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + sovTx(uint64(l))
|
||
|
}
|
||
|
if m.Option != 0 {
|
||
|
n += 1 + sovTx(uint64(m.Option))
|
||
|
}
|
||
|
return n
|
||
|
}
|
||
|
|
||
|
func (m *MsgDeposit) Size() (n int) {
|
||
|
if m == nil {
|
||
|
return 0
|
||
|
}
|
||
|
var l int
|
||
|
_ = l
|
||
|
if m.ProposalID != 0 {
|
||
|
n += 1 + sovTx(uint64(m.ProposalID))
|
||
|
}
|
||
|
l = len(m.Depositor)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + sovTx(uint64(l))
|
||
|
}
|
||
|
if len(m.Amount) > 0 {
|
||
|
for _, e := range m.Amount {
|
||
|
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 *MsgSubmitProposal) 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: MsgSubmitProposal: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return fmt.Errorf("proto: MsgSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 2 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field Content", 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.Content == nil {
|
||
|
m.Content = &types.Any{}
|
||
|
}
|
||
|
if err := m.Content.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field InitialDeposit", 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.InitialDeposit = append(m.InitialDeposit, types1.Coin{})
|
||
|
if err := m.InitialDeposit[len(m.InitialDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 3:
|
||
|
if wireType != 2 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field Proposer", 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.Proposer = append(m.Proposer[:0], dAtA[iNdEx:postIndex]...)
|
||
|
if m.Proposer == nil {
|
||
|
m.Proposer = []byte{}
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
default:
|
||
|
iNdEx = preIndex
|
||
|
skippy, err := skipTx(dAtA[iNdEx:])
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
if skippy < 0 {
|
||
|
return ErrInvalidLengthTx
|
||
|
}
|
||
|
if (iNdEx + skippy) < 0 {
|
||
|
return ErrInvalidLengthTx
|
||
|
}
|
||
|
if (iNdEx + skippy) > l {
|
||
|
return io.ErrUnexpectedEOF
|
||
|
}
|
||
|
iNdEx += skippy
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if iNdEx > l {
|
||
|
return io.ErrUnexpectedEOF
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
func (m *MsgVote) 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: MsgVote: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return fmt.Errorf("proto: MsgVote: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 0 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field ProposalID", wireType)
|
||
|
}
|
||
|
m.ProposalID = 0
|
||
|
for shift := uint(0); ; shift += 7 {
|
||
|
if shift >= 64 {
|
||
|
return ErrIntOverflowTx
|
||
|
}
|
||
|
if iNdEx >= l {
|
||
|
return io.ErrUnexpectedEOF
|
||
|
}
|
||
|
b := dAtA[iNdEx]
|
||
|
iNdEx++
|
||
|
m.ProposalID |= uint64(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field Voter", 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.Voter = append(m.Voter[:0], dAtA[iNdEx:postIndex]...)
|
||
|
if m.Voter == nil {
|
||
|
m.Voter = []byte{}
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 3:
|
||
|
if wireType != 0 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field Option", wireType)
|
||
|
}
|
||
|
m.Option = 0
|
||
|
for shift := uint(0); ; shift += 7 {
|
||
|
if shift >= 64 {
|
||
|
return ErrIntOverflowTx
|
||
|
}
|
||
|
if iNdEx >= l {
|
||
|
return io.ErrUnexpectedEOF
|
||
|
}
|
||
|
b := dAtA[iNdEx]
|
||
|
iNdEx++
|
||
|
m.Option |= VoteOption(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
default:
|
||
|
iNdEx = preIndex
|
||
|
skippy, err := skipTx(dAtA[iNdEx:])
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
if skippy < 0 {
|
||
|
return ErrInvalidLengthTx
|
||
|
}
|
||
|
if (iNdEx + skippy) < 0 {
|
||
|
return ErrInvalidLengthTx
|
||
|
}
|
||
|
if (iNdEx + skippy) > l {
|
||
|
return io.ErrUnexpectedEOF
|
||
|
}
|
||
|
iNdEx += skippy
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if iNdEx > l {
|
||
|
return io.ErrUnexpectedEOF
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
func (m *MsgDeposit) 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: MsgDeposit: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return fmt.Errorf("proto: MsgDeposit: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 0 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field ProposalID", wireType)
|
||
|
}
|
||
|
m.ProposalID = 0
|
||
|
for shift := uint(0); ; shift += 7 {
|
||
|
if shift >= 64 {
|
||
|
return ErrIntOverflowTx
|
||
|
}
|
||
|
if iNdEx >= l {
|
||
|
return io.ErrUnexpectedEOF
|
||
|
}
|
||
|
b := dAtA[iNdEx]
|
||
|
iNdEx++
|
||
|
m.ProposalID |= uint64(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field Depositor", 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.Depositor = append(m.Depositor[:0], dAtA[iNdEx:postIndex]...)
|
||
|
if m.Depositor == nil {
|
||
|
m.Depositor = []byte{}
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 3:
|
||
|
if wireType != 2 {
|
||
|
return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = append(m.Amount, types1.Coin{})
|
||
|
if err := m.Amount[len(m.Amount)-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 {
|
||
|
return ErrInvalidLengthTx
|
||
|
}
|
||
|
if (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")
|
||
|
)
|