|
|
|
@@ -122,6 +122,46 @@ func (m *StdFee) GetGas() uint64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// StdSignature defines a signature structure that contains the signature of a
|
|
|
|
|
// transaction and an optional public key.
|
|
|
|
|
type StdSignature struct {
|
|
|
|
|
PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"public_key,omitempty" yaml:"public_key"`
|
|
|
|
|
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdSignature) Reset() { *m = StdSignature{} }
|
|
|
|
|
func (m *StdSignature) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*StdSignature) ProtoMessage() {}
|
|
|
|
|
func (*StdSignature) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_2d526fa662daab74, []int{2}
|
|
|
|
|
}
|
|
|
|
|
func (m *StdSignature) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
|
}
|
|
|
|
|
func (m *StdSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
if deterministic {
|
|
|
|
|
return xxx_messageInfo_StdSignature.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 *StdSignature) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_StdSignature.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *StdSignature) XXX_Size() int {
|
|
|
|
|
return m.Size()
|
|
|
|
|
}
|
|
|
|
|
func (m *StdSignature) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_StdSignature.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_StdSignature proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
// Params defines the parameters for the auth module.
|
|
|
|
|
type Params struct {
|
|
|
|
|
MaxMemoCharacters uint64 `protobuf:"varint,1,opt,name=max_memo_characters,json=maxMemoCharacters,proto3" json:"max_memo_characters,omitempty" yaml:"max_memo_characters"`
|
|
|
|
@@ -134,7 +174,7 @@ type Params struct {
|
|
|
|
|
func (m *Params) Reset() { *m = Params{} }
|
|
|
|
|
func (*Params) ProtoMessage() {}
|
|
|
|
|
func (*Params) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_2d526fa662daab74, []int{2}
|
|
|
|
|
return fileDescriptor_2d526fa662daab74, []int{3}
|
|
|
|
|
}
|
|
|
|
|
func (m *Params) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
@@ -198,56 +238,126 @@ func (m *Params) GetSigVerifyCostSecp256k1() uint64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// StdTxBase defines a transaction base which application-level concrete transaction
|
|
|
|
|
// types can extend.
|
|
|
|
|
type StdTxBase struct {
|
|
|
|
|
Fee *StdFee `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"`
|
|
|
|
|
Signatures []*StdSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
|
|
|
|
|
Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdTxBase) Reset() { *m = StdTxBase{} }
|
|
|
|
|
func (m *StdTxBase) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*StdTxBase) ProtoMessage() {}
|
|
|
|
|
func (*StdTxBase) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_2d526fa662daab74, []int{4}
|
|
|
|
|
}
|
|
|
|
|
func (m *StdTxBase) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
|
}
|
|
|
|
|
func (m *StdTxBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
if deterministic {
|
|
|
|
|
return xxx_messageInfo_StdTxBase.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 *StdTxBase) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_StdTxBase.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *StdTxBase) XXX_Size() int {
|
|
|
|
|
return m.Size()
|
|
|
|
|
}
|
|
|
|
|
func (m *StdTxBase) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_StdTxBase.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_StdTxBase proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *StdTxBase) GetFee() *StdFee {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Fee
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdTxBase) GetSignatures() []*StdSignature {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Signatures
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdTxBase) GetMemo() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Memo
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
proto.RegisterType((*BaseAccount)(nil), "cosmos_sdk.x.auth.v1.BaseAccount")
|
|
|
|
|
proto.RegisterType((*StdFee)(nil), "cosmos_sdk.x.auth.v1.StdFee")
|
|
|
|
|
proto.RegisterType((*StdSignature)(nil), "cosmos_sdk.x.auth.v1.StdSignature")
|
|
|
|
|
proto.RegisterType((*Params)(nil), "cosmos_sdk.x.auth.v1.Params")
|
|
|
|
|
proto.RegisterType((*StdTxBase)(nil), "cosmos_sdk.x.auth.v1.StdTxBase")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("x/auth/types/types.proto", fileDescriptor_2d526fa662daab74) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_2d526fa662daab74 = []byte{
|
|
|
|
|
// 630 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xbf, 0x6f, 0xd3, 0x4e,
|
|
|
|
|
0x14, 0x8f, 0x9b, 0x7c, 0xd3, 0xea, 0xda, 0x2f, 0x22, 0x6e, 0xda, 0xba, 0x11, 0xf2, 0x45, 0x1e,
|
|
|
|
|
0x50, 0x90, 0xa8, 0x43, 0x8a, 0x8a, 0xd4, 0x0c, 0x88, 0x3a, 0xd0, 0xa5, 0x50, 0x55, 0x8e, 0xc4,
|
|
|
|
|
0x80, 0x84, 0xac, 0xb3, 0x7d, 0x38, 0x56, 0x7a, 0x39, 0xd7, 0x77, 0xae, 0xec, 0x2e, 0xac, 0x88,
|
|
|
|
|
0x89, 0x91, 0xb1, 0x33, 0x7f, 0x49, 0xc7, 0x8e, 0x4c, 0x2e, 0x4a, 0x17, 0xc4, 0xe8, 0x91, 0x09,
|
|
|
|
|
0xd9, 0x97, 0xb6, 0x69, 0x29, 0x88, 0xc5, 0xbe, 0xf7, 0xde, 0xe7, 0xc7, 0xf9, 0xbd, 0xf3, 0x01,
|
|
|
|
|
0x25,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|
|
|
|
0x62, 0x9b, 0xdb, 0x4f, 0x06, 0x62, 0xe0, 0xa1, 0x0e, 0xb2, 0x47, 0x94, 0xa6, 0x97, 0xba, 0xd4,
|
|
|
|
|
0xd8, 0xd4, 0x67, 0x3d, 0x2c, 0xba, 0x9c, 0x06, 0x2c, 0x80, 0xd0, 0x00, 0x60, 0x62, 0x19, 0x61,
|
|
|
|
|
0x5d, 0x31, 0x16, 0xda, 0x83, 0xb4, 0x89, 0x87, 0xf1, 0x14, 0x0b, 0x42, 0x90, 0x13, 0x7e, 0x49,
|
|
|
|
|
0x2f, 0x6f, 0x11, 0xa7, 0x6b, 0xa3, 0x75, 0x31, 0x54, 0x95, 0xcb, 0xa1, 0xaa, 0x7c, 0x18, 0xaa,
|
|
|
|
|
0xca, 0xeb, 0x6b, 0x35, 0x73, 0x79, 0xad, 0x66, 0xde, 0x5f, 0xab, 0x99, 0x67, 0xbf, 0x7f, 0x73,
|
|
|
|
|
0xae, 0xa6, 0xdf, 0xc8, 0x4e, 0x3e, 0x7d, 0xcd, 0xfe, 0xfa, 0x12, 0x00, 0x00, 0xff, 0xff, 0xf4,
|
|
|
|
|
0x66, 0x9d, 0x7a, 0x3a, 0x05, 0x00, 0x00,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (this *StdFee) Equal(that interface{}) bool {
|
|
|
|
@@ -407,6 +517,43 @@ func (m *StdFee) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdSignature) 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 *StdSignature) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
i := len(dAtA)
|
|
|
|
|
_ = i
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
|
|
|
|
if len(m.Signature) > 0 {
|
|
|
|
|
i -= len(m.Signature)
|
|
|
|
|
copy(dAtA[i:], m.Signature)
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.Signature)))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
|
}
|
|
|
|
|
if len(m.PubKey) > 0 {
|
|
|
|
|
i -= len(m.PubKey)
|
|
|
|
|
copy(dAtA[i:], m.PubKey)
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.PubKey)))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
|
}
|
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Params) Marshal() (dAtA []byte, err error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
@@ -455,6 +602,62 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdTxBase) 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 *StdTxBase) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdTxBase) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
|
i := len(dAtA)
|
|
|
|
|
_ = i
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
|
|
|
|
if len(m.Memo) > 0 {
|
|
|
|
|
i -= len(m.Memo)
|
|
|
|
|
copy(dAtA[i:], m.Memo)
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.Memo)))
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
|
}
|
|
|
|
|
if len(m.Signatures) > 0 {
|
|
|
|
|
for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
|
{
|
|
|
|
|
size, err := m.Signatures[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
i -= size
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size))
|
|
|
|
|
}
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if m.Fee != nil {
|
|
|
|
|
{
|
|
|
|
|
size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
i -= size
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size))
|
|
|
|
|
}
|
|
|
|
|
i--
|
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
|
}
|
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
|
|
|
|
offset -= sovTypes(v)
|
|
|
|
|
base := offset
|
|
|
|
@@ -507,6 +710,23 @@ func (m *StdFee) Size() (n int) {
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdSignature) Size() (n int) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
|
|
|
|
l = len(m.PubKey)
|
|
|
|
|
if l > 0 {
|
|
|
|
|
n += 1 + l + sovTypes(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
l = len(m.Signature)
|
|
|
|
|
if l > 0 {
|
|
|
|
|
n += 1 + l + sovTypes(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Params) Size() (n int) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return 0
|
|
|
|
@@ -531,6 +751,29 @@ func (m *Params) Size() (n int) {
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *StdTxBase) Size() (n int) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
|
|
|
|
if m.Fee != nil {
|
|
|
|
|
l = m.Fee.Size()
|
|
|
|
|
n += 1 + l + sovTypes(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
if len(m.Signatures) > 0 {
|
|
|
|
|
for _, e := range m.Signatures {
|
|
|
|
|
l = e.Size()
|
|
|
|
|
n += 1 + l + sovTypes(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
l = len(m.Memo)
|
|
|
|
|
if l > 0 {
|
|
|
|
|
n += 1 + l + sovTypes(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func sovTypes(x uint64) (n int) {
|
|
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
|
|
|
}
|
|
|
|
@@ -802,6 +1045,127 @@ func (m *StdFee) Unmarshal(dAtA []byte) error {
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (m *StdSignature) 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 ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
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: StdSignature: wiretype end group for non-group")
|
|
|
|
|
}
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
return fmt.Errorf("proto: StdSignature: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
}
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
case 1:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType)
|
|
|
|
|
}
|
|
|
|
|
var byteLen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
byteLen |= int(b&0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if byteLen < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.PubKey = append(m.PubKey[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
|
if m.PubKey == nil {
|
|
|
|
|
m.PubKey = []byte{}
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 2:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
|
|
|
|
|
}
|
|
|
|
|
var byteLen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
byteLen |= int(b&0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if byteLen < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
|
if m.Signature == nil {
|
|
|
|
|
m.Signature = []byte{}
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
default:
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
if skippy < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (m *Params) Unmarshal(dAtA []byte) error {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
@@ -950,6 +1314,161 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (m *StdTxBase) 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 ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
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: StdTxBase: wiretype end group for non-group")
|
|
|
|
|
}
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
return fmt.Errorf("proto: StdTxBase: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
}
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
case 1:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType)
|
|
|
|
|
}
|
|
|
|
|
var msglen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if msglen < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
if m.Fee == nil {
|
|
|
|
|
m.Fee = &StdFee{}
|
|
|
|
|
}
|
|
|
|
|
if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
case 2:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType)
|
|
|
|
|
}
|
|
|
|
|
var msglen int
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if msglen < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.Signatures = append(m.Signatures, &StdSignature{})
|
|
|
|
|
if err := m.Signatures[len(m.Signatures)-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 Memo", wireType)
|
|
|
|
|
}
|
|
|
|
|
var stringLen uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
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 ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
|
if postIndex < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.Memo = string(dAtA[iNdEx:postIndex])
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
default:
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
if skippy < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func skipTypes(dAtA []byte) (n int, err error) {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
|