@agoric/cosmic-proto 0.5.0-u19.2 → 0.5.0-u20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/address-hooks.d.ts +4 -3
- package/dist/address-hooks.js +1 -217
- package/dist/address-hooks.js.map +1 -1
- package/dist/codegen/agoric/bundle.js +1 -51
- package/dist/codegen/agoric/lien/genesis.js +1 -143
- package/dist/codegen/agoric/lien/lien.js +1 -87
- package/dist/codegen/agoric/swingset/genesis.js +1 -181
- package/dist/codegen/agoric/swingset/msgs.js +1 -700
- package/dist/codegen/agoric/swingset/query.js +1 -356
- package/dist/codegen/agoric/swingset/swingset.js +1 -816
- package/dist/codegen/agoric/vbank/genesis.js +1 -82
- package/dist/codegen/agoric/vbank/msgs.js +1 -2
- package/dist/codegen/agoric/vbank/query.js +1 -222
- package/dist/codegen/agoric/vbank/vbank.js +1 -237
- package/dist/codegen/agoric/vibc/msgs.js +1 -127
- package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
- package/dist/codegen/agoric/vstorage/genesis.js +1 -138
- package/dist/codegen/agoric/vstorage/query.js +1 -441
- package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
- package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
- package/dist/codegen/amino/amino.js +1 -2
- package/dist/codegen/amino/bundle.js +1 -6
- package/dist/codegen/binary.js +1 -367
- package/dist/codegen/circle/bundle.d.ts +0 -506
- package/dist/codegen/circle/bundle.js +1 -40
- package/dist/codegen/circle/cctp/v1/attester.js +1 -63
- package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
- package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/events.js +1 -1612
- package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
- package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
- package/dist/codegen/circle/cctp/v1/message.js +1 -160
- package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
- package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
- package/dist/codegen/circle/cctp/v1/query.js +1 -2421
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
- package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
- package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
- package/dist/codegen/circle/cctp/v1/tx.d.ts +0 -998
- package/dist/codegen/circle/cctp/v1/tx.js +1 -3264
- package/dist/codegen/circle/cctp/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
- package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
- package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
- package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
- package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
- package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
- package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
- package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
- package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
- package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
- package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
- package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
- package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
- package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
- package/dist/codegen/cosmos/bundle.js +1 -249
- package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
- package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
- package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
- package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
- package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
- package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
- package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
- package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
- package/dist/codegen/cosmos/group/v1/events.js +1 -696
- package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
- package/dist/codegen/cosmos/group/v1/query.js +1 -2096
- package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
- package/dist/codegen/cosmos/group/v1/types.js +1 -1387
- package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
- package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
- package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
- package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
- package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
- package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
- package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
- package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
- package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
- package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
- package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
- package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
- package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
- package/dist/codegen/cosmos_proto/bundle.js +1 -6
- package/dist/codegen/cosmos_proto/cosmos.js +1 -208
- package/dist/codegen/gogoproto/bundle.js +1 -6
- package/dist/codegen/gogoproto/gogo.js +1 -2
- package/dist/codegen/google/api/annotations.js +1 -2
- package/dist/codegen/google/api/http.js +1 -319
- package/dist/codegen/google/bundle.js +1 -17
- package/dist/codegen/google/protobuf/any.js +1 -77
- package/dist/codegen/google/protobuf/descriptor.js +1 -3421
- package/dist/codegen/google/protobuf/duration.js +1 -79
- package/dist/codegen/google/protobuf/empty.js +1 -50
- package/dist/codegen/google/protobuf/timestamp.js +1 -79
- package/dist/codegen/helpers.js +1 -196
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
- package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
- package/dist/codegen/ibc/bundle.js +1 -142
- package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
- package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
- package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
- package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
- package/dist/codegen/ibc/core/client/v1/client.js +1 -583
- package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
- package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
- package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
- package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
- package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
- package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
- package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
- package/dist/codegen/icq/bundle.js +1 -17
- package/dist/codegen/icq/v1/genesis.js +1 -78
- package/dist/codegen/icq/v1/icq.js +1 -83
- package/dist/codegen/icq/v1/packet.js +1 -270
- package/dist/codegen/icq/v1/query.js +1 -114
- package/dist/codegen/icq/v1/tx.js +1 -124
- package/dist/codegen/ics23/bundle.js +1 -6
- package/dist/codegen/index.js +1 -23
- package/dist/codegen/json-safe.js +1 -8
- package/dist/codegen/proofs.js +1 -1436
- package/dist/codegen/stride/bundle.js +1 -71
- package/dist/codegen/stride/epochs/genesis.js +1 -227
- package/dist/codegen/stride/epochs/query.js +1 -398
- package/dist/codegen/stride/records/callbacks.js +1 -136
- package/dist/codegen/stride/records/genesis.js +1 -186
- package/dist/codegen/stride/records/params.js +1 -50
- package/dist/codegen/stride/records/query.js +1 -1552
- package/dist/codegen/stride/records/records.js +1 -939
- package/dist/codegen/stride/stakedym/genesis.js +1 -312
- package/dist/codegen/stride/stakedym/query.js +1 -887
- package/dist/codegen/stride/stakedym/stakedym.js +1 -909
- package/dist/codegen/stride/stakedym/tx.js +1 -1661
- package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
- package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
- package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
- package/dist/codegen/stride/stakeibc/genesis.js +1 -135
- package/dist/codegen/stride/stakeibc/gov.js +1 -212
- package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
- package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
- package/dist/codegen/stride/stakeibc/packet.js +1 -113
- package/dist/codegen/stride/stakeibc/params.js +1 -317
- package/dist/codegen/stride/stakeibc/query.js +1 -1372
- package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
- package/dist/codegen/stride/stakeibc/tx.js +1 -3392
- package/dist/codegen/stride/stakeibc/validator.js +1 -170
- package/dist/codegen/stride/staketia/genesis.js +1 -312
- package/dist/codegen/stride/staketia/query.js +1 -887
- package/dist/codegen/stride/staketia/staketia.js +1 -819
- package/dist/codegen/stride/staketia/tx.js +1 -1671
- package/dist/codegen/tendermint/abci/types.d.ts +264 -692
- package/dist/codegen/tendermint/abci/types.js +1 -4434
- package/dist/codegen/tendermint/abci/types.js.map +1 -1
- package/dist/codegen/tendermint/bundle.d.ts +0 -272
- package/dist/codegen/tendermint/bundle.js +1 -42
- package/dist/codegen/tendermint/crypto/keys.js +1 -85
- package/dist/codegen/tendermint/crypto/proof.js +1 -409
- package/dist/codegen/tendermint/libs/bits/types.js +1 -94
- package/dist/codegen/tendermint/p2p/types.js +1 -506
- package/dist/codegen/tendermint/types/block.js +1 -119
- package/dist/codegen/tendermint/types/evidence.js +1 -415
- package/dist/codegen/tendermint/types/params.js +1 -529
- package/dist/codegen/tendermint/types/types.js +1 -1534
- package/dist/codegen/tendermint/types/validator.js +1 -299
- package/dist/codegen/tendermint/version/types.js +1 -155
- package/dist/codegen/utf8.js +1 -138
- package/dist/codegen/varint.js +1 -409
- package/dist/helpers.js +1 -22
- package/dist/index.js +1 -6
- package/package.json +12 -10
|
@@ -1,1372 +1 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { PageRequest, PageResponse, } from '../../cosmos/base/query/v1beta1/pagination.js';
|
|
3
|
-
import { Params } from './params.js';
|
|
4
|
-
import { Validator } from './validator.js';
|
|
5
|
-
import { HostZone } from './host_zone.js';
|
|
6
|
-
import { EpochTracker } from './epoch_tracker.js';
|
|
7
|
-
import { AddressUnbonding, } from './address_unbonding.js';
|
|
8
|
-
import { TradeRoute } from './trade_route.js';
|
|
9
|
-
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
10
|
-
import { isSet } from '../../helpers.js';
|
|
11
|
-
import {} from '../../json-safe.js';
|
|
12
|
-
function createBaseQueryInterchainAccountFromAddressRequest() {
|
|
13
|
-
return {
|
|
14
|
-
owner: '',
|
|
15
|
-
connectionId: '',
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export const QueryInterchainAccountFromAddressRequest = {
|
|
19
|
-
typeUrl: '/stride.stakeibc.QueryInterchainAccountFromAddressRequest',
|
|
20
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
21
|
-
if (message.owner !== '') {
|
|
22
|
-
writer.uint32(10).string(message.owner);
|
|
23
|
-
}
|
|
24
|
-
if (message.connectionId !== '') {
|
|
25
|
-
writer.uint32(18).string(message.connectionId);
|
|
26
|
-
}
|
|
27
|
-
return writer;
|
|
28
|
-
},
|
|
29
|
-
decode(input, length) {
|
|
30
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
31
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
-
const message = createBaseQueryInterchainAccountFromAddressRequest();
|
|
33
|
-
while (reader.pos < end) {
|
|
34
|
-
const tag = reader.uint32();
|
|
35
|
-
switch (tag >>> 3) {
|
|
36
|
-
case 1:
|
|
37
|
-
message.owner = reader.string();
|
|
38
|
-
break;
|
|
39
|
-
case 2:
|
|
40
|
-
message.connectionId = reader.string();
|
|
41
|
-
break;
|
|
42
|
-
default:
|
|
43
|
-
reader.skipType(tag & 7);
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return message;
|
|
48
|
-
},
|
|
49
|
-
fromJSON(object) {
|
|
50
|
-
return {
|
|
51
|
-
owner: isSet(object.owner) ? String(object.owner) : '',
|
|
52
|
-
connectionId: isSet(object.connectionId)
|
|
53
|
-
? String(object.connectionId)
|
|
54
|
-
: '',
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
toJSON(message) {
|
|
58
|
-
const obj = {};
|
|
59
|
-
message.owner !== undefined && (obj.owner = message.owner);
|
|
60
|
-
message.connectionId !== undefined &&
|
|
61
|
-
(obj.connectionId = message.connectionId);
|
|
62
|
-
return obj;
|
|
63
|
-
},
|
|
64
|
-
fromPartial(object) {
|
|
65
|
-
const message = createBaseQueryInterchainAccountFromAddressRequest();
|
|
66
|
-
message.owner = object.owner ?? '';
|
|
67
|
-
message.connectionId = object.connectionId ?? '';
|
|
68
|
-
return message;
|
|
69
|
-
},
|
|
70
|
-
fromProtoMsg(message) {
|
|
71
|
-
return QueryInterchainAccountFromAddressRequest.decode(message.value);
|
|
72
|
-
},
|
|
73
|
-
toProto(message) {
|
|
74
|
-
return QueryInterchainAccountFromAddressRequest.encode(message).finish();
|
|
75
|
-
},
|
|
76
|
-
toProtoMsg(message) {
|
|
77
|
-
return {
|
|
78
|
-
typeUrl: '/stride.stakeibc.QueryInterchainAccountFromAddressRequest',
|
|
79
|
-
value: QueryInterchainAccountFromAddressRequest.encode(message).finish(),
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
function createBaseQueryInterchainAccountFromAddressResponse() {
|
|
84
|
-
return {
|
|
85
|
-
interchainAccountAddress: '',
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export const QueryInterchainAccountFromAddressResponse = {
|
|
89
|
-
typeUrl: '/stride.stakeibc.QueryInterchainAccountFromAddressResponse',
|
|
90
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
91
|
-
if (message.interchainAccountAddress !== '') {
|
|
92
|
-
writer.uint32(10).string(message.interchainAccountAddress);
|
|
93
|
-
}
|
|
94
|
-
return writer;
|
|
95
|
-
},
|
|
96
|
-
decode(input, length) {
|
|
97
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
98
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
99
|
-
const message = createBaseQueryInterchainAccountFromAddressResponse();
|
|
100
|
-
while (reader.pos < end) {
|
|
101
|
-
const tag = reader.uint32();
|
|
102
|
-
switch (tag >>> 3) {
|
|
103
|
-
case 1:
|
|
104
|
-
message.interchainAccountAddress = reader.string();
|
|
105
|
-
break;
|
|
106
|
-
default:
|
|
107
|
-
reader.skipType(tag & 7);
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return message;
|
|
112
|
-
},
|
|
113
|
-
fromJSON(object) {
|
|
114
|
-
return {
|
|
115
|
-
interchainAccountAddress: isSet(object.interchainAccountAddress)
|
|
116
|
-
? String(object.interchainAccountAddress)
|
|
117
|
-
: '',
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
toJSON(message) {
|
|
121
|
-
const obj = {};
|
|
122
|
-
message.interchainAccountAddress !== undefined &&
|
|
123
|
-
(obj.interchainAccountAddress = message.interchainAccountAddress);
|
|
124
|
-
return obj;
|
|
125
|
-
},
|
|
126
|
-
fromPartial(object) {
|
|
127
|
-
const message = createBaseQueryInterchainAccountFromAddressResponse();
|
|
128
|
-
message.interchainAccountAddress = object.interchainAccountAddress ?? '';
|
|
129
|
-
return message;
|
|
130
|
-
},
|
|
131
|
-
fromProtoMsg(message) {
|
|
132
|
-
return QueryInterchainAccountFromAddressResponse.decode(message.value);
|
|
133
|
-
},
|
|
134
|
-
toProto(message) {
|
|
135
|
-
return QueryInterchainAccountFromAddressResponse.encode(message).finish();
|
|
136
|
-
},
|
|
137
|
-
toProtoMsg(message) {
|
|
138
|
-
return {
|
|
139
|
-
typeUrl: '/stride.stakeibc.QueryInterchainAccountFromAddressResponse',
|
|
140
|
-
value: QueryInterchainAccountFromAddressResponse.encode(message).finish(),
|
|
141
|
-
};
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
function createBaseQueryParamsRequest() {
|
|
145
|
-
return {};
|
|
146
|
-
}
|
|
147
|
-
export const QueryParamsRequest = {
|
|
148
|
-
typeUrl: '/stride.stakeibc.QueryParamsRequest',
|
|
149
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
150
|
-
return writer;
|
|
151
|
-
},
|
|
152
|
-
decode(input, length) {
|
|
153
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
154
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
-
const message = createBaseQueryParamsRequest();
|
|
156
|
-
while (reader.pos < end) {
|
|
157
|
-
const tag = reader.uint32();
|
|
158
|
-
switch (tag >>> 3) {
|
|
159
|
-
default:
|
|
160
|
-
reader.skipType(tag & 7);
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
return message;
|
|
165
|
-
},
|
|
166
|
-
fromJSON(_) {
|
|
167
|
-
return {};
|
|
168
|
-
},
|
|
169
|
-
toJSON(_) {
|
|
170
|
-
const obj = {};
|
|
171
|
-
return obj;
|
|
172
|
-
},
|
|
173
|
-
fromPartial(_) {
|
|
174
|
-
const message = createBaseQueryParamsRequest();
|
|
175
|
-
return message;
|
|
176
|
-
},
|
|
177
|
-
fromProtoMsg(message) {
|
|
178
|
-
return QueryParamsRequest.decode(message.value);
|
|
179
|
-
},
|
|
180
|
-
toProto(message) {
|
|
181
|
-
return QueryParamsRequest.encode(message).finish();
|
|
182
|
-
},
|
|
183
|
-
toProtoMsg(message) {
|
|
184
|
-
return {
|
|
185
|
-
typeUrl: '/stride.stakeibc.QueryParamsRequest',
|
|
186
|
-
value: QueryParamsRequest.encode(message).finish(),
|
|
187
|
-
};
|
|
188
|
-
},
|
|
189
|
-
};
|
|
190
|
-
function createBaseQueryParamsResponse() {
|
|
191
|
-
return {
|
|
192
|
-
params: Params.fromPartial({}),
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
export const QueryParamsResponse = {
|
|
196
|
-
typeUrl: '/stride.stakeibc.QueryParamsResponse',
|
|
197
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
198
|
-
if (message.params !== undefined) {
|
|
199
|
-
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
200
|
-
}
|
|
201
|
-
return writer;
|
|
202
|
-
},
|
|
203
|
-
decode(input, length) {
|
|
204
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
205
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
206
|
-
const message = createBaseQueryParamsResponse();
|
|
207
|
-
while (reader.pos < end) {
|
|
208
|
-
const tag = reader.uint32();
|
|
209
|
-
switch (tag >>> 3) {
|
|
210
|
-
case 1:
|
|
211
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
212
|
-
break;
|
|
213
|
-
default:
|
|
214
|
-
reader.skipType(tag & 7);
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return message;
|
|
219
|
-
},
|
|
220
|
-
fromJSON(object) {
|
|
221
|
-
return {
|
|
222
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
223
|
-
};
|
|
224
|
-
},
|
|
225
|
-
toJSON(message) {
|
|
226
|
-
const obj = {};
|
|
227
|
-
message.params !== undefined &&
|
|
228
|
-
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
229
|
-
return obj;
|
|
230
|
-
},
|
|
231
|
-
fromPartial(object) {
|
|
232
|
-
const message = createBaseQueryParamsResponse();
|
|
233
|
-
message.params =
|
|
234
|
-
object.params !== undefined && object.params !== null
|
|
235
|
-
? Params.fromPartial(object.params)
|
|
236
|
-
: undefined;
|
|
237
|
-
return message;
|
|
238
|
-
},
|
|
239
|
-
fromProtoMsg(message) {
|
|
240
|
-
return QueryParamsResponse.decode(message.value);
|
|
241
|
-
},
|
|
242
|
-
toProto(message) {
|
|
243
|
-
return QueryParamsResponse.encode(message).finish();
|
|
244
|
-
},
|
|
245
|
-
toProtoMsg(message) {
|
|
246
|
-
return {
|
|
247
|
-
typeUrl: '/stride.stakeibc.QueryParamsResponse',
|
|
248
|
-
value: QueryParamsResponse.encode(message).finish(),
|
|
249
|
-
};
|
|
250
|
-
},
|
|
251
|
-
};
|
|
252
|
-
function createBaseQueryGetValidatorsRequest() {
|
|
253
|
-
return {
|
|
254
|
-
chainId: '',
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
export const QueryGetValidatorsRequest = {
|
|
258
|
-
typeUrl: '/stride.stakeibc.QueryGetValidatorsRequest',
|
|
259
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
260
|
-
if (message.chainId !== '') {
|
|
261
|
-
writer.uint32(10).string(message.chainId);
|
|
262
|
-
}
|
|
263
|
-
return writer;
|
|
264
|
-
},
|
|
265
|
-
decode(input, length) {
|
|
266
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
267
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
268
|
-
const message = createBaseQueryGetValidatorsRequest();
|
|
269
|
-
while (reader.pos < end) {
|
|
270
|
-
const tag = reader.uint32();
|
|
271
|
-
switch (tag >>> 3) {
|
|
272
|
-
case 1:
|
|
273
|
-
message.chainId = reader.string();
|
|
274
|
-
break;
|
|
275
|
-
default:
|
|
276
|
-
reader.skipType(tag & 7);
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
return message;
|
|
281
|
-
},
|
|
282
|
-
fromJSON(object) {
|
|
283
|
-
return {
|
|
284
|
-
chainId: isSet(object.chainId) ? String(object.chainId) : '',
|
|
285
|
-
};
|
|
286
|
-
},
|
|
287
|
-
toJSON(message) {
|
|
288
|
-
const obj = {};
|
|
289
|
-
message.chainId !== undefined && (obj.chainId = message.chainId);
|
|
290
|
-
return obj;
|
|
291
|
-
},
|
|
292
|
-
fromPartial(object) {
|
|
293
|
-
const message = createBaseQueryGetValidatorsRequest();
|
|
294
|
-
message.chainId = object.chainId ?? '';
|
|
295
|
-
return message;
|
|
296
|
-
},
|
|
297
|
-
fromProtoMsg(message) {
|
|
298
|
-
return QueryGetValidatorsRequest.decode(message.value);
|
|
299
|
-
},
|
|
300
|
-
toProto(message) {
|
|
301
|
-
return QueryGetValidatorsRequest.encode(message).finish();
|
|
302
|
-
},
|
|
303
|
-
toProtoMsg(message) {
|
|
304
|
-
return {
|
|
305
|
-
typeUrl: '/stride.stakeibc.QueryGetValidatorsRequest',
|
|
306
|
-
value: QueryGetValidatorsRequest.encode(message).finish(),
|
|
307
|
-
};
|
|
308
|
-
},
|
|
309
|
-
};
|
|
310
|
-
function createBaseQueryGetValidatorsResponse() {
|
|
311
|
-
return {
|
|
312
|
-
validators: [],
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
export const QueryGetValidatorsResponse = {
|
|
316
|
-
typeUrl: '/stride.stakeibc.QueryGetValidatorsResponse',
|
|
317
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
318
|
-
for (const v of message.validators) {
|
|
319
|
-
Validator.encode(v, writer.uint32(10).fork()).ldelim();
|
|
320
|
-
}
|
|
321
|
-
return writer;
|
|
322
|
-
},
|
|
323
|
-
decode(input, length) {
|
|
324
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
325
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
326
|
-
const message = createBaseQueryGetValidatorsResponse();
|
|
327
|
-
while (reader.pos < end) {
|
|
328
|
-
const tag = reader.uint32();
|
|
329
|
-
switch (tag >>> 3) {
|
|
330
|
-
case 1:
|
|
331
|
-
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
332
|
-
break;
|
|
333
|
-
default:
|
|
334
|
-
reader.skipType(tag & 7);
|
|
335
|
-
break;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
return message;
|
|
339
|
-
},
|
|
340
|
-
fromJSON(object) {
|
|
341
|
-
return {
|
|
342
|
-
validators: Array.isArray(object?.validators)
|
|
343
|
-
? object.validators.map((e) => Validator.fromJSON(e))
|
|
344
|
-
: [],
|
|
345
|
-
};
|
|
346
|
-
},
|
|
347
|
-
toJSON(message) {
|
|
348
|
-
const obj = {};
|
|
349
|
-
if (message.validators) {
|
|
350
|
-
obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
obj.validators = [];
|
|
354
|
-
}
|
|
355
|
-
return obj;
|
|
356
|
-
},
|
|
357
|
-
fromPartial(object) {
|
|
358
|
-
const message = createBaseQueryGetValidatorsResponse();
|
|
359
|
-
message.validators =
|
|
360
|
-
object.validators?.map(e => Validator.fromPartial(e)) || [];
|
|
361
|
-
return message;
|
|
362
|
-
},
|
|
363
|
-
fromProtoMsg(message) {
|
|
364
|
-
return QueryGetValidatorsResponse.decode(message.value);
|
|
365
|
-
},
|
|
366
|
-
toProto(message) {
|
|
367
|
-
return QueryGetValidatorsResponse.encode(message).finish();
|
|
368
|
-
},
|
|
369
|
-
toProtoMsg(message) {
|
|
370
|
-
return {
|
|
371
|
-
typeUrl: '/stride.stakeibc.QueryGetValidatorsResponse',
|
|
372
|
-
value: QueryGetValidatorsResponse.encode(message).finish(),
|
|
373
|
-
};
|
|
374
|
-
},
|
|
375
|
-
};
|
|
376
|
-
function createBaseQueryGetHostZoneRequest() {
|
|
377
|
-
return {
|
|
378
|
-
chainId: '',
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
export const QueryGetHostZoneRequest = {
|
|
382
|
-
typeUrl: '/stride.stakeibc.QueryGetHostZoneRequest',
|
|
383
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
384
|
-
if (message.chainId !== '') {
|
|
385
|
-
writer.uint32(10).string(message.chainId);
|
|
386
|
-
}
|
|
387
|
-
return writer;
|
|
388
|
-
},
|
|
389
|
-
decode(input, length) {
|
|
390
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
391
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
392
|
-
const message = createBaseQueryGetHostZoneRequest();
|
|
393
|
-
while (reader.pos < end) {
|
|
394
|
-
const tag = reader.uint32();
|
|
395
|
-
switch (tag >>> 3) {
|
|
396
|
-
case 1:
|
|
397
|
-
message.chainId = reader.string();
|
|
398
|
-
break;
|
|
399
|
-
default:
|
|
400
|
-
reader.skipType(tag & 7);
|
|
401
|
-
break;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
return message;
|
|
405
|
-
},
|
|
406
|
-
fromJSON(object) {
|
|
407
|
-
return {
|
|
408
|
-
chainId: isSet(object.chainId) ? String(object.chainId) : '',
|
|
409
|
-
};
|
|
410
|
-
},
|
|
411
|
-
toJSON(message) {
|
|
412
|
-
const obj = {};
|
|
413
|
-
message.chainId !== undefined && (obj.chainId = message.chainId);
|
|
414
|
-
return obj;
|
|
415
|
-
},
|
|
416
|
-
fromPartial(object) {
|
|
417
|
-
const message = createBaseQueryGetHostZoneRequest();
|
|
418
|
-
message.chainId = object.chainId ?? '';
|
|
419
|
-
return message;
|
|
420
|
-
},
|
|
421
|
-
fromProtoMsg(message) {
|
|
422
|
-
return QueryGetHostZoneRequest.decode(message.value);
|
|
423
|
-
},
|
|
424
|
-
toProto(message) {
|
|
425
|
-
return QueryGetHostZoneRequest.encode(message).finish();
|
|
426
|
-
},
|
|
427
|
-
toProtoMsg(message) {
|
|
428
|
-
return {
|
|
429
|
-
typeUrl: '/stride.stakeibc.QueryGetHostZoneRequest',
|
|
430
|
-
value: QueryGetHostZoneRequest.encode(message).finish(),
|
|
431
|
-
};
|
|
432
|
-
},
|
|
433
|
-
};
|
|
434
|
-
function createBaseQueryGetHostZoneResponse() {
|
|
435
|
-
return {
|
|
436
|
-
hostZone: HostZone.fromPartial({}),
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
export const QueryGetHostZoneResponse = {
|
|
440
|
-
typeUrl: '/stride.stakeibc.QueryGetHostZoneResponse',
|
|
441
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
442
|
-
if (message.hostZone !== undefined) {
|
|
443
|
-
HostZone.encode(message.hostZone, writer.uint32(10).fork()).ldelim();
|
|
444
|
-
}
|
|
445
|
-
return writer;
|
|
446
|
-
},
|
|
447
|
-
decode(input, length) {
|
|
448
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
449
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
450
|
-
const message = createBaseQueryGetHostZoneResponse();
|
|
451
|
-
while (reader.pos < end) {
|
|
452
|
-
const tag = reader.uint32();
|
|
453
|
-
switch (tag >>> 3) {
|
|
454
|
-
case 1:
|
|
455
|
-
message.hostZone = HostZone.decode(reader, reader.uint32());
|
|
456
|
-
break;
|
|
457
|
-
default:
|
|
458
|
-
reader.skipType(tag & 7);
|
|
459
|
-
break;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
return message;
|
|
463
|
-
},
|
|
464
|
-
fromJSON(object) {
|
|
465
|
-
return {
|
|
466
|
-
hostZone: isSet(object.hostZone)
|
|
467
|
-
? HostZone.fromJSON(object.hostZone)
|
|
468
|
-
: undefined,
|
|
469
|
-
};
|
|
470
|
-
},
|
|
471
|
-
toJSON(message) {
|
|
472
|
-
const obj = {};
|
|
473
|
-
message.hostZone !== undefined &&
|
|
474
|
-
(obj.hostZone = message.hostZone
|
|
475
|
-
? HostZone.toJSON(message.hostZone)
|
|
476
|
-
: undefined);
|
|
477
|
-
return obj;
|
|
478
|
-
},
|
|
479
|
-
fromPartial(object) {
|
|
480
|
-
const message = createBaseQueryGetHostZoneResponse();
|
|
481
|
-
message.hostZone =
|
|
482
|
-
object.hostZone !== undefined && object.hostZone !== null
|
|
483
|
-
? HostZone.fromPartial(object.hostZone)
|
|
484
|
-
: undefined;
|
|
485
|
-
return message;
|
|
486
|
-
},
|
|
487
|
-
fromProtoMsg(message) {
|
|
488
|
-
return QueryGetHostZoneResponse.decode(message.value);
|
|
489
|
-
},
|
|
490
|
-
toProto(message) {
|
|
491
|
-
return QueryGetHostZoneResponse.encode(message).finish();
|
|
492
|
-
},
|
|
493
|
-
toProtoMsg(message) {
|
|
494
|
-
return {
|
|
495
|
-
typeUrl: '/stride.stakeibc.QueryGetHostZoneResponse',
|
|
496
|
-
value: QueryGetHostZoneResponse.encode(message).finish(),
|
|
497
|
-
};
|
|
498
|
-
},
|
|
499
|
-
};
|
|
500
|
-
function createBaseQueryAllHostZoneRequest() {
|
|
501
|
-
return {
|
|
502
|
-
pagination: undefined,
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
export const QueryAllHostZoneRequest = {
|
|
506
|
-
typeUrl: '/stride.stakeibc.QueryAllHostZoneRequest',
|
|
507
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
508
|
-
if (message.pagination !== undefined) {
|
|
509
|
-
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
510
|
-
}
|
|
511
|
-
return writer;
|
|
512
|
-
},
|
|
513
|
-
decode(input, length) {
|
|
514
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
515
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
516
|
-
const message = createBaseQueryAllHostZoneRequest();
|
|
517
|
-
while (reader.pos < end) {
|
|
518
|
-
const tag = reader.uint32();
|
|
519
|
-
switch (tag >>> 3) {
|
|
520
|
-
case 1:
|
|
521
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
522
|
-
break;
|
|
523
|
-
default:
|
|
524
|
-
reader.skipType(tag & 7);
|
|
525
|
-
break;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
return message;
|
|
529
|
-
},
|
|
530
|
-
fromJSON(object) {
|
|
531
|
-
return {
|
|
532
|
-
pagination: isSet(object.pagination)
|
|
533
|
-
? PageRequest.fromJSON(object.pagination)
|
|
534
|
-
: undefined,
|
|
535
|
-
};
|
|
536
|
-
},
|
|
537
|
-
toJSON(message) {
|
|
538
|
-
const obj = {};
|
|
539
|
-
message.pagination !== undefined &&
|
|
540
|
-
(obj.pagination = message.pagination
|
|
541
|
-
? PageRequest.toJSON(message.pagination)
|
|
542
|
-
: undefined);
|
|
543
|
-
return obj;
|
|
544
|
-
},
|
|
545
|
-
fromPartial(object) {
|
|
546
|
-
const message = createBaseQueryAllHostZoneRequest();
|
|
547
|
-
message.pagination =
|
|
548
|
-
object.pagination !== undefined && object.pagination !== null
|
|
549
|
-
? PageRequest.fromPartial(object.pagination)
|
|
550
|
-
: undefined;
|
|
551
|
-
return message;
|
|
552
|
-
},
|
|
553
|
-
fromProtoMsg(message) {
|
|
554
|
-
return QueryAllHostZoneRequest.decode(message.value);
|
|
555
|
-
},
|
|
556
|
-
toProto(message) {
|
|
557
|
-
return QueryAllHostZoneRequest.encode(message).finish();
|
|
558
|
-
},
|
|
559
|
-
toProtoMsg(message) {
|
|
560
|
-
return {
|
|
561
|
-
typeUrl: '/stride.stakeibc.QueryAllHostZoneRequest',
|
|
562
|
-
value: QueryAllHostZoneRequest.encode(message).finish(),
|
|
563
|
-
};
|
|
564
|
-
},
|
|
565
|
-
};
|
|
566
|
-
function createBaseQueryAllHostZoneResponse() {
|
|
567
|
-
return {
|
|
568
|
-
hostZone: [],
|
|
569
|
-
pagination: undefined,
|
|
570
|
-
};
|
|
571
|
-
}
|
|
572
|
-
export const QueryAllHostZoneResponse = {
|
|
573
|
-
typeUrl: '/stride.stakeibc.QueryAllHostZoneResponse',
|
|
574
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
575
|
-
for (const v of message.hostZone) {
|
|
576
|
-
HostZone.encode(v, writer.uint32(10).fork()).ldelim();
|
|
577
|
-
}
|
|
578
|
-
if (message.pagination !== undefined) {
|
|
579
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
580
|
-
}
|
|
581
|
-
return writer;
|
|
582
|
-
},
|
|
583
|
-
decode(input, length) {
|
|
584
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
585
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
586
|
-
const message = createBaseQueryAllHostZoneResponse();
|
|
587
|
-
while (reader.pos < end) {
|
|
588
|
-
const tag = reader.uint32();
|
|
589
|
-
switch (tag >>> 3) {
|
|
590
|
-
case 1:
|
|
591
|
-
message.hostZone.push(HostZone.decode(reader, reader.uint32()));
|
|
592
|
-
break;
|
|
593
|
-
case 2:
|
|
594
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
595
|
-
break;
|
|
596
|
-
default:
|
|
597
|
-
reader.skipType(tag & 7);
|
|
598
|
-
break;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
return message;
|
|
602
|
-
},
|
|
603
|
-
fromJSON(object) {
|
|
604
|
-
return {
|
|
605
|
-
hostZone: Array.isArray(object?.hostZone)
|
|
606
|
-
? object.hostZone.map((e) => HostZone.fromJSON(e))
|
|
607
|
-
: [],
|
|
608
|
-
pagination: isSet(object.pagination)
|
|
609
|
-
? PageResponse.fromJSON(object.pagination)
|
|
610
|
-
: undefined,
|
|
611
|
-
};
|
|
612
|
-
},
|
|
613
|
-
toJSON(message) {
|
|
614
|
-
const obj = {};
|
|
615
|
-
if (message.hostZone) {
|
|
616
|
-
obj.hostZone = message.hostZone.map(e => e ? HostZone.toJSON(e) : undefined);
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
obj.hostZone = [];
|
|
620
|
-
}
|
|
621
|
-
message.pagination !== undefined &&
|
|
622
|
-
(obj.pagination = message.pagination
|
|
623
|
-
? PageResponse.toJSON(message.pagination)
|
|
624
|
-
: undefined);
|
|
625
|
-
return obj;
|
|
626
|
-
},
|
|
627
|
-
fromPartial(object) {
|
|
628
|
-
const message = createBaseQueryAllHostZoneResponse();
|
|
629
|
-
message.hostZone = object.hostZone?.map(e => HostZone.fromPartial(e)) || [];
|
|
630
|
-
message.pagination =
|
|
631
|
-
object.pagination !== undefined && object.pagination !== null
|
|
632
|
-
? PageResponse.fromPartial(object.pagination)
|
|
633
|
-
: undefined;
|
|
634
|
-
return message;
|
|
635
|
-
},
|
|
636
|
-
fromProtoMsg(message) {
|
|
637
|
-
return QueryAllHostZoneResponse.decode(message.value);
|
|
638
|
-
},
|
|
639
|
-
toProto(message) {
|
|
640
|
-
return QueryAllHostZoneResponse.encode(message).finish();
|
|
641
|
-
},
|
|
642
|
-
toProtoMsg(message) {
|
|
643
|
-
return {
|
|
644
|
-
typeUrl: '/stride.stakeibc.QueryAllHostZoneResponse',
|
|
645
|
-
value: QueryAllHostZoneResponse.encode(message).finish(),
|
|
646
|
-
};
|
|
647
|
-
},
|
|
648
|
-
};
|
|
649
|
-
function createBaseQueryModuleAddressRequest() {
|
|
650
|
-
return {
|
|
651
|
-
name: '',
|
|
652
|
-
};
|
|
653
|
-
}
|
|
654
|
-
export const QueryModuleAddressRequest = {
|
|
655
|
-
typeUrl: '/stride.stakeibc.QueryModuleAddressRequest',
|
|
656
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
657
|
-
if (message.name !== '') {
|
|
658
|
-
writer.uint32(10).string(message.name);
|
|
659
|
-
}
|
|
660
|
-
return writer;
|
|
661
|
-
},
|
|
662
|
-
decode(input, length) {
|
|
663
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
664
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
665
|
-
const message = createBaseQueryModuleAddressRequest();
|
|
666
|
-
while (reader.pos < end) {
|
|
667
|
-
const tag = reader.uint32();
|
|
668
|
-
switch (tag >>> 3) {
|
|
669
|
-
case 1:
|
|
670
|
-
message.name = reader.string();
|
|
671
|
-
break;
|
|
672
|
-
default:
|
|
673
|
-
reader.skipType(tag & 7);
|
|
674
|
-
break;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
return message;
|
|
678
|
-
},
|
|
679
|
-
fromJSON(object) {
|
|
680
|
-
return {
|
|
681
|
-
name: isSet(object.name) ? String(object.name) : '',
|
|
682
|
-
};
|
|
683
|
-
},
|
|
684
|
-
toJSON(message) {
|
|
685
|
-
const obj = {};
|
|
686
|
-
message.name !== undefined && (obj.name = message.name);
|
|
687
|
-
return obj;
|
|
688
|
-
},
|
|
689
|
-
fromPartial(object) {
|
|
690
|
-
const message = createBaseQueryModuleAddressRequest();
|
|
691
|
-
message.name = object.name ?? '';
|
|
692
|
-
return message;
|
|
693
|
-
},
|
|
694
|
-
fromProtoMsg(message) {
|
|
695
|
-
return QueryModuleAddressRequest.decode(message.value);
|
|
696
|
-
},
|
|
697
|
-
toProto(message) {
|
|
698
|
-
return QueryModuleAddressRequest.encode(message).finish();
|
|
699
|
-
},
|
|
700
|
-
toProtoMsg(message) {
|
|
701
|
-
return {
|
|
702
|
-
typeUrl: '/stride.stakeibc.QueryModuleAddressRequest',
|
|
703
|
-
value: QueryModuleAddressRequest.encode(message).finish(),
|
|
704
|
-
};
|
|
705
|
-
},
|
|
706
|
-
};
|
|
707
|
-
function createBaseQueryModuleAddressResponse() {
|
|
708
|
-
return {
|
|
709
|
-
addr: '',
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
export const QueryModuleAddressResponse = {
|
|
713
|
-
typeUrl: '/stride.stakeibc.QueryModuleAddressResponse',
|
|
714
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
715
|
-
if (message.addr !== '') {
|
|
716
|
-
writer.uint32(10).string(message.addr);
|
|
717
|
-
}
|
|
718
|
-
return writer;
|
|
719
|
-
},
|
|
720
|
-
decode(input, length) {
|
|
721
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
722
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
723
|
-
const message = createBaseQueryModuleAddressResponse();
|
|
724
|
-
while (reader.pos < end) {
|
|
725
|
-
const tag = reader.uint32();
|
|
726
|
-
switch (tag >>> 3) {
|
|
727
|
-
case 1:
|
|
728
|
-
message.addr = reader.string();
|
|
729
|
-
break;
|
|
730
|
-
default:
|
|
731
|
-
reader.skipType(tag & 7);
|
|
732
|
-
break;
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
return message;
|
|
736
|
-
},
|
|
737
|
-
fromJSON(object) {
|
|
738
|
-
return {
|
|
739
|
-
addr: isSet(object.addr) ? String(object.addr) : '',
|
|
740
|
-
};
|
|
741
|
-
},
|
|
742
|
-
toJSON(message) {
|
|
743
|
-
const obj = {};
|
|
744
|
-
message.addr !== undefined && (obj.addr = message.addr);
|
|
745
|
-
return obj;
|
|
746
|
-
},
|
|
747
|
-
fromPartial(object) {
|
|
748
|
-
const message = createBaseQueryModuleAddressResponse();
|
|
749
|
-
message.addr = object.addr ?? '';
|
|
750
|
-
return message;
|
|
751
|
-
},
|
|
752
|
-
fromProtoMsg(message) {
|
|
753
|
-
return QueryModuleAddressResponse.decode(message.value);
|
|
754
|
-
},
|
|
755
|
-
toProto(message) {
|
|
756
|
-
return QueryModuleAddressResponse.encode(message).finish();
|
|
757
|
-
},
|
|
758
|
-
toProtoMsg(message) {
|
|
759
|
-
return {
|
|
760
|
-
typeUrl: '/stride.stakeibc.QueryModuleAddressResponse',
|
|
761
|
-
value: QueryModuleAddressResponse.encode(message).finish(),
|
|
762
|
-
};
|
|
763
|
-
},
|
|
764
|
-
};
|
|
765
|
-
function createBaseQueryGetEpochTrackerRequest() {
|
|
766
|
-
return {
|
|
767
|
-
epochIdentifier: '',
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
export const QueryGetEpochTrackerRequest = {
|
|
771
|
-
typeUrl: '/stride.stakeibc.QueryGetEpochTrackerRequest',
|
|
772
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
773
|
-
if (message.epochIdentifier !== '') {
|
|
774
|
-
writer.uint32(10).string(message.epochIdentifier);
|
|
775
|
-
}
|
|
776
|
-
return writer;
|
|
777
|
-
},
|
|
778
|
-
decode(input, length) {
|
|
779
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
780
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
781
|
-
const message = createBaseQueryGetEpochTrackerRequest();
|
|
782
|
-
while (reader.pos < end) {
|
|
783
|
-
const tag = reader.uint32();
|
|
784
|
-
switch (tag >>> 3) {
|
|
785
|
-
case 1:
|
|
786
|
-
message.epochIdentifier = reader.string();
|
|
787
|
-
break;
|
|
788
|
-
default:
|
|
789
|
-
reader.skipType(tag & 7);
|
|
790
|
-
break;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
return message;
|
|
794
|
-
},
|
|
795
|
-
fromJSON(object) {
|
|
796
|
-
return {
|
|
797
|
-
epochIdentifier: isSet(object.epochIdentifier)
|
|
798
|
-
? String(object.epochIdentifier)
|
|
799
|
-
: '',
|
|
800
|
-
};
|
|
801
|
-
},
|
|
802
|
-
toJSON(message) {
|
|
803
|
-
const obj = {};
|
|
804
|
-
message.epochIdentifier !== undefined &&
|
|
805
|
-
(obj.epochIdentifier = message.epochIdentifier);
|
|
806
|
-
return obj;
|
|
807
|
-
},
|
|
808
|
-
fromPartial(object) {
|
|
809
|
-
const message = createBaseQueryGetEpochTrackerRequest();
|
|
810
|
-
message.epochIdentifier = object.epochIdentifier ?? '';
|
|
811
|
-
return message;
|
|
812
|
-
},
|
|
813
|
-
fromProtoMsg(message) {
|
|
814
|
-
return QueryGetEpochTrackerRequest.decode(message.value);
|
|
815
|
-
},
|
|
816
|
-
toProto(message) {
|
|
817
|
-
return QueryGetEpochTrackerRequest.encode(message).finish();
|
|
818
|
-
},
|
|
819
|
-
toProtoMsg(message) {
|
|
820
|
-
return {
|
|
821
|
-
typeUrl: '/stride.stakeibc.QueryGetEpochTrackerRequest',
|
|
822
|
-
value: QueryGetEpochTrackerRequest.encode(message).finish(),
|
|
823
|
-
};
|
|
824
|
-
},
|
|
825
|
-
};
|
|
826
|
-
function createBaseQueryGetEpochTrackerResponse() {
|
|
827
|
-
return {
|
|
828
|
-
epochTracker: EpochTracker.fromPartial({}),
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
export const QueryGetEpochTrackerResponse = {
|
|
832
|
-
typeUrl: '/stride.stakeibc.QueryGetEpochTrackerResponse',
|
|
833
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
834
|
-
if (message.epochTracker !== undefined) {
|
|
835
|
-
EpochTracker.encode(message.epochTracker, writer.uint32(10).fork()).ldelim();
|
|
836
|
-
}
|
|
837
|
-
return writer;
|
|
838
|
-
},
|
|
839
|
-
decode(input, length) {
|
|
840
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
841
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
842
|
-
const message = createBaseQueryGetEpochTrackerResponse();
|
|
843
|
-
while (reader.pos < end) {
|
|
844
|
-
const tag = reader.uint32();
|
|
845
|
-
switch (tag >>> 3) {
|
|
846
|
-
case 1:
|
|
847
|
-
message.epochTracker = EpochTracker.decode(reader, reader.uint32());
|
|
848
|
-
break;
|
|
849
|
-
default:
|
|
850
|
-
reader.skipType(tag & 7);
|
|
851
|
-
break;
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
return message;
|
|
855
|
-
},
|
|
856
|
-
fromJSON(object) {
|
|
857
|
-
return {
|
|
858
|
-
epochTracker: isSet(object.epochTracker)
|
|
859
|
-
? EpochTracker.fromJSON(object.epochTracker)
|
|
860
|
-
: undefined,
|
|
861
|
-
};
|
|
862
|
-
},
|
|
863
|
-
toJSON(message) {
|
|
864
|
-
const obj = {};
|
|
865
|
-
message.epochTracker !== undefined &&
|
|
866
|
-
(obj.epochTracker = message.epochTracker
|
|
867
|
-
? EpochTracker.toJSON(message.epochTracker)
|
|
868
|
-
: undefined);
|
|
869
|
-
return obj;
|
|
870
|
-
},
|
|
871
|
-
fromPartial(object) {
|
|
872
|
-
const message = createBaseQueryGetEpochTrackerResponse();
|
|
873
|
-
message.epochTracker =
|
|
874
|
-
object.epochTracker !== undefined && object.epochTracker !== null
|
|
875
|
-
? EpochTracker.fromPartial(object.epochTracker)
|
|
876
|
-
: undefined;
|
|
877
|
-
return message;
|
|
878
|
-
},
|
|
879
|
-
fromProtoMsg(message) {
|
|
880
|
-
return QueryGetEpochTrackerResponse.decode(message.value);
|
|
881
|
-
},
|
|
882
|
-
toProto(message) {
|
|
883
|
-
return QueryGetEpochTrackerResponse.encode(message).finish();
|
|
884
|
-
},
|
|
885
|
-
toProtoMsg(message) {
|
|
886
|
-
return {
|
|
887
|
-
typeUrl: '/stride.stakeibc.QueryGetEpochTrackerResponse',
|
|
888
|
-
value: QueryGetEpochTrackerResponse.encode(message).finish(),
|
|
889
|
-
};
|
|
890
|
-
},
|
|
891
|
-
};
|
|
892
|
-
function createBaseQueryAllEpochTrackerRequest() {
|
|
893
|
-
return {};
|
|
894
|
-
}
|
|
895
|
-
export const QueryAllEpochTrackerRequest = {
|
|
896
|
-
typeUrl: '/stride.stakeibc.QueryAllEpochTrackerRequest',
|
|
897
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
898
|
-
return writer;
|
|
899
|
-
},
|
|
900
|
-
decode(input, length) {
|
|
901
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
902
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
903
|
-
const message = createBaseQueryAllEpochTrackerRequest();
|
|
904
|
-
while (reader.pos < end) {
|
|
905
|
-
const tag = reader.uint32();
|
|
906
|
-
switch (tag >>> 3) {
|
|
907
|
-
default:
|
|
908
|
-
reader.skipType(tag & 7);
|
|
909
|
-
break;
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
return message;
|
|
913
|
-
},
|
|
914
|
-
fromJSON(_) {
|
|
915
|
-
return {};
|
|
916
|
-
},
|
|
917
|
-
toJSON(_) {
|
|
918
|
-
const obj = {};
|
|
919
|
-
return obj;
|
|
920
|
-
},
|
|
921
|
-
fromPartial(_) {
|
|
922
|
-
const message = createBaseQueryAllEpochTrackerRequest();
|
|
923
|
-
return message;
|
|
924
|
-
},
|
|
925
|
-
fromProtoMsg(message) {
|
|
926
|
-
return QueryAllEpochTrackerRequest.decode(message.value);
|
|
927
|
-
},
|
|
928
|
-
toProto(message) {
|
|
929
|
-
return QueryAllEpochTrackerRequest.encode(message).finish();
|
|
930
|
-
},
|
|
931
|
-
toProtoMsg(message) {
|
|
932
|
-
return {
|
|
933
|
-
typeUrl: '/stride.stakeibc.QueryAllEpochTrackerRequest',
|
|
934
|
-
value: QueryAllEpochTrackerRequest.encode(message).finish(),
|
|
935
|
-
};
|
|
936
|
-
},
|
|
937
|
-
};
|
|
938
|
-
function createBaseQueryAllEpochTrackerResponse() {
|
|
939
|
-
return {
|
|
940
|
-
epochTracker: [],
|
|
941
|
-
};
|
|
942
|
-
}
|
|
943
|
-
export const QueryAllEpochTrackerResponse = {
|
|
944
|
-
typeUrl: '/stride.stakeibc.QueryAllEpochTrackerResponse',
|
|
945
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
946
|
-
for (const v of message.epochTracker) {
|
|
947
|
-
EpochTracker.encode(v, writer.uint32(10).fork()).ldelim();
|
|
948
|
-
}
|
|
949
|
-
return writer;
|
|
950
|
-
},
|
|
951
|
-
decode(input, length) {
|
|
952
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
953
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
954
|
-
const message = createBaseQueryAllEpochTrackerResponse();
|
|
955
|
-
while (reader.pos < end) {
|
|
956
|
-
const tag = reader.uint32();
|
|
957
|
-
switch (tag >>> 3) {
|
|
958
|
-
case 1:
|
|
959
|
-
message.epochTracker.push(EpochTracker.decode(reader, reader.uint32()));
|
|
960
|
-
break;
|
|
961
|
-
default:
|
|
962
|
-
reader.skipType(tag & 7);
|
|
963
|
-
break;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
return message;
|
|
967
|
-
},
|
|
968
|
-
fromJSON(object) {
|
|
969
|
-
return {
|
|
970
|
-
epochTracker: Array.isArray(object?.epochTracker)
|
|
971
|
-
? object.epochTracker.map((e) => EpochTracker.fromJSON(e))
|
|
972
|
-
: [],
|
|
973
|
-
};
|
|
974
|
-
},
|
|
975
|
-
toJSON(message) {
|
|
976
|
-
const obj = {};
|
|
977
|
-
if (message.epochTracker) {
|
|
978
|
-
obj.epochTracker = message.epochTracker.map(e => e ? EpochTracker.toJSON(e) : undefined);
|
|
979
|
-
}
|
|
980
|
-
else {
|
|
981
|
-
obj.epochTracker = [];
|
|
982
|
-
}
|
|
983
|
-
return obj;
|
|
984
|
-
},
|
|
985
|
-
fromPartial(object) {
|
|
986
|
-
const message = createBaseQueryAllEpochTrackerResponse();
|
|
987
|
-
message.epochTracker =
|
|
988
|
-
object.epochTracker?.map(e => EpochTracker.fromPartial(e)) || [];
|
|
989
|
-
return message;
|
|
990
|
-
},
|
|
991
|
-
fromProtoMsg(message) {
|
|
992
|
-
return QueryAllEpochTrackerResponse.decode(message.value);
|
|
993
|
-
},
|
|
994
|
-
toProto(message) {
|
|
995
|
-
return QueryAllEpochTrackerResponse.encode(message).finish();
|
|
996
|
-
},
|
|
997
|
-
toProtoMsg(message) {
|
|
998
|
-
return {
|
|
999
|
-
typeUrl: '/stride.stakeibc.QueryAllEpochTrackerResponse',
|
|
1000
|
-
value: QueryAllEpochTrackerResponse.encode(message).finish(),
|
|
1001
|
-
};
|
|
1002
|
-
},
|
|
1003
|
-
};
|
|
1004
|
-
function createBaseQueryGetNextPacketSequenceRequest() {
|
|
1005
|
-
return {
|
|
1006
|
-
channelId: '',
|
|
1007
|
-
portId: '',
|
|
1008
|
-
};
|
|
1009
|
-
}
|
|
1010
|
-
export const QueryGetNextPacketSequenceRequest = {
|
|
1011
|
-
typeUrl: '/stride.stakeibc.QueryGetNextPacketSequenceRequest',
|
|
1012
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1013
|
-
if (message.channelId !== '') {
|
|
1014
|
-
writer.uint32(10).string(message.channelId);
|
|
1015
|
-
}
|
|
1016
|
-
if (message.portId !== '') {
|
|
1017
|
-
writer.uint32(18).string(message.portId);
|
|
1018
|
-
}
|
|
1019
|
-
return writer;
|
|
1020
|
-
},
|
|
1021
|
-
decode(input, length) {
|
|
1022
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1023
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1024
|
-
const message = createBaseQueryGetNextPacketSequenceRequest();
|
|
1025
|
-
while (reader.pos < end) {
|
|
1026
|
-
const tag = reader.uint32();
|
|
1027
|
-
switch (tag >>> 3) {
|
|
1028
|
-
case 1:
|
|
1029
|
-
message.channelId = reader.string();
|
|
1030
|
-
break;
|
|
1031
|
-
case 2:
|
|
1032
|
-
message.portId = reader.string();
|
|
1033
|
-
break;
|
|
1034
|
-
default:
|
|
1035
|
-
reader.skipType(tag & 7);
|
|
1036
|
-
break;
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
return message;
|
|
1040
|
-
},
|
|
1041
|
-
fromJSON(object) {
|
|
1042
|
-
return {
|
|
1043
|
-
channelId: isSet(object.channelId) ? String(object.channelId) : '',
|
|
1044
|
-
portId: isSet(object.portId) ? String(object.portId) : '',
|
|
1045
|
-
};
|
|
1046
|
-
},
|
|
1047
|
-
toJSON(message) {
|
|
1048
|
-
const obj = {};
|
|
1049
|
-
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
1050
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
1051
|
-
return obj;
|
|
1052
|
-
},
|
|
1053
|
-
fromPartial(object) {
|
|
1054
|
-
const message = createBaseQueryGetNextPacketSequenceRequest();
|
|
1055
|
-
message.channelId = object.channelId ?? '';
|
|
1056
|
-
message.portId = object.portId ?? '';
|
|
1057
|
-
return message;
|
|
1058
|
-
},
|
|
1059
|
-
fromProtoMsg(message) {
|
|
1060
|
-
return QueryGetNextPacketSequenceRequest.decode(message.value);
|
|
1061
|
-
},
|
|
1062
|
-
toProto(message) {
|
|
1063
|
-
return QueryGetNextPacketSequenceRequest.encode(message).finish();
|
|
1064
|
-
},
|
|
1065
|
-
toProtoMsg(message) {
|
|
1066
|
-
return {
|
|
1067
|
-
typeUrl: '/stride.stakeibc.QueryGetNextPacketSequenceRequest',
|
|
1068
|
-
value: QueryGetNextPacketSequenceRequest.encode(message).finish(),
|
|
1069
|
-
};
|
|
1070
|
-
},
|
|
1071
|
-
};
|
|
1072
|
-
function createBaseQueryGetNextPacketSequenceResponse() {
|
|
1073
|
-
return {
|
|
1074
|
-
sequence: BigInt(0),
|
|
1075
|
-
};
|
|
1076
|
-
}
|
|
1077
|
-
export const QueryGetNextPacketSequenceResponse = {
|
|
1078
|
-
typeUrl: '/stride.stakeibc.QueryGetNextPacketSequenceResponse',
|
|
1079
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1080
|
-
if (message.sequence !== BigInt(0)) {
|
|
1081
|
-
writer.uint32(8).uint64(message.sequence);
|
|
1082
|
-
}
|
|
1083
|
-
return writer;
|
|
1084
|
-
},
|
|
1085
|
-
decode(input, length) {
|
|
1086
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1087
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1088
|
-
const message = createBaseQueryGetNextPacketSequenceResponse();
|
|
1089
|
-
while (reader.pos < end) {
|
|
1090
|
-
const tag = reader.uint32();
|
|
1091
|
-
switch (tag >>> 3) {
|
|
1092
|
-
case 1:
|
|
1093
|
-
message.sequence = reader.uint64();
|
|
1094
|
-
break;
|
|
1095
|
-
default:
|
|
1096
|
-
reader.skipType(tag & 7);
|
|
1097
|
-
break;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
return message;
|
|
1101
|
-
},
|
|
1102
|
-
fromJSON(object) {
|
|
1103
|
-
return {
|
|
1104
|
-
sequence: isSet(object.sequence)
|
|
1105
|
-
? BigInt(object.sequence.toString())
|
|
1106
|
-
: BigInt(0),
|
|
1107
|
-
};
|
|
1108
|
-
},
|
|
1109
|
-
toJSON(message) {
|
|
1110
|
-
const obj = {};
|
|
1111
|
-
message.sequence !== undefined &&
|
|
1112
|
-
(obj.sequence = (message.sequence || BigInt(0)).toString());
|
|
1113
|
-
return obj;
|
|
1114
|
-
},
|
|
1115
|
-
fromPartial(object) {
|
|
1116
|
-
const message = createBaseQueryGetNextPacketSequenceResponse();
|
|
1117
|
-
message.sequence =
|
|
1118
|
-
object.sequence !== undefined && object.sequence !== null
|
|
1119
|
-
? BigInt(object.sequence.toString())
|
|
1120
|
-
: BigInt(0);
|
|
1121
|
-
return message;
|
|
1122
|
-
},
|
|
1123
|
-
fromProtoMsg(message) {
|
|
1124
|
-
return QueryGetNextPacketSequenceResponse.decode(message.value);
|
|
1125
|
-
},
|
|
1126
|
-
toProto(message) {
|
|
1127
|
-
return QueryGetNextPacketSequenceResponse.encode(message).finish();
|
|
1128
|
-
},
|
|
1129
|
-
toProtoMsg(message) {
|
|
1130
|
-
return {
|
|
1131
|
-
typeUrl: '/stride.stakeibc.QueryGetNextPacketSequenceResponse',
|
|
1132
|
-
value: QueryGetNextPacketSequenceResponse.encode(message).finish(),
|
|
1133
|
-
};
|
|
1134
|
-
},
|
|
1135
|
-
};
|
|
1136
|
-
function createBaseQueryAddressUnbondings() {
|
|
1137
|
-
return {
|
|
1138
|
-
address: '',
|
|
1139
|
-
};
|
|
1140
|
-
}
|
|
1141
|
-
export const QueryAddressUnbondings = {
|
|
1142
|
-
typeUrl: '/stride.stakeibc.QueryAddressUnbondings',
|
|
1143
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1144
|
-
if (message.address !== '') {
|
|
1145
|
-
writer.uint32(10).string(message.address);
|
|
1146
|
-
}
|
|
1147
|
-
return writer;
|
|
1148
|
-
},
|
|
1149
|
-
decode(input, length) {
|
|
1150
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1151
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1152
|
-
const message = createBaseQueryAddressUnbondings();
|
|
1153
|
-
while (reader.pos < end) {
|
|
1154
|
-
const tag = reader.uint32();
|
|
1155
|
-
switch (tag >>> 3) {
|
|
1156
|
-
case 1:
|
|
1157
|
-
message.address = reader.string();
|
|
1158
|
-
break;
|
|
1159
|
-
default:
|
|
1160
|
-
reader.skipType(tag & 7);
|
|
1161
|
-
break;
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
return message;
|
|
1165
|
-
},
|
|
1166
|
-
fromJSON(object) {
|
|
1167
|
-
return {
|
|
1168
|
-
address: isSet(object.address) ? String(object.address) : '',
|
|
1169
|
-
};
|
|
1170
|
-
},
|
|
1171
|
-
toJSON(message) {
|
|
1172
|
-
const obj = {};
|
|
1173
|
-
message.address !== undefined && (obj.address = message.address);
|
|
1174
|
-
return obj;
|
|
1175
|
-
},
|
|
1176
|
-
fromPartial(object) {
|
|
1177
|
-
const message = createBaseQueryAddressUnbondings();
|
|
1178
|
-
message.address = object.address ?? '';
|
|
1179
|
-
return message;
|
|
1180
|
-
},
|
|
1181
|
-
fromProtoMsg(message) {
|
|
1182
|
-
return QueryAddressUnbondings.decode(message.value);
|
|
1183
|
-
},
|
|
1184
|
-
toProto(message) {
|
|
1185
|
-
return QueryAddressUnbondings.encode(message).finish();
|
|
1186
|
-
},
|
|
1187
|
-
toProtoMsg(message) {
|
|
1188
|
-
return {
|
|
1189
|
-
typeUrl: '/stride.stakeibc.QueryAddressUnbondings',
|
|
1190
|
-
value: QueryAddressUnbondings.encode(message).finish(),
|
|
1191
|
-
};
|
|
1192
|
-
},
|
|
1193
|
-
};
|
|
1194
|
-
function createBaseQueryAddressUnbondingsResponse() {
|
|
1195
|
-
return {
|
|
1196
|
-
addressUnbondings: [],
|
|
1197
|
-
};
|
|
1198
|
-
}
|
|
1199
|
-
export const QueryAddressUnbondingsResponse = {
|
|
1200
|
-
typeUrl: '/stride.stakeibc.QueryAddressUnbondingsResponse',
|
|
1201
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1202
|
-
for (const v of message.addressUnbondings) {
|
|
1203
|
-
AddressUnbonding.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1204
|
-
}
|
|
1205
|
-
return writer;
|
|
1206
|
-
},
|
|
1207
|
-
decode(input, length) {
|
|
1208
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1209
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1210
|
-
const message = createBaseQueryAddressUnbondingsResponse();
|
|
1211
|
-
while (reader.pos < end) {
|
|
1212
|
-
const tag = reader.uint32();
|
|
1213
|
-
switch (tag >>> 3) {
|
|
1214
|
-
case 1:
|
|
1215
|
-
message.addressUnbondings.push(AddressUnbonding.decode(reader, reader.uint32()));
|
|
1216
|
-
break;
|
|
1217
|
-
default:
|
|
1218
|
-
reader.skipType(tag & 7);
|
|
1219
|
-
break;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
return message;
|
|
1223
|
-
},
|
|
1224
|
-
fromJSON(object) {
|
|
1225
|
-
return {
|
|
1226
|
-
addressUnbondings: Array.isArray(object?.addressUnbondings)
|
|
1227
|
-
? object.addressUnbondings.map((e) => AddressUnbonding.fromJSON(e))
|
|
1228
|
-
: [],
|
|
1229
|
-
};
|
|
1230
|
-
},
|
|
1231
|
-
toJSON(message) {
|
|
1232
|
-
const obj = {};
|
|
1233
|
-
if (message.addressUnbondings) {
|
|
1234
|
-
obj.addressUnbondings = message.addressUnbondings.map(e => e ? AddressUnbonding.toJSON(e) : undefined);
|
|
1235
|
-
}
|
|
1236
|
-
else {
|
|
1237
|
-
obj.addressUnbondings = [];
|
|
1238
|
-
}
|
|
1239
|
-
return obj;
|
|
1240
|
-
},
|
|
1241
|
-
fromPartial(object) {
|
|
1242
|
-
const message = createBaseQueryAddressUnbondingsResponse();
|
|
1243
|
-
message.addressUnbondings =
|
|
1244
|
-
object.addressUnbondings?.map(e => AddressUnbonding.fromPartial(e)) || [];
|
|
1245
|
-
return message;
|
|
1246
|
-
},
|
|
1247
|
-
fromProtoMsg(message) {
|
|
1248
|
-
return QueryAddressUnbondingsResponse.decode(message.value);
|
|
1249
|
-
},
|
|
1250
|
-
toProto(message) {
|
|
1251
|
-
return QueryAddressUnbondingsResponse.encode(message).finish();
|
|
1252
|
-
},
|
|
1253
|
-
toProtoMsg(message) {
|
|
1254
|
-
return {
|
|
1255
|
-
typeUrl: '/stride.stakeibc.QueryAddressUnbondingsResponse',
|
|
1256
|
-
value: QueryAddressUnbondingsResponse.encode(message).finish(),
|
|
1257
|
-
};
|
|
1258
|
-
},
|
|
1259
|
-
};
|
|
1260
|
-
function createBaseQueryAllTradeRoutes() {
|
|
1261
|
-
return {};
|
|
1262
|
-
}
|
|
1263
|
-
export const QueryAllTradeRoutes = {
|
|
1264
|
-
typeUrl: '/stride.stakeibc.QueryAllTradeRoutes',
|
|
1265
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1266
|
-
return writer;
|
|
1267
|
-
},
|
|
1268
|
-
decode(input, length) {
|
|
1269
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1270
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1271
|
-
const message = createBaseQueryAllTradeRoutes();
|
|
1272
|
-
while (reader.pos < end) {
|
|
1273
|
-
const tag = reader.uint32();
|
|
1274
|
-
switch (tag >>> 3) {
|
|
1275
|
-
default:
|
|
1276
|
-
reader.skipType(tag & 7);
|
|
1277
|
-
break;
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
return message;
|
|
1281
|
-
},
|
|
1282
|
-
fromJSON(_) {
|
|
1283
|
-
return {};
|
|
1284
|
-
},
|
|
1285
|
-
toJSON(_) {
|
|
1286
|
-
const obj = {};
|
|
1287
|
-
return obj;
|
|
1288
|
-
},
|
|
1289
|
-
fromPartial(_) {
|
|
1290
|
-
const message = createBaseQueryAllTradeRoutes();
|
|
1291
|
-
return message;
|
|
1292
|
-
},
|
|
1293
|
-
fromProtoMsg(message) {
|
|
1294
|
-
return QueryAllTradeRoutes.decode(message.value);
|
|
1295
|
-
},
|
|
1296
|
-
toProto(message) {
|
|
1297
|
-
return QueryAllTradeRoutes.encode(message).finish();
|
|
1298
|
-
},
|
|
1299
|
-
toProtoMsg(message) {
|
|
1300
|
-
return {
|
|
1301
|
-
typeUrl: '/stride.stakeibc.QueryAllTradeRoutes',
|
|
1302
|
-
value: QueryAllTradeRoutes.encode(message).finish(),
|
|
1303
|
-
};
|
|
1304
|
-
},
|
|
1305
|
-
};
|
|
1306
|
-
function createBaseQueryAllTradeRoutesResponse() {
|
|
1307
|
-
return {
|
|
1308
|
-
tradeRoutes: [],
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
export const QueryAllTradeRoutesResponse = {
|
|
1312
|
-
typeUrl: '/stride.stakeibc.QueryAllTradeRoutesResponse',
|
|
1313
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1314
|
-
for (const v of message.tradeRoutes) {
|
|
1315
|
-
TradeRoute.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1316
|
-
}
|
|
1317
|
-
return writer;
|
|
1318
|
-
},
|
|
1319
|
-
decode(input, length) {
|
|
1320
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1321
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1322
|
-
const message = createBaseQueryAllTradeRoutesResponse();
|
|
1323
|
-
while (reader.pos < end) {
|
|
1324
|
-
const tag = reader.uint32();
|
|
1325
|
-
switch (tag >>> 3) {
|
|
1326
|
-
case 1:
|
|
1327
|
-
message.tradeRoutes.push(TradeRoute.decode(reader, reader.uint32()));
|
|
1328
|
-
break;
|
|
1329
|
-
default:
|
|
1330
|
-
reader.skipType(tag & 7);
|
|
1331
|
-
break;
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
return message;
|
|
1335
|
-
},
|
|
1336
|
-
fromJSON(object) {
|
|
1337
|
-
return {
|
|
1338
|
-
tradeRoutes: Array.isArray(object?.tradeRoutes)
|
|
1339
|
-
? object.tradeRoutes.map((e) => TradeRoute.fromJSON(e))
|
|
1340
|
-
: [],
|
|
1341
|
-
};
|
|
1342
|
-
},
|
|
1343
|
-
toJSON(message) {
|
|
1344
|
-
const obj = {};
|
|
1345
|
-
if (message.tradeRoutes) {
|
|
1346
|
-
obj.tradeRoutes = message.tradeRoutes.map(e => e ? TradeRoute.toJSON(e) : undefined);
|
|
1347
|
-
}
|
|
1348
|
-
else {
|
|
1349
|
-
obj.tradeRoutes = [];
|
|
1350
|
-
}
|
|
1351
|
-
return obj;
|
|
1352
|
-
},
|
|
1353
|
-
fromPartial(object) {
|
|
1354
|
-
const message = createBaseQueryAllTradeRoutesResponse();
|
|
1355
|
-
message.tradeRoutes =
|
|
1356
|
-
object.tradeRoutes?.map(e => TradeRoute.fromPartial(e)) || [];
|
|
1357
|
-
return message;
|
|
1358
|
-
},
|
|
1359
|
-
fromProtoMsg(message) {
|
|
1360
|
-
return QueryAllTradeRoutesResponse.decode(message.value);
|
|
1361
|
-
},
|
|
1362
|
-
toProto(message) {
|
|
1363
|
-
return QueryAllTradeRoutesResponse.encode(message).finish();
|
|
1364
|
-
},
|
|
1365
|
-
toProtoMsg(message) {
|
|
1366
|
-
return {
|
|
1367
|
-
typeUrl: '/stride.stakeibc.QueryAllTradeRoutesResponse',
|
|
1368
|
-
value: QueryAllTradeRoutesResponse.encode(message).finish(),
|
|
1369
|
-
};
|
|
1370
|
-
},
|
|
1371
|
-
};
|
|
1372
|
-
//# sourceMappingURL=query.js.map
|
|
1
|
+
import{PageRequest as e,PageResponse as o}from"../../cosmos/base/query/v1beta1/pagination.js";import{Params as t}from"./params.js";import{Validator as r}from"./validator.js";import{HostZone as n}from"./host_zone.js";import{EpochTracker as s}from"./epoch_tracker.js";import{AddressUnbonding as i}from"./address_unbonding.js";import{TradeRoute as d}from"./trade_route.js";import{BinaryReader as c,BinaryWriter as a}from"../../binary.js";import{isSet as u}from"../../helpers.js";import{}from"../../json-safe.js";export const QueryInterchainAccountFromAddressRequest={typeUrl:"/stride.stakeibc.QueryInterchainAccountFromAddressRequest",encode:(e,o=a.create())=>(""!==e.owner&&o.uint32(10).string(e.owner),""!==e.connectionId&&o.uint32(18).string(e.connectionId),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={owner:"",connectionId:""};for(;t.pos<r;){const e=t.uint32();switch(e>>>3){case 1:n.owner=t.string();break;case 2:n.connectionId=t.string();break;default:t.skipType(7&e)}}return n},fromJSON:e=>({owner:u(e.owner)?String(e.owner):"",connectionId:u(e.connectionId)?String(e.connectionId):""}),toJSON(e){const o={};return void 0!==e.owner&&(o.owner=e.owner),void 0!==e.connectionId&&(o.connectionId=e.connectionId),o},fromPartial(e){const o={owner:"",connectionId:""};return o.owner=e.owner??"",o.connectionId=e.connectionId??"",o},fromProtoMsg:e=>QueryInterchainAccountFromAddressRequest.decode(e.value),toProto:e=>QueryInterchainAccountFromAddressRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryInterchainAccountFromAddressRequest",value:QueryInterchainAccountFromAddressRequest.encode(e).finish()})};export const QueryInterchainAccountFromAddressResponse={typeUrl:"/stride.stakeibc.QueryInterchainAccountFromAddressResponse",encode:(e,o=a.create())=>(""!==e.interchainAccountAddress&&o.uint32(10).string(e.interchainAccountAddress),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={interchainAccountAddress:""};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.interchainAccountAddress=t.string();else t.skipType(7&e)}return n},fromJSON:e=>({interchainAccountAddress:u(e.interchainAccountAddress)?String(e.interchainAccountAddress):""}),toJSON(e){const o={};return void 0!==e.interchainAccountAddress&&(o.interchainAccountAddress=e.interchainAccountAddress),o},fromPartial(e){const o={interchainAccountAddress:""};return o.interchainAccountAddress=e.interchainAccountAddress??"",o},fromProtoMsg:e=>QueryInterchainAccountFromAddressResponse.decode(e.value),toProto:e=>QueryInterchainAccountFromAddressResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryInterchainAccountFromAddressResponse",value:QueryInterchainAccountFromAddressResponse.encode(e).finish()})};export const QueryParamsRequest={typeUrl:"/stride.stakeibc.QueryParamsRequest",encode:(e,o=a.create())=>o,decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={};for(;t.pos<r;){const e=t.uint32();t.skipType(7&e)}return n},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>QueryParamsRequest.decode(e.value),toProto:e=>QueryParamsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryParamsRequest",value:QueryParamsRequest.encode(e).finish()})};function p(){return{params:t.fromPartial({})}}export const QueryParamsResponse={typeUrl:"/stride.stakeibc.QueryParamsResponse",encode:(e,o=a.create())=>(void 0!==e.params&&t.encode(e.params,o.uint32(10).fork()).ldelim(),o),decode(e,o){const r=e instanceof c?e:new c(e);let n=void 0===o?r.len:r.pos+o;const s=p();for(;r.pos<n;){const e=r.uint32();if(e>>>3==1)s.params=t.decode(r,r.uint32());else r.skipType(7&e)}return s},fromJSON:e=>({params:u(e.params)?t.fromJSON(e.params):void 0}),toJSON(e){const o={};return void 0!==e.params&&(o.params=e.params?t.toJSON(e.params):void 0),o},fromPartial(e){const o=p();return o.params=void 0!==e.params&&null!==e.params?t.fromPartial(e.params):void 0,o},fromProtoMsg:e=>QueryParamsResponse.decode(e.value),toProto:e=>QueryParamsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryParamsResponse",value:QueryParamsResponse.encode(e).finish()})};export const QueryGetValidatorsRequest={typeUrl:"/stride.stakeibc.QueryGetValidatorsRequest",encode:(e,o=a.create())=>(""!==e.chainId&&o.uint32(10).string(e.chainId),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={chainId:""};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.chainId=t.string();else t.skipType(7&e)}return n},fromJSON:e=>({chainId:u(e.chainId)?String(e.chainId):""}),toJSON(e){const o={};return void 0!==e.chainId&&(o.chainId=e.chainId),o},fromPartial(e){const o={chainId:""};return o.chainId=e.chainId??"",o},fromProtoMsg:e=>QueryGetValidatorsRequest.decode(e.value),toProto:e=>QueryGetValidatorsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryGetValidatorsRequest",value:QueryGetValidatorsRequest.encode(e).finish()})};export const QueryGetValidatorsResponse={typeUrl:"/stride.stakeibc.QueryGetValidatorsResponse",encode(e,o=a.create()){for(const t of e.validators)r.encode(t,o.uint32(10).fork()).ldelim();return o},decode(e,o){const t=e instanceof c?e:new c(e);let n=void 0===o?t.len:t.pos+o;const s={validators:[]};for(;t.pos<n;){const e=t.uint32();if(e>>>3==1)s.validators.push(r.decode(t,t.uint32()));else t.skipType(7&e)}return s},fromJSON:e=>({validators:Array.isArray(e?.validators)?e.validators.map((e=>r.fromJSON(e))):[]}),toJSON(e){const o={};return e.validators?o.validators=e.validators.map((e=>e?r.toJSON(e):void 0)):o.validators=[],o},fromPartial(e){const o={validators:[]};return o.validators=e.validators?.map((e=>r.fromPartial(e)))||[],o},fromProtoMsg:e=>QueryGetValidatorsResponse.decode(e.value),toProto:e=>QueryGetValidatorsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryGetValidatorsResponse",value:QueryGetValidatorsResponse.encode(e).finish()})};export const QueryGetHostZoneRequest={typeUrl:"/stride.stakeibc.QueryGetHostZoneRequest",encode:(e,o=a.create())=>(""!==e.chainId&&o.uint32(10).string(e.chainId),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={chainId:""};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.chainId=t.string();else t.skipType(7&e)}return n},fromJSON:e=>({chainId:u(e.chainId)?String(e.chainId):""}),toJSON(e){const o={};return void 0!==e.chainId&&(o.chainId=e.chainId),o},fromPartial(e){const o={chainId:""};return o.chainId=e.chainId??"",o},fromProtoMsg:e=>QueryGetHostZoneRequest.decode(e.value),toProto:e=>QueryGetHostZoneRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryGetHostZoneRequest",value:QueryGetHostZoneRequest.encode(e).finish()})};function l(){return{hostZone:n.fromPartial({})}}export const QueryGetHostZoneResponse={typeUrl:"/stride.stakeibc.QueryGetHostZoneResponse",encode:(e,o=a.create())=>(void 0!==e.hostZone&&n.encode(e.hostZone,o.uint32(10).fork()).ldelim(),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const s=l();for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)s.hostZone=n.decode(t,t.uint32());else t.skipType(7&e)}return s},fromJSON:e=>({hostZone:u(e.hostZone)?n.fromJSON(e.hostZone):void 0}),toJSON(e){const o={};return void 0!==e.hostZone&&(o.hostZone=e.hostZone?n.toJSON(e.hostZone):void 0),o},fromPartial(e){const o=l();return o.hostZone=void 0!==e.hostZone&&null!==e.hostZone?n.fromPartial(e.hostZone):void 0,o},fromProtoMsg:e=>QueryGetHostZoneResponse.decode(e.value),toProto:e=>QueryGetHostZoneResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryGetHostZoneResponse",value:QueryGetHostZoneResponse.encode(e).finish()})};export const QueryAllHostZoneRequest={typeUrl:"/stride.stakeibc.QueryAllHostZoneRequest",encode:(o,t=a.create())=>(void 0!==o.pagination&&e.encode(o.pagination,t.uint32(10).fork()).ldelim(),t),decode(o,t){const r=o instanceof c?o:new c(o);let n=void 0===t?r.len:r.pos+t;const s={pagination:void 0};for(;r.pos<n;){const o=r.uint32();if(o>>>3==1)s.pagination=e.decode(r,r.uint32());else r.skipType(7&o)}return s},fromJSON:o=>({pagination:u(o.pagination)?e.fromJSON(o.pagination):void 0}),toJSON(o){const t={};return void 0!==o.pagination&&(t.pagination=o.pagination?e.toJSON(o.pagination):void 0),t},fromPartial(o){const t={pagination:void 0};return t.pagination=void 0!==o.pagination&&null!==o.pagination?e.fromPartial(o.pagination):void 0,t},fromProtoMsg:e=>QueryAllHostZoneRequest.decode(e.value),toProto:e=>QueryAllHostZoneRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryAllHostZoneRequest",value:QueryAllHostZoneRequest.encode(e).finish()})};export const QueryAllHostZoneResponse={typeUrl:"/stride.stakeibc.QueryAllHostZoneResponse",encode(e,t=a.create()){for(const o of e.hostZone)n.encode(o,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&o.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){const r=e instanceof c?e:new c(e);let s=void 0===t?r.len:r.pos+t;const i={hostZone:[],pagination:void 0};for(;r.pos<s;){const e=r.uint32();switch(e>>>3){case 1:i.hostZone.push(n.decode(r,r.uint32()));break;case 2:i.pagination=o.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON:e=>({hostZone:Array.isArray(e?.hostZone)?e.hostZone.map((e=>n.fromJSON(e))):[],pagination:u(e.pagination)?o.fromJSON(e.pagination):void 0}),toJSON(e){const t={};return e.hostZone?t.hostZone=e.hostZone.map((e=>e?n.toJSON(e):void 0)):t.hostZone=[],void 0!==e.pagination&&(t.pagination=e.pagination?o.toJSON(e.pagination):void 0),t},fromPartial(e){const t={hostZone:[],pagination:void 0};return t.hostZone=e.hostZone?.map((e=>n.fromPartial(e)))||[],t.pagination=void 0!==e.pagination&&null!==e.pagination?o.fromPartial(e.pagination):void 0,t},fromProtoMsg:e=>QueryAllHostZoneResponse.decode(e.value),toProto:e=>QueryAllHostZoneResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryAllHostZoneResponse",value:QueryAllHostZoneResponse.encode(e).finish()})};export const QueryModuleAddressRequest={typeUrl:"/stride.stakeibc.QueryModuleAddressRequest",encode:(e,o=a.create())=>(""!==e.name&&o.uint32(10).string(e.name),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={name:""};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.name=t.string();else t.skipType(7&e)}return n},fromJSON:e=>({name:u(e.name)?String(e.name):""}),toJSON(e){const o={};return void 0!==e.name&&(o.name=e.name),o},fromPartial(e){const o={name:""};return o.name=e.name??"",o},fromProtoMsg:e=>QueryModuleAddressRequest.decode(e.value),toProto:e=>QueryModuleAddressRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryModuleAddressRequest",value:QueryModuleAddressRequest.encode(e).finish()})};export const QueryModuleAddressResponse={typeUrl:"/stride.stakeibc.QueryModuleAddressResponse",encode:(e,o=a.create())=>(""!==e.addr&&o.uint32(10).string(e.addr),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={addr:""};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.addr=t.string();else t.skipType(7&e)}return n},fromJSON:e=>({addr:u(e.addr)?String(e.addr):""}),toJSON(e){const o={};return void 0!==e.addr&&(o.addr=e.addr),o},fromPartial(e){const o={addr:""};return o.addr=e.addr??"",o},fromProtoMsg:e=>QueryModuleAddressResponse.decode(e.value),toProto:e=>QueryModuleAddressResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryModuleAddressResponse",value:QueryModuleAddressResponse.encode(e).finish()})};export const QueryGetEpochTrackerRequest={typeUrl:"/stride.stakeibc.QueryGetEpochTrackerRequest",encode:(e,o=a.create())=>(""!==e.epochIdentifier&&o.uint32(10).string(e.epochIdentifier),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={epochIdentifier:""};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.epochIdentifier=t.string();else t.skipType(7&e)}return n},fromJSON:e=>({epochIdentifier:u(e.epochIdentifier)?String(e.epochIdentifier):""}),toJSON(e){const o={};return void 0!==e.epochIdentifier&&(o.epochIdentifier=e.epochIdentifier),o},fromPartial(e){const o={epochIdentifier:""};return o.epochIdentifier=e.epochIdentifier??"",o},fromProtoMsg:e=>QueryGetEpochTrackerRequest.decode(e.value),toProto:e=>QueryGetEpochTrackerRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryGetEpochTrackerRequest",value:QueryGetEpochTrackerRequest.encode(e).finish()})};function f(){return{epochTracker:s.fromPartial({})}}export const QueryGetEpochTrackerResponse={typeUrl:"/stride.stakeibc.QueryGetEpochTrackerResponse",encode:(e,o=a.create())=>(void 0!==e.epochTracker&&s.encode(e.epochTracker,o.uint32(10).fork()).ldelim(),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n=f();for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.epochTracker=s.decode(t,t.uint32());else t.skipType(7&e)}return n},fromJSON:e=>({epochTracker:u(e.epochTracker)?s.fromJSON(e.epochTracker):void 0}),toJSON(e){const o={};return void 0!==e.epochTracker&&(o.epochTracker=e.epochTracker?s.toJSON(e.epochTracker):void 0),o},fromPartial(e){const o=f();return o.epochTracker=void 0!==e.epochTracker&&null!==e.epochTracker?s.fromPartial(e.epochTracker):void 0,o},fromProtoMsg:e=>QueryGetEpochTrackerResponse.decode(e.value),toProto:e=>QueryGetEpochTrackerResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryGetEpochTrackerResponse",value:QueryGetEpochTrackerResponse.encode(e).finish()})};export const QueryAllEpochTrackerRequest={typeUrl:"/stride.stakeibc.QueryAllEpochTrackerRequest",encode:(e,o=a.create())=>o,decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={};for(;t.pos<r;){const e=t.uint32();t.skipType(7&e)}return n},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>QueryAllEpochTrackerRequest.decode(e.value),toProto:e=>QueryAllEpochTrackerRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryAllEpochTrackerRequest",value:QueryAllEpochTrackerRequest.encode(e).finish()})};export const QueryAllEpochTrackerResponse={typeUrl:"/stride.stakeibc.QueryAllEpochTrackerResponse",encode(e,o=a.create()){for(const t of e.epochTracker)s.encode(t,o.uint32(10).fork()).ldelim();return o},decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={epochTracker:[]};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.epochTracker.push(s.decode(t,t.uint32()));else t.skipType(7&e)}return n},fromJSON:e=>({epochTracker:Array.isArray(e?.epochTracker)?e.epochTracker.map((e=>s.fromJSON(e))):[]}),toJSON(e){const o={};return e.epochTracker?o.epochTracker=e.epochTracker.map((e=>e?s.toJSON(e):void 0)):o.epochTracker=[],o},fromPartial(e){const o={epochTracker:[]};return o.epochTracker=e.epochTracker?.map((e=>s.fromPartial(e)))||[],o},fromProtoMsg:e=>QueryAllEpochTrackerResponse.decode(e.value),toProto:e=>QueryAllEpochTrackerResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryAllEpochTrackerResponse",value:QueryAllEpochTrackerResponse.encode(e).finish()})};export const QueryGetNextPacketSequenceRequest={typeUrl:"/stride.stakeibc.QueryGetNextPacketSequenceRequest",encode:(e,o=a.create())=>(""!==e.channelId&&o.uint32(10).string(e.channelId),""!==e.portId&&o.uint32(18).string(e.portId),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={channelId:"",portId:""};for(;t.pos<r;){const e=t.uint32();switch(e>>>3){case 1:n.channelId=t.string();break;case 2:n.portId=t.string();break;default:t.skipType(7&e)}}return n},fromJSON:e=>({channelId:u(e.channelId)?String(e.channelId):"",portId:u(e.portId)?String(e.portId):""}),toJSON(e){const o={};return void 0!==e.channelId&&(o.channelId=e.channelId),void 0!==e.portId&&(o.portId=e.portId),o},fromPartial(e){const o={channelId:"",portId:""};return o.channelId=e.channelId??"",o.portId=e.portId??"",o},fromProtoMsg:e=>QueryGetNextPacketSequenceRequest.decode(e.value),toProto:e=>QueryGetNextPacketSequenceRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryGetNextPacketSequenceRequest",value:QueryGetNextPacketSequenceRequest.encode(e).finish()})};function h(){return{sequence:BigInt(0)}}export const QueryGetNextPacketSequenceResponse={typeUrl:"/stride.stakeibc.QueryGetNextPacketSequenceResponse",encode:(e,o=a.create())=>(e.sequence!==BigInt(0)&&o.uint32(8).uint64(e.sequence),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n=h();for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.sequence=t.uint64();else t.skipType(7&e)}return n},fromJSON:e=>({sequence:u(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const o={};return void 0!==e.sequence&&(o.sequence=(e.sequence||BigInt(0)).toString()),o},fromPartial(e){const o=h();return o.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),o},fromProtoMsg:e=>QueryGetNextPacketSequenceResponse.decode(e.value),toProto:e=>QueryGetNextPacketSequenceResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryGetNextPacketSequenceResponse",value:QueryGetNextPacketSequenceResponse.encode(e).finish()})};export const QueryAddressUnbondings={typeUrl:"/stride.stakeibc.QueryAddressUnbondings",encode:(e,o=a.create())=>(""!==e.address&&o.uint32(10).string(e.address),o),decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={address:""};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.address=t.string();else t.skipType(7&e)}return n},fromJSON:e=>({address:u(e.address)?String(e.address):""}),toJSON(e){const o={};return void 0!==e.address&&(o.address=e.address),o},fromPartial(e){const o={address:""};return o.address=e.address??"",o},fromProtoMsg:e=>QueryAddressUnbondings.decode(e.value),toProto:e=>QueryAddressUnbondings.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryAddressUnbondings",value:QueryAddressUnbondings.encode(e).finish()})};export const QueryAddressUnbondingsResponse={typeUrl:"/stride.stakeibc.QueryAddressUnbondingsResponse",encode(e,o=a.create()){for(const t of e.addressUnbondings)i.encode(t,o.uint32(10).fork()).ldelim();return o},decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={addressUnbondings:[]};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.addressUnbondings.push(i.decode(t,t.uint32()));else t.skipType(7&e)}return n},fromJSON:e=>({addressUnbondings:Array.isArray(e?.addressUnbondings)?e.addressUnbondings.map((e=>i.fromJSON(e))):[]}),toJSON(e){const o={};return e.addressUnbondings?o.addressUnbondings=e.addressUnbondings.map((e=>e?i.toJSON(e):void 0)):o.addressUnbondings=[],o},fromPartial(e){const o={addressUnbondings:[]};return o.addressUnbondings=e.addressUnbondings?.map((e=>i.fromPartial(e)))||[],o},fromProtoMsg:e=>QueryAddressUnbondingsResponse.decode(e.value),toProto:e=>QueryAddressUnbondingsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryAddressUnbondingsResponse",value:QueryAddressUnbondingsResponse.encode(e).finish()})};export const QueryAllTradeRoutes={typeUrl:"/stride.stakeibc.QueryAllTradeRoutes",encode:(e,o=a.create())=>o,decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={};for(;t.pos<r;){const e=t.uint32();t.skipType(7&e)}return n},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>QueryAllTradeRoutes.decode(e.value),toProto:e=>QueryAllTradeRoutes.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryAllTradeRoutes",value:QueryAllTradeRoutes.encode(e).finish()})};export const QueryAllTradeRoutesResponse={typeUrl:"/stride.stakeibc.QueryAllTradeRoutesResponse",encode(e,o=a.create()){for(const t of e.tradeRoutes)d.encode(t,o.uint32(10).fork()).ldelim();return o},decode(e,o){const t=e instanceof c?e:new c(e);let r=void 0===o?t.len:t.pos+o;const n={tradeRoutes:[]};for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)n.tradeRoutes.push(d.decode(t,t.uint32()));else t.skipType(7&e)}return n},fromJSON:e=>({tradeRoutes:Array.isArray(e?.tradeRoutes)?e.tradeRoutes.map((e=>d.fromJSON(e))):[]}),toJSON(e){const o={};return e.tradeRoutes?o.tradeRoutes=e.tradeRoutes.map((e=>e?d.toJSON(e):void 0)):o.tradeRoutes=[],o},fromPartial(e){const o={tradeRoutes:[]};return o.tradeRoutes=e.tradeRoutes?.map((e=>d.fromPartial(e)))||[],o},fromProtoMsg:e=>QueryAllTradeRoutesResponse.decode(e.value),toProto:e=>QueryAllTradeRoutesResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.QueryAllTradeRoutesResponse",value:QueryAllTradeRoutesResponse.encode(e).finish()})};
|