Update proto files & definitions in accordance with ADR023 (#6413)
* consolidate proto files into single directory, turn on PACKAGE_DIRECTORY_MATCH linting * add third_party root for third party proto files * move ibc proto files to top level folder, rename .proto files to types.proto as before * update protocgen script, and run code generation * move vesting proto definition to cosmos namespace, rename from types.proto in alignment with buf.build naming conventions * update Makefile so proto dependencies are set with new structure when updated * add comment for sed usage in makefile * remove unused aliases of proto generated types * add settings.json instructions to contributing.md for including protobuf paths Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Aaron Craelius <aaron@regen.network>
This commit is contained in:
parent
fe9356ddb8
commit
4e73e0f817
|
@ -146,6 +146,21 @@ For linting and checking breaking changes, we use [buf](https://buf.build/). The
|
|||
|
||||
To generate the protobuf stubs you must have `protoc` and `protoc-gen-gocosmos` installed. To install these tools run `make protoc` & `make protoc-gen-gocosmos`. After this step you will be able to run `make proto-gen` to generate the protobuf stubs.
|
||||
|
||||
In order for imports to properly compile in your IDE, you may need to manually set your protobuf path in your IDE's workspace settings/config.
|
||||
|
||||
For example, in vscode your `.vscode/settings.json` should look like:
|
||||
|
||||
```
|
||||
{
|
||||
"protoc": {
|
||||
"options": [
|
||||
"--proto_path=${workspaceRoot}/proto",
|
||||
"--proto_path=${workspaceRoot}/third_party/proto"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
All repos should be hooked up to [CircleCI](https://circleci.com/).
|
||||
|
|
17
Makefile
17
Makefile
|
@ -283,11 +283,7 @@ TM_KV_TYPES = third_party/proto/tendermint/libs/kv
|
|||
TM_MERKLE_TYPES = third_party/proto/tendermint/crypto/merkle
|
||||
TM_ABCI_TYPES = third_party/proto/tendermint/abci/types
|
||||
GOGO_PROTO_TYPES = third_party/proto/gogoproto
|
||||
COSMOS_PROTO_TYPES = third_party/proto/cosmos-proto
|
||||
SDK_PROTO_TYPES = third_party/proto/cosmos-sdk/types
|
||||
AUTH_PROTO_TYPES = third_party/proto/cosmos-sdk/x/auth/types
|
||||
VESTING_PROTO_TYPES = third_party/proto/cosmos-sdk/x/auth/vesting/types
|
||||
SUPPLY_PROTO_TYPES = third_party/proto/cosmos-sdk/x/supply/types
|
||||
COSMOS_PROTO_TYPES = third_party/proto/cosmos_proto
|
||||
|
||||
proto-update-deps:
|
||||
@mkdir -p $(GOGO_PROTO_TYPES)
|
||||
|
@ -296,16 +292,23 @@ proto-update-deps:
|
|||
@mkdir -p $(COSMOS_PROTO_TYPES)
|
||||
@curl -sSL $(COSMOS_PROTO_URL)/cosmos.proto > $(COSMOS_PROTO_TYPES)/cosmos.proto
|
||||
|
||||
## Importing of tendermint protobuf definitions currently requires the
|
||||
## use of `sed` in order to build properly with cosmos-sdk's proto file layout
|
||||
## (which is the standard Buf.build FILE_LAYOUT)
|
||||
## Issue link: https://github.com/tendermint/tendermint/issues/5021
|
||||
@mkdir -p $(TM_ABCI_TYPES)
|
||||
@curl -sSL $(TM_URL)/abci/types/types.proto > $(TM_ABCI_TYPES)/types.proto
|
||||
@sed -i '' '8 s|crypto/merkle/merkle.proto|third_party/proto/tendermint/crypto/merkle/merkle.proto|g' $(TM_ABCI_TYPES)/types.proto
|
||||
@sed -i '' '9 s|libs/kv/types.proto|third_party/proto/tendermint/libs/kv/types.proto|g' $(TM_ABCI_TYPES)/types.proto
|
||||
@sed -i '' '7 s|third_party/proto/||g' $(TM_ABCI_TYPES)/types.proto
|
||||
@sed -i '' '8 s|crypto/merkle/merkle.proto|tendermint/crypto/merkle/merkle.proto|g' $(TM_ABCI_TYPES)/types.proto
|
||||
@sed -i '' '9 s|libs/kv/types.proto|tendermint/libs/kv/types.proto|g' $(TM_ABCI_TYPES)/types.proto
|
||||
|
||||
@mkdir -p $(TM_KV_TYPES)
|
||||
@curl -sSL $(TM_URL)/libs/kv/types.proto > $(TM_KV_TYPES)/types.proto
|
||||
@sed -i '' '5 s|third_party/proto/||g' $(TM_KV_TYPES)/types.proto
|
||||
|
||||
@mkdir -p $(TM_MERKLE_TYPES)
|
||||
@curl -sSL $(TM_URL)/crypto/merkle/merkle.proto > $(TM_MERKLE_TYPES)/merkle.proto
|
||||
@sed -i '' '7 s|third_party/proto/||g' $(TM_MERKLE_TYPES)/merkle.proto
|
||||
|
||||
|
||||
.PHONY: proto-all proto-gen proto-lint proto-check-breaking proto-update-deps
|
||||
|
|
14
buf.yaml
14
buf.yaml
|
@ -1,6 +1,7 @@
|
|||
build:
|
||||
roots:
|
||||
- .
|
||||
- proto
|
||||
- third_party/proto
|
||||
excludes:
|
||||
- third_party/proto/google
|
||||
lint:
|
||||
|
@ -11,13 +12,16 @@ lint:
|
|||
except:
|
||||
- UNARY_RPC
|
||||
- COMMENT_FIELD
|
||||
- PACKAGE_DIRECTORY_MATCH
|
||||
- SERVICE_SUFFIX
|
||||
- PACKAGE_VERSION_SUFFIX
|
||||
ignore:
|
||||
- third_party
|
||||
- codec/testdata
|
||||
- tendermint
|
||||
- gogoproto
|
||||
- cosmos_proto
|
||||
breaking:
|
||||
use:
|
||||
- FILE
|
||||
ignore:
|
||||
- third_party
|
||||
- tendermint
|
||||
- gogoproto
|
||||
- cosmos_proto
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: crypto/types/types.proto
|
||||
// source: cosmos/crypto/crypto.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -42,7 +42,7 @@ func (m *PublicKey) Reset() { *m = PublicKey{} }
|
|||
func (m *PublicKey) String() string { return proto.CompactTextString(m) }
|
||||
func (*PublicKey) ProtoMessage() {}
|
||||
func (*PublicKey) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2165b2a1badb1b0c, []int{0}
|
||||
return fileDescriptor_5fa415c569c5d31a, []int{0}
|
||||
}
|
||||
func (m *PublicKey) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -175,7 +175,7 @@ func (m *PubKeyMultisigThreshold) Reset() { *m = PubKeyMultisigThreshold
|
|||
func (m *PubKeyMultisigThreshold) String() string { return proto.CompactTextString(m) }
|
||||
func (*PubKeyMultisigThreshold) ProtoMessage() {}
|
||||
func (*PubKeyMultisigThreshold) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2165b2a1badb1b0c, []int{1}
|
||||
return fileDescriptor_5fa415c569c5d31a, []int{1}
|
||||
}
|
||||
func (m *PubKeyMultisigThreshold) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -230,7 +230,7 @@ func (m *MultiSignature) Reset() { *m = MultiSignature{} }
|
|||
func (m *MultiSignature) String() string { return proto.CompactTextString(m) }
|
||||
func (*MultiSignature) ProtoMessage() {}
|
||||
func (*MultiSignature) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2165b2a1badb1b0c, []int{2}
|
||||
return fileDescriptor_5fa415c569c5d31a, []int{2}
|
||||
}
|
||||
func (m *MultiSignature) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -278,7 +278,7 @@ type CompactBitArray struct {
|
|||
func (m *CompactBitArray) Reset() { *m = CompactBitArray{} }
|
||||
func (*CompactBitArray) ProtoMessage() {}
|
||||
func (*CompactBitArray) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2165b2a1badb1b0c, []int{3}
|
||||
return fileDescriptor_5fa415c569c5d31a, []int{3}
|
||||
}
|
||||
func (m *CompactBitArray) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -322,49 +322,48 @@ func (m *CompactBitArray) GetElems() []byte {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PublicKey)(nil), "cosmos_sdk.crypto.v1.PublicKey")
|
||||
proto.RegisterType((*PubKeyMultisigThreshold)(nil), "cosmos_sdk.crypto.v1.PubKeyMultisigThreshold")
|
||||
proto.RegisterType((*MultiSignature)(nil), "cosmos_sdk.crypto.v1.MultiSignature")
|
||||
proto.RegisterType((*CompactBitArray)(nil), "cosmos_sdk.crypto.v1.CompactBitArray")
|
||||
proto.RegisterType((*PublicKey)(nil), "cosmos.crypto.PublicKey")
|
||||
proto.RegisterType((*PubKeyMultisigThreshold)(nil), "cosmos.crypto.PubKeyMultisigThreshold")
|
||||
proto.RegisterType((*MultiSignature)(nil), "cosmos.crypto.MultiSignature")
|
||||
proto.RegisterType((*CompactBitArray)(nil), "cosmos.crypto.CompactBitArray")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("crypto/types/types.proto", fileDescriptor_2165b2a1badb1b0c) }
|
||||
func init() { proto.RegisterFile("cosmos/crypto/crypto.proto", fileDescriptor_5fa415c569c5d31a) }
|
||||
|
||||
var fileDescriptor_2165b2a1badb1b0c = []byte{
|
||||
// 514 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0xc1, 0x6a, 0xdb, 0x4a,
|
||||
0x14, 0x95, 0xec, 0xf8, 0x25, 0x1e, 0xe7, 0xc5, 0xed, 0x60, 0xa8, 0x62, 0xa8, 0x64, 0xb4, 0x28,
|
||||
0x6e, 0x21, 0x12, 0x76, 0x71, 0x4a, 0xbd, 0x8b, 0xb2, 0x09, 0x98, 0x82, 0x51, 0xba, 0x2a, 0x14,
|
||||
0x21, 0xc9, 0x53, 0x59, 0x58, 0xf2, 0x88, 0xb9, 0xa3, 0xd2, 0xf9, 0x89, 0xd2, 0x65, 0x97, 0xc9,
|
||||
0x37, 0xf4, 0x27, 0xba, 0xf4, 0xb2, 0x2b, 0x53, 0xec, 0x3f, 0xc8, 0x17, 0x94, 0x68, 0xa4, 0xd8,
|
||||
0x94, 0x66, 0x23, 0xe9, 0x9e, 0x73, 0x46, 0xf7, 0xdc, 0x73, 0x25, 0xa4, 0x85, 0x4c, 0x64, 0x9c,
|
||||
0xda, 0x5c, 0x64, 0x04, 0xe4, 0xd5, 0xca, 0x18, 0xe5, 0x14, 0x77, 0x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xe7, 0x46, 0x57, 0x57, 0x1b, 0x5d, 0xfd, 0xbd, 0xd1, 0xd5,
|
||||
0x6f, 0x5b, 0x5d, 0x59, 0x6d, 0x75, 0xe5, 0xd7, 0x56, 0x57, 0x3e, 0xbc, 0x8c, 0x62, 0x3e, 0xcf,
|
||||
0x03, 0x2b, 0xa4, 0xa9, 0x2d, 0x63, 0x28, 0x6f, 0x67, 0x30, 0x5b, 0xd8, 0xfb, 0xff, 0x41, 0xf0,
|
||||
0x5f, 0xb1, 0xb3, 0xd7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x46, 0x56, 0x25, 0x1e, 0x03,
|
||||
0x00, 0x00,
|
||||
var fileDescriptor_5fa415c569c5d31a = []byte{
|
||||
// 500 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xd3, 0x30,
|
||||
0x18, 0xc7, 0xe3, 0x76, 0x65, 0xab, 0xbb, 0xad, 0x60, 0x55, 0x22, 0xab, 0x44, 0x52, 0xe5, 0x80,
|
||||
0x0a, 0x12, 0xa9, 0x5a, 0xd4, 0x21, 0x7a, 0x5b, 0xc6, 0x61, 0x52, 0x85, 0x54, 0x65, 0x1c, 0x10,
|
||||
0x12, 0xaa, 0x92, 0xd4, 0xa4, 0x51, 0x93, 0x38, 0xb2, 0x1d, 0x09, 0x3f, 0x01, 0x57, 0x8e, 0x1c,
|
||||
0xb7, 0x3b, 0x0f, 0xc2, 0xb1, 0x47, 0x4e, 0x15, 0x4a, 0xdf, 0x60, 0x4f, 0x80, 0x6a, 0x27, 0xdb,
|
||||
0x00, 0x71, 0x72, 0xbe, 0xff, 0xef, 0x73, 0xfc, 0xff, 0x7f, 0x36, 0xec, 0x06, 0x84, 0x25, 0x84,
|
||||
0x0d, 0x02, 0x2a, 0x32, 0x4e, 0xca, 0xc5, 0xce, 0x28, 0xe1, 0x04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1a, 0xda, 0xcf, 0xad, 0xa1, 0x7d, 0x78, 0x16, 0x46, 0x7c, 0x99, 0xfb,
|
||||
0x76, 0x40, 0x92, 0x41, 0xf5, 0xa0, 0xe5, 0xf2, 0x82, 0x2d, 0x56, 0xd5, 0xdb, 0xe6, 0x22, 0xc3,
|
||||
0xcc, 0x7f, 0x20, 0x2f, 0xeb, 0xe5, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0xa2, 0x1f, 0xee,
|
||||
0xf9, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *PublicKey) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -409,7 +408,7 @@ func (m *PublicKey_Secp256K1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if m.Secp256K1 != nil {
|
||||
i -= len(m.Secp256K1)
|
||||
copy(dAtA[i:], m.Secp256K1)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Secp256K1)))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(len(m.Secp256K1)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -425,7 +424,7 @@ func (m *PublicKey_Ed25519) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if m.Ed25519 != nil {
|
||||
i -= len(m.Ed25519)
|
||||
copy(dAtA[i:], m.Ed25519)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Ed25519)))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(len(m.Ed25519)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
|
@ -441,7 +440,7 @@ func (m *PublicKey_Sr25519) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if m.Sr25519 != nil {
|
||||
i -= len(m.Sr25519)
|
||||
copy(dAtA[i:], m.Sr25519)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Sr25519)))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(len(m.Sr25519)))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
|
@ -461,7 +460,7 @@ func (m *PublicKey_Multisig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
|
@ -478,7 +477,7 @@ func (m *PublicKey_Secp256R1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if m.Secp256R1 != nil {
|
||||
i -= len(m.Secp256R1)
|
||||
copy(dAtA[i:], m.Secp256R1)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Secp256R1)))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(len(m.Secp256R1)))
|
||||
i--
|
||||
dAtA[i] = 0x2a
|
||||
}
|
||||
|
@ -498,7 +497,7 @@ func (m *PublicKey_AnyPubkey) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x7a
|
||||
|
@ -533,14 +532,14 @@ func (m *PubKeyMultisigThreshold) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
}
|
||||
if m.K != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.K))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(m.K))
|
||||
i--
|
||||
dAtA[i] = 0x8
|
||||
}
|
||||
|
@ -575,7 +574,7 @@ func (m *MultiSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- {
|
||||
i -= len(m.Signatures[iNdEx])
|
||||
copy(dAtA[i:], m.Signatures[iNdEx])
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Signatures[iNdEx])))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(len(m.Signatures[iNdEx])))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -606,20 +605,20 @@ func (m *CompactBitArray) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Elems) > 0 {
|
||||
i -= len(m.Elems)
|
||||
copy(dAtA[i:], m.Elems)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Elems)))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(len(m.Elems)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if m.ExtraBitsStored != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.ExtraBitsStored))
|
||||
i = encodeVarintCrypto(dAtA, i, uint64(m.ExtraBitsStored))
|
||||
i--
|
||||
dAtA[i] = 0x8
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintCrypto(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovCrypto(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -649,7 +648,7 @@ func (m *PublicKey_Secp256K1) Size() (n int) {
|
|||
_ = l
|
||||
if m.Secp256K1 != nil {
|
||||
l = len(m.Secp256K1)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrypto(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -661,7 +660,7 @@ func (m *PublicKey_Ed25519) Size() (n int) {
|
|||
_ = l
|
||||
if m.Ed25519 != nil {
|
||||
l = len(m.Ed25519)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrypto(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -673,7 +672,7 @@ func (m *PublicKey_Sr25519) Size() (n int) {
|
|||
_ = l
|
||||
if m.Sr25519 != nil {
|
||||
l = len(m.Sr25519)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrypto(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -685,7 +684,7 @@ func (m *PublicKey_Multisig) Size() (n int) {
|
|||
_ = l
|
||||
if m.Multisig != nil {
|
||||
l = m.Multisig.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrypto(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -697,7 +696,7 @@ func (m *PublicKey_Secp256R1) Size() (n int) {
|
|||
_ = l
|
||||
if m.Secp256R1 != nil {
|
||||
l = len(m.Secp256R1)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrypto(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -709,7 +708,7 @@ func (m *PublicKey_AnyPubkey) Size() (n int) {
|
|||
_ = l
|
||||
if m.AnyPubkey != nil {
|
||||
l = m.AnyPubkey.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrypto(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -720,12 +719,12 @@ func (m *PubKeyMultisigThreshold) Size() (n int) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.K != 0 {
|
||||
n += 1 + sovTypes(uint64(m.K))
|
||||
n += 1 + sovCrypto(uint64(m.K))
|
||||
}
|
||||
if len(m.PubKeys) > 0 {
|
||||
for _, e := range m.PubKeys {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrypto(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -740,7 +739,7 @@ func (m *MultiSignature) Size() (n int) {
|
|||
if len(m.Signatures) > 0 {
|
||||
for _, b := range m.Signatures {
|
||||
l = len(b)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrypto(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
|
@ -749,11 +748,11 @@ func (m *MultiSignature) Size() (n int) {
|
|||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovCrypto(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozCrypto(x uint64) (n int) {
|
||||
return sovCrypto(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -763,7 +762,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -791,7 +790,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -804,11 +803,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -824,7 +823,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -837,11 +836,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -857,7 +856,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -870,11 +869,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -890,7 +889,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -903,11 +902,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -925,7 +924,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -938,11 +937,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -958,7 +957,7 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -971,11 +970,11 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -988,15 +987,15 @@ func (m *PublicKey) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCrypto(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1018,7 +1017,7 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1046,7 +1045,7 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error {
|
|||
m.K = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1065,7 +1064,7 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1078,11 +1077,11 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1094,15 +1093,15 @@ func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCrypto(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1124,7 +1123,7 @@ func (m *MultiSignature) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1152,7 +1151,7 @@ func (m *MultiSignature) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1165,11 +1164,11 @@ func (m *MultiSignature) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1179,15 +1178,15 @@ func (m *MultiSignature) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCrypto(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1210,7 +1209,7 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1238,7 +1237,7 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error {
|
|||
m.ExtraBitsStored = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1257,7 +1256,7 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1270,11 +1269,11 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1286,15 +1285,15 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCrypto(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrypto
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1308,7 +1307,7 @@ func (m *CompactBitArray) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipCrypto(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -1316,7 +1315,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1333,7 +1332,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1349,7 +1348,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCrypto
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1362,14 +1361,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthCrypto
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupCrypto
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -1378,7 +1377,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthCrypto
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -1388,7 +1387,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthCrypto = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowCrypto = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupCrypto = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,8 +1,8 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.auth.v1;
|
||||
package cosmos.auth;
|
||||
|
||||
import "third_party/proto/cosmos-proto/cosmos.proto";
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types";
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.bank.v1;
|
||||
package cosmos.bank;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "third_party/proto/cosmos-proto/cosmos.proto";
|
||||
import "types/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
import "cosmos/cosmos.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
|
||||
|
||||
|
@ -19,7 +19,7 @@ message MsgSend {
|
|||
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
|
||||
(gogoproto.moretags) = "yaml:\"to_address\""
|
||||
];
|
||||
repeated cosmos_sdk.v1.Coin amount = 3
|
||||
repeated cosmos.Coin amount = 3
|
||||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ message Input {
|
|||
option (gogoproto.equal) = true;
|
||||
|
||||
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
repeated cosmos_sdk.v1.Coin coins = 2
|
||||
repeated cosmos.Coin coins = 2
|
||||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ message Output {
|
|||
option (gogoproto.equal) = true;
|
||||
|
||||
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
repeated cosmos_sdk.v1.Coin coins = 2
|
||||
repeated cosmos.Coin coins = 2
|
||||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
||||
|
||||
|
@ -57,6 +57,6 @@ message Supply {
|
|||
option (gogoproto.goproto_stringer) = false;
|
||||
option (cosmos_proto.implements_interface) = "*github.com/cosmos/cosmos-sdk/x/bank/exported.SupplyI";
|
||||
|
||||
repeated cosmos_sdk.v1.Coin total = 1
|
||||
repeated cosmos.Coin total = 1
|
||||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.bank.v1;
|
||||
package cosmos.bank;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "types/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos/cosmos.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
|
||||
|
||||
|
@ -34,7 +34,7 @@ message QueryBalanceRequest {
|
|||
message QueryBalanceResponse {
|
||||
|
||||
// balance is the balance of the coin
|
||||
cosmos_sdk.v1.Coin balance = 1;
|
||||
cosmos.Coin balance = 1;
|
||||
}
|
||||
|
||||
// QueryBalanceRequest is the request type for the Query/AllBalances RPC method
|
||||
|
@ -46,7 +46,7 @@ message QueryAllBalancesRequest {
|
|||
// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method
|
||||
message QueryAllBalancesResponse {
|
||||
// balances is the balances of the coins
|
||||
repeated cosmos_sdk.v1.Coin balances = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
repeated cosmos.Coin balances = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
||||
|
||||
// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method
|
||||
|
@ -55,7 +55,7 @@ message QueryTotalSupplyRequest { }
|
|||
// QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC method
|
||||
message QueryTotalSupplyResponse {
|
||||
// supply is the supply of the coins
|
||||
repeated cosmos_sdk.v1.Coin supply = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
repeated cosmos.Coin supply = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
||||
|
||||
// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method
|
|
@ -1,10 +1,9 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package cosmos_sdk.x.capability.v1;
|
||||
package cosmos.capability;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types";
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
// Capability defines an implementation of an object capability. The index provided to
|
||||
// a Capability must be globally unique.
|
|
@ -1,8 +1,8 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.v1;
|
||||
package cosmos;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "third_party/proto/tendermint/abci/types/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "tendermint/abci/types/types.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/types";
|
||||
option (gogoproto.goproto_stringer_all) = false;
|
|
@ -1,9 +1,9 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.crisis.v1;
|
||||
package cosmos.crisis;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/crisis/types";
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
// MsgVerifyInvariant - message struct to verify a particular invariance
|
||||
message MsgVerifyInvariant {
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.crypto.v1;
|
||||
package cosmos.crypto;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/crypto/types";
|
|
@ -1,11 +1,11 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.distribution.v1;
|
||||
package cosmos.distribution;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types";
|
||||
option (gogoproto.equal_all) = true;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "types/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos/cosmos.proto";
|
||||
|
||||
// msg struct for changing the withdraw address for a delegator (or validator self-delegation)
|
||||
message MsgSetWithdrawAddress {
|
||||
|
@ -42,7 +42,7 @@ message MsgWithdrawValidatorCommission {
|
|||
// MsgFundCommunityPool defines a Msg type that allows an account to directly
|
||||
// fund the community pool.
|
||||
message MsgFundCommunityPool {
|
||||
repeated cosmos_sdk.v1.Coin amount = 1 [
|
||||
repeated cosmos.Coin amount = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||||
];
|
||||
|
@ -83,7 +83,7 @@ message Params {
|
|||
// + number of slashes which ended the associated period (and might need to read that record)
|
||||
// + one per validator for the zeroeth period, set on initialization
|
||||
message ValidatorHistoricalRewards {
|
||||
repeated cosmos_sdk.v1.DecCoin cumulative_reward_ratio = 1 [
|
||||
repeated cosmos.DecCoin cumulative_reward_ratio = 1 [
|
||||
(gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"",
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
|
||||
(gogoproto.nullable) = false
|
||||
|
@ -95,7 +95,7 @@ message ValidatorHistoricalRewards {
|
|||
// kept as a running counter and incremented each block
|
||||
// as long as the validator's tokens remain constant
|
||||
message ValidatorCurrentRewards {
|
||||
repeated cosmos_sdk.v1.DecCoin rewards = 1 [
|
||||
repeated cosmos.DecCoin rewards = 1 [
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
|
||||
(gogoproto.nullable) = false
|
||||
];
|
||||
|
@ -105,7 +105,7 @@ message ValidatorCurrentRewards {
|
|||
// accumulated commission for a validator
|
||||
// kept as a running counter, can be withdrawn at any time
|
||||
message ValidatorAccumulatedCommission {
|
||||
repeated cosmos_sdk.v1.DecCoin commission = 1 [
|
||||
repeated cosmos.DecCoin commission = 1 [
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
|
||||
(gogoproto.nullable) = false
|
||||
];
|
||||
|
@ -114,7 +114,7 @@ message ValidatorAccumulatedCommission {
|
|||
// outstanding (un-withdrawn) rewards for a validator
|
||||
// inexpensive to track, allows simple sanity checks
|
||||
message ValidatorOutstandingRewards {
|
||||
repeated cosmos_sdk.v1.DecCoin rewards = 1 [
|
||||
repeated cosmos.DecCoin rewards = 1 [
|
||||
(gogoproto.moretags) = "yaml:\"rewards\"",
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
|
||||
(gogoproto.nullable) = false
|
||||
|
@ -142,7 +142,7 @@ message ValidatorSlashEvents {
|
|||
|
||||
// global fee pool for distribution
|
||||
message FeePool {
|
||||
repeated cosmos_sdk.v1.DecCoin community_pool = 1 [
|
||||
repeated cosmos.DecCoin community_pool = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
|
||||
(gogoproto.moretags) = "yaml:\"community_pool\""
|
||||
|
@ -156,7 +156,7 @@ message CommunityPoolSpendProposal {
|
|||
string title = 1;
|
||||
string description = 2;
|
||||
bytes recipient = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
repeated cosmos_sdk.v1.Coin amount = 4 [
|
||||
repeated cosmos.Coin amount = 4 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||||
];
|
|
@ -1,10 +1,10 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.evidence.v1;
|
||||
package cosmos.evidence;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types";
|
||||
option (gogoproto.equal_all) = true;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.gov.v1;
|
||||
package cosmos.gov;
|
||||
|
||||
import "types/types.proto";
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "third_party/proto/cosmos-proto/cosmos.proto";
|
||||
import "cosmos/cosmos.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
|
@ -18,7 +18,7 @@ message MsgSubmitProposal {
|
|||
option (gogoproto.equal) = true;
|
||||
|
||||
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"];
|
||||
repeated cosmos_sdk.v1.Coin initial_deposit = 2 [
|
||||
repeated cosmos.Coin initial_deposit = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||
(gogoproto.moretags) = "yaml:\"initial_deposit\""
|
||||
|
@ -49,7 +49,7 @@ message MsgDeposit {
|
|||
(gogoproto.jsontag) = "proposal_id"
|
||||
];
|
||||
bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
repeated cosmos_sdk.v1.Coin amount = 3
|
||||
repeated cosmos.Coin amount = 3
|
||||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ message Deposit {
|
|||
|
||||
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID", (gogoproto.moretags) = "yaml:\"proposal_id\""];
|
||||
bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
repeated cosmos_sdk.v1.Coin amount = 3
|
||||
repeated cosmos.Coin amount = 3
|
||||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ message Proposal {
|
|||
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"submit_time\""];
|
||||
google.protobuf.Timestamp deposit_end_time = 6
|
||||
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"deposit_end_time\""];
|
||||
repeated cosmos_sdk.v1.Coin total_deposit = 7 [
|
||||
repeated cosmos.Coin total_deposit = 7 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||
(gogoproto.moretags) = "yaml:\"total_deposit\""
|
|
@ -1,9 +1,9 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.mint.v1;
|
||||
package cosmos.mint;
|
||||
|
||||
option go_package = "types";
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types";
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
// Minter represents the minting state.
|
||||
message Minter {
|
|
@ -1,10 +1,10 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.params.v1;
|
||||
package cosmos.params;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal";
|
||||
option (gogoproto.equal_all) = true;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
// ParameterChangeProposal defines a proposal which contains multiple parameter
|
||||
// changes.
|
|
@ -1,10 +1,10 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.slashing.v1;
|
||||
package cosmos.slashing;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types";
|
||||
option (gogoproto.equal_all) = true;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
// MsgUnjail - struct for unjailing jailed validator
|
|
@ -1,11 +1,11 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.staking.v1;
|
||||
package cosmos.staking;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "third_party/proto/tendermint/abci/types/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "tendermint/abci/types/types.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "types/types.proto";
|
||||
import "cosmos/cosmos.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types";
|
||||
|
||||
|
@ -29,7 +29,7 @@ message MsgCreateValidator {
|
|||
(gogoproto.moretags) = "yaml:\"validator_address\""
|
||||
];
|
||||
string pubkey = 6;
|
||||
cosmos_sdk.v1.Coin value = 7 [(gogoproto.nullable) = false];
|
||||
cosmos.Coin value = 7 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// MsgEditValidator defines an SDK message for editing an existing validator.
|
||||
|
@ -70,7 +70,7 @@ message MsgDelegate {
|
|||
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
|
||||
(gogoproto.moretags) = "yaml:\"validator_address\""
|
||||
];
|
||||
cosmos_sdk.v1.Coin amount = 3 [(gogoproto.nullable) = false];
|
||||
cosmos.Coin amount = 3 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// MsgBeginRedelegate defines an SDK message for performing a redelegation from
|
||||
|
@ -90,7 +90,7 @@ message MsgBeginRedelegate {
|
|||
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
|
||||
(gogoproto.moretags) = "yaml:\"validator_dst_address\""
|
||||
];
|
||||
cosmos_sdk.v1.Coin amount = 4 [(gogoproto.nullable) = false];
|
||||
cosmos.Coin amount = 4 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// MsgUndelegate defines an SDK message for performing an undelegation from a
|
||||
|
@ -106,7 +106,7 @@ message MsgUndelegate {
|
|||
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
|
||||
(gogoproto.moretags) = "yaml:\"validator_address\""
|
||||
];
|
||||
cosmos_sdk.v1.Coin amount = 3 [(gogoproto.nullable) = false];
|
||||
cosmos.Coin amount = 3 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// HistoricalInfo contains the historical information that gets stored at
|
|
@ -1,5 +1,5 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.tx.signing.v1;
|
||||
package cosmos.tx.signing;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/types/tx/signing";
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.tx.v1;
|
||||
package cosmos.tx;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "crypto/types/types.proto";
|
||||
import "types/types.proto";
|
||||
import "types/tx/signing/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos/crypto/crypto.proto";
|
||||
import "cosmos/cosmos.proto";
|
||||
import "cosmos/tx/signing/signing.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/tx/types";
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/types/tx";
|
||||
|
||||
// Tx is the standard type used for broadcasting transactions
|
||||
message Tx {
|
||||
|
@ -105,13 +105,13 @@ message ModeInfo {
|
|||
// to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the future
|
||||
message Single {
|
||||
// mode is the signing mode of the single signer
|
||||
cosmos_sdk.tx.signing.v1.SignMode mode = 1;
|
||||
cosmos.tx.signing.SignMode mode = 1;
|
||||
}
|
||||
|
||||
// Multi is the mode info for a multisig public key
|
||||
message Multi {
|
||||
// bitarray specifies which keys within the multisig are signing
|
||||
cosmos_sdk.crypto.v1.CompactBitArray bitarray = 1;
|
||||
cosmos.crypto.CompactBitArray bitarray = 1;
|
||||
|
||||
// mode_infos is the corresponding modes of the signers of the multisig
|
||||
// which could include nested multisig public keys
|
||||
|
@ -124,7 +124,7 @@ message ModeInfo {
|
|||
// which must be above some miminum to be accepted into the mempool.
|
||||
message Fee {
|
||||
// amount is the amount of coins to be paid as a fee
|
||||
repeated cosmos_sdk.v1.Coin amount = 1
|
||||
repeated cosmos.Coin amount = 1
|
||||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
|
||||
// gas_limit is the maximum gas that can be used in transaction processing
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.upgrade.v1;
|
||||
package cosmos.upgrade;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/upgrade/types";
|
|
@ -1,9 +1,9 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.auth.vesting.v1;
|
||||
package cosmos.vesting;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "types/types.proto";
|
||||
import "x/auth/types/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos/cosmos.proto";
|
||||
import "cosmos/auth/auth.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types";
|
||||
|
||||
|
@ -13,18 +13,18 @@ message BaseVestingAccount {
|
|||
option (gogoproto.goproto_getters) = false;
|
||||
option (gogoproto.goproto_stringer) = false;
|
||||
|
||||
cosmos_sdk.x.auth.v1.BaseAccount base_account = 1 [(gogoproto.embed) = true];
|
||||
repeated cosmos_sdk.v1.Coin original_vesting = 2 [
|
||||
cosmos.auth.BaseAccount base_account = 1 [(gogoproto.embed) = true];
|
||||
repeated cosmos.Coin original_vesting = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||
(gogoproto.moretags) = "yaml:\"original_vesting\""
|
||||
];
|
||||
repeated cosmos_sdk.v1.Coin delegated_free = 3 [
|
||||
repeated cosmos.Coin delegated_free = 3 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||
(gogoproto.moretags) = "yaml:\"delegated_free\""
|
||||
];
|
||||
repeated cosmos_sdk.v1.Coin delegated_vesting = 4 [
|
||||
repeated cosmos.Coin delegated_vesting = 4 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||
(gogoproto.moretags) = "yaml:\"delegated_vesting\""
|
||||
|
@ -57,7 +57,7 @@ message Period {
|
|||
option (gogoproto.goproto_stringer) = false;
|
||||
|
||||
int64 length = 1;
|
||||
repeated cosmos_sdk.v1.Coin amount = 2 [
|
||||
repeated cosmos.Coin amount = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||||
];
|
|
@ -1,9 +1,9 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.ibc.channel.v1;
|
||||
package ibc.channel;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/04-channel/types";
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
// MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It is
|
||||
// called by a relayer on Chain A.
|
|
@ -1,10 +1,10 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.ibc.commitment.v1;
|
||||
package ibc.commitment;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/23-commitment/types";
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "third_party/proto/tendermint/crypto/merkle/merkle.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "tendermint/crypto/merkle/merkle.proto";
|
||||
|
||||
// MerkleRoot defines a merkle root hash.
|
||||
// In the Cosmos SDK, the AppHash of a block header becomes the root.
|
||||
|
@ -66,4 +66,4 @@ enum KeyEncoding {
|
|||
KEY_ENCODING_URL_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "URL"];
|
||||
// Hex encoding
|
||||
KEY_ENCODING_HEX = 1 [(gogoproto.enumvalue_customname) = "HEX"];
|
||||
}
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.ibc.connection.v1;
|
||||
package ibc.connection;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/03-connection/types";
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "x/ibc/23-commitment/types/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "ibc/commitment/commitment.proto";
|
||||
|
||||
// MsgConnectionOpenInit defines the msg sent by an account on Chain A to
|
||||
// initialize a connection with Chain B.
|
||||
|
@ -105,7 +105,7 @@ message Counterparty {
|
|||
// identifies the connection end on the counterparty chain associated with a given connection.
|
||||
string connection_id = 2 [(gogoproto.customname) = "ConnectionID", (gogoproto.moretags) = "yaml:\"connection_id\""];
|
||||
// commitment merkle prefix of the counterparty chain
|
||||
cosmos_sdk.x.ibc.commitment.v1.MerklePrefix prefix = 3 [(gogoproto.nullable) = false];
|
||||
ibc.commitment.MerklePrefix prefix = 3 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// ClientPaths define all the connection paths for a client state.
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.ibc.localhost.v1;
|
||||
package ibc.localhost;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/09-localhost/types";
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
syntax = "proto3";
|
||||
package cosmos_sdk.x.transfer.v1;
|
||||
package ibc.transfer;
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc-transfer/types";
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "types/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos/cosmos.proto";
|
||||
|
||||
// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between ICS20 enabled chains.
|
||||
// See ICS Spec here: https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures
|
||||
|
@ -18,7 +18,7 @@ message MsgTransfer {
|
|||
(gogoproto.moretags) = "yaml:\"source_channel\""
|
||||
];
|
||||
// the tokens to be transferred
|
||||
repeated cosmos_sdk.v1.Coin amount = 3 [
|
||||
repeated cosmos.Coin amount = 3 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||||
];
|
||||
|
@ -40,7 +40,7 @@ message MsgTransfer {
|
|||
// See FungibleTokenPacketData spec: https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures
|
||||
message FungibleTokenPacketData {
|
||||
// the tokens to be transferred
|
||||
repeated cosmos_sdk.v1.Coin amount = 1 [
|
||||
repeated cosmos.Coin amount = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||||
];
|
||||
|
@ -56,4 +56,4 @@ message FungibleTokenPacketData {
|
|||
message FungibleTokenPacketAcknowledgement {
|
||||
bool success = 1;
|
||||
string error = 2;
|
||||
}
|
||||
}
|
|
@ -2,11 +2,15 @@
|
|||
|
||||
set -eo pipefail
|
||||
|
||||
proto_dirs=$(find . -path ./third_party -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
|
||||
proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
|
||||
for dir in $proto_dirs; do
|
||||
protoc \
|
||||
-I. \
|
||||
--gocosmos_out=plugins=interfacetype+grpc,paths=source_relative,\
|
||||
-I "proto" \
|
||||
-I "third_party/proto" \
|
||||
--gocosmos_out=plugins=interfacetype+grpc,\
|
||||
Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. \
|
||||
$(find "${dir}" -maxdepth 1 -name '*.proto')
|
||||
done
|
||||
|
||||
cp -r github.com/cosmos/cosmos-sdk/* ./
|
||||
rm -rf github.com
|
||||
|
|
|
@ -32,7 +32,7 @@ syntax = "proto3";
|
|||
|
||||
package google.protobuf;
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option go_package = "types";
|
||||
|
|
|
@ -4,9 +4,9 @@ option go_package = "github.com/tendermint/tendermint/abci/types";
|
|||
|
||||
// For more information on gogo.proto, see:
|
||||
// https://github.com/gogo/protobuf/blob/master/extensions.md
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "third_party/proto/tendermint/crypto/merkle/merkle.proto";
|
||||
import "third_party/proto/tendermint/libs/kv/types.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "tendermint/crypto/merkle/merkle.proto";
|
||||
import "tendermint/libs/kv/types.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ option go_package = "github.com/tendermint/tendermint/crypto/merkle";
|
|||
|
||||
// For more information on gogo.proto, see:
|
||||
// https://github.com/gogo/protobuf/blob/master/extensions.md
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option (gogoproto.marshaler_all) = true;
|
||||
option (gogoproto.unmarshaler_all) = true;
|
||||
|
|
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
|||
package tendermint.libs.kv;
|
||||
option go_package = "github.com/tendermint/tendermint/libs/kv";
|
||||
|
||||
import "third_party/proto/gogoproto/gogo.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option (gogoproto.marshaler_all) = true;
|
||||
option (gogoproto.unmarshaler_all) = true;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: types/tx/signing/types.proto
|
||||
// source: cosmos/tx/signing/signing.proto
|
||||
|
||||
package signing
|
||||
|
||||
|
@ -56,29 +56,29 @@ func (x SignMode) String() string {
|
|||
}
|
||||
|
||||
func (SignMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_52d5d5e2efced9ba, []int{0}
|
||||
return fileDescriptor_8a04324e5f3729bf, []int{0}
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cosmos_sdk.tx.signing.v1.SignMode", SignMode_name, SignMode_value)
|
||||
proto.RegisterEnum("cosmos.tx.signing.SignMode", SignMode_name, SignMode_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("types/tx/signing/types.proto", fileDescriptor_52d5d5e2efced9ba) }
|
||||
func init() { proto.RegisterFile("cosmos/tx/signing/signing.proto", fileDescriptor_8a04324e5f3729bf) }
|
||||
|
||||
var fileDescriptor_52d5d5e2efced9ba = []byte{
|
||||
// 222 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0xa9, 0x2c, 0x48,
|
||||
0x2d, 0xd6, 0x2f, 0xa9, 0xd0, 0x2f, 0xce, 0x4c, 0xcf, 0xcb, 0xcc, 0x4b, 0xd7, 0x07, 0x0b, 0xe8,
|
||||
0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x49, 0x24, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xc7, 0x17, 0xa7,
|
||||
0x64, 0xeb, 0x95, 0x54, 0xe8, 0x41, 0x95, 0xe8, 0x95, 0x19, 0x6a, 0x15, 0x73, 0x71, 0x04, 0x67,
|
||||
0xa6, 0xe7, 0xf9, 0xe6, 0xa7, 0xa4, 0x0a, 0x49, 0x72, 0x89, 0x06, 0x7b, 0xba, 0xfb, 0xc5, 0xfb,
|
||||
0xfa, 0xbb, 0xb8, 0xc6, 0x87, 0xfa, 0x05, 0x07, 0xb8, 0x3a, 0x7b, 0xba, 0x79, 0xba, 0xba, 0x08,
|
||||
0x30, 0x08, 0x89, 0x70, 0x09, 0x20, 0xa4, 0x5c, 0x3c, 0x83, 0x5c, 0x9d, 0x43, 0x04, 0x18, 0x85,
|
||||
0x44, 0xb9, 0x04, 0x11, 0xa2, 0x21, 0xae, 0x11, 0x21, 0xa1, 0x8e, 0x3e, 0x02, 0x4c, 0x42, 0xf2,
|
||||
0x5c, 0xd2, 0x08, 0x61, 0x1f, 0x57, 0x77, 0x47, 0xe7, 0xc8, 0x78, 0x47, 0x5f, 0x4f, 0x3f, 0xff,
|
||||
0x78, 0xaf, 0x60, 0x7f, 0x3f, 0x81, 0x7a, 0x27, 0xf7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92,
|
||||
0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c,
|
||||
0x96, 0x63, 0x88, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87,
|
||||
0xb8, 0x19, 0x4a, 0xe9, 0x16, 0xa7, 0x64, 0xeb, 0xa3, 0xfb, 0x31, 0x89, 0x0d, 0xec, 0x3d, 0x63,
|
||||
0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x11, 0xdd, 0x92, 0xfe, 0x00, 0x00, 0x00,
|
||||
var fileDescriptor_8a04324e5f3729bf = []byte{
|
||||
// 214 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xce, 0x2f, 0xce,
|
||||
0xcd, 0x2f, 0xd6, 0x2f, 0xa9, 0xd0, 0x2f, 0xce, 0x4c, 0xcf, 0xcb, 0xcc, 0x4b, 0x87, 0xd1, 0x7a,
|
||||
0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x82, 0x10, 0x05, 0x7a, 0x25, 0x15, 0x7a, 0x50, 0x09, 0xad,
|
||||
0x62, 0x2e, 0x8e, 0xe0, 0xcc, 0xf4, 0x3c, 0xdf, 0xfc, 0x94, 0x54, 0x21, 0x49, 0x2e, 0xd1, 0x60,
|
||||
0x4f, 0x77, 0xbf, 0x78, 0x5f, 0x7f, 0x17, 0xd7, 0xf8, 0x50, 0xbf, 0xe0, 0x00, 0x57, 0x67, 0x4f,
|
||||
0x37, 0x4f, 0x57, 0x17, 0x01, 0x06, 0x21, 0x11, 0x2e, 0x01, 0x84, 0x94, 0x8b, 0x67, 0x90, 0xab,
|
||||
0x73, 0x88, 0x00, 0xa3, 0x90, 0x28, 0x97, 0x20, 0x42, 0x34, 0xc4, 0x35, 0x22, 0x24, 0xd4, 0xd1,
|
||||
0x47, 0x80, 0x49, 0x48, 0x9e, 0x4b, 0x1a, 0x21, 0xec, 0xe3, 0xea, 0xee, 0xe8, 0x1c, 0x19, 0xef,
|
||||
0xe8, 0xeb, 0xe9, 0xe7, 0x1f, 0xef, 0x15, 0xec, 0xef, 0x27, 0x50, 0xef, 0xe4, 0x7e, 0xe2, 0x91,
|
||||
0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1,
|
||||
0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xba, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a,
|
||||
0xc9, 0xf9, 0xb9, 0xfa, 0x50, 0xdf, 0x40, 0x28, 0xdd, 0xe2, 0x94, 0x6c, 0xfd, 0x92, 0xca, 0x82,
|
||||
0x54, 0x64, 0xef, 0x25, 0xb1, 0x81, 0xfd, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x92,
|
||||
0x08, 0x61, 0xfa, 0x00, 0x00, 0x00,
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/auth/types/types.proto
|
||||
// source: cosmos/auth/auth.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -38,7 +38,7 @@ type BaseAccount struct {
|
|||
func (m *BaseAccount) Reset() { *m = BaseAccount{} }
|
||||
func (*BaseAccount) ProtoMessage() {}
|
||||
func (*BaseAccount) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d526fa662daab74, []int{0}
|
||||
return fileDescriptor_ec2401f40a84da7e, []int{0}
|
||||
}
|
||||
func (m *BaseAccount) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -77,7 +77,7 @@ type ModuleAccount struct {
|
|||
func (m *ModuleAccount) Reset() { *m = ModuleAccount{} }
|
||||
func (*ModuleAccount) ProtoMessage() {}
|
||||
func (*ModuleAccount) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d526fa662daab74, []int{1}
|
||||
return fileDescriptor_ec2401f40a84da7e, []int{1}
|
||||
}
|
||||
func (m *ModuleAccount) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -118,7 +118,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_ec2401f40a84da7e, []int{2}
|
||||
}
|
||||
func (m *Params) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -183,57 +183,56 @@ func (m *Params) GetSigVerifyCostSecp256k1() uint64 {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*BaseAccount)(nil), "cosmos_sdk.x.auth.v1.BaseAccount")
|
||||
proto.RegisterType((*ModuleAccount)(nil), "cosmos_sdk.x.auth.v1.ModuleAccount")
|
||||
proto.RegisterType((*Params)(nil), "cosmos_sdk.x.auth.v1.Params")
|
||||
proto.RegisterType((*BaseAccount)(nil), "cosmos.auth.BaseAccount")
|
||||
proto.RegisterType((*ModuleAccount)(nil), "cosmos.auth.ModuleAccount")
|
||||
proto.RegisterType((*Params)(nil), "cosmos.auth.Params")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/auth/types/types.proto", fileDescriptor_2d526fa662daab74) }
|
||||
func init() { proto.RegisterFile("cosmos/auth/auth.proto", fileDescriptor_ec2401f40a84da7e) }
|
||||
|
||||
var fileDescriptor_2d526fa662daab74 = []byte{
|
||||
// 668 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x4f, 0xdb, 0x48,
|
||||
0x14, 0x8f, 0x49, 0x96, 0x3f, 0x13, 0x40, 0xc2, 0x04, 0x30, 0xd9, 0x95, 0x27, 0xeb, 0xc3, 0x8a,
|
||||
0x55, 0x1b, 0x47, 0xa1, 0xa2, 0x12, 0x39, 0x54, 0xc5, 0xb4, 0x95, 0x10, 0x05, 0x21, 0x23, 0xf5,
|
||||
0xd0, 0x8b, 0x35, 0xb6, 0xa7, 0x89, 0x95, 0x4c, 0xc6, 0x78, 0xc6, 0x28, 0xe6, 0x13, 0xf4, 0xd8,
|
||||
0x53, 0xd5, 0x23, 0x1f, 0xa2, 0x1f, 0xa1, 0x87, 0x1e, 0x51, 0x4f, 0x3d, 0xb9, 0x55, 0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0xdd, 0x56, 0x35, 0x73, 0xd6,
|
||||
0x0f, 0xed, 0x43, 0x1c, 0xc9, 0x8f, 0xc1, 0x32, 0x12, 0xfd, 0x59, 0xfd, 0x90, 0xd8, 0x38, 0x50,
|
||||
0x8a, 0x35, 0x69, 0xab, 0x64, 0x6c, 0x26, 0x31, 0x5c, 0x13, 0xb4, 0xc9, 0xba, 0x66, 0x2e, 0x8d,
|
||||
0x12, 0xc7, 0x59, 0x2c, 0x57, 0xc1, 0x3c, 0xc3, 0x67, 0x21, 0xee, 0x3b, 0x58, 0x29, 0xa5, 0x5c,
|
||||
0x73, 0x1c, 0xb7, 0x2a, 0xaf, 0x2f, 0x61, 0xe1, 0xdd, 0x25, 0x2c, 0x7c, 0x7a, 0x5f, 0x9f, 0x1f,
|
||||
0xcd, 0xe1, 0x40, 0xfb, 0x20, 0x81, 0xa5, 0x23, 0xea, 0x86, 0xbd, 0xf1, 0x68, 0x10, 0x58, 0xb4,
|
||||
0x11, 0xc3, 0xd6, 0x48, 0x39, 0x9b, 0x4f, 0x79, 0xfb, 0x5f, 0x7d, 0xda, 0xb2, 0xf4, 0xdc, 0x4c,
|
||||
0x8d, 0xbf, 0xaf, 0x62, 0x28, 0x25, 0x31, 0x5c, 0x15, 0xad, 0xe6, 0x45, 0x34, 0xb3, 0x6c, 0xe7,
|
||||
0xa6, 0x2f, 0x83, 0x52, 0x1f, 0x11, 0x9c, 0x4d, 0x6b, 0xc1, 0xcc, 0xce, 0x72, 0x0d, 0x94, 0x7d,
|
||||
0x1c, 0x10, 0x8f, 0x31, 0x8f, 0xf6, 0x99, 0x52, 0xac, 0x15, 0xb7, 0x16, 0xcc, 0x7c, 0xaa, 0x55,
|
||||
0xcd, 0x5d, 0x60, 0x79, 0xa2, 0xe7, 0x03, 0xed, 0x4b, 0x11, 0xcc, 0x9e, 0xa0, 0x00, 0x11, 0x26,
|
||||
0x1f, 0x83, 0x55, 0x82, 0x06, 0x16, 0xc1, 0x84, 0x5a, 0x4e, 0x07, 0x05, 0xc8, 0xe1, 0x38, 0x10,
|
||||
0x6b, 0x2e, 0x19, 0x6a, 0x12, 0xc3, 0xaa, 0xe8, 0x6f, 0x0a, 0x48, 0x33, 0x57, 0x08, 0x1a, 0x1c,
|
||||
0x61, 0x42, 0xf7, 0xc7, 0x39, 0x79, 0x17, 0x2c, 0xf2, 0x81, 0xc5, 0xbc, 0xb6, 0xd5, 0xf3, 0x88,
|
||||
0xc7, 0xb3, 0xa6, 0x4b, 0xc6, 0xc6, 0xed, 0x45, 0xf3, 0x55, 0xcd, 0x04, 0x7c, 0x70, 0xea, 0xb5,
|
||||
0x9f, 0xa7, 0x81, 0x6c, 0x82, 0xb5, 0xac, 0x78, 0x81, 0x2d, 0x87, 0x32, 0x6e, 0xf9, 0x38, 0xb0,
|
||||
0xec, 0x88, 0xe3, 0xd1, 0x5e, 0x6b, 0x49, 0x0c, 0xff, 0xc9, 0x69, 0xdc, 0x85, 0x69, 0xe6, 0x4a,
|
||||
0x2a, 0x76, 0x81, 0xf7, 0x29, 0xe3, 0x27, 0x38, 0x30, 0x22, 0x8e, 0xe5, 0x33, 0xb0, 0x91, 0xba,
|
||||
0x9d, 0xe3, 0xc0, 0x7b, 0x15, 0x09, 0x3c, 0x76, 0xb7, 0x77, 0x76, 0x9a, 0xbb, 0x62, 0xe3, 0x46,
|
||||
0x6b, 0x18, 0xc3, 0xca, 0xa9, 0xd7, 0x7e, 0x91, 0x21, 0x52, 0xea, 0xd3, 0x27, 0x59, 0x3d, 0x89,
|
||||
0xa1, 0x2a, 0xdc, 0x7e, 0x23, 0xa0, 0x99, 0x15, 0x36, 0xc1, 0x13, 0x69, 0x39, 0x02, 0x9b, 0x77,
|
||||
0x19, 0x0c, 0x3b, 0xfe, 0xf6, 0xce, 0xc3, 0x6e, 0x53, 0xf9, 0x2b, 0x33, 0x7d, 0x34, 0x8c, 0xe1,
|
||||
0xfa, 0x84, 0xe9, 0xe9, 0x0d, 0x22, 0x89, 0x61, 0x6d, 0xba, 0xed, 0x58, 0x44, 0x33, 0xd7, 0xd9,
|
||||
0x54, 0x6e, 0x6b, 0x3e, 0xdd, 0xf7, 0xb7, 0x4b, 0x28, 0x19, 0xfb, 0x1f, 0x87, 0xaa, 0x74, 0x35,
|
||||
0x54, 0xa5, 0xaf, 0x43, 0x55, 0x7a, 0x73, 0xad, 0x16, 0xae, 0xae, 0xd5, 0xc2, 0xe7, 0x6b, 0xb5,
|
||||
0xf0, 0xf2, 0xff, 0x3f, 0xfe, 0xb6, 0xf9, 0xd7, 0xc7, 0x9e, 0xcd, 0x5e, 0x83, 0x07, 0x3f, 0x03,
|
||||
0x00, 0x00, 0xff, 0xff, 0x11, 0xf8, 0x99, 0x15, 0x94, 0x04, 0x00, 0x00,
|
||||
var fileDescriptor_ec2401f40a84da7e = []byte{
|
||||
// 650 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x4f, 0xdb, 0x4e,
|
||||
0x10, 0x8d, 0x49, 0x7e, 0xfc, 0xd9, 0x00, 0x12, 0x26, 0x80, 0xc9, 0xaf, 0xf2, 0x46, 0x3e, 0x51,
|
||||
0xa9, 0x09, 0x82, 0x8a, 0x4a, 0xe4, 0x50, 0x15, 0xd3, 0x56, 0x42, 0x14, 0x84, 0x16, 0xa9, 0xaa,
|
||||
0x7a, 0xb1, 0xd6, 0xce, 0x36, 0x58, 0x64, 0xb3, 0xc6, 0xbb, 0xae, 0x62, 0x3e, 0x41, 0x8f, 0x3d,
|
||||
0x55, 0x3d, 0xf2, 0x21, 0x7a, 0xeb, 0x17, 0xe8, 0x11, 0xf5, 0xd4, 0x93, 0x5b, 0x85, 0x4b, 0xd5,
|
||||
0xa3, 0x8f, 0x3d, 0x55, 0xde, 0x35, 0xc1, 0x41, 0xb4, 0x97, 0x64, 0xe7, 0xcd, 0xbc, 0x37, 0xe3,
|
||||
0x37, 0xda, 0x05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 0x3f,
|
||||
0x6f, 0xeb, 0x40, 0x3d, 0x20, 0xf2, 0xd2, 0xba, 0x93, 0xf2, 0x11, 0x78, 0xf8, 0x27, 0x00, 0x00,
|
||||
0xff, 0xff, 0x10, 0x68, 0x06, 0x78, 0x5c, 0x04, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *Params) Equal(that interface{}) bool {
|
||||
|
@ -293,26 +292,26 @@ func (m *BaseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.Sequence != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.Sequence))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(m.Sequence))
|
||||
i--
|
||||
dAtA[i] = 0x20
|
||||
}
|
||||
if m.AccountNumber != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.AccountNumber))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(m.AccountNumber))
|
||||
i--
|
||||
dAtA[i] = 0x18
|
||||
}
|
||||
if len(m.PubKey) > 0 {
|
||||
i -= len(m.PubKey)
|
||||
copy(dAtA[i:], m.PubKey)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.PubKey)))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(len(m.PubKey)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Address) > 0 {
|
||||
i -= len(m.Address)
|
||||
copy(dAtA[i:], m.Address)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Address)))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(len(m.Address)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -343,7 +342,7 @@ func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
for iNdEx := len(m.Permissions) - 1; iNdEx >= 0; iNdEx-- {
|
||||
i -= len(m.Permissions[iNdEx])
|
||||
copy(dAtA[i:], m.Permissions[iNdEx])
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Permissions[iNdEx])))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(len(m.Permissions[iNdEx])))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
|
@ -351,7 +350,7 @@ func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Name) > 0 {
|
||||
i -= len(m.Name)
|
||||
copy(dAtA[i:], m.Name)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Name)))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(len(m.Name)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
|
@ -362,7 +361,7 @@ func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -391,35 +390,35 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.SigVerifyCostSecp256k1 != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.SigVerifyCostSecp256k1))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(m.SigVerifyCostSecp256k1))
|
||||
i--
|
||||
dAtA[i] = 0x28
|
||||
}
|
||||
if m.SigVerifyCostED25519 != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.SigVerifyCostED25519))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(m.SigVerifyCostED25519))
|
||||
i--
|
||||
dAtA[i] = 0x20
|
||||
}
|
||||
if m.TxSizeCostPerByte != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.TxSizeCostPerByte))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(m.TxSizeCostPerByte))
|
||||
i--
|
||||
dAtA[i] = 0x18
|
||||
}
|
||||
if m.TxSigLimit != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.TxSigLimit))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(m.TxSigLimit))
|
||||
i--
|
||||
dAtA[i] = 0x10
|
||||
}
|
||||
if m.MaxMemoCharacters != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.MaxMemoCharacters))
|
||||
i = encodeVarintAuth(dAtA, i, uint64(m.MaxMemoCharacters))
|
||||
i--
|
||||
dAtA[i] = 0x8
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintAuth(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovAuth(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -437,17 +436,17 @@ func (m *BaseAccount) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Address)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovAuth(uint64(l))
|
||||
}
|
||||
l = len(m.PubKey)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovAuth(uint64(l))
|
||||
}
|
||||
if m.AccountNumber != 0 {
|
||||
n += 1 + sovTypes(uint64(m.AccountNumber))
|
||||
n += 1 + sovAuth(uint64(m.AccountNumber))
|
||||
}
|
||||
if m.Sequence != 0 {
|
||||
n += 1 + sovTypes(uint64(m.Sequence))
|
||||
n += 1 + sovAuth(uint64(m.Sequence))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -460,16 +459,16 @@ func (m *ModuleAccount) Size() (n int) {
|
|||
_ = l
|
||||
if m.BaseAccount != nil {
|
||||
l = m.BaseAccount.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovAuth(uint64(l))
|
||||
}
|
||||
l = len(m.Name)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovAuth(uint64(l))
|
||||
}
|
||||
if len(m.Permissions) > 0 {
|
||||
for _, s := range m.Permissions {
|
||||
l = len(s)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovAuth(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -482,28 +481,28 @@ func (m *Params) Size() (n int) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.MaxMemoCharacters != 0 {
|
||||
n += 1 + sovTypes(uint64(m.MaxMemoCharacters))
|
||||
n += 1 + sovAuth(uint64(m.MaxMemoCharacters))
|
||||
}
|
||||
if m.TxSigLimit != 0 {
|
||||
n += 1 + sovTypes(uint64(m.TxSigLimit))
|
||||
n += 1 + sovAuth(uint64(m.TxSigLimit))
|
||||
}
|
||||
if m.TxSizeCostPerByte != 0 {
|
||||
n += 1 + sovTypes(uint64(m.TxSizeCostPerByte))
|
||||
n += 1 + sovAuth(uint64(m.TxSizeCostPerByte))
|
||||
}
|
||||
if m.SigVerifyCostED25519 != 0 {
|
||||
n += 1 + sovTypes(uint64(m.SigVerifyCostED25519))
|
||||
n += 1 + sovAuth(uint64(m.SigVerifyCostED25519))
|
||||
}
|
||||
if m.SigVerifyCostSecp256k1 != 0 {
|
||||
n += 1 + sovTypes(uint64(m.SigVerifyCostSecp256k1))
|
||||
n += 1 + sovAuth(uint64(m.SigVerifyCostSecp256k1))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovAuth(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozAuth(x uint64) (n int) {
|
||||
return sovAuth(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -513,7 +512,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -541,7 +540,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -554,11 +553,11 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -575,7 +574,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -588,11 +587,11 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -609,7 +608,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
|||
m.AccountNumber = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -628,7 +627,7 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
|||
m.Sequence = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -642,15 +641,15 @@ func (m *BaseAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipAuth(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -672,7 +671,7 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -700,7 +699,7 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -713,11 +712,11 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -736,7 +735,7 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -750,11 +749,11 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -768,7 +767,7 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -782,11 +781,11 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -795,15 +794,15 @@ func (m *ModuleAccount) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipAuth(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -825,7 +824,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -853,7 +852,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
m.MaxMemoCharacters = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -872,7 +871,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
m.TxSigLimit = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -891,7 +890,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
m.TxSizeCostPerByte = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -910,7 +909,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
m.SigVerifyCostED25519 = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -929,7 +928,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
m.SigVerifyCostSecp256k1 = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -943,15 +942,15 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipAuth(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthAuth
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -965,7 +964,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipAuth(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -973,7 +972,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -990,7 +989,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1006,7 +1005,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowAuth
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1019,14 +1018,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthAuth
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupAuth
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -1035,7 +1034,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthAuth
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -1045,7 +1044,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/auth/vesting/types/types.proto
|
||||
// source: cosmos/vesting/vesting.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -39,7 +39,7 @@ type BaseVestingAccount struct {
|
|||
func (m *BaseVestingAccount) Reset() { *m = BaseVestingAccount{} }
|
||||
func (*BaseVestingAccount) ProtoMessage() {}
|
||||
func (*BaseVestingAccount) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b7f744d63a45e116, []int{0}
|
||||
return fileDescriptor_ae36726ee12abd18, []int{0}
|
||||
}
|
||||
func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -78,7 +78,7 @@ type ContinuousVestingAccount struct {
|
|||
func (m *ContinuousVestingAccount) Reset() { *m = ContinuousVestingAccount{} }
|
||||
func (*ContinuousVestingAccount) ProtoMessage() {}
|
||||
func (*ContinuousVestingAccount) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b7f744d63a45e116, []int{1}
|
||||
return fileDescriptor_ae36726ee12abd18, []int{1}
|
||||
}
|
||||
func (m *ContinuousVestingAccount) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -117,7 +117,7 @@ type DelayedVestingAccount struct {
|
|||
func (m *DelayedVestingAccount) Reset() { *m = DelayedVestingAccount{} }
|
||||
func (*DelayedVestingAccount) ProtoMessage() {}
|
||||
func (*DelayedVestingAccount) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b7f744d63a45e116, []int{2}
|
||||
return fileDescriptor_ae36726ee12abd18, []int{2}
|
||||
}
|
||||
func (m *DelayedVestingAccount) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -155,7 +155,7 @@ type Period struct {
|
|||
func (m *Period) Reset() { *m = Period{} }
|
||||
func (*Period) ProtoMessage() {}
|
||||
func (*Period) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b7f744d63a45e116, []int{3}
|
||||
return fileDescriptor_ae36726ee12abd18, []int{3}
|
||||
}
|
||||
func (m *Period) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -209,7 +209,7 @@ type PeriodicVestingAccount struct {
|
|||
func (m *PeriodicVestingAccount) Reset() { *m = PeriodicVestingAccount{} }
|
||||
func (*PeriodicVestingAccount) ProtoMessage() {}
|
||||
func (*PeriodicVestingAccount) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b7f744d63a45e116, []int{4}
|
||||
return fileDescriptor_ae36726ee12abd18, []int{4}
|
||||
}
|
||||
func (m *PeriodicVestingAccount) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -239,55 +239,53 @@ func (m *PeriodicVestingAccount) XXX_DiscardUnknown() {
|
|||
var xxx_messageInfo_PeriodicVestingAccount proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*BaseVestingAccount)(nil), "cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount")
|
||||
proto.RegisterType((*ContinuousVestingAccount)(nil), "cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount")
|
||||
proto.RegisterType((*DelayedVestingAccount)(nil), "cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount")
|
||||
proto.RegisterType((*Period)(nil), "cosmos_sdk.x.auth.vesting.v1.Period")
|
||||
proto.RegisterType((*PeriodicVestingAccount)(nil), "cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount")
|
||||
proto.RegisterType((*BaseVestingAccount)(nil), "cosmos.vesting.BaseVestingAccount")
|
||||
proto.RegisterType((*ContinuousVestingAccount)(nil), "cosmos.vesting.ContinuousVestingAccount")
|
||||
proto.RegisterType((*DelayedVestingAccount)(nil), "cosmos.vesting.DelayedVestingAccount")
|
||||
proto.RegisterType((*Period)(nil), "cosmos.vesting.Period")
|
||||
proto.RegisterType((*PeriodicVestingAccount)(nil), "cosmos.vesting.PeriodicVestingAccount")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/auth/vesting/types/types.proto", fileDescriptor_b7f744d63a45e116) }
|
||||
func init() { proto.RegisterFile("cosmos/vesting/vesting.proto", fileDescriptor_ae36726ee12abd18) }
|
||||
|
||||
var fileDescriptor_b7f744d63a45e116 = []byte{
|
||||
// 593 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0x4f, 0x8f, 0xd2, 0x40,
|
||||
0x1c, 0xed, 0x2c, 0x88, 0xeb, 0xa0, 0xcb, 0xd2, 0x15, 0x6c, 0x88, 0x69, 0xb1, 0x31, 0x86, 0x8b,
|
||||
0xd3, 0x65, 0xf5, 0xc4, 0xcd, 0xae, 0x31, 0xd1, 0xf5, 0x60, 0x1a, 0xe3, 0xc1, 0xc4, 0x34, 0x85,
|
||||
0x8e, 0x65, 0xb2, 0xb4, 0x43, 0x3a, 0x03, 0x59, 0x3e, 0xc0, 0x26, 0x26, 0x9b, 0x18, 0x8f, 0x1e,
|
||||
0xf7, 0xec, 0xcd, 0x8f, 0x60, 0xe2, 0x61, 0x8f, 0x1c, 0x3d, 0xa1, 0x81, 0x6f, 0xc0, 0x27, 0x30,
|
||||
0x74, 0x06, 0x58, 0xcb, 0x2e, 0xc9, 0x7a, 0x30, 0xf1, 0x02, 0x9d, 0x3f, 0xef, 0xfd, 0xde, 0xfb,
|
||||
0xcd, 0x9b, 0x16, 0x56, 0x8f, 0x2c, 0xaf, 0xc7, 0xdb, 0x56, 0x1f, 0x33, 0x4e, 0xa2, 0xc0, 0xe2,
|
||||
0x83, 0x2e, 0x66, 0xe2, 0x17, 0x75, 0x63, 0xca, 0xa9, 0x7a, 0xb7, 0x45, 0x59, 0x48, 0x99, 0xcb,
|
||||
0xfc, 0x43, 0x74, 0x84, 0x66, 0x9b, 0x91, 0xdc, 0x8c, 0xfa, 0xf5, 0xca, 0x03, 0xde, 0x26, 0xb1,
|
||||
0xef, 0x76, 0xbd, 0x98, 0x0f, 0xac, 0x04, 0x60, 0x05, 0x34, 0xa0, 0xcb, 0x27, 0xc1, 0x52, 0x29,
|
||||
0xae, 0x10, 0x57, 0x34, 0x59, 0x7a, 0x65, 0xc5, 0xfc, 0x96, 0x85, 0xaa, 0xed, 0x31, 0xfc, 0x46,
|
||||
0xd4, 0x79, 0xd2, 0x6a, 0xd1, 0x5e, 0xc4, 0xd5, 0x17, 0xf0, 0x66, 0xd3, 0x63, 0xd8, 0xf5, 0xc4,
|
||||
0x58, 0x03, 0x55, 0x50, 0xcb, 0xef, 0xdd, 0x43, 0x17, 0x08, 0xac, 0xa3, 0x19, 0x5e, 0x02, 0xed,
|
||||
0xec, 0x70, 0x64, 0x00, 0x27, 0xdf, 0x5c, 0x4e, 0xa9, 0x27, 0x00, 0x6e, 0xd3, 0x98, 0x04, 0x24,
|
||||
0xf2, 0x3a, 0xae, 0xf4, 0xa3, 0x6d, 0x54, 0x33, 0xb5, 0xfc, 0xde, 0xce, 0x79, 0xc2, 0x7e, 0x1d,
|
||||
0xed, 0x53, 0x12, 0xd9, 0x07, 0x67, 0x23, 0x43, 0x99, 0x8e, 0x8c, 0x3b, 0x03, 0x2f, 0xec, 0x34,
|
||||
0xcc, 0x34, 0xd4, 0xfc, 0xf2, 0xd3, 0xa8, 0x05, 0x84, 0xb7, 0x7b, 0x4d, 0xd4, 0xa2, 0xa1, 0x25,
|
||||
0x18, 0xe4, 0xdf, 0x43, 0xe6, 0x1f, 0x4a, 0x7f, 0x33, 0x2e, 0xe6, 0x14, 0xe6, 0x70, 0x69, 0x50,
|
||||
0x3d, 0x06, 0x70, 0xcb, 0xc7, 0x1d, 0x1c, 0x78, 0x1c, 0xfb, 0xee, 0xfb, 0x18, 0x63, 0x2d, 0x73,
|
||||
0xb9, 0x96, 0xe7, 0x52, 0x4b, 0x49, 0x68, 0xf9, 0x13, 0x78, 0x35, 0x25, 0xb7, 0x16, 0xe0, 0x67,
|
||||
0x31, 0xc6, 0xea, 0x47, 0x00, 0x8b, 0x4b, 0xba, 0x79, 0x5b, 0xb2, 0x97, 0x4b, 0x79, 0x29, 0xa5,
|
||||
0x68, 0x69, 0x29, 0x7f, 0xd5, 0x97, 0xed, 0x05, 0x7e, 0xde, 0x18, 0x04, 0x37, 0x71, 0xe4, 0xbb,
|
||||
0x9c, 0x84, 0x58, 0xbb, 0x56, 0x05, 0xb5, 0x8c, 0xbd, 0x33, 0x1d, 0x19, 0x05, 0x51, 0x6d, 0xbe,
|
||||
0x62, 0x3a, 0xd7, 0x71, 0xe4, 0xbf, 0x26, 0x21, 0x6e, 0x6c, 0x7e, 0x38, 0x35, 0x94, 0xcf, 0xa7,
|
||||
0x86, 0x62, 0x7e, 0x07, 0x50, 0xdb, 0xa7, 0x11, 0x27, 0x51, 0x8f, 0xf6, 0x58, 0x2a, 0x49, 0x6d,
|
||||
0x78, 0x3b, 0x49, 0x92, 0x54, 0x99, 0x4a, 0xd4, 0x2e, 0x5a, 0x17, 0x79, 0xb4, 0x9a, 0x4c, 0x19,
|
||||
0x30, 0xb5, 0xb9, 0x9a, 0xd9, 0xc7, 0x10, 0x32, 0xee, 0xc5, 0x5c, 0x58, 0xd8, 0x48, 0x2c, 0x94,
|
||||
0xa6, 0x23, 0xa3, 0x28, 0x2c, 0x2c, 0xd7, 0x4c, 0xe7, 0x46, 0x32, 0x48, 0xd9, 0x38, 0x01, 0xb0,
|
||||
0xf4, 0x14, 0x77, 0xbc, 0xc1, 0xa2, 0x27, 0xff, 0xdc, 0xc3, 0x39, 0x35, 0xc7, 0x00, 0xe6, 0x5e,
|
||||
0xe1, 0x98, 0x50, 0x5f, 0x2d, 0xc3, 0x5c, 0x07, 0x47, 0x01, 0x6f, 0x27, 0x05, 0x33, 0x8e, 0x1c,
|
||||
0xa9, 0xef, 0x60, 0xce, 0x0b, 0x13, 0x21, 0x6b, 0x6e, 0xd3, 0xee, 0x2c, 0x36, 0x57, 0x8a, 0x86,
|
||||
0x24, 0x6d, 0x64, 0x13, 0x1d, 0x5f, 0x37, 0x60, 0x59, 0xe8, 0x20, 0xad, 0xff, 0xeb, 0x68, 0xd5,
|
||||
0x10, 0x16, 0xe6, 0xd2, 0xba, 0x89, 0x03, 0x26, 0xaf, 0xfa, 0xfd, 0xf5, 0xd2, 0x84, 0x5d, 0x5b,
|
||||
0x97, 0x17, 0xae, 0x2c, 0x8a, 0xa4, 0xa8, 0x4c, 0x67, 0x4b, 0xce, 0x88, 0xed, 0x6c, 0x79, 0x76,
|
||||
0xf6, 0xc1, 0xd9, 0x58, 0x07, 0xc3, 0xb1, 0x0e, 0x7e, 0x8d, 0x75, 0xf0, 0x69, 0xa2, 0x2b, 0xc3,
|
||||
0x89, 0xae, 0xfc, 0x98, 0xe8, 0xca, 0xdb, 0xfa, 0xda, 0x53, 0xb8, 0xe8, 0x03, 0xd1, 0xcc, 0x25,
|
||||
0x2f, 0xea, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x89, 0x54, 0xae, 0x4f, 0x3f, 0x06, 0x00,
|
||||
0x00,
|
||||
var fileDescriptor_ae36726ee12abd18 = []byte{
|
||||
// 567 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x94, 0xb1, 0x6e, 0x13, 0x31,
|
||||
0x18, 0xc7, 0xcf, 0x49, 0x08, 0xc5, 0x29, 0x49, 0xeb, 0x36, 0xe1, 0x54, 0xa1, 0xbb, 0xe8, 0xa6,
|
||||
0x2c, 0x5c, 0xa0, 0x30, 0x65, 0xeb, 0x15, 0x21, 0xa1, 0x32, 0xa0, 0x13, 0xea, 0xd0, 0x25, 0x72,
|
||||
0x72, 0xe6, 0x62, 0x91, 0x3b, 0x47, 0x67, 0x07, 0x91, 0x81, 0x4e, 0x48, 0x30, 0xb2, 0x20, 0x31,
|
||||
0x56, 0x8c, 0x3c, 0x00, 0xcf, 0xd0, 0x31, 0x23, 0x53, 0x40, 0xc9, 0x1b, 0xe4, 0x09, 0x50, 0x6c,
|
||||
0x5f, 0x42, 0xae, 0x11, 0x52, 0x19, 0x10, 0x4b, 0x72, 0xfe, 0xec, 0xef, 0xff, 0xfd, 0xfc, 0xf9,
|
||||
0x6f, 0xc3, 0xbb, 0x5d, 0xc6, 0x23, 0xc6, 0x9b, 0xaf, 0x09, 0x17, 0x34, 0x0e, 0xd3, 0x7f, 0x77,
|
||||
0x90, 0x30, 0xc1, 0x50, 0x59, 0xcd, 0xba, 0x3a, 0x7a, 0xb0, 0x1f, 0xb2, 0x90, 0xc9, 0xa9, 0xe6,
|
||||
0xe2, 0x4b, 0xad, 0x3a, 0xd8, 0xd3, 0x1a, 0x7a, 0xb1, 0x0a, 0xd6, 0x74, 0x10, 0x0f, 0x45, 0x4f,
|
||||
0xfe, 0xa8, 0xb8, 0xf3, 0xa5, 0x00, 0x91, 0x87, 0x39, 0x39, 0x55, 0x92, 0x47, 0xdd, 0x2e, 0x1b,
|
||||
0xc6, 0x02, 0x1d, 0xc1, 0xed, 0x0e, 0xe6, 0xa4, 0x8d, 0xd5, 0xd8, 0x04, 0x75, 0xd0, 0x28, 0x1d,
|
||||
0x9a, 0xae, 0xd6, 0x94, 0x02, 0x8b, 0x34, 0xbd, 0xde, 0x2b, 0x8c, 0x27, 0x36, 0xf0, 0x4b, 0x9d,
|
||||
0x55, 0x08, 0xbd, 0x03, 0x70, 0x87, 0x25, 0x34, 0xa4, 0x31, 0xee, 0xb7, 0x35, 0xb1, 0x99, 0xab,
|
||||
0xe7, 0x1b, 0xa5, 0xc3, 0xed, 0x54, 0xe7, 0x98, 0xd1, 0xd8, 0x3b, 0xb9, 0x9c, 0xd8, 0xc6, 0x7c,
|
||||
0x62, 0xdf, 0x19, 0xe1, 0xa8, 0xdf, 0x72, 0xb2, 0x39, 0xce, 0xd7, 0x1f, 0x76, 0x23, 0xa4, 0xa2,
|
||||
0x37, 0xec, 0xb8, 0x5d, 0x16, 0x35, 0xd7, 0x76, 0x77, 0x8f, 0x07, 0xaf, 0x9a, 0x62, 0x34, 0x20,
|
||||
0x4a, 0x8b, 0xfb, 0x95, 0x34, 0x5d, 0x6f, 0x08, 0x9d, 0xc3, 0x72, 0x40, 0xfa, 0x24, 0xc4, 0x82,
|
||||
0x04, 0xed, 0x97, 0x09, 0x21, 0x66, 0x7e, 0x03, 0xc3, 0x53, 0xcd, 0x50, 0x55, 0x0c, 0xeb, 0x19,
|
||||
0xd7, 0x23, 0xb8, 0xbd, 0x4c, 0x7e, 0x92, 0x10, 0x82, 0xde, 0x03, 0xb8, 0xbb, 0x92, 0x4b, 0xfb,
|
||||
0x50, 0xd8, 0xc0, 0xf0, 0x4c, 0x33, 0x98, 0x59, 0x86, 0xbf, 0x6a, 0xc4, 0xce, 0x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be, 0xa9, 0xb5, 0x2c, 0x8c, 0xda,
|
||||
0x92, 0x67, 0xe9, 0xfb, 0x52, 0x53, 0xb2, 0x99, 0x64, 0xc7, 0x2f, 0xeb, 0x88, 0x5a, 0xce, 0x57,
|
||||
0xe7, 0xe2, 0x9d, 0x5c, 0x4e, 0x2d, 0x30, 0x9e, 0x5a, 0xe0, 0xe7, 0xd4, 0x02, 0x1f, 0x67, 0x96,
|
||||
0x31, 0x9e, 0x59, 0xc6, 0xf7, 0x99, 0x65, 0x9c, 0x3d, 0xf8, 0x63, 0xa7, 0xdf, 0xa8, 0xe7, 0x33,
|
||||
0x7d, 0x9c, 0x65, 0xe3, 0x3b, 0x45, 0xf9, 0x90, 0x3e, 0xfc, 0x15, 0x00, 0x00, 0xff, 0xff, 0xb4,
|
||||
0x69, 0xaa, 0x1c, 0xbb, 0x05, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *BaseVestingAccount) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -311,7 +309,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.EndTime != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.EndTime))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(m.EndTime))
|
||||
i--
|
||||
dAtA[i] = 0x28
|
||||
}
|
||||
|
@ -323,7 +321,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
|
@ -337,7 +335,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
|
@ -351,7 +349,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
|
@ -364,7 +362,7 @@ func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -393,7 +391,7 @@ func (m *ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error
|
|||
var l int
|
||||
_ = l
|
||||
if m.StartTime != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.StartTime))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(m.StartTime))
|
||||
i--
|
||||
dAtA[i] = 0x10
|
||||
}
|
||||
|
@ -404,7 +402,7 @@ func (m *ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -439,7 +437,7 @@ func (m *DelayedVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -475,14 +473,14 @@ func (m *Period) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
}
|
||||
if m.Length != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.Length))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(m.Length))
|
||||
i--
|
||||
dAtA[i] = 0x8
|
||||
}
|
||||
|
@ -517,14 +515,14 @@ func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
}
|
||||
if m.StartTime != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.StartTime))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(m.StartTime))
|
||||
i--
|
||||
dAtA[i] = 0x10
|
||||
}
|
||||
|
@ -535,7 +533,7 @@ func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintVesting(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -543,8 +541,8 @@ func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintVesting(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovVesting(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -562,28 +560,28 @@ func (m *BaseVestingAccount) Size() (n int) {
|
|||
_ = l
|
||||
if m.BaseAccount != nil {
|
||||
l = m.BaseAccount.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
if len(m.OriginalVesting) > 0 {
|
||||
for _, e := range m.OriginalVesting {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
}
|
||||
if len(m.DelegatedFree) > 0 {
|
||||
for _, e := range m.DelegatedFree {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
}
|
||||
if len(m.DelegatedVesting) > 0 {
|
||||
for _, e := range m.DelegatedVesting {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.EndTime != 0 {
|
||||
n += 1 + sovTypes(uint64(m.EndTime))
|
||||
n += 1 + sovVesting(uint64(m.EndTime))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -596,10 +594,10 @@ func (m *ContinuousVestingAccount) Size() (n int) {
|
|||
_ = l
|
||||
if m.BaseVestingAccount != nil {
|
||||
l = m.BaseVestingAccount.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
if m.StartTime != 0 {
|
||||
n += 1 + sovTypes(uint64(m.StartTime))
|
||||
n += 1 + sovVesting(uint64(m.StartTime))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -612,7 +610,7 @@ func (m *DelayedVestingAccount) Size() (n int) {
|
|||
_ = l
|
||||
if m.BaseVestingAccount != nil {
|
||||
l = m.BaseVestingAccount.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -624,12 +622,12 @@ func (m *Period) Size() (n int) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.Length != 0 {
|
||||
n += 1 + sovTypes(uint64(m.Length))
|
||||
n += 1 + sovVesting(uint64(m.Length))
|
||||
}
|
||||
if len(m.Amount) > 0 {
|
||||
for _, e := range m.Amount {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -643,25 +641,25 @@ func (m *PeriodicVestingAccount) Size() (n int) {
|
|||
_ = l
|
||||
if m.BaseVestingAccount != nil {
|
||||
l = m.BaseVestingAccount.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
if m.StartTime != 0 {
|
||||
n += 1 + sovTypes(uint64(m.StartTime))
|
||||
n += 1 + sovVesting(uint64(m.StartTime))
|
||||
}
|
||||
if len(m.VestingPeriods) > 0 {
|
||||
for _, e := range m.VestingPeriods {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovVesting(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovVesting(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozVesting(x uint64) (n int) {
|
||||
return sovVesting(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -671,7 +669,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -699,7 +697,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -712,11 +710,11 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -735,7 +733,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -748,11 +746,11 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -769,7 +767,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -782,11 +780,11 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -803,7 +801,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -816,11 +814,11 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -837,7 +835,7 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
m.EndTime = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -851,15 +849,15 @@ func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipVesting(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -881,7 +879,7 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -909,7 +907,7 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -922,11 +920,11 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -945,7 +943,7 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
m.StartTime = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -959,15 +957,15 @@ func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipVesting(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -989,7 +987,7 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1017,7 +1015,7 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1030,11 +1028,11 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1048,15 +1046,15 @@ func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipVesting(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1078,7 +1076,7 @@ func (m *Period) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1106,7 +1104,7 @@ func (m *Period) Unmarshal(dAtA []byte) error {
|
|||
m.Length = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1125,7 +1123,7 @@ func (m *Period) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1138,11 +1136,11 @@ func (m *Period) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1154,15 +1152,15 @@ func (m *Period) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipVesting(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1184,7 +1182,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1212,7 +1210,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1225,11 +1223,11 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1248,7 +1246,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
m.StartTime = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1267,7 +1265,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1280,11 +1278,11 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1296,15 +1294,15 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipVesting(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthVesting
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1318,7 +1316,7 @@ func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipVesting(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -1326,7 +1324,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1343,7 +1341,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1359,7 +1357,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowVesting
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1372,14 +1370,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthVesting
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupVesting
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -1388,7 +1386,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthVesting
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -1398,7 +1396,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthVesting = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowVesting = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupVesting = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/bank/types/types.proto
|
||||
// source: cosmos/bank/bank.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -38,7 +38,7 @@ func (m *MsgSend) Reset() { *m = MsgSend{} }
|
|||
func (m *MsgSend) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSend) ProtoMessage() {}
|
||||
func (*MsgSend) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_934ff6b24d3432e2, []int{0}
|
||||
return fileDescriptor_717c78e54d4b5794, []int{0}
|
||||
}
|
||||
func (m *MsgSend) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -98,7 +98,7 @@ func (m *Input) Reset() { *m = Input{} }
|
|||
func (m *Input) String() string { return proto.CompactTextString(m) }
|
||||
func (*Input) ProtoMessage() {}
|
||||
func (*Input) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_934ff6b24d3432e2, []int{1}
|
||||
return fileDescriptor_717c78e54d4b5794, []int{1}
|
||||
}
|
||||
func (m *Input) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -151,7 +151,7 @@ func (m *Output) Reset() { *m = Output{} }
|
|||
func (m *Output) String() string { return proto.CompactTextString(m) }
|
||||
func (*Output) ProtoMessage() {}
|
||||
func (*Output) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_934ff6b24d3432e2, []int{2}
|
||||
return fileDescriptor_717c78e54d4b5794, []int{2}
|
||||
}
|
||||
func (m *Output) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -204,7 +204,7 @@ func (m *MsgMultiSend) Reset() { *m = MsgMultiSend{} }
|
|||
func (m *MsgMultiSend) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgMultiSend) ProtoMessage() {}
|
||||
func (*MsgMultiSend) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_934ff6b24d3432e2, []int{3}
|
||||
return fileDescriptor_717c78e54d4b5794, []int{3}
|
||||
}
|
||||
func (m *MsgMultiSend) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -256,7 +256,7 @@ type Supply struct {
|
|||
func (m *Supply) Reset() { *m = Supply{} }
|
||||
func (*Supply) ProtoMessage() {}
|
||||
func (*Supply) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_934ff6b24d3432e2, []int{4}
|
||||
return fileDescriptor_717c78e54d4b5794, []int{4}
|
||||
}
|
||||
func (m *Supply) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -286,48 +286,46 @@ func (m *Supply) XXX_DiscardUnknown() {
|
|||
var xxx_messageInfo_Supply proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgSend)(nil), "cosmos_sdk.x.bank.v1.MsgSend")
|
||||
proto.RegisterType((*Input)(nil), "cosmos_sdk.x.bank.v1.Input")
|
||||
proto.RegisterType((*Output)(nil), "cosmos_sdk.x.bank.v1.Output")
|
||||
proto.RegisterType((*MsgMultiSend)(nil), "cosmos_sdk.x.bank.v1.MsgMultiSend")
|
||||
proto.RegisterType((*Supply)(nil), "cosmos_sdk.x.bank.v1.Supply")
|
||||
proto.RegisterType((*MsgSend)(nil), "cosmos.bank.MsgSend")
|
||||
proto.RegisterType((*Input)(nil), "cosmos.bank.Input")
|
||||
proto.RegisterType((*Output)(nil), "cosmos.bank.Output")
|
||||
proto.RegisterType((*MsgMultiSend)(nil), "cosmos.bank.MsgMultiSend")
|
||||
proto.RegisterType((*Supply)(nil), "cosmos.bank.Supply")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/bank/types/types.proto", fileDescriptor_934ff6b24d3432e2) }
|
||||
func init() { proto.RegisterFile("cosmos/bank/bank.proto", fileDescriptor_717c78e54d4b5794) }
|
||||
|
||||
var fileDescriptor_934ff6b24d3432e2 = []byte{
|
||||
// 481 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xa8, 0xd0, 0x4f, 0x4a,
|
||||
0xcc, 0xcb, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x86, 0x90, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9,
|
||||
0x42, 0x22, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xf1, 0xc5, 0x29, 0xd9, 0x7a, 0x15, 0x7a, 0x20,
|
||||
0x45, 0x7a, 0x65, 0x86, 0x52, 0x6a, 0x25, 0x19, 0x99, 0x45, 0x29, 0xf1, 0x05, 0x89, 0x45, 0x25,
|
||||
0x95, 0xfa, 0x60, 0x85, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0x08, 0x16, 0x44, 0xb7, 0x94, 0x36, 0xa6,
|
||||
0x3a, 0x88, 0x79, 0xba, 0xc8, 0x1c, 0xa8, 0x62, 0x41, 0x0c, 0xdb, 0x95, 0x0e, 0x31, 0x71, 0xb1,
|
||||
0xfb, 0x16, 0xa7, 0x07, 0xa7, 0xe6, 0xa5, 0x08, 0x65, 0x73, 0xf1, 0xa4, 0x15, 0xe5, 0xe7, 0xc6,
|
||||
0x27, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x38, 0x79, 0x7c,
|
||||
0xba, 0x27, 0x2f, 0x5c, 0x99, 0x98, 0x9b, 0x63, 0xa5, 0x84, 0x2c, 0xab, 0xf4, 0xeb, 0x9e, 0xbc,
|
||||
0x6e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0xd4, 0x22, 0x98, 0xe5, 0xc5,
|
||||
0x29, 0x50, 0xaf, 0xea, 0x39, 0x26, 0x27, 0x3b, 0x42, 0x74, 0x04, 0x71, 0x83, 0xf4, 0x43, 0x39,
|
||||
0x42, 0xa9, 0x5c, 0x5c, 0x25, 0xf9, 0x70, 0xab, 0x98, 0xc0, 0x56, 0xb9, 0x7d, 0xba, 0x27, 0x2f,
|
||||
0x08, 0xb1, 0x0a, 0x21, 0x47, 0x86, 0x45, 0x9c, 0x25, 0xf9, 0x30, 0x6b, 0x62, 0xb9, 0xd8, 0x12,
|
||||
0x73, 0xf3, 0x4b, 0xf3, 0x4a, 0x24, 0x98, 0x15, 0x98, 0x35, 0xb8, 0x8d, 0x84, 0xf5, 0x90, 0x82,
|
||||
0xbb, 0xcc, 0x50, 0xcf, 0x39, 0x3f, 0x33, 0xcf, 0xc9, 0xe0, 0xc4, 0x3d, 0x79, 0x86, 0x55, 0xf7,
|
||||
0xe5, 0x35, 0x88, 0xb0, 0x06, 0xa4, 0xa1, 0x38, 0x08, 0x6a, 0xa8, 0x15, 0xcb, 0x8b, 0x05, 0xf2,
|
||||
0x8c, 0x4a, 0xdb, 0x19, 0xb9, 0x58, 0x3d, 0xf3, 0x0a, 0x4a, 0x4b, 0x84, 0xbc, 0xb9, 0xd8, 0x51,
|
||||
0x43, 0xcf, 0x90, 0x74, 0xd7, 0xc3, 0x4c, 0x10, 0x8a, 0xe6, 0x62, 0x4d, 0x06, 0xd9, 0x26, 0xc1,
|
||||
0x44, 0x4d, 0xa7, 0x43, 0xcc, 0x84, 0xba, 0x7c, 0x07, 0x23, 0x17, 0x9b, 0x7f, 0x69, 0xc9, 0x50,
|
||||
0x74, 0x7a, 0x2f, 0x23, 0x17, 0x8f, 0x6f, 0x71, 0xba, 0x6f, 0x69, 0x4e, 0x49, 0x26, 0x38, 0xf9,
|
||||
0x5a, 0x72, 0xb1, 0x65, 0x82, 0x22, 0x01, 0xe4, 0x7e, 0x90, 0xa5, 0xd2, 0x7a, 0xd8, 0x72, 0x96,
|
||||
0x1e, 0x38, 0xa2, 0x9c, 0x58, 0x40, 0x96, 0x07, 0x41, 0x35, 0x08, 0xd9, 0x70, 0xb1, 0xe7, 0x83,
|
||||
0x43, 0x01, 0xe6, 0x60, 0x19, 0xec, 0x7a, 0x21, 0x41, 0x05, 0xd5, 0x0c, 0xd3, 0x02, 0x75, 0xcf,
|
||||
0x1a, 0x46, 0x2e, 0xb6, 0xe0, 0xd2, 0x82, 0x82, 0x9c, 0x4a, 0x90, 0xef, 0x4b, 0xf2, 0x4b, 0x12,
|
||||
0x73, 0xa0, 0x0e, 0xa1, 0x96, 0xef, 0xc1, 0x66, 0x5a, 0xb9, 0x76, 0x2c, 0x90, 0x67, 0x98, 0xb1,
|
||||
0x40, 0x9e, 0x01, 0x64, 0xeb, 0xa5, 0x2d, 0xba, 0xa6, 0x5a, 0x78, 0x4d, 0x80, 0x96, 0x3b, 0xa9,
|
||||
0x15, 0x05, 0xf9, 0x45, 0x25, 0xa9, 0x29, 0x7a, 0x10, 0x27, 0x7a, 0x3a, 0x39, 0x9f, 0x78, 0x24,
|
||||
0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78,
|
||||
0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x26, 0x31, 0xe6, 0x81, 0x1d, 0x96, 0xc4, 0x06,
|
||||
0x2e, 0x44, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x5a, 0x2d, 0x41, 0xde, 0x04, 0x00,
|
||||
0x00,
|
||||
var fileDescriptor_717c78e54d4b5794 = []byte{
|
||||
// 457 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xce, 0x2f, 0xce,
|
||||
0xcd, 0x2f, 0xd6, 0x4f, 0x4a, 0xcc, 0xcb, 0x06, 0x13, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42,
|
||||
0xdc, 0x10, 0x71, 0x3d, 0x90, 0x90, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x58, 0x5c, 0x1f, 0xc4,
|
||||
0x82, 0x28, 0x91, 0x92, 0x84, 0x28, 0x89, 0x87, 0x48, 0x40, 0xd5, 0x43, 0xa4, 0x84, 0xa1, 0xa6,
|
||||
0x22, 0x0b, 0x2a, 0xed, 0x66, 0xe2, 0x62, 0xf7, 0x2d, 0x4e, 0x0f, 0x4e, 0xcd, 0x4b, 0x11, 0xca,
|
||||
0xe6, 0xe2, 0x49, 0x2b, 0xca, 0xcf, 0x8d, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60,
|
||||
0x54, 0x60, 0xd4, 0xe0, 0x71, 0xf2, 0xf8, 0x74, 0x4f, 0x5e, 0xb8, 0x32, 0x31, 0x37, 0xc7, 0x4a,
|
||||
0x09, 0x59, 0x56, 0xe9, 0xd7, 0x3d, 0x79, 0xdd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4,
|
||||
0xfc, 0x5c, 0x7d, 0x14, 0xc3, 0x75, 0x8b, 0x53, 0xb2, 0xf5, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0xf5,
|
||||
0x1c, 0x93, 0x93, 0x1d, 0x21, 0x3a, 0x82, 0xb8, 0x41, 0xfa, 0xa1, 0x1c, 0xa1, 0x54, 0x2e, 0xae,
|
||||
0x92, 0x7c, 0xb8, 0x55, 0x4c, 0x60, 0xab, 0xdc, 0x3e, 0xdd, 0x93, 0x17, 0x84, 0x58, 0x85, 0x90,
|
||||
0x23, 0xc3, 0x22, 0xce, 0x92, 0x7c, 0x98, 0x35, 0x61, 0x5c, 0x6c, 0x89, 0xb9, 0xf9, 0xa5, 0x79,
|
||||
0x25, 0x12, 0xcc, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0x3c, 0x7a, 0x50, 0xef, 0x3b, 0xe7, 0x67, 0xe6,
|
||||
0x39, 0x19, 0x9c, 0xb8, 0x27, 0xcf, 0xb0, 0xea, 0xbe, 0xbc, 0x06, 0x11, 0xe6, 0x83, 0x34, 0x14,
|
||||
0x07, 0x41, 0x4d, 0xb3, 0x62, 0x79, 0xb1, 0x40, 0x9e, 0x51, 0x69, 0x03, 0x23, 0x17, 0xab, 0x67,
|
||||
0x5e, 0x41, 0x69, 0x89, 0x90, 0x37, 0x17, 0x3b, 0x6a, 0xb0, 0x19, 0x92, 0xee, 0x6c, 0x98, 0x09,
|
||||
0x42, 0x21, 0x5c, 0xac, 0xc9, 0x20, 0xdb, 0x24, 0x98, 0xa8, 0xe2, 0x66, 0x88, 0x61, 0x50, 0x27,
|
||||
0x6f, 0x64, 0xe4, 0x62, 0xf3, 0x2f, 0x2d, 0x19, 0x52, 0x6e, 0xae, 0xe6, 0xe2, 0xf1, 0x2d, 0x4e,
|
||||
0xf7, 0x2d, 0xcd, 0x29, 0xc9, 0x04, 0x27, 0x54, 0x03, 0x2e, 0xb6, 0x4c, 0x50, 0xa8, 0x83, 0xdc,
|
||||
0x0d, 0xb2, 0x4c, 0x48, 0x0f, 0x29, 0x63, 0xe8, 0x81, 0x23, 0xc4, 0x89, 0x05, 0x64, 0x65, 0x10,
|
||||
0x54, 0x9d, 0x90, 0x31, 0x17, 0x7b, 0x3e, 0xd8, 0xd3, 0x30, 0xf7, 0x09, 0xa3, 0x68, 0x81, 0x04,
|
||||
0x08, 0x54, 0x0f, 0x4c, 0x25, 0xd4, 0xf2, 0xa5, 0x8c, 0x5c, 0x6c, 0xc1, 0xa5, 0x05, 0x05, 0x39,
|
||||
0x95, 0x20, 0x3f, 0x96, 0xe4, 0x97, 0x24, 0xe6, 0x40, 0xad, 0xa5, 0xd8, 0x8f, 0x60, 0xc3, 0xac,
|
||||
0x5c, 0x3b, 0x16, 0xc8, 0x33, 0xcc, 0x58, 0x20, 0xcf, 0x00, 0xb2, 0xee, 0xd2, 0x16, 0x5d, 0x53,
|
||||
0x2d, 0xbc, 0x26, 0x54, 0x40, 0x8a, 0x85, 0xd4, 0x8a, 0x82, 0xfc, 0xa2, 0x92, 0xd4, 0x14, 0x3d,
|
||||
0x88, 0xdb, 0x3c, 0x9d, 0x9c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23,
|
||||
0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a,
|
||||
0x93, 0x18, 0xf3, 0xc0, 0x0e, 0x4b, 0x62, 0x03, 0x97, 0x0a, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff,
|
||||
0xff, 0xa5, 0xa6, 0xc2, 0x41, 0x82, 0x04, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *MsgSend) Equal(that interface{}) bool {
|
||||
|
@ -523,7 +521,7 @@ func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintBank(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
|
@ -532,14 +530,14 @@ func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.ToAddress) > 0 {
|
||||
i -= len(m.ToAddress)
|
||||
copy(dAtA[i:], m.ToAddress)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.ToAddress)))
|
||||
i = encodeVarintBank(dAtA, i, uint64(len(m.ToAddress)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.FromAddress) > 0 {
|
||||
i -= len(m.FromAddress)
|
||||
copy(dAtA[i:], m.FromAddress)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.FromAddress)))
|
||||
i = encodeVarintBank(dAtA, i, uint64(len(m.FromAddress)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -574,7 +572,7 @@ func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintBank(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
|
@ -583,7 +581,7 @@ func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Address) > 0 {
|
||||
i -= len(m.Address)
|
||||
copy(dAtA[i:], m.Address)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Address)))
|
||||
i = encodeVarintBank(dAtA, i, uint64(len(m.Address)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -618,7 +616,7 @@ func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintBank(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
|
@ -627,7 +625,7 @@ func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Address) > 0 {
|
||||
i -= len(m.Address)
|
||||
copy(dAtA[i:], m.Address)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Address)))
|
||||
i = encodeVarintBank(dAtA, i, uint64(len(m.Address)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -662,7 +660,7 @@ func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintBank(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
|
@ -676,7 +674,7 @@ func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintBank(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -713,7 +711,7 @@ func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintBank(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -722,8 +720,8 @@ func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintBank(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovBank(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -741,16 +739,16 @@ func (m *MsgSend) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.FromAddress)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
l = len(m.ToAddress)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
if len(m.Amount) > 0 {
|
||||
for _, e := range m.Amount {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -764,12 +762,12 @@ func (m *Input) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Address)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
if len(m.Coins) > 0 {
|
||||
for _, e := range m.Coins {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -783,12 +781,12 @@ func (m *Output) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Address)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
if len(m.Coins) > 0 {
|
||||
for _, e := range m.Coins {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -803,13 +801,13 @@ func (m *MsgMultiSend) Size() (n int) {
|
|||
if len(m.Inputs) > 0 {
|
||||
for _, e := range m.Inputs {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
}
|
||||
if len(m.Outputs) > 0 {
|
||||
for _, e := range m.Outputs {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -824,17 +822,17 @@ func (m *Supply) Size() (n int) {
|
|||
if len(m.Total) > 0 {
|
||||
for _, e := range m.Total {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovBank(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovBank(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozBank(x uint64) (n int) {
|
||||
return sovBank(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -844,7 +842,7 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -872,7 +870,7 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -885,11 +883,11 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -906,7 +904,7 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -919,11 +917,11 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -940,7 +938,7 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -953,11 +951,11 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -969,15 +967,15 @@ func (m *MsgSend) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipBank(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -999,7 +997,7 @@ func (m *Input) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1027,7 +1025,7 @@ func (m *Input) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1040,11 +1038,11 @@ func (m *Input) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1061,7 +1059,7 @@ func (m *Input) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1074,11 +1072,11 @@ func (m *Input) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1090,15 +1088,15 @@ func (m *Input) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipBank(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1120,7 +1118,7 @@ func (m *Output) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1148,7 +1146,7 @@ func (m *Output) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1161,11 +1159,11 @@ func (m *Output) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1182,7 +1180,7 @@ func (m *Output) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1195,11 +1193,11 @@ func (m *Output) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1211,15 +1209,15 @@ func (m *Output) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipBank(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1241,7 +1239,7 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1269,7 +1267,7 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1282,11 +1280,11 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1303,7 +1301,7 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1316,11 +1314,11 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1332,15 +1330,15 @@ func (m *MsgMultiSend) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipBank(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1362,7 +1360,7 @@ func (m *Supply) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1390,7 +1388,7 @@ func (m *Supply) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1403,11 +1401,11 @@ func (m *Supply) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1419,15 +1417,15 @@ func (m *Supply) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipBank(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthBank
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1441,7 +1439,7 @@ func (m *Supply) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipBank(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -1449,7 +1447,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1466,7 +1464,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1482,7 +1480,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowBank
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1495,14 +1493,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthBank
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupBank
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -1511,7 +1509,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthBank
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -1521,7 +1519,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthBank = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowBank = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupBank = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/bank/types/query.proto
|
||||
// source: cosmos/bank/query.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -42,7 +42,7 @@ func (m *QueryBalanceRequest) Reset() { *m = QueryBalanceRequest{} }
|
|||
func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryBalanceRequest) ProtoMessage() {}
|
||||
func (*QueryBalanceRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b761440f9b86d1e8, []int{0}
|
||||
return fileDescriptor_1b02ea4db7d9aa9f, []int{0}
|
||||
}
|
||||
func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -95,7 +95,7 @@ func (m *QueryBalanceResponse) Reset() { *m = QueryBalanceResponse{} }
|
|||
func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryBalanceResponse) ProtoMessage() {}
|
||||
func (*QueryBalanceResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b761440f9b86d1e8, []int{1}
|
||||
return fileDescriptor_1b02ea4db7d9aa9f, []int{1}
|
||||
}
|
||||
func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -141,7 +141,7 @@ func (m *QueryAllBalancesRequest) Reset() { *m = QueryAllBalancesRequest
|
|||
func (m *QueryAllBalancesRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryAllBalancesRequest) ProtoMessage() {}
|
||||
func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b761440f9b86d1e8, []int{2}
|
||||
return fileDescriptor_1b02ea4db7d9aa9f, []int{2}
|
||||
}
|
||||
func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -187,7 +187,7 @@ func (m *QueryAllBalancesResponse) Reset() { *m = QueryAllBalancesRespon
|
|||
func (m *QueryAllBalancesResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryAllBalancesResponse) ProtoMessage() {}
|
||||
func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b761440f9b86d1e8, []int{3}
|
||||
return fileDescriptor_1b02ea4db7d9aa9f, []int{3}
|
||||
}
|
||||
func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -231,7 +231,7 @@ func (m *QueryTotalSupplyRequest) Reset() { *m = QueryTotalSupplyRequest
|
|||
func (m *QueryTotalSupplyRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryTotalSupplyRequest) ProtoMessage() {}
|
||||
func (*QueryTotalSupplyRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b761440f9b86d1e8, []int{4}
|
||||
return fileDescriptor_1b02ea4db7d9aa9f, []int{4}
|
||||
}
|
||||
func (m *QueryTotalSupplyRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -270,7 +270,7 @@ func (m *QueryTotalSupplyResponse) Reset() { *m = QueryTotalSupplyRespon
|
|||
func (m *QueryTotalSupplyResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryTotalSupplyResponse) ProtoMessage() {}
|
||||
func (*QueryTotalSupplyResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b761440f9b86d1e8, []int{5}
|
||||
return fileDescriptor_1b02ea4db7d9aa9f, []int{5}
|
||||
}
|
||||
func (m *QueryTotalSupplyResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -315,7 +315,7 @@ func (m *QuerySupplyOfRequest) Reset() { *m = QuerySupplyOfRequest{} }
|
|||
func (m *QuerySupplyOfRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QuerySupplyOfRequest) ProtoMessage() {}
|
||||
func (*QuerySupplyOfRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b761440f9b86d1e8, []int{6}
|
||||
return fileDescriptor_1b02ea4db7d9aa9f, []int{6}
|
||||
}
|
||||
func (m *QuerySupplyOfRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -361,7 +361,7 @@ func (m *QuerySupplyOfResponse) Reset() { *m = QuerySupplyOfResponse{} }
|
|||
func (m *QuerySupplyOfResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QuerySupplyOfResponse) ProtoMessage() {}
|
||||
func (*QuerySupplyOfResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b761440f9b86d1e8, []int{7}
|
||||
return fileDescriptor_1b02ea4db7d9aa9f, []int{7}
|
||||
}
|
||||
func (m *QuerySupplyOfResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -391,51 +391,50 @@ func (m *QuerySupplyOfResponse) XXX_DiscardUnknown() {
|
|||
var xxx_messageInfo_QuerySupplyOfResponse proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*QueryBalanceRequest)(nil), "cosmos_sdk.x.bank.v1.QueryBalanceRequest")
|
||||
proto.RegisterType((*QueryBalanceResponse)(nil), "cosmos_sdk.x.bank.v1.QueryBalanceResponse")
|
||||
proto.RegisterType((*QueryAllBalancesRequest)(nil), "cosmos_sdk.x.bank.v1.QueryAllBalancesRequest")
|
||||
proto.RegisterType((*QueryAllBalancesResponse)(nil), "cosmos_sdk.x.bank.v1.QueryAllBalancesResponse")
|
||||
proto.RegisterType((*QueryTotalSupplyRequest)(nil), "cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest")
|
||||
proto.RegisterType((*QueryTotalSupplyResponse)(nil), "cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse")
|
||||
proto.RegisterType((*QuerySupplyOfRequest)(nil), "cosmos_sdk.x.bank.v1.QuerySupplyOfRequest")
|
||||
proto.RegisterType((*QuerySupplyOfResponse)(nil), "cosmos_sdk.x.bank.v1.QuerySupplyOfResponse")
|
||||
proto.RegisterType((*QueryBalanceRequest)(nil), "cosmos.bank.QueryBalanceRequest")
|
||||
proto.RegisterType((*QueryBalanceResponse)(nil), "cosmos.bank.QueryBalanceResponse")
|
||||
proto.RegisterType((*QueryAllBalancesRequest)(nil), "cosmos.bank.QueryAllBalancesRequest")
|
||||
proto.RegisterType((*QueryAllBalancesResponse)(nil), "cosmos.bank.QueryAllBalancesResponse")
|
||||
proto.RegisterType((*QueryTotalSupplyRequest)(nil), "cosmos.bank.QueryTotalSupplyRequest")
|
||||
proto.RegisterType((*QueryTotalSupplyResponse)(nil), "cosmos.bank.QueryTotalSupplyResponse")
|
||||
proto.RegisterType((*QuerySupplyOfRequest)(nil), "cosmos.bank.QuerySupplyOfRequest")
|
||||
proto.RegisterType((*QuerySupplyOfResponse)(nil), "cosmos.bank.QuerySupplyOfResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/bank/types/query.proto", fileDescriptor_b761440f9b86d1e8) }
|
||||
func init() { proto.RegisterFile("cosmos/bank/query.proto", fileDescriptor_1b02ea4db7d9aa9f) }
|
||||
|
||||
var fileDescriptor_b761440f9b86d1e8 = []byte{
|
||||
// 493 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcb, 0x6e, 0xd3, 0x40,
|
||||
0x14, 0xb5, 0xa9, 0x9a, 0x94, 0x5b, 0x36, 0x4c, 0x83, 0x08, 0x5e, 0x38, 0xd5, 0x2c, 0xaa, 0x14,
|
||||
0xc8, 0x98, 0x94, 0x2f, 0x88, 0x2b, 0x90, 0x10, 0x0b, 0x84, 0x61, 0x85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0xa9, 0x37, 0x1e, 0x37, 0x81, 0x4a, 0xcf, 0x58, 0x43,
|
||||
0x11, 0xec, 0x56, 0x86, 0x01, 0x0d, 0x6a, 0x8a, 0xd7, 0x87, 0xd3, 0x20, 0x4d, 0xe1, 0x55, 0xbd,
|
||||
0x4a, 0xc4, 0xb5, 0x7a, 0xeb, 0x53, 0x52, 0xab, 0xb7, 0x61, 0x72, 0xb0, 0x86, 0x28, 0xec, 0x94,
|
||||
0x49, 0xa1, 0xba, 0x9d, 0xb9, 0x15, 0xbe, 0xf1, 0xa4, 0x11, 0xb6, 0x94, 0xb1, 0x8f, 0x2f, 0x97,
|
||||
0xa6, 0x7e, 0xb5, 0x34, 0xf5, 0x9f, 0x4b, 0x53, 0xff, 0xbc, 0x32, 0xb5, 0xab, 0x95, 0xa9, 0x7d,
|
||||
0x5b, 0x99, 0xda, 0x87, 0xc3, 0xda, 0xf8, 0xab, 0x67, 0xa4, 0xd7, 0x2a, 0x4e, 0xb3, 0xe7, 0xbf,
|
||||
0x03, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x7b, 0xe0, 0xb4, 0x3a, 0x05, 0x00, 0x00,
|
||||
var fileDescriptor_1b02ea4db7d9aa9f = []byte{
|
||||
// 473 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
|
||||
0x10, 0xb5, 0x8b, 0x9a, 0x94, 0x49, 0x4f, 0xdb, 0xa0, 0x06, 0x1f, 0xec, 0xb0, 0x82, 0x2a, 0x48,
|
||||
0x74, 0x0d, 0xe5, 0x8e, 0x14, 0x57, 0x42, 0x42, 0x1c, 0x00, 0x17, 0x71, 0xa8, 0x90, 0x90, 0x3f,
|
||||
0xb6, 0xa1, 0xaa, 0xed, 0x75, 0xbd, 0x36, 0x6a, 0xfe, 0x05, 0xbf, 0x83, 0x5f, 0xd2, 0x63, 0x8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, 0x8e, 0x5a, 0x96, 0x5d, 0x49,
|
||||
0xcf, 0xc0, 0xeb, 0x20, 0x15, 0xa9, 0x73, 0x78, 0x39, 0x37, 0xf5, 0xab, 0xb9, 0xa9, 0xff, 0x9a,
|
||||
0x9b, 0xfa, 0xd7, 0x85, 0xa9, 0x5d, 0x2d, 0x4c, 0xed, 0xfb, 0xc2, 0xd4, 0x8e, 0x1f, 0xaf, 0x8d,
|
||||
0xed, 0x42, 0xbe, 0x53, 0x22, 0x3d, 0xbf, 0x23, 0x1e, 0x9c, 0xe7, 0x7f, 0x03, 0x00, 0x00, 0xff,
|
||||
0xff, 0x27, 0x7c, 0xfe, 0x36, 0xc3, 0x04, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
@ -470,7 +469,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient {
|
|||
|
||||
func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) {
|
||||
out := new(QueryBalanceResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos_sdk.x.bank.v1.Query/Balance", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.bank.Query/Balance", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -479,7 +478,7 @@ func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts
|
|||
|
||||
func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) {
|
||||
out := new(QueryAllBalancesResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos_sdk.x.bank.v1.Query/AllBalances", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.bank.Query/AllBalances", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -488,7 +487,7 @@ func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesReque
|
|||
|
||||
func (c *queryClient) TotalSupply(ctx context.Context, in *QueryTotalSupplyRequest, opts ...grpc.CallOption) (*QueryTotalSupplyResponse, error) {
|
||||
out := new(QueryTotalSupplyResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos_sdk.x.bank.v1.Query/TotalSupply", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.bank.Query/TotalSupply", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -497,7 +496,7 @@ func (c *queryClient) TotalSupply(ctx context.Context, in *QueryTotalSupplyReque
|
|||
|
||||
func (c *queryClient) SupplyOf(ctx context.Context, in *QuerySupplyOfRequest, opts ...grpc.CallOption) (*QuerySupplyOfResponse, error) {
|
||||
out := new(QuerySupplyOfResponse)
|
||||
err := c.cc.Invoke(ctx, "/cosmos_sdk.x.bank.v1.Query/SupplyOf", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/cosmos.bank.Query/SupplyOf", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -547,7 +546,7 @@ func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(inter
|
|||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos_sdk.x.bank.v1.Query/Balance",
|
||||
FullMethod: "/cosmos.bank.Query/Balance",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest))
|
||||
|
@ -565,7 +564,7 @@ func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(i
|
|||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos_sdk.x.bank.v1.Query/AllBalances",
|
||||
FullMethod: "/cosmos.bank.Query/AllBalances",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest))
|
||||
|
@ -583,7 +582,7 @@ func _Query_TotalSupply_Handler(srv interface{}, ctx context.Context, dec func(i
|
|||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos_sdk.x.bank.v1.Query/TotalSupply",
|
||||
FullMethod: "/cosmos.bank.Query/TotalSupply",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).TotalSupply(ctx, req.(*QueryTotalSupplyRequest))
|
||||
|
@ -601,7 +600,7 @@ func _Query_SupplyOf_Handler(srv interface{}, ctx context.Context, dec func(inte
|
|||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/cosmos_sdk.x.bank.v1.Query/SupplyOf",
|
||||
FullMethod: "/cosmos.bank.Query/SupplyOf",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).SupplyOf(ctx, req.(*QuerySupplyOfRequest))
|
||||
|
@ -610,7 +609,7 @@ func _Query_SupplyOf_Handler(srv interface{}, ctx context.Context, dec func(inte
|
|||
}
|
||||
|
||||
var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos_sdk.x.bank.v1.Query",
|
||||
ServiceName: "cosmos.bank.Query",
|
||||
HandlerType: (*QueryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
|
@ -631,7 +630,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
|||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "x/bank/types/query.proto",
|
||||
Metadata: "cosmos/bank/query.proto",
|
||||
}
|
||||
|
||||
func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/capability/types/types.proto
|
||||
// source: cosmos/capability/capability.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -32,7 +32,7 @@ type Capability struct {
|
|||
func (m *Capability) Reset() { *m = Capability{} }
|
||||
func (*Capability) ProtoMessage() {}
|
||||
func (*Capability) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d73d5c48b3550cdd, []int{0}
|
||||
return fileDescriptor_ed9f06ee1908474a, []int{0}
|
||||
}
|
||||
func (m *Capability) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -78,7 +78,7 @@ type Owner struct {
|
|||
func (m *Owner) Reset() { *m = Owner{} }
|
||||
func (*Owner) ProtoMessage() {}
|
||||
func (*Owner) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d73d5c48b3550cdd, []int{1}
|
||||
return fileDescriptor_ed9f06ee1908474a, []int{1}
|
||||
}
|
||||
func (m *Owner) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -117,7 +117,7 @@ func (m *CapabilityOwners) Reset() { *m = CapabilityOwners{} }
|
|||
func (m *CapabilityOwners) String() string { return proto.CompactTextString(m) }
|
||||
func (*CapabilityOwners) ProtoMessage() {}
|
||||
func (*CapabilityOwners) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d73d5c48b3550cdd, []int{2}
|
||||
return fileDescriptor_ed9f06ee1908474a, []int{2}
|
||||
}
|
||||
func (m *CapabilityOwners) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -154,35 +154,35 @@ func (m *CapabilityOwners) GetOwners() []Owner {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Capability)(nil), "cosmos_sdk.x.capability.v1.Capability")
|
||||
proto.RegisterType((*Owner)(nil), "cosmos_sdk.x.capability.v1.Owner")
|
||||
proto.RegisterType((*CapabilityOwners)(nil), "cosmos_sdk.x.capability.v1.CapabilityOwners")
|
||||
proto.RegisterType((*Capability)(nil), "cosmos.capability.Capability")
|
||||
proto.RegisterType((*Owner)(nil), "cosmos.capability.Owner")
|
||||
proto.RegisterType((*CapabilityOwners)(nil), "cosmos.capability.CapabilityOwners")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/capability/types/types.proto", fileDescriptor_d73d5c48b3550cdd) }
|
||||
func init() {
|
||||
proto.RegisterFile("cosmos/capability/capability.proto", fileDescriptor_ed9f06ee1908474a)
|
||||
}
|
||||
|
||||
var fileDescriptor_d73d5c48b3550cdd = []byte{
|
||||
// 308 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xab, 0xd0, 0x4f, 0x4e,
|
||||
0x2c, 0x48, 0x4c, 0xca, 0xcc, 0xc9, 0x2c, 0xa9, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x86, 0x90,
|
||||
0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x52, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xf1, 0xc5,
|
||||
0x29, 0xd9, 0x7a, 0x15, 0x7a, 0x08, 0xa5, 0x7a, 0x65, 0x86, 0x52, 0x6a, 0x25, 0x19, 0x99, 0x45,
|
||||
0x29, 0xf1, 0x05, 0x89, 0x45, 0x25, 0x95, 0xfa, 0x60, 0xe5, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0x08,
|
||||
0x16, 0xc4, 0x0c, 0x25, 0x2b, 0x2e, 0x2e, 0x67, 0xb8, 0x46, 0x21, 0x35, 0x2e, 0xd6, 0xcc, 0xbc,
|
||||
0x94, 0xd4, 0x0a, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x16, 0x27, 0x81, 0x4f, 0xf7, 0xe4, 0x79, 0x2a,
|
||||
0x13, 0x73, 0x73, 0xac, 0x94, 0xc0, 0xc2, 0x4a, 0x41, 0x10, 0x69, 0x2b, 0x96, 0x19, 0x0b, 0xe4,
|
||||
0x19, 0x94, 0x12, 0xb9, 0x58, 0xfd, 0xcb, 0xf3, 0x52, 0x8b, 0x84, 0x34, 0xb9, 0xd8, 0x72, 0xf3,
|
||||
0x53, 0x4a, 0x73, 0x52, 0xc1, 0xfa, 0x38, 0x9d, 0x04, 0x3f, 0xdd, 0x93, 0xe7, 0x85, 0xe8, 0x83,
|
||||
0x88, 0x2b, 0x05, 0x41, 0x15, 0x08, 0x29, 0x73, 0xb1, 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x81,
|
||||
0x15, 0xf2, 0x7f, 0xba, 0x27, 0xcf, 0x0d, 0x51, 0x08, 0x12, 0x55, 0x0a, 0x02, 0x4b, 0x5a, 0x71,
|
||||
0x74, 0x2c, 0x90, 0x67, 0x00, 0x5b, 0x11, 0xcc, 0x25, 0x80, 0x70, 0x1e, 0xd8, 0xb2, 0x62, 0x21,
|
||||
0x7b, 0x2e, 0xb6, 0x7c, 0x30, 0x4b, 0x82, 0x51, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x51, 0x0f, 0x77,
|
||||
0x38, 0xe8, 0x81, 0xf5, 0x38, 0xb1, 0x9c, 0xb8, 0x27, 0xcf, 0x10, 0x04, 0xd5, 0xe6, 0xe4, 0x79,
|
||||
0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7,
|
||||
0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xfa, 0xe9, 0x99, 0x25, 0x19, 0xa5,
|
||||
0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0x43, 0xa1, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x3e, 0x66,
|
||||
0x74, 0x24, 0xb1, 0x81, 0x43, 0xd1, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x14, 0xb2, 0xaf,
|
||||
0xab, 0x01, 0x00, 0x00,
|
||||
var fileDescriptor_ed9f06ee1908474a = []byte{
|
||||
// 288 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0xce, 0x2f, 0xce,
|
||||
0xcd, 0x2f, 0xd6, 0x4f, 0x4e, 0x2c, 0x48, 0x4c, 0xca, 0xcc, 0xc9, 0x2c, 0xa9, 0x44, 0x62, 0xea,
|
||||
0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x42, 0xd4, 0xe8, 0x21, 0x24, 0xa4, 0x44, 0xd2, 0xf3,
|
||||
0xd3, 0xf3, 0xc1, 0xb2, 0xfa, 0x20, 0x16, 0x44, 0xa1, 0x92, 0x15, 0x17, 0x97, 0x33, 0x5c, 0x8d,
|
||||
0x90, 0x1a, 0x17, 0x6b, 0x66, 0x5e, 0x4a, 0x6a, 0x85, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x8b, 0x93,
|
||||
0xc0, 0xa7, 0x7b, 0xf2, 0x3c, 0x95, 0x89, 0xb9, 0x39, 0x56, 0x4a, 0x60, 0x61, 0xa5, 0x20, 0x88,
|
||||
0xb4, 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4a, 0x89, 0x5c, 0xac, 0xfe, 0xe5, 0x79, 0xa9, 0x45,
|
||||
0x42, 0x9a, 0x5c, 0x6c, 0xb9, 0xf9, 0x29, 0xa5, 0x39, 0xa9, 0x60, 0x7d, 0x9c, 0x4e, 0x82, 0x9f,
|
||||
0xee, 0xc9, 0xf3, 0x42, 0xf4, 0x41, 0xc4, 0x95, 0x82, 0xa0, 0x0a, 0x84, 0x94, 0xb9, 0x58, 0xf2,
|
||||
0x12, 0x73, 0x53, 0x25, 0x98, 0xc0, 0x0a, 0xf9, 0x3f, 0xdd, 0x93, 0xe7, 0x86, 0x28, 0x04, 0x89,
|
||||
0x2a, 0x05, 0x81, 0x25, 0xad, 0x38, 0x3a, 0x16, 0xc8, 0x33, 0x80, 0xad, 0xf0, 0xe2, 0x12, 0x40,
|
||||
0x38, 0x0f, 0x6c, 0x59, 0xb1, 0x90, 0x19, 0x17, 0x5b, 0x3e, 0x98, 0x25, 0xc1, 0xa8, 0xc0, 0xac,
|
||||
0xc1, 0x6d, 0x24, 0xa1, 0x87, 0xe1, 0x59, 0x3d, 0xb0, 0x52, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19,
|
||||
0x82, 0xa0, 0xaa, 0x9d, 0x3c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23,
|
||||
0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a,
|
||||
0x3f, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x16, 0xb8, 0x60, 0x4a,
|
||||
0xb7, 0x38, 0x25, 0x5b, 0xbf, 0x02, 0x39, 0xa4, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0,
|
||||
0x81, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x3f, 0x01, 0xd9, 0x8b, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Capability) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -206,7 +206,7 @@ func (m *Capability) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.Index != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.Index))
|
||||
i = encodeVarintCapability(dAtA, i, uint64(m.Index))
|
||||
i--
|
||||
dAtA[i] = 0x8
|
||||
}
|
||||
|
@ -236,14 +236,14 @@ func (m *Owner) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Name) > 0 {
|
||||
i -= len(m.Name)
|
||||
copy(dAtA[i:], m.Name)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Name)))
|
||||
i = encodeVarintCapability(dAtA, i, uint64(len(m.Name)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Module) > 0 {
|
||||
i -= len(m.Module)
|
||||
copy(dAtA[i:], m.Module)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Module)))
|
||||
i = encodeVarintCapability(dAtA, i, uint64(len(m.Module)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ func (m *CapabilityOwners) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintCapability(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -287,8 +287,8 @@ func (m *CapabilityOwners) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintCapability(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovCapability(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -305,7 +305,7 @@ func (m *Capability) Size() (n int) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.Index != 0 {
|
||||
n += 1 + sovTypes(uint64(m.Index))
|
||||
n += 1 + sovCapability(uint64(m.Index))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -318,11 +318,11 @@ func (m *Owner) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Module)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCapability(uint64(l))
|
||||
}
|
||||
l = len(m.Name)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCapability(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -336,17 +336,17 @@ func (m *CapabilityOwners) Size() (n int) {
|
|||
if len(m.Owners) > 0 {
|
||||
for _, e := range m.Owners {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCapability(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovCapability(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozCapability(x uint64) (n int) {
|
||||
return sovCapability(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *Capability) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -356,7 +356,7 @@ func (m *Capability) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -384,7 +384,7 @@ func (m *Capability) Unmarshal(dAtA []byte) error {
|
|||
m.Index = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -398,15 +398,15 @@ func (m *Capability) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCapability(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -428,7 +428,7 @@ func (m *Owner) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -456,7 +456,7 @@ func (m *Owner) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -470,11 +470,11 @@ func (m *Owner) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -488,7 +488,7 @@ func (m *Owner) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -502,11 +502,11 @@ func (m *Owner) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -515,15 +515,15 @@ func (m *Owner) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCapability(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -545,7 +545,7 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -573,7 +573,7 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -586,11 +586,11 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -602,15 +602,15 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCapability(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCapability
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -624,7 +624,7 @@ func (m *CapabilityOwners) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipCapability(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -632,7 +632,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -649,7 +649,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -665,7 +665,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCapability
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -678,14 +678,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthCapability
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupCapability
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -694,7 +694,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthCapability
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -704,7 +704,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthCapability = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowCapability = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupCapability = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/crisis/types/types.proto
|
||||
// source: cosmos/crisis/crisis.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -36,7 +36,7 @@ func (m *MsgVerifyInvariant) Reset() { *m = MsgVerifyInvariant{} }
|
|||
func (m *MsgVerifyInvariant) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgVerifyInvariant) ProtoMessage() {}
|
||||
func (*MsgVerifyInvariant) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d15f5abb7502dad7, []int{0}
|
||||
return fileDescriptor_cc68222b2e6ddda9, []int{0}
|
||||
}
|
||||
func (m *MsgVerifyInvariant) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -87,32 +87,31 @@ func (m *MsgVerifyInvariant) GetInvariantRoute() string {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgVerifyInvariant)(nil), "cosmos_sdk.x.crisis.v1.MsgVerifyInvariant")
|
||||
proto.RegisterType((*MsgVerifyInvariant)(nil), "cosmos.crisis.MsgVerifyInvariant")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/crisis/types/types.proto", fileDescriptor_d15f5abb7502dad7) }
|
||||
func init() { proto.RegisterFile("cosmos/crisis/crisis.proto", fileDescriptor_cc68222b2e6ddda9) }
|
||||
|
||||
var fileDescriptor_d15f5abb7502dad7 = []byte{
|
||||
// 301 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xaa, 0xd0, 0x4f, 0x2e,
|
||||
0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x85, 0x92, 0x7a, 0x05, 0x45, 0xf9, 0x25,
|
||||
0xf9, 0x42, 0x62, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xf1, 0xc5, 0x29, 0xd9, 0x7a, 0x15, 0x7a,
|
||||
0x10, 0x65, 0x7a, 0x65, 0x86, 0x52, 0x6a, 0x25, 0x19, 0x99, 0x45, 0x29, 0xf1, 0x05, 0x89, 0x45,
|
||||
0x25, 0x95, 0xfa, 0x60, 0xa5, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0x08, 0x16, 0x44, 0xbf, 0x52, 0x03,
|
||||
0x13, 0x97, 0x90, 0x6f, 0x71, 0x7a, 0x58, 0x6a, 0x51, 0x66, 0x5a, 0xa5, 0x67, 0x5e, 0x59, 0x62,
|
||||
0x51, 0x66, 0x62, 0x5e, 0x89, 0x90, 0x27, 0x17, 0x5b, 0x71, 0x6a, 0x5e, 0x4a, 0x6a, 0x91, 0x04,
|
||||
0xa3, 0x02, 0xa3, 0x06, 0x8f, 0x93, 0xe1, 0xaf, 0x7b, 0xf2, 0xba, 0xe9, 0x99, 0x25, 0x19, 0xa5,
|
||||
0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0x5b, 0xa1, 0x94, 0x6e, 0x71, 0x4a, 0x36, 0xd4, 0x51,
|
||||
0x8e, 0xc9, 0xc9, 0x8e, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x41, 0x50, 0x03, 0x84, 0x42, 0xb8,
|
||||
0x44, 0x33, 0x61, 0xe6, 0xc6, 0xe7, 0xe6, 0xa7, 0x94, 0xe6, 0xa4, 0xc6, 0xe7, 0x25, 0xe6, 0xa6,
|
||||
0x4a, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x3a, 0x29, 0x7c, 0xba, 0x27, 0x2f, 0x53, 0x99, 0x98, 0x9b,
|
||||
0x63, 0xa5, 0x84, 0x55, 0x99, 0x52, 0x90, 0x30, 0x5c, 0xdc, 0x17, 0x2c, 0xec, 0x97, 0x98, 0x9b,
|
||||
0x2a, 0xe4, 0xcc, 0xc5, 0x8f, 0x50, 0x5e, 0x94, 0x5f, 0x5a, 0x92, 0x2a, 0xc1, 0x0c, 0x36, 0x4f,
|
||||
0xea, 0xd3, 0x3d, 0x79, 0x31, 0x74, 0xf3, 0xc0, 0x0a, 0x94, 0x82, 0xf8, 0xe0, 0x22, 0x41, 0x20,
|
||||
0x01, 0x2b, 0x96, 0x17, 0x0b, 0xe4, 0x19, 0x9d, 0x5c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48,
|
||||
0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1,
|
||||
0x58, 0x8e, 0x21, 0x4a, 0x1b, 0xaf, 0x8f, 0x51, 0x63, 0x25, 0x89, 0x0d, 0x1c, 0xa0, 0xc6, 0x80,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x65, 0xef, 0x2c, 0xae, 0x01, 0x00, 0x00,
|
||||
var fileDescriptor_cc68222b2e6ddda9 = []byte{
|
||||
// 282 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0x2f, 0xce,
|
||||
0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x2c, 0xce, 0x84, 0x51, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9,
|
||||
0x42, 0xbc, 0x10, 0x39, 0x3d, 0x88, 0xa0, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x58, 0x46, 0x1f,
|
||||
0xc4, 0x82, 0x28, 0x52, 0x6a, 0x60, 0xe2, 0x12, 0xf2, 0x2d, 0x4e, 0x0f, 0x4b, 0x2d, 0xca, 0x4c,
|
||||
0xab, 0xf4, 0xcc, 0x2b, 0x4b, 0x2c, 0xca, 0x4c, 0xcc, 0x2b, 0x11, 0xf2, 0xe4, 0x62, 0x2b, 0x4e,
|
||||
0xcd, 0x4b, 0x49, 0x2d, 0x92, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x71, 0x32, 0xfc, 0x75, 0x4f, 0x5e,
|
||||
0x37, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x66, 0x2d, 0x98, 0xd2,
|
||||
0x2d, 0x4e, 0xc9, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x73, 0x4c, 0x4e, 0x76, 0x4c, 0x49,
|
||||
0x29, 0x4a, 0x2d, 0x2e, 0x0e, 0x82, 0x1a, 0x20, 0x14, 0xc2, 0x25, 0x9a, 0x09, 0x33, 0x37, 0x3e,
|
||||
0x37, 0x3f, 0xa5, 0x34, 0x27, 0x35, 0x3e, 0x2f, 0x31, 0x37, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83,
|
||||
0xd3, 0x49, 0xe1, 0xd3, 0x3d, 0x79, 0x99, 0xca, 0xc4, 0xdc, 0x1c, 0x2b, 0x25, 0xac, 0xca, 0x94,
|
||||
0x82, 0x84, 0xe1, 0xe2, 0xbe, 0x60, 0x61, 0xbf, 0xc4, 0xdc, 0x54, 0x21, 0x67, 0x2e, 0x7e, 0x84,
|
||||
0xf2, 0xa2, 0xfc, 0xd2, 0x92, 0x54, 0x09, 0x66, 0xb0, 0x79, 0x52, 0x9f, 0xee, 0xc9, 0x8b, 0xa1,
|
||||
0x9b, 0x07, 0x56, 0xa0, 0x14, 0xc4, 0x07, 0x17, 0x09, 0x02, 0x09, 0x58, 0xb1, 0xbc, 0x58, 0x20,
|
||||
0xcf, 0xe8, 0xe4, 0x7a, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31,
|
||||
0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xda, 0x78,
|
||||
0x7d, 0x5c, 0x01, 0x0b, 0x75, 0xb0, 0xd7, 0x93, 0xd8, 0xc0, 0x01, 0x6a, 0x0c, 0x08, 0x00, 0x00,
|
||||
0xff, 0xff, 0xe1, 0xbb, 0x7c, 0x71, 0x93, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *MsgVerifyInvariant) Equal(that interface{}) bool {
|
||||
|
@ -168,29 +167,29 @@ func (m *MsgVerifyInvariant) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.InvariantRoute) > 0 {
|
||||
i -= len(m.InvariantRoute)
|
||||
copy(dAtA[i:], m.InvariantRoute)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.InvariantRoute)))
|
||||
i = encodeVarintCrisis(dAtA, i, uint64(len(m.InvariantRoute)))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
if len(m.InvariantModuleName) > 0 {
|
||||
i -= len(m.InvariantModuleName)
|
||||
copy(dAtA[i:], m.InvariantModuleName)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.InvariantModuleName)))
|
||||
i = encodeVarintCrisis(dAtA, i, uint64(len(m.InvariantModuleName)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Sender) > 0 {
|
||||
i -= len(m.Sender)
|
||||
copy(dAtA[i:], m.Sender)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender)))
|
||||
i = encodeVarintCrisis(dAtA, i, uint64(len(m.Sender)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintCrisis(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovCrisis(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -208,24 +207,24 @@ func (m *MsgVerifyInvariant) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Sender)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrisis(uint64(l))
|
||||
}
|
||||
l = len(m.InvariantModuleName)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrisis(uint64(l))
|
||||
}
|
||||
l = len(m.InvariantRoute)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCrisis(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovCrisis(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozCrisis(x uint64) (n int) {
|
||||
return sovCrisis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -235,7 +234,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrisis
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -263,7 +262,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrisis
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -276,11 +275,11 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrisis
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrisis
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -297,7 +296,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrisis
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -311,11 +310,11 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrisis
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrisis
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -329,7 +328,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCrisis
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -343,11 +342,11 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrisis
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrisis
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -356,15 +355,15 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCrisis(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrisis
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCrisis
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -378,7 +377,7 @@ func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipCrisis(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -386,7 +385,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCrisis
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -403,7 +402,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCrisis
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -419,7 +418,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCrisis
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -432,14 +431,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthCrisis
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupCrisis
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -448,7 +447,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthCrisis
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -458,7 +457,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthCrisis = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowCrisis = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupCrisis = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/evidence/types/types.proto
|
||||
// source: cosmos/evidence/evidence.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -41,7 +41,7 @@ func (m *MsgSubmitEvidence) Reset() { *m = MsgSubmitEvidence{} }
|
|||
func (m *MsgSubmitEvidence) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSubmitEvidence) ProtoMessage() {}
|
||||
func (*MsgSubmitEvidence) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_72113e6a7b2536ae, []int{0}
|
||||
return fileDescriptor_a2cafccc38cf08ce, []int{0}
|
||||
}
|
||||
func (m *MsgSubmitEvidence) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -82,7 +82,7 @@ type Equivocation struct {
|
|||
func (m *Equivocation) Reset() { *m = Equivocation{} }
|
||||
func (*Equivocation) ProtoMessage() {}
|
||||
func (*Equivocation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_72113e6a7b2536ae, []int{1}
|
||||
return fileDescriptor_a2cafccc38cf08ce, []int{1}
|
||||
}
|
||||
func (m *Equivocation) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -112,40 +112,39 @@ func (m *Equivocation) XXX_DiscardUnknown() {
|
|||
var xxx_messageInfo_Equivocation proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgSubmitEvidence)(nil), "cosmos_sdk.x.evidence.v1.MsgSubmitEvidence")
|
||||
proto.RegisterType((*Equivocation)(nil), "cosmos_sdk.x.evidence.v1.Equivocation")
|
||||
proto.RegisterType((*MsgSubmitEvidence)(nil), "cosmos.evidence.MsgSubmitEvidence")
|
||||
proto.RegisterType((*Equivocation)(nil), "cosmos.evidence.Equivocation")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/evidence/types/types.proto", fileDescriptor_72113e6a7b2536ae) }
|
||||
func init() { proto.RegisterFile("cosmos/evidence/evidence.proto", fileDescriptor_a2cafccc38cf08ce) }
|
||||
|
||||
var fileDescriptor_72113e6a7b2536ae = []byte{
|
||||
// 414 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xbd, 0xae, 0xd3, 0x30,
|
||||
0x18, 0x8d, 0xb9, 0xe5, 0xaa, 0x98, 0x3b, 0xd0, 0xa8, 0x42, 0xa1, 0x42, 0x71, 0x95, 0x01, 0x75,
|
||||
0xa9, 0x43, 0x61, 0x41, 0xdd, 0x5a, 0xd4, 0x09, 0x01, 0x52, 0x60, 0x62, 0xa9, 0xf2, 0x63, 0x12,
|
||||
0xab, 0x4d, 0x1c, 0x62, 0xa7, 0x34, 0xe2, 0x05, 0x18, 0x3b, 0x32, 0x30, 0x74, 0xe4, 0x51, 0x3a,
|
||||
0x76, 0x64, 0x0a, 0x28, 0x7d, 0x03, 0xc6, 0x4a, 0x48, 0xa8, 0x71, 0xd2, 0x4a, 0xad, 0x84, 0xee,
|
||||
0x62, 0xfb, 0xfb, 0x7c, 0x7c, 0x7c, 0xce, 0xb1, 0xe1, 0xe3, 0xa5, 0x49, 0x16, 0xd4, 0x23, 0x91,
|
||||
0x4b, 0x4c, 0x91, 0xc5, 0x84, 0xcb, 0x11, 0xc7, 0x09, 0x13, 0x4c, 0xd5, 0x5c, 0xc6, 0x43, 0xc6,
|
||||
0xa7, 0xdc, 0x9b, 0xe1, 0x25, 0xae, 0x81, 0x78, 0x31, 0xe8, 0x3c, 0x11, 0x01, 0x4d, 0xbc, 0x69,
|
||||
0x6c, 0x27, 0x22, 0x33, 0x4b, 0xb0, 0xe9, 0x33, 0x9f, 0x9d, 0x56, 0x92, 0xa1, 0x83, 0x7c, 0xc6,
|
||||
0xfc, 0x39, 0x91, 0x10, 0x27, 0xfd, 0x68, 0x0a, 0x1a, 0x12, 0x2e, 0xec, 0x30, 0xae, 0x00, 0x8f,
|
||||
0xce, 0x01, 0x76, 0x94, 0xc9, 0x2d, 0xe3, 0x3b, 0x80, 0xad, 0xd7, 0xdc, 0x7f, 0x97, 0x3a, 0x21,
|
||||
0x15, 0x93, 0xea, 0x72, 0xf5, 0x2d, 0xbc, 0xc7, 0xcb, 0x8e, 0x20, 0x89, 0x06, 0xba, 0xa0, 0x77,
|
||||
0x33, 0x1e, 0xec, 0x73, 0xd4, 0xf7, 0xa9, 0x08, 0x52, 0x07, 0xbb, 0x2c, 0x34, 0xa5, 0xea, 0x6a,
|
||||
0xea, 0x73, 0x6f, 0x56, 0x99, 0x1a, 0xb9, 0xee, 0xc8, 0xf3, 0x12, 0xc2, 0xb9, 0x75, 0xe2, 0x50,
|
||||
0x9f, 0xc2, 0x66, 0xed, 0x4c, 0xbb, 0xd3, 0x05, 0xbd, 0xfb, 0xcf, 0xda, 0x58, 0x8a, 0xc2, 0xb5,
|
||||
0x28, 0x3c, 0x8a, 0x32, 0xeb, 0x88, 0x1a, 0x36, 0xbe, 0xae, 0x91, 0x62, 0xfc, 0x05, 0xf0, 0x66,
|
||||
0xf2, 0x29, 0xa5, 0x0b, 0xe6, 0xda, 0x82, 0xb2, 0x48, 0x7d, 0x08, 0xaf, 0x03, 0x42, 0xfd, 0x40,
|
||||
0x94, 0xb2, 0xae, 0xac, 0xaa, 0x52, 0x5f, 0xc0, 0xc6, 0xc1, 0x75, 0x45, 0xde, 0xb9, 0x20, 0x7f,
|
||||
0x5f, 0x47, 0x32, 0x6e, 0x6e, 0x72, 0xa4, 0xac, 0x7e, 0x21, 0x60, 0x95, 0x27, 0xd4, 0x36, 0xbc,
|
||||
0x1b, 0xb3, 0xcf, 0x24, 0xd1, 0xae, 0x4a, 0x42, 0x59, 0xa8, 0x5f, 0x60, 0xcb, 0x65, 0x11, 0x27,
|
||||
0x11, 0x4f, 0xf9, 0xd4, 0x96, 0x86, 0xb4, 0x46, 0x99, 0xc4, 0x9b, 0x3f, 0x39, 0xd2, 0x32, 0x3b,
|
||||
0x9c, 0x0f, 0x8d, 0x0b, 0x88, 0xb1, 0xcf, 0x11, 0xbe, 0x45, 0x4a, 0x2f, 0x59, 0xc4, 0xeb, 0x98,
|
||||
0x1e, 0x1c, 0x59, 0xaa, 0xce, 0xb0, 0x79, 0xf0, 0xfe, 0x6d, 0x8d, 0x94, 0xf1, 0xab, 0x1f, 0x85,
|
||||
0x0e, 0x36, 0x85, 0x0e, 0xb6, 0x85, 0x0e, 0x7e, 0x17, 0x3a, 0x58, 0xed, 0x74, 0x65, 0xbb, 0xd3,
|
||||
0x95, 0x9f, 0x3b, 0x5d, 0xf9, 0xf0, 0xff, 0xf7, 0x38, 0xff, 0x75, 0xce, 0x75, 0x99, 0xc6, 0xf3,
|
||||
0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2c, 0xbe, 0x1a, 0x9c, 0x90, 0x02, 0x00, 0x00,
|
||||
var fileDescriptor_a2cafccc38cf08ce = []byte{
|
||||
// 400 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xce, 0x2f, 0xce,
|
||||
0xcd, 0x2f, 0xd6, 0x4f, 0x2d, 0xcb, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0x85, 0x33, 0xf4, 0x0a, 0x8a,
|
||||
0xf2, 0x4b, 0xf2, 0x85, 0xf8, 0x21, 0xf2, 0x7a, 0x30, 0x61, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c,
|
||||
0xb0, 0x9c, 0x3e, 0x88, 0x05, 0x51, 0x26, 0x25, 0x9f, 0x9e, 0x9f, 0x9f, 0x9e, 0x93, 0xaa, 0x0f,
|
||||
0xe6, 0x25, 0x95, 0xa6, 0xe9, 0x97, 0x64, 0xe6, 0xa6, 0x16, 0x97, 0x24, 0xe6, 0x16, 0x40, 0x15,
|
||||
0x48, 0xa2, 0x2b, 0x48, 0xcc, 0xab, 0x84, 0x48, 0x29, 0xcd, 0x61, 0xe4, 0x12, 0xf4, 0x2d, 0x4e,
|
||||
0x0f, 0x2e, 0x4d, 0xca, 0xcd, 0x2c, 0x71, 0x85, 0xda, 0x23, 0xe4, 0xcf, 0xc5, 0x59, 0x0c, 0x16,
|
||||
0x29, 0x49, 0x2d, 0x92, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x71, 0x32, 0xfc, 0x75, 0x4f, 0x5e, 0x37,
|
||||
0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xea, 0x74, 0x08, 0xa5, 0x5b,
|
||||
0x9c, 0x92, 0xad, 0x5f, 0x52, 0x59, 0x90, 0x5a, 0xac, 0xe7, 0x98, 0x9c, 0xec, 0x98, 0x92, 0x52,
|
||||
0x94, 0x5a, 0x5c, 0x1c, 0x84, 0x30, 0x43, 0xc8, 0x80, 0x8b, 0x03, 0xe6, 0x09, 0x09, 0x26, 0x05,
|
||||
0x46, 0x0d, 0x6e, 0x23, 0x11, 0x3d, 0x88, 0xa3, 0xf4, 0x60, 0x8e, 0xd2, 0x73, 0xcc, 0xab, 0x0c,
|
||||
0x82, 0xab, 0xb2, 0x62, 0xe9, 0x58, 0x20, 0xcf, 0xa0, 0xf4, 0x97, 0x91, 0x8b, 0xc7, 0xb5, 0xb0,
|
||||
0x34, 0xb3, 0x2c, 0x3f, 0x39, 0xb1, 0x24, 0x33, 0x3f, 0x4f, 0x48, 0x8c, 0x8b, 0x2d, 0x23, 0x35,
|
||||
0x33, 0x3d, 0xa3, 0x04, 0xec, 0x2c, 0xe6, 0x20, 0x28, 0x4f, 0xc8, 0x82, 0x8b, 0x05, 0xe4, 0x6b,
|
||||
0xa8, 0xe1, 0x52, 0x18, 0x86, 0x87, 0xc0, 0x82, 0xc4, 0x89, 0xe3, 0xc4, 0x3d, 0x79, 0x86, 0x09,
|
||||
0xf7, 0xe5, 0x19, 0x83, 0xc0, 0x3a, 0x84, 0x44, 0xb8, 0x58, 0x0b, 0xf2, 0xcb, 0x53, 0x8b, 0x24,
|
||||
0x98, 0xc1, 0x06, 0x42, 0x38, 0x42, 0xd5, 0x5c, 0x82, 0xc9, 0xf9, 0x79, 0xc5, 0xa9, 0x79, 0xc5,
|
||||
0xa5, 0xc5, 0xf1, 0x89, 0x10, 0x0f, 0x49, 0xb0, 0x80, 0x43, 0xc2, 0xef, 0xd3, 0x3d, 0x79, 0x89,
|
||||
0xca, 0xc4, 0xdc, 0x1c, 0x2b, 0x25, 0x0c, 0x25, 0x4a, 0xbf, 0xee, 0xc9, 0xeb, 0x11, 0x11, 0x4a,
|
||||
0xce, 0xf9, 0x79, 0xc5, 0xb0, 0x60, 0x12, 0x80, 0x9b, 0x02, 0x15, 0xb1, 0xe2, 0x00, 0xf9, 0x7d,
|
||||
0xc6, 0x02, 0x79, 0x06, 0x27, 0xef, 0x15, 0x8f, 0xe4, 0x18, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0,
|
||||
0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8,
|
||||
0xf1, 0x58, 0x8e, 0x21, 0x0a, 0x7f, 0x7c, 0x54, 0x20, 0xd2, 0x15, 0xd8, 0xd2, 0x24, 0x36, 0x70,
|
||||
0x68, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x56, 0x68, 0x52, 0xd8, 0x77, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *MsgSubmitEvidence) Equal(that interface{}) bool {
|
||||
|
@ -235,7 +234,7 @@ func (m *MsgSubmitEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintEvidence(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
|
@ -243,7 +242,7 @@ func (m *MsgSubmitEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Submitter) > 0 {
|
||||
i -= len(m.Submitter)
|
||||
copy(dAtA[i:], m.Submitter)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Submitter)))
|
||||
i = encodeVarintEvidence(dAtA, i, uint64(len(m.Submitter)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -273,12 +272,12 @@ func (m *Equivocation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.ConsensusAddress) > 0 {
|
||||
i -= len(m.ConsensusAddress)
|
||||
copy(dAtA[i:], m.ConsensusAddress)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.ConsensusAddress)))
|
||||
i = encodeVarintEvidence(dAtA, i, uint64(len(m.ConsensusAddress)))
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
}
|
||||
if m.Power != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.Power))
|
||||
i = encodeVarintEvidence(dAtA, i, uint64(m.Power))
|
||||
i--
|
||||
dAtA[i] = 0x18
|
||||
}
|
||||
|
@ -287,19 +286,19 @@ func (m *Equivocation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err2
|
||||
}
|
||||
i -= n2
|
||||
i = encodeVarintTypes(dAtA, i, uint64(n2))
|
||||
i = encodeVarintEvidence(dAtA, i, uint64(n2))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
if m.Height != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.Height))
|
||||
i = encodeVarintEvidence(dAtA, i, uint64(m.Height))
|
||||
i--
|
||||
dAtA[i] = 0x8
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintEvidence(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovEvidence(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -317,11 +316,11 @@ func (m *MsgSubmitEvidence) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Submitter)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovEvidence(uint64(l))
|
||||
}
|
||||
if m.Evidence != nil {
|
||||
l = m.Evidence.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovEvidence(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -333,25 +332,25 @@ func (m *Equivocation) Size() (n int) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.Height != 0 {
|
||||
n += 1 + sovTypes(uint64(m.Height))
|
||||
n += 1 + sovEvidence(uint64(m.Height))
|
||||
}
|
||||
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovEvidence(uint64(l))
|
||||
if m.Power != 0 {
|
||||
n += 1 + sovTypes(uint64(m.Power))
|
||||
n += 1 + sovEvidence(uint64(m.Power))
|
||||
}
|
||||
l = len(m.ConsensusAddress)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovEvidence(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovEvidence(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozEvidence(x uint64) (n int) {
|
||||
return sovEvidence(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -361,7 +360,7 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -389,7 +388,7 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -402,11 +401,11 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -423,7 +422,7 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -436,11 +435,11 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -454,15 +453,15 @@ func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipEvidence(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -484,7 +483,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -512,7 +511,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
m.Height = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -531,7 +530,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -544,11 +543,11 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -564,7 +563,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
m.Power = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -583,7 +582,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -596,11 +595,11 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -612,15 +611,15 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipEvidence(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthEvidence
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -634,7 +633,7 @@ func (m *Equivocation) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipEvidence(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -642,7 +641,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -659,7 +658,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -675,7 +674,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowEvidence
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -688,14 +687,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthEvidence
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupEvidence
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -704,7 +703,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthEvidence
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -714,7 +713,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthEvidence = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowEvidence = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupEvidence = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/ibc-transfer/types/types.proto
|
||||
// source: ibc/transfer/transfer.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -50,7 +50,7 @@ func (m *MsgTransfer) Reset() { *m = MsgTransfer{} }
|
|||
func (m *MsgTransfer) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgTransfer) ProtoMessage() {}
|
||||
func (*MsgTransfer) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_36db19b72d57f809, []int{0}
|
||||
return fileDescriptor_08134a70fd29e656, []int{0}
|
||||
}
|
||||
func (m *MsgTransfer) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -143,7 +143,7 @@ func (m *FungibleTokenPacketData) Reset() { *m = FungibleTokenPacketData
|
|||
func (m *FungibleTokenPacketData) String() string { return proto.CompactTextString(m) }
|
||||
func (*FungibleTokenPacketData) ProtoMessage() {}
|
||||
func (*FungibleTokenPacketData) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_36db19b72d57f809, []int{1}
|
||||
return fileDescriptor_08134a70fd29e656, []int{1}
|
||||
}
|
||||
func (m *FungibleTokenPacketData) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -205,7 +205,7 @@ func (m *FungibleTokenPacketAcknowledgement) Reset() { *m = FungibleToke
|
|||
func (m *FungibleTokenPacketAcknowledgement) String() string { return proto.CompactTextString(m) }
|
||||
func (*FungibleTokenPacketAcknowledgement) ProtoMessage() {}
|
||||
func (*FungibleTokenPacketAcknowledgement) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_36db19b72d57f809, []int{2}
|
||||
return fileDescriptor_08134a70fd29e656, []int{2}
|
||||
}
|
||||
func (m *FungibleTokenPacketAcknowledgement) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -249,47 +249,46 @@ func (m *FungibleTokenPacketAcknowledgement) GetError() string {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgTransfer)(nil), "cosmos_sdk.x.transfer.v1.MsgTransfer")
|
||||
proto.RegisterType((*FungibleTokenPacketData)(nil), "cosmos_sdk.x.transfer.v1.FungibleTokenPacketData")
|
||||
proto.RegisterType((*FungibleTokenPacketAcknowledgement)(nil), "cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement")
|
||||
proto.RegisterType((*MsgTransfer)(nil), "ibc.transfer.MsgTransfer")
|
||||
proto.RegisterType((*FungibleTokenPacketData)(nil), "ibc.transfer.FungibleTokenPacketData")
|
||||
proto.RegisterType((*FungibleTokenPacketAcknowledgement)(nil), "ibc.transfer.FungibleTokenPacketAcknowledgement")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/ibc-transfer/types/types.proto", fileDescriptor_36db19b72d57f809) }
|
||||
func init() { proto.RegisterFile("ibc/transfer/transfer.proto", fileDescriptor_08134a70fd29e656) }
|
||||
|
||||
var fileDescriptor_36db19b72d57f809 = []byte{
|
||||
// 498 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x41, 0x8b, 0xd3, 0x40,
|
||||
0x14, 0x6e, 0xec, 0x6e, 0x77, 0x9d, 0xba, 0xe2, 0x8e, 0xba, 0x8e, 0x45, 0x92, 0x92, 0x83, 0xe4,
|
||||
0xd2, 0xc4, 0xea, 0x41, 0xf0, 0x64, 0xbb, 0x22, 0x2e, 0x22, 0x2c, 0xa1, 0x27, 0x41, 0x4a, 0x3a,
|
||||
0x79, 0x26, 0x21, 0xcd, 0x4c, 0x98, 0x99, 0xd4, 0xed, 0xbf, 0xf0, 0x77, 0x88, 0x3f, 0x64, 0x8f,
|
||||
0x7b, 0x14, 0x84, 0x28, 0xed, 0x3f, 0xe8, 0xd1, 0x93, 0x34, 0x49, 0x6b, 0x8b, 0x45, 0xbc, 0xec,
|
||||
0x25, 0x93, 0xef, 0xbd, 0xef, 0x7d, 0xc9, 0xf7, 0x31, 0x0f, 0xb5, 0x2f, 0x9c, 0x68, 0x44, 0x3b,
|
||||
0x4a, 0x78, 0x4c, 0x7e, 0x04, 0xe1, 0xa8, 0x69, 0x0a, 0xb2, 0x7c, 0xda, 0xa9, 0xe0, 0x8a, 0x63,
|
||||
0x42, 0xb9, 0x4c, 0xb8, 0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, 0x35, 0xd7, 0x6b, 0xdf, 0xe6, 0x7a, 0xed, 0x7d, 0xf7, 0x9f, 0xae, 0x76, 0x2d, 0xe4, 0xa8,
|
||||
0x51, 0xac, 0xcd, 0xb3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x83, 0xf7, 0x16, 0x2f, 0xaf, 0x03,
|
||||
0x00, 0x00,
|
||||
var fileDescriptor_08134a70fd29e656 = []byte{
|
||||
// 484 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0x3f, 0x6f, 0xd3, 0x40,
|
||||
0x1c, 0x8d, 0x49, 0x9b, 0x96, 0x4b, 0x8a, 0xe0, 0x28, 0xe5, 0x08, 0xc8, 0x8e, 0x3c, 0x79, 0x49,
|
||||
0x4c, 0x61, 0x40, 0x62, 0x22, 0x29, 0x42, 0x54, 0x08, 0xa9, 0xb2, 0x22, 0x06, 0x96, 0xca, 0x3e,
|
||||
0xff, 0x70, 0x4e, 0x89, 0xef, 0xa2, 0xbb, 0x33, 0xd0, 0x6f, 0xc1, 0x97, 0x60, 0xe1, 0x93, 0x74,
|
||||
0xec, 0xc0, 0xc0, 0x64, 0x50, 0xf2, 0x0d, 0x32, 0x32, 0x21, 0xff, 0x89, 0x89, 0xa5, 0x08, 0x31,
|
||||
0x74, 0xba, 0x7b, 0xef, 0xfd, 0x7e, 0xcf, 0xf7, 0x7b, 0xbe, 0x43, 0x0f, 0x59, 0x40, 0x5d, 0x2d,
|
||||
0x7d, 0xae, 0x3e, 0x80, 0xac, 0x36, 0x83, 0xb9, 0x14, 0x5a, 0xe0, 0x0e, 0x0b, 0xe8, 0x60, 0xcd,
|
||||
0x75, 0x0f, 0x23, 0x11, 0x89, 0x5c, 0x70, 0xb3, 0x5d, 0x51, 0xd3, 0xbd, 0x4b, 0x85, 0x8a, 0x85,
|
||||
0x72, 0x8b, 0xa5, 0x20, 0xed, 0xef, 0x4d, 0xd4, 0x7e, 0xab, 0xa2, 0x71, 0xd9, 0x8a, 0x9f, 0xa1,
|
||||
0xb6, 0x12, 0x89, 0xa4, 0x70, 0x3e, 0x17, 0x52, 0x13, 0xa3, 0x67, 0x38, 0x37, 0x47, 0x47, 0xab,
|
||||
0xd4, 0xc2, 0x17, 0x7e, 0x3c, 0x7b, 0x6e, 0x6f, 0x88, 0xb6, 0x87, 0x0a, 0x74, 0x26, 0xa4, 0xc6,
|
||||
0x2f, 0xd0, 0xad, 0x52, 0xa3, 0x13, 0x9f, 0x73, 0x98, 0x91, 0x1b, 0x79, 0xef, 0x83, 0x55, 0x6a,
|
||||
0xdd, 0xab, 0xf5, 0x96, 0xba, 0xed, 0x1d, 0x14, 0xc4, 0x49, 0x81, 0xf1, 0x3b, 0xd4, 0xf2, 0x63,
|
||||
0x91, 0x70, 0x4d, 0x9a, 0xbd, 0xa6, 0xd3, 0x7e, 0xd2, 0x19, 0x94, 0x27, 0x3d, 0x11, 0x8c, 0x8f,
|
||||
0x1e, 0x5f, 0xa6, 0x56, 0xe3, 0xdb, 0x4f, 0xcb, 0x89, 0x98, 0x9e, 0x24, 0xc1, 0x80, 0x8a, 0xd8,
|
||||
0xad, 0x0d, 0xd4, 0x57, 0xe1, 0xd4, 0xd5, 0x17, 0x73, 0x28, 0x1a, 0x94, 0x57, 0xba, 0xe1, 0x53,
|
||||
0xd4, 0x52, 0xc0, 0x43, 0x90, 0x64, 0xa7, 0x67, 0x38, 0x9d, 0xd1, 0xf1, 0xef, 0xd4, 0xea, 0xff,
|
||||
0x87, 0xcb, 0x90, 0xd2, 0x61, 0x18, 0x4a, 0x50, 0xca, 0x2b, 0x0d, 0x70, 0x17, 0xed, 0x4b, 0xa0,
|
||||
0xc0, 0x3e, 0x82, 0x24, 0xbb, 0xd9, 0x78, 0x5e, 0x85, 0xb3, 0x00, 0x34, 0x8b, 0x41, 0x24, 0xfa,
|
||||
0x7c, 0x02, 0x2c, 0x9a, 0x68, 0xd2, 0xea, 0x19, 0xce, 0xce, 0x66, 0x00, 0x75, 0xdd, 0xf6, 0x0e,
|
||||
0x4a, 0xe2, 0x75, 0x8e, 0xf1, 0x29, 0xba, 0xb3, 0xae, 0xc8, 0x56, 0xa5, 0xfd, 0x78, 0x4e, 0xf6,
|
||||
0x72, 0x93, 0x47, 0xab, 0xd4, 0x22, 0x75, 0x93, 0xaa, 0xc4, 0xf6, 0x6e, 0x97, 0xdc, 0xb8, 0xa2,
|
||||
0xbe, 0x1a, 0xe8, 0xfe, 0xab, 0x84, 0x47, 0x2c, 0x98, 0xc1, 0x58, 0x4c, 0x81, 0x9f, 0xf9, 0x74,
|
||||
0x0a, 0xfa, 0xa5, 0xaf, 0xfd, 0x8d, 0x9c, 0x8d, 0x6b, 0xcd, 0xf9, 0xa8, 0xca, 0x39, 0xff, 0xf3,
|
||||
0x5b, 0x43, 0x6b, 0xd6, 0x43, 0xb3, 0xc7, 0xc8, 0xde, 0x72, 0xcc, 0x21, 0x9d, 0x72, 0xf1, 0x69,
|
||||
0x06, 0x61, 0x04, 0x31, 0x70, 0x8d, 0x09, 0xda, 0x53, 0x09, 0xa5, 0xa0, 0x54, 0x7e, 0x21, 0xf7,
|
||||
0xbd, 0x35, 0xc4, 0x87, 0x68, 0x17, 0xa4, 0x14, 0xeb, 0x4f, 0x16, 0x60, 0xf4, 0xe6, 0x72, 0x61,
|
||||
0x1a, 0x57, 0x0b, 0xd3, 0xf8, 0xb5, 0x30, 0x8d, 0x2f, 0x4b, 0xb3, 0x71, 0xb5, 0x34, 0x1b, 0x3f,
|
||||
0x96, 0x66, 0xe3, 0xfd, 0xf1, 0x3f, 0xa7, 0xfa, 0xec, 0xb2, 0x80, 0xf6, 0xff, 0xbe, 0xb1, 0x6c,
|
||||
0xc8, 0xa0, 0x95, 0x3f, 0x94, 0xa7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x95, 0x43, 0xad,
|
||||
0x80, 0x03, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *MsgTransfer) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -313,26 +312,26 @@ func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.TimeoutTimestamp != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.TimeoutTimestamp))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(m.TimeoutTimestamp))
|
||||
i--
|
||||
dAtA[i] = 0x38
|
||||
}
|
||||
if m.TimeoutHeight != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.TimeoutHeight))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(m.TimeoutHeight))
|
||||
i--
|
||||
dAtA[i] = 0x30
|
||||
}
|
||||
if len(m.Receiver) > 0 {
|
||||
i -= len(m.Receiver)
|
||||
copy(dAtA[i:], m.Receiver)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Receiver)))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(len(m.Receiver)))
|
||||
i--
|
||||
dAtA[i] = 0x2a
|
||||
}
|
||||
if len(m.Sender) > 0 {
|
||||
i -= len(m.Sender)
|
||||
copy(dAtA[i:], m.Sender)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender)))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(len(m.Sender)))
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
}
|
||||
|
@ -344,7 +343,7 @@ func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
|
@ -353,14 +352,14 @@ func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.SourceChannel) > 0 {
|
||||
i -= len(m.SourceChannel)
|
||||
copy(dAtA[i:], m.SourceChannel)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.SourceChannel)))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(len(m.SourceChannel)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.SourcePort) > 0 {
|
||||
i -= len(m.SourcePort)
|
||||
copy(dAtA[i:], m.SourcePort)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.SourcePort)))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(len(m.SourcePort)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -390,14 +389,14 @@ func (m *FungibleTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
if len(m.Receiver) > 0 {
|
||||
i -= len(m.Receiver)
|
||||
copy(dAtA[i:], m.Receiver)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Receiver)))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(len(m.Receiver)))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
if len(m.Sender) > 0 {
|
||||
i -= len(m.Sender)
|
||||
copy(dAtA[i:], m.Sender)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender)))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(len(m.Sender)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
|
@ -409,7 +408,7 @@ func (m *FungibleTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -441,7 +440,7 @@ func (m *FungibleTokenPacketAcknowledgement) MarshalToSizedBuffer(dAtA []byte) (
|
|||
if len(m.Error) > 0 {
|
||||
i -= len(m.Error)
|
||||
copy(dAtA[i:], m.Error)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Error)))
|
||||
i = encodeVarintTransfer(dAtA, i, uint64(len(m.Error)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
|
@ -458,8 +457,8 @@ func (m *FungibleTokenPacketAcknowledgement) MarshalToSizedBuffer(dAtA []byte) (
|
|||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintTransfer(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTransfer(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -477,31 +476,31 @@ func (m *MsgTransfer) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.SourcePort)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
l = len(m.SourceChannel)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
if len(m.Amount) > 0 {
|
||||
for _, e := range m.Amount {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
}
|
||||
l = len(m.Sender)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
l = len(m.Receiver)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
if m.TimeoutHeight != 0 {
|
||||
n += 1 + sovTypes(uint64(m.TimeoutHeight))
|
||||
n += 1 + sovTransfer(uint64(m.TimeoutHeight))
|
||||
}
|
||||
if m.TimeoutTimestamp != 0 {
|
||||
n += 1 + sovTypes(uint64(m.TimeoutTimestamp))
|
||||
n += 1 + sovTransfer(uint64(m.TimeoutTimestamp))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -515,16 +514,16 @@ func (m *FungibleTokenPacketData) Size() (n int) {
|
|||
if len(m.Amount) > 0 {
|
||||
for _, e := range m.Amount {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
}
|
||||
l = len(m.Sender)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
l = len(m.Receiver)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -540,16 +539,16 @@ func (m *FungibleTokenPacketAcknowledgement) Size() (n int) {
|
|||
}
|
||||
l = len(m.Error)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovTransfer(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovTransfer(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozTransfer(x uint64) (n int) {
|
||||
return sovTransfer(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -559,7 +558,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -587,7 +586,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -601,11 +600,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -619,7 +618,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -633,11 +632,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -651,7 +650,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -664,11 +663,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -685,7 +684,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -698,11 +697,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -719,7 +718,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -733,11 +732,11 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -751,7 +750,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
m.TimeoutHeight = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -770,7 +769,7 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
m.TimeoutTimestamp = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -784,15 +783,15 @@ func (m *MsgTransfer) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipTransfer(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -814,7 +813,7 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -842,7 +841,7 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -855,11 +854,11 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -876,7 +875,7 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -890,11 +889,11 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -908,7 +907,7 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -922,11 +921,11 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -935,15 +934,15 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipTransfer(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -965,7 +964,7 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -993,7 +992,7 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error {
|
|||
var v int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1013,7 +1012,7 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1027,11 +1026,11 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1040,15 +1039,15 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipTransfer(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthTransfer
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1062,7 +1061,7 @@ func (m *FungibleTokenPacketAcknowledgement) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipTransfer(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -1070,7 +1069,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1087,7 +1086,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1103,7 +1102,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowTransfer
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1116,14 +1115,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthTransfer
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupTransfer
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -1132,7 +1131,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthTransfer
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -1142,7 +1141,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthTransfer = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTransfer = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTransfer = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
File diff suppressed because it is too large
Load Diff
|
@ -111,9 +111,6 @@ var (
|
|||
EventTypeChannelCloseInit = types.EventTypeChannelCloseInit
|
||||
EventTypeChannelCloseConfirm = types.EventTypeChannelCloseConfirm
|
||||
AttributeValueCategory = types.AttributeValueCategory
|
||||
ErrInvalidLengthTypes = types.ErrInvalidLengthTypes
|
||||
ErrIntOverflowTypes = types.ErrIntOverflowTypes
|
||||
ErrUnexpectedEndOfGroupTypes = types.ErrUnexpectedEndOfGroupTypes
|
||||
)
|
||||
|
||||
// nolint: golint
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/ibc/09-localhost/types/types.proto
|
||||
// source: ibc/localhost/localhost.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -33,7 +33,7 @@ func (m *MsgCreateClient) Reset() { *m = MsgCreateClient{} }
|
|||
func (m *MsgCreateClient) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateClient) ProtoMessage() {}
|
||||
func (*MsgCreateClient) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a8da40ad8942fbdc, []int{0}
|
||||
return fileDescriptor_6a04d924e6f8a88e, []int{0}
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -70,29 +70,26 @@ func (m *MsgCreateClient) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddr
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgCreateClient)(nil), "cosmos_sdk.ibc.localhost.v1.MsgCreateClient")
|
||||
proto.RegisterType((*MsgCreateClient)(nil), "ibc.localhost.MsgCreateClient")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("x/ibc/09-localhost/types/types.proto", fileDescriptor_a8da40ad8942fbdc)
|
||||
}
|
||||
func init() { proto.RegisterFile("ibc/localhost/localhost.proto", fileDescriptor_6a04d924e6f8a88e) }
|
||||
|
||||
var fileDescriptor_a8da40ad8942fbdc = []byte{
|
||||
// 220 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xa9, 0xd0, 0xcf, 0x4c,
|
||||
0x4a, 0xd6, 0x37, 0xb0, 0xd4, 0xcd, 0xc9, 0x4f, 0x4e, 0xcc, 0xc9, 0xc8, 0x2f, 0x2e, 0xd1, 0x2f,
|
||||
0xa9, 0x2c, 0x48, 0x2d, 0x86, 0x90, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xd2, 0xc9, 0xf9,
|
||||
0xc5, 0xb9, 0xf9, 0xc5, 0xf1, 0xc5, 0x29, 0xd9, 0x7a, 0x99, 0x49, 0xc9, 0x7a, 0x70, 0xb5, 0x7a,
|
||||
0x65, 0x86, 0x52, 0x6a, 0x25, 0x19, 0x99, 0x45, 0x29, 0xf1, 0x05, 0x89, 0x45, 0x25, 0x95, 0xfa,
|
||||
0x60, 0xf5, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0x08, 0x16, 0xc4, 0x10, 0xa5, 0x18, 0x2e, 0x7e, 0xdf,
|
||||
0xe2, 0x74, 0xe7, 0xa2, 0xd4, 0xc4, 0x92, 0x54, 0xe7, 0x9c, 0xcc, 0xd4, 0xbc, 0x12, 0x21, 0x4f,
|
||||
0x2e, 0xb6, 0xe2, 0xcc, 0xf4, 0xbc, 0xd4, 0x22, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x1e, 0x27, 0xc3,
|
||||
0x5f, 0xf7, 0xe4, 0x75, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x21,
|
||||
0xd6, 0x42, 0x29, 0xdd, 0xe2, 0x94, 0x6c, 0xa8, 0xab, 0x1c, 0x93, 0x93, 0x1d, 0x53, 0x52, 0x8a,
|
||||
0x52, 0x8b, 0x8b, 0x83, 0xa0, 0x06, 0x38, 0xf9, 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c,
|
||||
0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1,
|
||||
0x1c, 0x43, 0x94, 0x29, 0x5e, 0x03, 0x71, 0xf9, 0x3f, 0x89, 0x0d, 0xec, 0x6a, 0x63, 0x40, 0x00,
|
||||
0x00, 0x00, 0xff, 0xff, 0x9c, 0xe5, 0xb5, 0xd4, 0x22, 0x01, 0x00, 0x00,
|
||||
var fileDescriptor_6a04d924e6f8a88e = []byte{
|
||||
// 200 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 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, 0x60, 0x3b, 0x92, 0xd8, 0xc0, 0xae, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff,
|
||||
0x0c, 0x82, 0x3a, 0x52, 0xfb, 0x00, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -118,15 +115,15 @@ func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Signer) > 0 {
|
||||
i -= len(m.Signer)
|
||||
copy(dAtA[i:], m.Signer)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Signer)))
|
||||
i = encodeVarintLocalhost(dAtA, i, uint64(len(m.Signer)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintLocalhost(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovLocalhost(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -144,16 +141,16 @@ func (m *MsgCreateClient) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Signer)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovLocalhost(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovLocalhost(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozLocalhost(x uint64) (n int) {
|
||||
return sovLocalhost(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *MsgCreateClient) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -163,7 +160,7 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowLocalhost
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -191,7 +188,7 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowLocalhost
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -204,11 +201,11 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthLocalhost
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthLocalhost
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -220,15 +217,15 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipLocalhost(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthLocalhost
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthLocalhost
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -242,7 +239,7 @@ func (m *MsgCreateClient) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipLocalhost(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -250,7 +247,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowLocalhost
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -267,7 +264,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowLocalhost
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -283,7 +280,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowLocalhost
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -296,14 +293,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthLocalhost
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupLocalhost
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -312,7 +309,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthLocalhost
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -322,7 +319,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthLocalhost = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowLocalhost = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupLocalhost = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/ibc/23-commitment/types/types.proto
|
||||
// source: ibc/commitment/commitment.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -45,7 +45,7 @@ var KeyEncoding_value = map[string]int32{
|
|||
}
|
||||
|
||||
func (KeyEncoding) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_1004b8837466efb9, []int{0}
|
||||
return fileDescriptor_71f36b3839a24c54, []int{0}
|
||||
}
|
||||
|
||||
// MerkleRoot defines a merkle root hash.
|
||||
|
@ -58,7 +58,7 @@ func (m *MerkleRoot) Reset() { *m = MerkleRoot{} }
|
|||
func (m *MerkleRoot) String() string { return proto.CompactTextString(m) }
|
||||
func (*MerkleRoot) ProtoMessage() {}
|
||||
func (*MerkleRoot) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_1004b8837466efb9, []int{0}
|
||||
return fileDescriptor_71f36b3839a24c54, []int{0}
|
||||
}
|
||||
func (m *MerkleRoot) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -97,7 +97,7 @@ func (m *MerklePrefix) Reset() { *m = MerklePrefix{} }
|
|||
func (m *MerklePrefix) String() string { return proto.CompactTextString(m) }
|
||||
func (*MerklePrefix) ProtoMessage() {}
|
||||
func (*MerklePrefix) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_1004b8837466efb9, []int{1}
|
||||
return fileDescriptor_71f36b3839a24c54, []int{1}
|
||||
}
|
||||
func (m *MerklePrefix) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -142,7 +142,7 @@ type MerklePath struct {
|
|||
func (m *MerklePath) Reset() { *m = MerklePath{} }
|
||||
func (*MerklePath) ProtoMessage() {}
|
||||
func (*MerklePath) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_1004b8837466efb9, []int{2}
|
||||
return fileDescriptor_71f36b3839a24c54, []int{2}
|
||||
}
|
||||
func (m *MerklePath) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -190,7 +190,7 @@ func (m *MerkleProof) Reset() { *m = MerkleProof{} }
|
|||
func (m *MerkleProof) String() string { return proto.CompactTextString(m) }
|
||||
func (*MerkleProof) ProtoMessage() {}
|
||||
func (*MerkleProof) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_1004b8837466efb9, []int{3}
|
||||
return fileDescriptor_71f36b3839a24c54, []int{3}
|
||||
}
|
||||
func (m *MerkleProof) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -234,7 +234,7 @@ type KeyPath struct {
|
|||
func (m *KeyPath) Reset() { *m = KeyPath{} }
|
||||
func (*KeyPath) ProtoMessage() {}
|
||||
func (*KeyPath) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_1004b8837466efb9, []int{4}
|
||||
return fileDescriptor_71f36b3839a24c54, []int{4}
|
||||
}
|
||||
func (m *KeyPath) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -266,14 +266,14 @@ var xxx_messageInfo_KeyPath proto.InternalMessageInfo
|
|||
// Key defines a proof Key
|
||||
type Key struct {
|
||||
name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
enc KeyEncoding `protobuf:"varint,2,opt,name=enc,proto3,enum=cosmos_sdk.x.ibc.commitment.v1.KeyEncoding" json:"enc,omitempty"`
|
||||
enc KeyEncoding `protobuf:"varint,2,opt,name=enc,proto3,enum=ibc.commitment.KeyEncoding" json:"enc,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Key) Reset() { *m = Key{} }
|
||||
func (m *Key) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key) ProtoMessage() {}
|
||||
func (*Key) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_1004b8837466efb9, []int{5}
|
||||
return fileDescriptor_71f36b3839a24c54, []int{5}
|
||||
}
|
||||
func (m *Key) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -303,55 +303,51 @@ func (m *Key) XXX_DiscardUnknown() {
|
|||
var xxx_messageInfo_Key proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cosmos_sdk.x.ibc.commitment.v1.KeyEncoding", KeyEncoding_name, KeyEncoding_value)
|
||||
proto.RegisterType((*MerkleRoot)(nil), "cosmos_sdk.x.ibc.commitment.v1.MerkleRoot")
|
||||
proto.RegisterType((*MerklePrefix)(nil), "cosmos_sdk.x.ibc.commitment.v1.MerklePrefix")
|
||||
proto.RegisterType((*MerklePath)(nil), "cosmos_sdk.x.ibc.commitment.v1.MerklePath")
|
||||
proto.RegisterType((*MerkleProof)(nil), "cosmos_sdk.x.ibc.commitment.v1.MerkleProof")
|
||||
proto.RegisterType((*KeyPath)(nil), "cosmos_sdk.x.ibc.commitment.v1.KeyPath")
|
||||
proto.RegisterType((*Key)(nil), "cosmos_sdk.x.ibc.commitment.v1.Key")
|
||||
proto.RegisterEnum("ibc.commitment.KeyEncoding", KeyEncoding_name, KeyEncoding_value)
|
||||
proto.RegisterType((*MerkleRoot)(nil), "ibc.commitment.MerkleRoot")
|
||||
proto.RegisterType((*MerklePrefix)(nil), "ibc.commitment.MerklePrefix")
|
||||
proto.RegisterType((*MerklePath)(nil), "ibc.commitment.MerklePath")
|
||||
proto.RegisterType((*MerkleProof)(nil), "ibc.commitment.MerkleProof")
|
||||
proto.RegisterType((*KeyPath)(nil), "ibc.commitment.KeyPath")
|
||||
proto.RegisterType((*Key)(nil), "ibc.commitment.Key")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("x/ibc/23-commitment/types/types.proto", fileDescriptor_1004b8837466efb9)
|
||||
}
|
||||
func init() { proto.RegisterFile("ibc/commitment/commitment.proto", fileDescriptor_71f36b3839a24c54) }
|
||||
|
||||
var fileDescriptor_1004b8837466efb9 = []byte{
|
||||
// 534 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x31, 0x6f, 0xd3, 0x40,
|
||||
0x14, 0xc7, 0x6d, 0x62, 0x48, 0xb8, 0x54, 0x50, 0x4e, 0x42, 0x44, 0x51, 0xb1, 0x23, 0x23, 0x4a,
|
||||
0x00, 0xf5, 0x2c, 0x52, 0xa0, 0x52, 0xc6, 0x34, 0x2e, 0x0d, 0x09, 0x21, 0x3a, 0x14, 0xa9, 0xc0,
|
||||
0x60, 0x39, 0xce, 0x35, 0xb6, 0x5c, 0xfb, 0x8c, 0x7d, 0xa0, 0xf8, 0x1b, 0x54, 0x4c, 0x8c, 0x2c,
|
||||
0x48, 0x95, 0x60, 0xe0, 0xa3, 0x74, 0xec, 0xc8, 0x14, 0xa1, 0x64, 0x61, 0xee, 0x27, 0x40, 0xbe,
|
||||
0x73, 0x95, 0x22, 0x04, 0xea, 0xf2, 0xee, 0x3d, 0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0x98, 0xed, 0x55, 0xa9, 0x5a, 0xfc, 0xf8, 0xa5, 0x56, 0x18, 0xe2, 0x1e,
|
||||
0xbc, 0x0d, 0x56, 0xff, 0x40, 0x77, 0xcd, 0xbd, 0x55, 0x59, 0x5c, 0xef, 0x9a, 0x7b, 0xd5, 0xd2,
|
||||
0xe1, 0x57, 0x55, 0xfa, 0xfe, 0x4d, 0x95, 0x5a, 0x83, 0xe3, 0xb9, 0x2a, 0x9f, 0xcc, 0x55, 0xf9,
|
||||
0xe7, 0x5c, 0x95, 0x3f, 0x2d, 0x54, 0xe9, 0x64, 0xa1, 0x4a, 0x3f, 0x16, 0xaa, 0xf4, 0xe6, 0xe9,
|
||||
0xc4, 0x63, 0xee, 0xfb, 0x51, 0xb6, 0xb2, 0x21, 0xfe, 0x47, 0x7e, 0x6c, 0x24, 0x63, 0xdf, 0xf8,
|
||||
0xe7, 0xd7, 0x32, 0xba, 0xc2, 0xdf, 0xd3, 0xcd, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x4d,
|
||||
0x65, 0x02, 0x51, 0x03, 0x00, 0x00,
|
||||
var fileDescriptor_71f36b3839a24c54 = []byte{
|
||||
// 509 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x31, 0x6f, 0xd3, 0x40,
|
||||
0x14, 0xc7, 0x6d, 0x62, 0x48, 0xb8, 0x54, 0x25, 0x1c, 0xa0, 0x46, 0xa1, 0xd8, 0x91, 0x25, 0x20,
|
||||
0x20, 0xd5, 0x96, 0x52, 0xe8, 0x10, 0x31, 0xa5, 0x31, 0x34, 0xa4, 0x84, 0xe8, 0x50, 0xa4, 0xc2,
|
||||
0x12, 0x39, 0xce, 0x35, 0xb6, 0x5c, 0xfb, 0x2c, 0xfb, 0x90, 0xea, 0x6f, 0x50, 0x31, 0x31, 0xb2,
|
||||
0x20, 0x55, 0x82, 0x81, 0x8f, 0xd2, 0xb1, 0x23, 0x93, 0x85, 0x9c, 0x85, 0xb9, 0x9f, 0xa0, 0xba,
|
||||
0x3b, 0x57, 0x49, 0xa5, 0x2e, 0x77, 0xef, 0xf9, 0xfd, 0xfc, 0xde, 0xdf, 0x7f, 0x3f, 0xa0, 0x79,
|
||||
0x53, 0xc7, 0x74, 0x48, 0x10, 0x78, 0x34, 0xc0, 0x21, 0x5d, 0x09, 0x8d, 0x28, 0x26, 0x94, 0xc0,
|
||||
0x75, 0x6f, 0xea, 0x18, 0xcb, 0xa7, 0x8d, 0x87, 0x73, 0x32, 0x27, 0xbc, 0x64, 0xb2, 0x48, 0x50,
|
||||
0x8d, 0xa7, 0x14, 0x87, 0x33, 0x1c, 0x07, 0x1e, 0x6b, 0x11, 0xa7, 0x11, 0x25, 0x66, 0x80, 0x63,
|
||||
0xff, 0x08, 0x17, 0x97, 0xc0, 0xf4, 0x67, 0x00, 0x7c, 0xe0, 0x39, 0x22, 0x84, 0x42, 0x08, 0x14,
|
||||
0xd7, 0x4e, 0xdc, 0xba, 0xdc, 0x94, 0x5b, 0x6b, 0x88, 0xc7, 0x1d, 0xe5, 0xe4, 0x54, 0x93, 0xf4,
|
||||
0x1e, 0x58, 0x13, 0xdc, 0x28, 0xc6, 0x87, 0xde, 0x31, 0x7c, 0x05, 0x80, 0x8f, 0xd3, 0x49, 0xc4,
|
||||
0x33, 0xc1, 0x77, 0x1f, 0x5d, 0x64, 0xda, 0xfd, 0xd4, 0x0e, 0x8e, 0x3a, 0xfa, 0xb2, 0xa6, 0xa3,
|
||||
0xbb, 0x3e, 0x4e, 0xc5, 0x5b, 0xfa, 0xe4, 0x6a, 0xda, 0xc8, 0xa6, 0x2e, 0x1c, 0x80, 0x0a, 0xe7,
|
||||
0x6c, 0x2a, 0x26, 0x56, 0xdb, 0x1b, 0xc6, 0xf5, 0x6f, 0x33, 0x06, 0x38, 0x65, 0x68, 0x77, 0xe3,
|
||||
0x2c, 0xd3, 0xa4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, 0x1a, 0xba, 0x67, 0x1d, 0xd4, 0x64, 0x51, 0xde, 0xb3, 0x0e, 0x1a, 0x95, 0x93, 0x5f, 0xaa,
|
||||
0xf4, 0xe7, 0xb7, 0x2a, 0x75, 0x47, 0x67, 0xb9, 0x2a, 0x9f, 0xe7, 0xaa, 0xfc, 0x2f, 0x57, 0xe5,
|
||||
0xef, 0x0b, 0x55, 0x3a, 0x5f, 0xa8, 0xd2, 0xdf, 0x85, 0x2a, 0x7d, 0xd9, 0x99, 0x7b, 0xd4, 0xfd,
|
||||
0x3a, 0x65, 0x7a, 0x4d, 0x87, 0x24, 0x01, 0x49, 0x8a, 0x6b, 0x2b, 0x99, 0xf9, 0xe6, 0xb1, 0xc9,
|
||||
0xb6, 0xb8, 0xbd, 0xbd, 0xb5, 0xb2, 0xc8, 0x34, 0x8d, 0x70, 0x32, 0xbd, 0xc3, 0xf7, 0x6e, 0xfb,
|
||||
0x32, 0x00, 0x00, 0xff, 0xff, 0xef, 0xa1, 0xaa, 0x6d, 0xe7, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *MerkleProof) Equal(that interface{}) bool {
|
||||
|
@ -401,7 +397,7 @@ func (m *MerkleRoot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Hash) > 0 {
|
||||
i -= len(m.Hash)
|
||||
copy(dAtA[i:], m.Hash)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
|
||||
i = encodeVarintCommitment(dAtA, i, uint64(len(m.Hash)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -431,7 +427,7 @@ func (m *MerklePrefix) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.KeyPrefix) > 0 {
|
||||
i -= len(m.KeyPrefix)
|
||||
copy(dAtA[i:], m.KeyPrefix)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.KeyPrefix)))
|
||||
i = encodeVarintCommitment(dAtA, i, uint64(len(m.KeyPrefix)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -464,7 +460,7 @@ func (m *MerklePath) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintCommitment(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -498,7 +494,7 @@ func (m *MerkleProof) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintCommitment(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -534,7 +530,7 @@ func (m *KeyPath) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintCommitment(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -564,22 +560,22 @@ func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.enc != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.enc))
|
||||
i = encodeVarintCommitment(dAtA, i, uint64(m.enc))
|
||||
i--
|
||||
dAtA[i] = 0x10
|
||||
}
|
||||
if len(m.name) > 0 {
|
||||
i -= len(m.name)
|
||||
copy(dAtA[i:], m.name)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.name)))
|
||||
i = encodeVarintCommitment(dAtA, i, uint64(len(m.name)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintCommitment(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovCommitment(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -597,7 +593,7 @@ func (m *MerkleRoot) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Hash)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCommitment(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -610,7 +606,7 @@ func (m *MerklePrefix) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.KeyPrefix)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCommitment(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -622,7 +618,7 @@ func (m *MerklePath) Size() (n int) {
|
|||
var l int
|
||||
_ = l
|
||||
l = m.KeyPath.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCommitment(uint64(l))
|
||||
return n
|
||||
}
|
||||
|
||||
|
@ -634,7 +630,7 @@ func (m *MerkleProof) Size() (n int) {
|
|||
_ = l
|
||||
if m.Proof != nil {
|
||||
l = m.Proof.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCommitment(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -648,7 +644,7 @@ func (m *KeyPath) Size() (n int) {
|
|||
if len(m.Keys) > 0 {
|
||||
for _, e := range m.Keys {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCommitment(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -662,19 +658,19 @@ func (m *Key) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.name)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovCommitment(uint64(l))
|
||||
}
|
||||
if m.enc != 0 {
|
||||
n += 1 + sovTypes(uint64(m.enc))
|
||||
n += 1 + sovCommitment(uint64(m.enc))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovCommitment(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozCommitment(x uint64) (n int) {
|
||||
return sovCommitment(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *MerkleRoot) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -684,7 +680,7 @@ func (m *MerkleRoot) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -712,7 +708,7 @@ func (m *MerkleRoot) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -725,11 +721,11 @@ func (m *MerkleRoot) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -741,15 +737,15 @@ func (m *MerkleRoot) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCommitment(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -771,7 +767,7 @@ func (m *MerklePrefix) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -799,7 +795,7 @@ func (m *MerklePrefix) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -812,11 +808,11 @@ func (m *MerklePrefix) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -828,15 +824,15 @@ func (m *MerklePrefix) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCommitment(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -858,7 +854,7 @@ func (m *MerklePath) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -886,7 +882,7 @@ func (m *MerklePath) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -899,11 +895,11 @@ func (m *MerklePath) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -914,15 +910,15 @@ func (m *MerklePath) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCommitment(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -944,7 +940,7 @@ func (m *MerkleProof) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -972,7 +968,7 @@ func (m *MerkleProof) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -985,11 +981,11 @@ func (m *MerkleProof) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1003,15 +999,15 @@ func (m *MerkleProof) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCommitment(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1033,7 +1029,7 @@ func (m *KeyPath) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1061,7 +1057,7 @@ func (m *KeyPath) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1074,11 +1070,11 @@ func (m *KeyPath) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1090,15 +1086,15 @@ func (m *KeyPath) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCommitment(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1120,7 +1116,7 @@ func (m *Key) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1148,7 +1144,7 @@ func (m *Key) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1161,11 +1157,11 @@ func (m *Key) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1182,7 +1178,7 @@ func (m *Key) Unmarshal(dAtA []byte) error {
|
|||
m.enc = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1196,15 +1192,15 @@ func (m *Key) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipCommitment(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthCommitment
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -1218,7 +1214,7 @@ func (m *Key) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipCommitment(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -1226,7 +1222,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1243,7 +1239,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1259,7 +1255,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowCommitment
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -1272,14 +1268,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthCommitment
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupCommitment
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -1288,7 +1284,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthCommitment
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -1298,7 +1294,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthCommitment = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowCommitment = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupCommitment = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/mint/types/types.proto
|
||||
// source: cosmos/mint/mint.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -36,7 +36,7 @@ func (m *Minter) Reset() { *m = Minter{} }
|
|||
func (m *Minter) String() string { return proto.CompactTextString(m) }
|
||||
func (*Minter) ProtoMessage() {}
|
||||
func (*Minter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fcb8be2eaea25b48, []int{0}
|
||||
return fileDescriptor_22dc6d61d55f89c8, []int{0}
|
||||
}
|
||||
func (m *Minter) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -84,7 +84,7 @@ type Params struct {
|
|||
func (m *Params) Reset() { *m = Params{} }
|
||||
func (*Params) ProtoMessage() {}
|
||||
func (*Params) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fcb8be2eaea25b48, []int{1}
|
||||
return fileDescriptor_22dc6d61d55f89c8, []int{1}
|
||||
}
|
||||
func (m *Params) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -128,42 +128,41 @@ func (m *Params) GetBlocksPerYear() uint64 {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Minter)(nil), "cosmos_sdk.x.mint.v1.Minter")
|
||||
proto.RegisterType((*Params)(nil), "cosmos_sdk.x.mint.v1.Params")
|
||||
proto.RegisterType((*Minter)(nil), "cosmos.mint.Minter")
|
||||
proto.RegisterType((*Params)(nil), "cosmos.mint.Params")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/mint/types/types.proto", fileDescriptor_fcb8be2eaea25b48) }
|
||||
func init() { proto.RegisterFile("cosmos/mint/mint.proto", fileDescriptor_22dc6d61d55f89c8) }
|
||||
|
||||
var fileDescriptor_fcb8be2eaea25b48 = []byte{
|
||||
// 439 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xb1, 0x6e, 0xd3, 0x40,
|
||||
0x1c, 0xc6, 0x6d, 0x48, 0x23, 0xe5, 0xa0, 0x02, 0x8e, 0x82, 0xac, 0x0a, 0xec, 0xca, 0x43, 0xd5,
|
||||
0x05, 0x5b, 0x88, 0xad, 0xa3, 0x89, 0x18, 0x10, 0x45, 0x91, 0x37, 0x58, 0x4e, 0xff, 0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0x3e, 0x8d, 0xff, 0x09,
|
||||
0x8c, 0xf3, 0xfb, 0x4e, 0x1b, 0x6d, 0xa4, 0x6f, 0x3d, 0xd4, 0x1f, 0x81, 0x02, 0xae, 0xf1, 0x53,
|
||||
0x84, 0xba, 0xf3, 0x20, 0x25, 0x15, 0x92, 0xbb, 0x5f, 0xca, 0x07, 0x9d, 0x32, 0xec, 0x04, 0xfc,
|
||||
0xc9, 0x47, 0x8f, 0xd6, 0x85, 0x89, 0x02, 0x43, 0x49, 0x31, 0x01, 0x51, 0xd1, 0x55, 0xcf, 0xb7,
|
||||
0x3b, 0xf7, 0x7c, 0xe2, 0x7a, 0xfe, 0x37, 0x34, 0xce, 0x1f, 0xae, 0xf5, 0x1c, 0x0c, 0x7d, 0x69,
|
||||
0x55, 0x3c, 0x45, 0xfb, 0x1b, 0x3b, 0x87, 0x36, 0xb8, 0x6d, 0xd9, 0xaf, 0x76, 0x66, 0x1f, 0x6c,
|
||||
0xb3, 0x39, 0xb4, 0x71, 0x7e, 0x77, 0x3d, 0x9f, 0x41, 0xbb, 0x05, 0x63, 0x22, 0xe8, 0xdd, 0x18,
|
||||
0x8c, 0x89, 0xbf, 0x60, 0x4c, 0x60, 0x8a, 0xee, 0x54, 0x12, 0x6a, 0x32, 0x96, 0xa2, 0xa4, 0x65,
|
||||
0xb0, 0x67, 0x51, 0xc3, 0x9d, 0x51, 0xd8, 0xa1, 0xfe, 0x88, 0x8a, 0x73, 0xd4, 0x4d, 0x99, 0x1d,
|
||||
0x70, 0x86, 0xee, 0x8d, 0x6b, 0x59, 0x4c, 0x35, 0x69, 0xa8, 0x22, 0x33, 0x0a, 0x2a, 0xe8, 0x1f,
|
||||
0xf9, 0x27, 0xbd, 0xec, 0xf0, 0x7a, 0x1e, 0x3d, 0x76, 0xcb, 0x5b, 0x86, 0x38, 0xdf, 0x77, 0xca,
|
||||
0x88, 0xaa, 0x77, 0x14, 0xd4, 0x69, 0xef, 0xcb, 0xd7, 0xc8, 0xcb, 0xa2, 0xcb, 0x45, 0xe8, 0x5f,
|
||||
0x2d, 0x42, 0xff, 0xd7, 0x22, 0xf4, 0x3f, 0x2f, 0x43, 0xef, 0x6a, 0x19, 0x7a, 0x3f, 0x96, 0xa1,
|
||||
0xf7, 0x7e, 0xcf, 0x16, 0x1a, 0xf7, 0xed, 0x9d, 0x79, 0xf1, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x9e,
|
||||
0xe3, 0xbd, 0x88, 0x8d, 0x03, 0x00, 0x00,
|
||||
var fileDescriptor_22dc6d61d55f89c8 = []byte{
|
||||
// 427 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xb1, 0x6e, 0xd4, 0x30,
|
||||
0x18, 0xc7, 0x63, 0x38, 0x4e, 0x3a, 0x97, 0x0a, 0x30, 0xa5, 0x8a, 0x2a, 0x48, 0xaa, 0x0c, 0xa8,
|
||||
0x0c, 0x24, 0x03, 0x5b, 0xc7, 0xf4, 0xc4, 0x80, 0x28, 0x3a, 0x79, 0x83, 0x25, 0x72, 0x12, 0x93,
|
||||
0x5a, 0x17, 0xdb, 0x91, 0xed, 0x42, 0x6e, 0xe5, 0x09, 0x18, 0x19, 0x79, 0x0b, 0x5e, 0xa1, 0x1b,
|
||||
0x1d, 0x11, 0x43, 0x84, 0xee, 0xde, 0xa0, 0x4f, 0x80, 0x62, 0x57, 0x77, 0x70, 0x20, 0xa4, 0x48,
|
||||
0x2c, 0x49, 0xbe, 0x9f, 0xbe, 0xfc, 0x7f, 0x7f, 0x0f, 0x86, 0xfb, 0x85, 0xd4, 0x5c, 0xea, 0x84,
|
||||
0x33, 0x61, 0xec, 0x23, 0x6e, 0x94, 0x34, 0x12, 0xed, 0x38, 0x1e, 0xf7, 0xe8, 0x60, 0xaf, 0x92,
|
||||
0x95, 0xb4, 0x3c, 0xe9, 0xbf, 0xdc, 0x4a, 0xf4, 0x15, 0x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x25, 0x63, 0xc2, 0x1f, 0xfd, 0x37, 0x19, 0x13,
|
||||
0xbf, 0xc9, 0x98, 0x40, 0x14, 0xee, 0x54, 0x92, 0xd4, 0x59, 0x2e, 0x45, 0x49, 0x4b, 0xff, 0x96,
|
||||
0x55, 0x4d, 0x07, 0xab, 0x90, 0x53, 0xfd, 0x12, 0x15, 0x61, 0xd8, 0x4f, 0xa9, 0x1d, 0x50, 0x0a,
|
||||
0xef, 0xe4, 0xb5, 0x2c, 0xe6, 0x3a, 0x6b, 0xa8, 0xca, 0x16, 0x94, 0x28, 0x7f, 0x7c, 0x08, 0x8e,
|
||||
0x46, 0xe9, 0xc1, 0x55, 0x17, 0xee, 0xbb, 0x9f, 0xb7, 0x16, 0x22, 0xbc, 0xeb, 0xc8, 0x8c, 0xaa,
|
||||
0xd7, 0x94, 0xa8, 0xe3, 0xd1, 0xa7, 0xcf, 0xa1, 0x97, 0x9e, 0x5c, 0x2c, 0x03, 0x70, 0xb9, 0x0c,
|
||||
0xc0, 0x8f, 0x65, 0x00, 0x3e, 0xae, 0x02, 0xef, 0x72, 0x15, 0x78, 0xdf, 0x56, 0x81, 0xf7, 0xe6,
|
||||
0xc9, 0x3f, 0xdb, 0xb6, 0xee, 0xe2, 0xd9, 0xd2, 0xf9, 0xd8, 0xde, 0xab, 0x67, 0x3f, 0x03, 0x00,
|
||||
0x00, 0xff, 0xff, 0x5e, 0x81, 0xfe, 0x84, 0x94, 0x03, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Minter) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -192,7 +191,7 @@ func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if _, err := m.AnnualProvisions.MarshalTo(dAtA[i:]); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintMint(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
|
@ -202,7 +201,7 @@ func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if _, err := m.Inflation.MarshalTo(dAtA[i:]); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintMint(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
|
@ -230,7 +229,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.BlocksPerYear != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.BlocksPerYear))
|
||||
i = encodeVarintMint(dAtA, i, uint64(m.BlocksPerYear))
|
||||
i--
|
||||
dAtA[i] = 0x30
|
||||
}
|
||||
|
@ -240,7 +239,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if _, err := m.GoalBonded.MarshalTo(dAtA[i:]); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintMint(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x2a
|
||||
|
@ -250,7 +249,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if _, err := m.InflationMin.MarshalTo(dAtA[i:]); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintMint(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
|
@ -260,7 +259,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if _, err := m.InflationMax.MarshalTo(dAtA[i:]); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintMint(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
|
@ -270,22 +269,22 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if _, err := m.InflationRateChange.MarshalTo(dAtA[i:]); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintMint(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
if len(m.MintDenom) > 0 {
|
||||
i -= len(m.MintDenom)
|
||||
copy(dAtA[i:], m.MintDenom)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.MintDenom)))
|
||||
i = encodeVarintMint(dAtA, i, uint64(len(m.MintDenom)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintMint(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovMint(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -302,9 +301,9 @@ func (m *Minter) Size() (n int) {
|
|||
var l int
|
||||
_ = l
|
||||
l = m.Inflation.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovMint(uint64(l))
|
||||
l = m.AnnualProvisions.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovMint(uint64(l))
|
||||
return n
|
||||
}
|
||||
|
||||
|
@ -316,27 +315,27 @@ func (m *Params) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.MintDenom)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovMint(uint64(l))
|
||||
}
|
||||
l = m.InflationRateChange.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovMint(uint64(l))
|
||||
l = m.InflationMax.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovMint(uint64(l))
|
||||
l = m.InflationMin.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovMint(uint64(l))
|
||||
l = m.GoalBonded.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovMint(uint64(l))
|
||||
if m.BlocksPerYear != 0 {
|
||||
n += 1 + sovTypes(uint64(m.BlocksPerYear))
|
||||
n += 1 + sovMint(uint64(m.BlocksPerYear))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovMint(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozMint(x uint64) (n int) {
|
||||
return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *Minter) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -346,7 +345,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -374,7 +373,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -388,11 +387,11 @@ func (m *Minter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -408,7 +407,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -422,11 +421,11 @@ func (m *Minter) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -437,15 +436,15 @@ func (m *Minter) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipMint(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -467,7 +466,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -495,7 +494,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -509,11 +508,11 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -527,7 +526,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -541,11 +540,11 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -561,7 +560,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -575,11 +574,11 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -595,7 +594,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -609,11 +608,11 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -629,7 +628,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -643,11 +642,11 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -663,7 +662,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
m.BlocksPerYear = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -677,15 +676,15 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipMint(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthMint
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -699,7 +698,7 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipMint(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -707,7 +706,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -724,7 +723,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -740,7 +739,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowMint
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -753,14 +752,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthMint
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupMint
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -769,7 +768,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthMint
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -779,7 +778,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthMint = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowMint = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/params/types/proposal/types.proto
|
||||
// source: cosmos/params/params.proto
|
||||
|
||||
package proposal
|
||||
|
||||
|
@ -34,7 +34,7 @@ type ParameterChangeProposal struct {
|
|||
func (m *ParameterChangeProposal) Reset() { *m = ParameterChangeProposal{} }
|
||||
func (*ParameterChangeProposal) ProtoMessage() {}
|
||||
func (*ParameterChangeProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_0ab50f1d22a2cb61, []int{0}
|
||||
return fileDescriptor_5ac7103bc6a10dd8, []int{0}
|
||||
}
|
||||
func (m *ParameterChangeProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -73,7 +73,7 @@ type ParamChange struct {
|
|||
func (m *ParamChange) Reset() { *m = ParamChange{} }
|
||||
func (*ParamChange) ProtoMessage() {}
|
||||
func (*ParamChange) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_0ab50f1d22a2cb61, []int{1}
|
||||
return fileDescriptor_5ac7103bc6a10dd8, []int{1}
|
||||
}
|
||||
func (m *ParamChange) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -124,36 +124,33 @@ func (m *ParamChange) GetValue() string {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ParameterChangeProposal)(nil), "cosmos_sdk.x.params.v1.ParameterChangeProposal")
|
||||
proto.RegisterType((*ParamChange)(nil), "cosmos_sdk.x.params.v1.ParamChange")
|
||||
proto.RegisterType((*ParameterChangeProposal)(nil), "cosmos.params.ParameterChangeProposal")
|
||||
proto.RegisterType((*ParamChange)(nil), "cosmos.params.ParamChange")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("x/params/types/proposal/types.proto", fileDescriptor_0ab50f1d22a2cb61)
|
||||
}
|
||||
func init() { proto.RegisterFile("cosmos/params/params.proto", fileDescriptor_5ac7103bc6a10dd8) }
|
||||
|
||||
var fileDescriptor_0ab50f1d22a2cb61 = []byte{
|
||||
// 317 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xae, 0xd0, 0x2f, 0x48,
|
||||
0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc8,
|
||||
0x2f, 0x4e, 0xcc, 0x81, 0x70, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4, 0x92, 0xf3, 0x8b,
|
||||
0x73, 0xf3, 0x8b, 0xe3, 0x8b, 0x53, 0xb2, 0xf5, 0x2a, 0xf4, 0x20, 0xea, 0xf5, 0xca, 0x0c, 0xa5,
|
||||
0xd4, 0x4a, 0x32, 0x32, 0x8b, 0x52, 0xe2, 0x0b, 0x12, 0x8b, 0x4a, 0x2a, 0xf5, 0xc1, 0x4a, 0xf5,
|
||||
0xd3, 0xf3, 0xd3, 0xf3, 0x11, 0x2c, 0x88, 0x7e, 0xa5, 0x05, 0x8c, 0x5c, 0xe2, 0x01, 0x20, 0x5d,
|
||||
0xa9, 0x25, 0xa9, 0x45, 0xce, 0x19, 0x89, 0x79, 0xe9, 0xa9, 0x01, 0x50, 0x7b, 0x84, 0x44, 0xb8,
|
||||
0x58, 0x4b, 0x32, 0x4b, 0x72, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x20, 0x1c, 0x21,
|
||||
0x05, 0x2e, 0xee, 0x94, 0xd4, 0xe2, 0xe4, 0xa2, 0xcc, 0x82, 0x92, 0xcc, 0xfc, 0x3c, 0x09, 0x26,
|
||||
0xb0, 0x1c, 0xb2, 0x90, 0x90, 0x33, 0x17, 0x7b, 0x32, 0xd8, 0xa4, 0x62, 0x09, 0x66, 0x05, 0x66,
|
||||
0x0d, 0x6e, 0x23, 0x65, 0x3d, 0xec, 0xae, 0xd4, 0x03, 0xdb, 0x0c, 0xb1, 0xd5, 0x89, 0xe5, 0xc4,
|
||||
0x3d, 0x79, 0x86, 0x20, 0x98, 0x4e, 0x2b, 0x8e, 0x8e, 0x05, 0xf2, 0x0c, 0x33, 0x16, 0xc8, 0x33,
|
||||
0x28, 0x85, 0x73, 0x71, 0x23, 0xa9, 0x13, 0x92, 0xe2, 0xe2, 0x28, 0x2e, 0x4d, 0x2a, 0x2e, 0x48,
|
||||
0x4c, 0x86, 0x39, 0x0c, 0xce, 0x17, 0x12, 0xe0, 0x62, 0xce, 0x4e, 0xad, 0x84, 0xba, 0x09, 0xc4,
|
||||
0x04, 0xf9, 0xa1, 0x2c, 0x31, 0xa7, 0x34, 0x55, 0x82, 0x19, 0xe2, 0x07, 0x30, 0xc7, 0x8a, 0x05,
|
||||
0x64, 0xb0, 0x53, 0xd0, 0x8a, 0x47, 0x72, 0x8c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7,
|
||||
0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c,
|
||||
0xc7, 0x10, 0x65, 0x92, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x71,
|
||||
0x3e, 0x94, 0xd2, 0x2d, 0x4e, 0xc9, 0xd6, 0xc7, 0x11, 0x37, 0x49, 0x6c, 0xe0, 0x60, 0x35, 0x06,
|
||||
0x04, 0x00, 0x00, 0xff, 0xff, 0x17, 0xa9, 0xe7, 0x51, 0xbd, 0x01, 0x00, 0x00,
|
||||
var fileDescriptor_5ac7103bc6a10dd8 = []byte{
|
||||
// 296 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0x2f, 0xce,
|
||||
0xcd, 0x2f, 0xd6, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x51, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9,
|
||||
0x42, 0xbc, 0x10, 0x39, 0x3d, 0x88, 0xa0, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x58, 0x46, 0x1f,
|
||||
0xc4, 0x82, 0x28, 0x52, 0x9a, 0xce, 0xc8, 0x25, 0x1e, 0x00, 0x52, 0x90, 0x5a, 0x92, 0x5a, 0xe4,
|
||||
0x9c, 0x91, 0x98, 0x97, 0x9e, 0x1a, 0x50, 0x94, 0x5f, 0x90, 0x5f, 0x9c, 0x98, 0x23, 0x24, 0xc2,
|
||||
0xc5, 0x5a, 0x92, 0x59, 0x92, 0x93, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0xe1, 0x08,
|
||||
0x29, 0x70, 0x71, 0xa7, 0xa4, 0x16, 0x27, 0x17, 0x65, 0x16, 0x94, 0x64, 0xe6, 0xe7, 0x49, 0x30,
|
||||
0x81, 0xe5, 0x90, 0x85, 0x84, 0xac, 0xb8, 0xd8, 0x93, 0xc1, 0x26, 0x15, 0x4b, 0x30, 0x2b, 0x30,
|
||||
0x6b, 0x70, 0x1b, 0x49, 0xe9, 0xa1, 0x38, 0x45, 0x0f, 0x6c, 0x21, 0xc4, 0x32, 0x27, 0x96, 0x13,
|
||||
0xf7, 0xe4, 0x19, 0x82, 0x60, 0x1a, 0xac, 0x38, 0x3a, 0x16, 0xc8, 0x33, 0xcc, 0x58, 0x20, 0xcf,
|
||||
0xa0, 0x14, 0xce, 0xc5, 0x8d, 0xa4, 0x4e, 0x48, 0x8a, 0x8b, 0xa3, 0xb8, 0x34, 0xa9, 0xb8, 0x20,
|
||||
0x31, 0x19, 0xe6, 0x1e, 0x38, 0x5f, 0x48, 0x80, 0x8b, 0x39, 0x3b, 0xb5, 0x12, 0xea, 0x14, 0x10,
|
||||
0x13, 0xe4, 0xf4, 0xb2, 0xc4, 0x9c, 0xd2, 0x54, 0x09, 0x66, 0x88, 0xd3, 0xc1, 0x1c, 0x2b, 0x16,
|
||||
0x90, 0xc1, 0x4e, 0x41, 0x2b, 0x1e, 0xc9, 0x31, 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c,
|
||||
0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1,
|
||||
0x1c, 0x43, 0x94, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x34,
|
||||
0x70, 0x21, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x05, 0x2c, 0xa4, 0x4b, 0x2a, 0x0b, 0x52, 0x8b,
|
||||
0xf5, 0x0b, 0xa0, 0x41, 0x95, 0xc4, 0x06, 0x0e, 0x4d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff,
|
||||
0x67, 0x91, 0x5a, 0x29, 0x90, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *ParameterChangeProposal) Equal(that interface{}) bool {
|
||||
|
@ -249,7 +246,7 @@ func (m *ParameterChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintParams(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
|
@ -258,14 +255,14 @@ func (m *ParameterChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
if len(m.Description) > 0 {
|
||||
i -= len(m.Description)
|
||||
copy(dAtA[i:], m.Description)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Description)))
|
||||
i = encodeVarintParams(dAtA, i, uint64(len(m.Description)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Title) > 0 {
|
||||
i -= len(m.Title)
|
||||
copy(dAtA[i:], m.Title)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Title)))
|
||||
i = encodeVarintParams(dAtA, i, uint64(len(m.Title)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -295,29 +292,29 @@ func (m *ParamChange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Value) > 0 {
|
||||
i -= len(m.Value)
|
||||
copy(dAtA[i:], m.Value)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
|
||||
i = encodeVarintParams(dAtA, i, uint64(len(m.Value)))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
if len(m.Key) > 0 {
|
||||
i -= len(m.Key)
|
||||
copy(dAtA[i:], m.Key)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
|
||||
i = encodeVarintParams(dAtA, i, uint64(len(m.Key)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Subspace) > 0 {
|
||||
i -= len(m.Subspace)
|
||||
copy(dAtA[i:], m.Subspace)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Subspace)))
|
||||
i = encodeVarintParams(dAtA, i, uint64(len(m.Subspace)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovParams(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -335,16 +332,16 @@ func (m *ParameterChangeProposal) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Title)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovParams(uint64(l))
|
||||
}
|
||||
l = len(m.Description)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovParams(uint64(l))
|
||||
}
|
||||
if len(m.Changes) > 0 {
|
||||
for _, e := range m.Changes {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovParams(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -358,24 +355,24 @@ func (m *ParamChange) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Subspace)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovParams(uint64(l))
|
||||
}
|
||||
l = len(m.Key)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovParams(uint64(l))
|
||||
}
|
||||
l = len(m.Value)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovParams(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovParams(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozParams(x uint64) (n int) {
|
||||
return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -385,7 +382,7 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -413,7 +410,7 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -427,11 +424,11 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -445,7 +442,7 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -459,11 +456,11 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -477,7 +474,7 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -490,11 +487,11 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -506,15 +503,15 @@ func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipParams(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -536,7 +533,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -564,7 +561,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -578,11 +575,11 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -596,7 +593,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -610,11 +607,11 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -628,7 +625,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -642,11 +639,11 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -655,15 +652,15 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipParams(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthParams
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -677,7 +674,7 @@ func (m *ParamChange) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipParams(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -685,7 +682,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -702,7 +699,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -718,7 +715,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowParams
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -731,14 +728,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthParams
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupParams
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -747,7 +744,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthParams
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -757,7 +754,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowParams = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/slashing/types/types.proto
|
||||
// source: cosmos/slashing/slashing.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -38,7 +38,7 @@ func (m *MsgUnjail) Reset() { *m = MsgUnjail{} }
|
|||
func (m *MsgUnjail) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUnjail) ProtoMessage() {}
|
||||
func (*MsgUnjail) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_57cb37764f972476, []int{0}
|
||||
return fileDescriptor_3d04e6c6c2071212, []int{0}
|
||||
}
|
||||
func (m *MsgUnjail) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -92,7 +92,7 @@ type ValidatorSigningInfo struct {
|
|||
func (m *ValidatorSigningInfo) Reset() { *m = ValidatorSigningInfo{} }
|
||||
func (*ValidatorSigningInfo) ProtoMessage() {}
|
||||
func (*ValidatorSigningInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_57cb37764f972476, []int{1}
|
||||
return fileDescriptor_3d04e6c6c2071212, []int{1}
|
||||
}
|
||||
func (m *ValidatorSigningInfo) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -164,45 +164,44 @@ func (m *ValidatorSigningInfo) GetMissedBlocksCounter() int64 {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgUnjail)(nil), "cosmos_sdk.x.slashing.v1.MsgUnjail")
|
||||
proto.RegisterType((*ValidatorSigningInfo)(nil), "cosmos_sdk.x.slashing.v1.ValidatorSigningInfo")
|
||||
proto.RegisterType((*MsgUnjail)(nil), "cosmos.slashing.MsgUnjail")
|
||||
proto.RegisterType((*ValidatorSigningInfo)(nil), "cosmos.slashing.ValidatorSigningInfo")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/slashing/types/types.proto", fileDescriptor_57cb37764f972476) }
|
||||
func init() { proto.RegisterFile("cosmos/slashing/slashing.proto", fileDescriptor_3d04e6c6c2071212) }
|
||||
|
||||
var fileDescriptor_57cb37764f972476 = []byte{
|
||||
// 492 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0x6f, 0xd3, 0x40,
|
||||
0x14, 0xc7, 0x73, 0x04, 0x4a, 0xb9, 0x84, 0x0e, 0x2e, 0x08, 0x2b, 0xaa, 0x7c, 0x91, 0x07, 0x94,
|
||||
0xa5, 0xb6, 0x28, 0x5b, 0x36, 0xdc, 0x05, 0xc4, 0x2f, 0xc9, 0xb4, 0x1d, 0x18, 0xb0, 0xce, 0xb9,
|
||||
0xcb, 0xf9, 0x88, 0x7d, 0x17, 0xf9, 0xce, 0x55, 0xb2, 0xf2, 0x17, 0x74, 0x64, 0xec, 0xc8, 0x1f,
|
||||
0xc1, 0x1f, 0xd0, 0xb1, 0x23, 0x93, 0x41, 0xc9, 0x82, 0x18, 0x33, 0x76, 0x42, 0xf6, 0xc5, 0x34,
|
||||
0xaa, 0x10, 0x62, 0xb1, 0xef, 0x7d, 0xee, 0xfb, 0xde, 0xf7, 0xde, 0xbd, 0x83, 0x7b, 0x33, 0x5f,
|
||||
0xa5, 0x58, 0x25, 0x5c, 0x30, 0x5f, 0xcf, 0xa7, 0x54, 0x99, 0xaf, 0x37, 0xcd, 0xa5, 0x96, 0x96,
|
||||
0x3d, 0x92, 0x2a, 0x93, 0x2a, 0x52, 0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 0xeb, 0xfd, 0xbf, 0x9f, 0xc6, 0xcd, 0xf7, 0x1f, 0x6f, 0xd5, 0xd7, 0xf1, 0xf4, 0x77, 0x00,
|
||||
0x00, 0x00, 0xff, 0xff, 0x72, 0x9e, 0xc6, 0x73, 0x1a, 0x03, 0x00, 0x00,
|
||||
var fileDescriptor_3d04e6c6c2071212 = []byte{
|
||||
// 476 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0x6f, 0xd4, 0x30,
|
||||
0x14, 0xc7, 0xcf, 0x1c, 0x94, 0xe2, 0x3b, 0x8a, 0x94, 0x16, 0x11, 0x9d, 0x90, 0x1d, 0x65, 0xba,
|
||||
0xa5, 0x89, 0x54, 0xb6, 0xdb, 0x48, 0x17, 0x10, 0xbf, 0xa4, 0xd0, 0x76, 0x60, 0x20, 0x72, 0x2e,
|
||||
0x3e, 0x9f, 0x69, 0x62, 0x9f, 0x62, 0x07, 0xb5, 0x2b, 0x7f, 0x41, 0x47, 0xc6, 0x8e, 0xfc, 0x11,
|
||||
0xfc, 0x01, 0x1d, 0x3b, 0x32, 0x05, 0x74, 0xb7, 0x20, 0xc6, 0x1b, 0x3b, 0xa1, 0xd8, 0x97, 0xf6,
|
||||
0x84, 0x10, 0x62, 0xb2, 0xbf, 0x9f, 0xf7, 0x9e, 0xbf, 0xb6, 0xdf, 0x83, 0x68, 0x2c, 0x55, 0x21,
|
||||
0x55, 0xa8, 0x72, 0xa2, 0xa6, 0x5c, 0xb0, 0xeb, 0x4d, 0x30, 0x2b, 0xa5, 0x96, 0xce, 0x03, 0x1b,
|
||||
0x0f, 0x5a, 0x3c, 0xd8, 0x61, 0x92, 0x49, 0x13, 0x0b, 0x9b, 0x9d, 0x4d, 0x1b, 0x60, 0x26, 0x25,
|
||||
0xcb, 0x69, 0x68, 0x54, 0x5a, 0x4d, 0x42, 0xcd, 0x0b, 0xaa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0x28, 0xe7, 0x3d, 0xec, 0x37, 0xbf, 0x4b, 0xb3,
|
||||
0xa4, 0x12, 0x9a, 0xe7, 0xee, 0x6d, 0x0f, 0x0c, 0x7b, 0x7b, 0x83, 0xc0, 0xf6, 0x26, 0x68, 0x7b,
|
||||
0x13, 0x1c, 0xb4, 0xbd, 0x89, 0xf0, 0x45, 0x8d, 0x3b, 0x37, 0x67, 0xaf, 0x57, 0xfb, 0x67, 0xdf,
|
||||
0x31, 0x88, 0x7b, 0x16, 0x1d, 0x36, 0xc4, 0x41, 0x10, 0x6a, 0x59, 0xa4, 0x4a, 0x4b, 0x41, 0x33,
|
||||
0xf7, 0x8e, 0x07, 0x86, 0x9b, 0xf1, 0x1a, 0x71, 0x0e, 0xe0, 0xc3, 0x82, 0x2b, 0x45, 0xb3, 0x24,
|
||||
0xcd, 0xe5, 0xf8, 0x58, 0x25, 0x63, 0x59, 0x09, 0x4d, 0x4b, 0x77, 0xc3, 0x3c, 0xc2, 0x5b, 0xd6,
|
||||
0xf8, 0xb1, 0x35, 0xfa, 0x6b, 0x9a, 0x1f, 0x6f, 0x5b, 0x1e, 0x19, 0xbc, 0x6f, 0xe9, 0x68, 0xf3,
|
||||
0xf3, 0x39, 0xee, 0xfc, 0x3c, 0xc7, 0x20, 0x7a, 0xf1, 0x65, 0x8e, 0xc0, 0xc5, 0x1c, 0x81, 0xcb,
|
||||
0x39, 0x02, 0x3f, 0xe6, 0x08, 0x9c, 0x2d, 0x50, 0xe7, 0x72, 0x81, 0x3a, 0xdf, 0x16, 0xa8, 0xf3,
|
||||
0xee, 0xdf, 0xa3, 0x71, 0x72, 0x33, 0xe1, 0xa6, 0x73, 0xe9, 0x86, 0xf9, 0x8e, 0x27, 0xbf, 0x03,
|
||||
0x00, 0x00, 0xff, 0xff, 0xe3, 0x3b, 0x55, 0x14, 0x01, 0x03, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *MsgUnjail) Equal(that interface{}) bool {
|
||||
|
@ -291,7 +290,7 @@ func (m *MsgUnjail) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.ValidatorAddr) > 0 {
|
||||
i -= len(m.ValidatorAddr)
|
||||
copy(dAtA[i:], m.ValidatorAddr)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorAddr)))
|
||||
i = encodeVarintSlashing(dAtA, i, uint64(len(m.ValidatorAddr)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -319,7 +318,7 @@ func (m *ValidatorSigningInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if m.MissedBlocksCounter != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.MissedBlocksCounter))
|
||||
i = encodeVarintSlashing(dAtA, i, uint64(m.MissedBlocksCounter))
|
||||
i--
|
||||
dAtA[i] = 0x30
|
||||
}
|
||||
|
@ -338,31 +337,31 @@ func (m *ValidatorSigningInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err1
|
||||
}
|
||||
i -= n1
|
||||
i = encodeVarintTypes(dAtA, i, uint64(n1))
|
||||
i = encodeVarintSlashing(dAtA, i, uint64(n1))
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
if m.IndexOffset != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.IndexOffset))
|
||||
i = encodeVarintSlashing(dAtA, i, uint64(m.IndexOffset))
|
||||
i--
|
||||
dAtA[i] = 0x18
|
||||
}
|
||||
if m.StartHeight != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.StartHeight))
|
||||
i = encodeVarintSlashing(dAtA, i, uint64(m.StartHeight))
|
||||
i--
|
||||
dAtA[i] = 0x10
|
||||
}
|
||||
if len(m.Address) > 0 {
|
||||
i -= len(m.Address)
|
||||
copy(dAtA[i:], m.Address)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Address)))
|
||||
i = encodeVarintSlashing(dAtA, i, uint64(len(m.Address)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintSlashing(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovSlashing(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -380,7 +379,7 @@ func (m *MsgUnjail) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.ValidatorAddr)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovSlashing(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -393,30 +392,30 @@ func (m *ValidatorSigningInfo) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Address)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovSlashing(uint64(l))
|
||||
}
|
||||
if m.StartHeight != 0 {
|
||||
n += 1 + sovTypes(uint64(m.StartHeight))
|
||||
n += 1 + sovSlashing(uint64(m.StartHeight))
|
||||
}
|
||||
if m.IndexOffset != 0 {
|
||||
n += 1 + sovTypes(uint64(m.IndexOffset))
|
||||
n += 1 + sovSlashing(uint64(m.IndexOffset))
|
||||
}
|
||||
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.JailedUntil)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovSlashing(uint64(l))
|
||||
if m.Tombstoned {
|
||||
n += 2
|
||||
}
|
||||
if m.MissedBlocksCounter != 0 {
|
||||
n += 1 + sovTypes(uint64(m.MissedBlocksCounter))
|
||||
n += 1 + sovSlashing(uint64(m.MissedBlocksCounter))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovSlashing(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozSlashing(x uint64) (n int) {
|
||||
return sovSlashing(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *MsgUnjail) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -426,7 +425,7 @@ func (m *MsgUnjail) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -454,7 +453,7 @@ func (m *MsgUnjail) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -467,11 +466,11 @@ func (m *MsgUnjail) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -483,15 +482,15 @@ func (m *MsgUnjail) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipSlashing(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -513,7 +512,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -541,7 +540,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -554,11 +553,11 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -575,7 +574,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
m.StartHeight = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -594,7 +593,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
m.IndexOffset = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -613,7 +612,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -626,11 +625,11 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -646,7 +645,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
var v int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -666,7 +665,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
m.MissedBlocksCounter = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -680,15 +679,15 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipSlashing(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthSlashing
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -702,7 +701,7 @@ func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipSlashing(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -710,7 +709,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -727,7 +726,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -743,7 +742,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowSlashing
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -756,14 +755,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthSlashing
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupSlashing
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -772,7 +771,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthSlashing
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -782,7 +781,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthSlashing = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowSlashing = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupSlashing = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: x/upgrade/types/types.proto
|
||||
// source: cosmos/upgrade/upgrade.proto
|
||||
|
||||
package types
|
||||
|
||||
|
@ -49,7 +49,7 @@ type Plan struct {
|
|||
func (m *Plan) Reset() { *m = Plan{} }
|
||||
func (*Plan) ProtoMessage() {}
|
||||
func (*Plan) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2a308fd9dd71aff8, []int{0}
|
||||
return fileDescriptor_f096ad3e7ee0b803, []int{0}
|
||||
}
|
||||
func (m *Plan) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -88,7 +88,7 @@ type SoftwareUpgradeProposal struct {
|
|||
func (m *SoftwareUpgradeProposal) Reset() { *m = SoftwareUpgradeProposal{} }
|
||||
func (*SoftwareUpgradeProposal) ProtoMessage() {}
|
||||
func (*SoftwareUpgradeProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2a308fd9dd71aff8, []int{1}
|
||||
return fileDescriptor_f096ad3e7ee0b803, []int{1}
|
||||
}
|
||||
func (m *SoftwareUpgradeProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -126,7 +126,7 @@ type CancelSoftwareUpgradeProposal struct {
|
|||
func (m *CancelSoftwareUpgradeProposal) Reset() { *m = CancelSoftwareUpgradeProposal{} }
|
||||
func (*CancelSoftwareUpgradeProposal) ProtoMessage() {}
|
||||
func (*CancelSoftwareUpgradeProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2a308fd9dd71aff8, []int{2}
|
||||
return fileDescriptor_f096ad3e7ee0b803, []int{2}
|
||||
}
|
||||
func (m *CancelSoftwareUpgradeProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -156,39 +156,38 @@ func (m *CancelSoftwareUpgradeProposal) XXX_DiscardUnknown() {
|
|||
var xxx_messageInfo_CancelSoftwareUpgradeProposal proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Plan)(nil), "cosmos_sdk.x.upgrade.v1.Plan")
|
||||
proto.RegisterType((*SoftwareUpgradeProposal)(nil), "cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal")
|
||||
proto.RegisterType((*CancelSoftwareUpgradeProposal)(nil), "cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal")
|
||||
proto.RegisterType((*Plan)(nil), "cosmos.upgrade.Plan")
|
||||
proto.RegisterType((*SoftwareUpgradeProposal)(nil), "cosmos.upgrade.SoftwareUpgradeProposal")
|
||||
proto.RegisterType((*CancelSoftwareUpgradeProposal)(nil), "cosmos.upgrade.CancelSoftwareUpgradeProposal")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("x/upgrade/types/types.proto", fileDescriptor_2a308fd9dd71aff8) }
|
||||
func init() { proto.RegisterFile("cosmos/upgrade/upgrade.proto", fileDescriptor_f096ad3e7ee0b803) }
|
||||
|
||||
var fileDescriptor_2a308fd9dd71aff8 = []byte{
|
||||
// 379 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x41, 0x6f, 0xda, 0x30,
|
||||
0x14, 0xc7, 0xe3, 0x91, 0xa1, 0x61, 0x6e, 0xd6, 0x34, 0x22, 0x26, 0x9c, 0x88, 0xc3, 0xc4, 0x61,
|
||||
0x73, 0x34, 0x76, 0xd8, 0xb4, 0x23, 0xbb, 0x4f, 0x28, 0x5b, 0x2f, 0x95, 0x2a, 0x64, 0x12, 0x93,
|
||||
0x58, 0x24, 0xb1, 0x15, 0x9b, 0x16, 0xbe, 0x40, 0xcf, 0x7c, 0x84, 0x7e, 0x1c, 0x8e, 0x1c, 0x39,
|
||||
0xb5, 0x05, 0x2e, 0xfd, 0x18, 0x55, 0xe2, 0xa0, 0x56, 0x95, 0x7a, 0xeb, 0x25, 0x79, 0xcf, 0xfa,
|
||||
0xbf, 0xff, 0xfb, 0xbd, 0x67, 0xc3, 0xcf, 0x4b, 0x7f, 0x21, 0xe3, 0x82, 0x46, 0xcc, 0xd7, 0x2b,
|
||||
0xc9, 0x94, 0xf9, 0x12, 0x59, 0x08, 0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 0xcf, 0x8f, 0xd0, 0x4f, 0x68, 0xcb, 0x94, 0xe6, 0x15, 0x43, 0x7b, 0xd8,
|
||||
0x23, 0xaf, 0x6c, 0x93, 0x94, 0x0b, 0x18, 0xd9, 0xe5, 0x08, 0x41, 0x55, 0x50, 0x23, 0x5d, 0xc0,
|
||||
0xde, 0x1f, 0x9a, 0x87, 0x2c, 0x7d, 0x63, 0x2e, 0x63, 0x3f, 0xfa, 0xbb, 0xd9, 0x63, 0x6b, 0xb7,
|
||||
0xc7, 0xd6, 0xe6, 0x80, 0xc1, 0xf6, 0x80, 0xc1, 0xfd, 0x01, 0x83, 0xf5, 0x11, 0x5b, 0xdb, 0x23,
|
||||
0xb6, 0x76, 0x47, 0x6c, 0x9d, 0x7f, 0x8d, 0xb9, 0x4e, 0x16, 0x53, 0x12, 0x8a, 0xcc, 0x37, 0xec,
|
||||
0xf5, 0xef, 0x9b, 0x8a, 0xe6, 0xfe, 0x8b, 0x87, 0x33, 0x6d, 0x56, 0xf7, 0xf2, 0xe3, 0x31, 0x00,
|
||||
0x00, 0xff, 0xff, 0x45, 0x05, 0x01, 0x90, 0x52, 0x02, 0x00, 0x00,
|
||||
var fileDescriptor_f096ad3e7ee0b803 = []byte{
|
||||
// 358 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0xb1, 0x4e, 0xf3, 0x30,
|
||||
0x10, 0x8e, 0xff, 0xe6, 0xaf, 0xfe, 0xba, 0xd2, 0x3f, 0x58, 0x15, 0x44, 0x15, 0x38, 0x51, 0xa7,
|
||||
0x0e, 0xe0, 0x48, 0x65, 0x41, 0x8c, 0x65, 0x47, 0x55, 0x80, 0x05, 0x89, 0xc1, 0x4d, 0xdd, 0x34,
|
||||
0x22, 0xc9, 0x45, 0xb1, 0x2b, 0xe0, 0x05, 0x60, 0xed, 0x23, 0xf0, 0x38, 0x1d, 0x3b, 0x76, 0x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xe2, 0xe1, 0xf6,
|
||||
0x44, 0xc8, 0xb0, 0x88, 0x73, 0x15, 0x43, 0xa6, 0x4d, 0xb6, 0x82, 0xef, 0x25, 0xc2, 0xb0, 0x9d,
|
||||
0x27, 0x3c, 0xd3, 0x1e, 0xda, 0x83, 0x0e, 0xfb, 0xf9, 0xcb, 0x58, 0xb9, 0xf7, 0xd0, 0x2e, 0x9d,
|
||||
0x07, 0x9a, 0x57, 0x39, 0xb9, 0xc5, 0x87, 0xe7, 0x3c, 0x0b, 0x45, 0xf2, 0xcb, 0x76, 0x8c, 0xfc,
|
||||
0xf0, 0x62, 0xb9, 0xa1, 0xd6, 0x7a, 0x43, 0xad, 0xe5, 0x96, 0xa2, 0xd5, 0x96, 0xa2, 0xf7, 0x2d,
|
||||
0x45, 0x8b, 0x1d, 0xb5, 0x56, 0x3b, 0x6a, 0xad, 0x77, 0xd4, 0xba, 0x39, 0x8a, 0x62, 0x35, 0x9b,
|
||||
0x8f, 0x59, 0x08, 0xa9, 0x5f, 0xdd, 0x80, 0x09, 0xc7, 0x72, 0x72, 0xe7, 0x3f, 0x7c, 0x1d, 0x84,
|
||||
0x7a, 0xcc, 0x85, 0x1c, 0x37, 0xf5, 0x73, 0x9c, 0x7c, 0x06, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x41,
|
||||
0xa7, 0xa3, 0x2f, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *Plan) Equal(that interface{}) bool {
|
||||
|
@ -304,12 +303,12 @@ func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
if len(m.Info) > 0 {
|
||||
i -= len(m.Info)
|
||||
copy(dAtA[i:], m.Info)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Info)))
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
}
|
||||
if m.Height != 0 {
|
||||
i = encodeVarintTypes(dAtA, i, uint64(m.Height))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(m.Height))
|
||||
i--
|
||||
dAtA[i] = 0x18
|
||||
}
|
||||
|
@ -318,13 +317,13 @@ func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return 0, err1
|
||||
}
|
||||
i -= n1
|
||||
i = encodeVarintTypes(dAtA, i, uint64(n1))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(n1))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
if len(m.Name) > 0 {
|
||||
i -= len(m.Name)
|
||||
copy(dAtA[i:], m.Name)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Name)))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Name)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -357,21 +356,21 @@ func (m *SoftwareUpgradeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintTypes(dAtA, i, uint64(size))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
if len(m.Description) > 0 {
|
||||
i -= len(m.Description)
|
||||
copy(dAtA[i:], m.Description)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Description)))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Description)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Title) > 0 {
|
||||
i -= len(m.Title)
|
||||
copy(dAtA[i:], m.Title)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Title)))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Title)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -401,22 +400,22 @@ func (m *CancelSoftwareUpgradeProposal) MarshalToSizedBuffer(dAtA []byte) (int,
|
|||
if len(m.Description) > 0 {
|
||||
i -= len(m.Description)
|
||||
copy(dAtA[i:], m.Description)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Description)))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Description)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Title) > 0 {
|
||||
i -= len(m.Title)
|
||||
copy(dAtA[i:], m.Title)
|
||||
i = encodeVarintTypes(dAtA, i, uint64(len(m.Title)))
|
||||
i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Title)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovTypes(v)
|
||||
func encodeVarintUpgrade(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovUpgrade(v)
|
||||
base := offset
|
||||
for v >= 1<<7 {
|
||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||
|
@ -434,16 +433,16 @@ func (m *Plan) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Name)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovUpgrade(uint64(l))
|
||||
}
|
||||
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovUpgrade(uint64(l))
|
||||
if m.Height != 0 {
|
||||
n += 1 + sovTypes(uint64(m.Height))
|
||||
n += 1 + sovUpgrade(uint64(m.Height))
|
||||
}
|
||||
l = len(m.Info)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovUpgrade(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -456,14 +455,14 @@ func (m *SoftwareUpgradeProposal) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Title)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovUpgrade(uint64(l))
|
||||
}
|
||||
l = len(m.Description)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovUpgrade(uint64(l))
|
||||
}
|
||||
l = m.Plan.Size()
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovUpgrade(uint64(l))
|
||||
return n
|
||||
}
|
||||
|
||||
|
@ -475,20 +474,20 @@ func (m *CancelSoftwareUpgradeProposal) Size() (n int) {
|
|||
_ = l
|
||||
l = len(m.Title)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovUpgrade(uint64(l))
|
||||
}
|
||||
l = len(m.Description)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTypes(uint64(l))
|
||||
n += 1 + l + sovUpgrade(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovTypes(x uint64) (n int) {
|
||||
func sovUpgrade(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
func sozTypes(x uint64) (n int) {
|
||||
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
func sozUpgrade(x uint64) (n int) {
|
||||
return sovUpgrade(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *Plan) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
|
@ -498,7 +497,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -526,7 +525,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -540,11 +539,11 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -558,7 +557,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -571,11 +570,11 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -591,7 +590,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
m.Height = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -610,7 +609,7 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -624,11 +623,11 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -637,15 +636,15 @@ func (m *Plan) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipUpgrade(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -667,7 +666,7 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -695,7 +694,7 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -709,11 +708,11 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -727,7 +726,7 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -741,11 +740,11 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -759,7 +758,7 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -772,11 +771,11 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -787,15 +786,15 @@ func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipUpgrade(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -817,7 +816,7 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -845,7 +844,7 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -859,11 +858,11 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -877,7 +876,7 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowTypes
|
||||
return ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -891,11 +890,11 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -904,15 +903,15 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipTypes(dAtA[iNdEx:])
|
||||
skippy, err := skipUpgrade(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthTypes
|
||||
return ErrInvalidLengthUpgrade
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
|
@ -926,7 +925,7 @@ func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func skipTypes(dAtA []byte) (n int, err error) {
|
||||
func skipUpgrade(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
depth := 0
|
||||
|
@ -934,7 +933,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -951,7 +950,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
case 0:
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -967,7 +966,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
var length int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return 0, ErrIntOverflowTypes
|
||||
return 0, ErrIntOverflowUpgrade
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return 0, io.ErrUnexpectedEOF
|
||||
|
@ -980,14 +979,14 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
}
|
||||
if length < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthUpgrade
|
||||
}
|
||||
iNdEx += length
|
||||
case 3:
|
||||
depth++
|
||||
case 4:
|
||||
if depth == 0 {
|
||||
return 0, ErrUnexpectedEndOfGroupTypes
|
||||
return 0, ErrUnexpectedEndOfGroupUpgrade
|
||||
}
|
||||
depth--
|
||||
case 5:
|
||||
|
@ -996,7 +995,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||
}
|
||||
if iNdEx < 0 {
|
||||
return 0, ErrInvalidLengthTypes
|
||||
return 0, ErrInvalidLengthUpgrade
|
||||
}
|
||||
if depth == 0 {
|
||||
return iNdEx, nil
|
||||
|
@ -1006,7 +1005,7 @@ func skipTypes(dAtA []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
|
||||
ErrInvalidLengthUpgrade = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||
ErrIntOverflowUpgrade = fmt.Errorf("proto: integer overflow")
|
||||
ErrUnexpectedEndOfGroupUpgrade = fmt.Errorf("proto: unexpected end of group")
|
||||
)
|
Loading…
Reference in New Issue