@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,165 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
3
|
-
import { isSet } from '../../helpers.js';
|
|
4
|
-
import {} from '../../json-safe.js';
|
|
5
|
-
export var ICAAccountType;
|
|
6
|
-
(function (ICAAccountType) {
|
|
7
|
-
ICAAccountType[ICAAccountType["DELEGATION"] = 0] = "DELEGATION";
|
|
8
|
-
ICAAccountType[ICAAccountType["FEE"] = 1] = "FEE";
|
|
9
|
-
ICAAccountType[ICAAccountType["WITHDRAWAL"] = 2] = "WITHDRAWAL";
|
|
10
|
-
ICAAccountType[ICAAccountType["REDEMPTION"] = 3] = "REDEMPTION";
|
|
11
|
-
ICAAccountType[ICAAccountType["COMMUNITY_POOL_DEPOSIT"] = 4] = "COMMUNITY_POOL_DEPOSIT";
|
|
12
|
-
ICAAccountType[ICAAccountType["COMMUNITY_POOL_RETURN"] = 5] = "COMMUNITY_POOL_RETURN";
|
|
13
|
-
ICAAccountType[ICAAccountType["CONVERTER_UNWIND"] = 6] = "CONVERTER_UNWIND";
|
|
14
|
-
ICAAccountType[ICAAccountType["CONVERTER_TRADE"] = 7] = "CONVERTER_TRADE";
|
|
15
|
-
ICAAccountType[ICAAccountType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
16
|
-
})(ICAAccountType || (ICAAccountType = {}));
|
|
17
|
-
export const ICAAccountTypeSDKType = ICAAccountType;
|
|
18
|
-
export function iCAAccountTypeFromJSON(object) {
|
|
19
|
-
switch (object) {
|
|
20
|
-
case 0:
|
|
21
|
-
case 'DELEGATION':
|
|
22
|
-
return ICAAccountType.DELEGATION;
|
|
23
|
-
case 1:
|
|
24
|
-
case 'FEE':
|
|
25
|
-
return ICAAccountType.FEE;
|
|
26
|
-
case 2:
|
|
27
|
-
case 'WITHDRAWAL':
|
|
28
|
-
return ICAAccountType.WITHDRAWAL;
|
|
29
|
-
case 3:
|
|
30
|
-
case 'REDEMPTION':
|
|
31
|
-
return ICAAccountType.REDEMPTION;
|
|
32
|
-
case 4:
|
|
33
|
-
case 'COMMUNITY_POOL_DEPOSIT':
|
|
34
|
-
return ICAAccountType.COMMUNITY_POOL_DEPOSIT;
|
|
35
|
-
case 5:
|
|
36
|
-
case 'COMMUNITY_POOL_RETURN':
|
|
37
|
-
return ICAAccountType.COMMUNITY_POOL_RETURN;
|
|
38
|
-
case 6:
|
|
39
|
-
case 'CONVERTER_UNWIND':
|
|
40
|
-
return ICAAccountType.CONVERTER_UNWIND;
|
|
41
|
-
case 7:
|
|
42
|
-
case 'CONVERTER_TRADE':
|
|
43
|
-
return ICAAccountType.CONVERTER_TRADE;
|
|
44
|
-
case -1:
|
|
45
|
-
case 'UNRECOGNIZED':
|
|
46
|
-
default:
|
|
47
|
-
return ICAAccountType.UNRECOGNIZED;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export function iCAAccountTypeToJSON(object) {
|
|
51
|
-
switch (object) {
|
|
52
|
-
case ICAAccountType.DELEGATION:
|
|
53
|
-
return 'DELEGATION';
|
|
54
|
-
case ICAAccountType.FEE:
|
|
55
|
-
return 'FEE';
|
|
56
|
-
case ICAAccountType.WITHDRAWAL:
|
|
57
|
-
return 'WITHDRAWAL';
|
|
58
|
-
case ICAAccountType.REDEMPTION:
|
|
59
|
-
return 'REDEMPTION';
|
|
60
|
-
case ICAAccountType.COMMUNITY_POOL_DEPOSIT:
|
|
61
|
-
return 'COMMUNITY_POOL_DEPOSIT';
|
|
62
|
-
case ICAAccountType.COMMUNITY_POOL_RETURN:
|
|
63
|
-
return 'COMMUNITY_POOL_RETURN';
|
|
64
|
-
case ICAAccountType.CONVERTER_UNWIND:
|
|
65
|
-
return 'CONVERTER_UNWIND';
|
|
66
|
-
case ICAAccountType.CONVERTER_TRADE:
|
|
67
|
-
return 'CONVERTER_TRADE';
|
|
68
|
-
case ICAAccountType.UNRECOGNIZED:
|
|
69
|
-
default:
|
|
70
|
-
return 'UNRECOGNIZED';
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function createBaseICAAccount() {
|
|
74
|
-
return {
|
|
75
|
-
chainId: '',
|
|
76
|
-
type: 0,
|
|
77
|
-
connectionId: '',
|
|
78
|
-
address: '',
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
export const ICAAccount = {
|
|
82
|
-
typeUrl: '/stride.stakeibc.ICAAccount',
|
|
83
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
84
|
-
if (message.chainId !== '') {
|
|
85
|
-
writer.uint32(10).string(message.chainId);
|
|
86
|
-
}
|
|
87
|
-
if (message.type !== 0) {
|
|
88
|
-
writer.uint32(16).int32(message.type);
|
|
89
|
-
}
|
|
90
|
-
if (message.connectionId !== '') {
|
|
91
|
-
writer.uint32(26).string(message.connectionId);
|
|
92
|
-
}
|
|
93
|
-
if (message.address !== '') {
|
|
94
|
-
writer.uint32(34).string(message.address);
|
|
95
|
-
}
|
|
96
|
-
return writer;
|
|
97
|
-
},
|
|
98
|
-
decode(input, length) {
|
|
99
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
100
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
101
|
-
const message = createBaseICAAccount();
|
|
102
|
-
while (reader.pos < end) {
|
|
103
|
-
const tag = reader.uint32();
|
|
104
|
-
switch (tag >>> 3) {
|
|
105
|
-
case 1:
|
|
106
|
-
message.chainId = reader.string();
|
|
107
|
-
break;
|
|
108
|
-
case 2:
|
|
109
|
-
message.type = reader.int32();
|
|
110
|
-
break;
|
|
111
|
-
case 3:
|
|
112
|
-
message.connectionId = reader.string();
|
|
113
|
-
break;
|
|
114
|
-
case 4:
|
|
115
|
-
message.address = reader.string();
|
|
116
|
-
break;
|
|
117
|
-
default:
|
|
118
|
-
reader.skipType(tag & 7);
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return message;
|
|
123
|
-
},
|
|
124
|
-
fromJSON(object) {
|
|
125
|
-
return {
|
|
126
|
-
chainId: isSet(object.chainId) ? String(object.chainId) : '',
|
|
127
|
-
type: isSet(object.type) ? iCAAccountTypeFromJSON(object.type) : -1,
|
|
128
|
-
connectionId: isSet(object.connectionId)
|
|
129
|
-
? String(object.connectionId)
|
|
130
|
-
: '',
|
|
131
|
-
address: isSet(object.address) ? String(object.address) : '',
|
|
132
|
-
};
|
|
133
|
-
},
|
|
134
|
-
toJSON(message) {
|
|
135
|
-
const obj = {};
|
|
136
|
-
message.chainId !== undefined && (obj.chainId = message.chainId);
|
|
137
|
-
message.type !== undefined &&
|
|
138
|
-
(obj.type = iCAAccountTypeToJSON(message.type));
|
|
139
|
-
message.connectionId !== undefined &&
|
|
140
|
-
(obj.connectionId = message.connectionId);
|
|
141
|
-
message.address !== undefined && (obj.address = message.address);
|
|
142
|
-
return obj;
|
|
143
|
-
},
|
|
144
|
-
fromPartial(object) {
|
|
145
|
-
const message = createBaseICAAccount();
|
|
146
|
-
message.chainId = object.chainId ?? '';
|
|
147
|
-
message.type = object.type ?? 0;
|
|
148
|
-
message.connectionId = object.connectionId ?? '';
|
|
149
|
-
message.address = object.address ?? '';
|
|
150
|
-
return message;
|
|
151
|
-
},
|
|
152
|
-
fromProtoMsg(message) {
|
|
153
|
-
return ICAAccount.decode(message.value);
|
|
154
|
-
},
|
|
155
|
-
toProto(message) {
|
|
156
|
-
return ICAAccount.encode(message).finish();
|
|
157
|
-
},
|
|
158
|
-
toProtoMsg(message) {
|
|
159
|
-
return {
|
|
160
|
-
typeUrl: '/stride.stakeibc.ICAAccount',
|
|
161
|
-
value: ICAAccount.encode(message).finish(),
|
|
162
|
-
};
|
|
163
|
-
},
|
|
164
|
-
};
|
|
165
|
-
//# sourceMappingURL=ica_account.js.map
|
|
1
|
+
import{BinaryReader as e,BinaryWriter as c}from"../../binary.js";import{isSet as n}from"../../helpers.js";import{}from"../../json-safe.js";export var ICAAccountType;!function(e){e[e.DELEGATION=0]="DELEGATION",e[e.FEE=1]="FEE",e[e.WITHDRAWAL=2]="WITHDRAWAL",e[e.REDEMPTION=3]="REDEMPTION",e[e.COMMUNITY_POOL_DEPOSIT=4]="COMMUNITY_POOL_DEPOSIT",e[e.COMMUNITY_POOL_RETURN=5]="COMMUNITY_POOL_RETURN",e[e.CONVERTER_UNWIND=6]="CONVERTER_UNWIND",e[e.CONVERTER_TRADE=7]="CONVERTER_TRADE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ICAAccountType||(ICAAccountType={}));export const ICAAccountTypeSDKType=ICAAccountType;export function iCAAccountTypeFromJSON(e){switch(e){case 0:case"DELEGATION":return ICAAccountType.DELEGATION;case 1:case"FEE":return ICAAccountType.FEE;case 2:case"WITHDRAWAL":return ICAAccountType.WITHDRAWAL;case 3:case"REDEMPTION":return ICAAccountType.REDEMPTION;case 4:case"COMMUNITY_POOL_DEPOSIT":return ICAAccountType.COMMUNITY_POOL_DEPOSIT;case 5:case"COMMUNITY_POOL_RETURN":return ICAAccountType.COMMUNITY_POOL_RETURN;case 6:case"CONVERTER_UNWIND":return ICAAccountType.CONVERTER_UNWIND;case 7:case"CONVERTER_TRADE":return ICAAccountType.CONVERTER_TRADE;default:return ICAAccountType.UNRECOGNIZED}}export function iCAAccountTypeToJSON(e){switch(e){case ICAAccountType.DELEGATION:return"DELEGATION";case ICAAccountType.FEE:return"FEE";case ICAAccountType.WITHDRAWAL:return"WITHDRAWAL";case ICAAccountType.REDEMPTION:return"REDEMPTION";case ICAAccountType.COMMUNITY_POOL_DEPOSIT:return"COMMUNITY_POOL_DEPOSIT";case ICAAccountType.COMMUNITY_POOL_RETURN:return"COMMUNITY_POOL_RETURN";case ICAAccountType.CONVERTER_UNWIND:return"CONVERTER_UNWIND";case ICAAccountType.CONVERTER_TRADE:return"CONVERTER_TRADE";case ICAAccountType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export const ICAAccount={typeUrl:"/stride.stakeibc.ICAAccount",encode:(e,n=c.create())=>(""!==e.chainId&&n.uint32(10).string(e.chainId),0!==e.type&&n.uint32(16).int32(e.type),""!==e.connectionId&&n.uint32(26).string(e.connectionId),""!==e.address&&n.uint32(34).string(e.address),n),decode(c,n){const t=c instanceof e?c:new e(c);let o=void 0===n?t.len:t.pos+n;const I={chainId:"",type:0,connectionId:"",address:""};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:I.chainId=t.string();break;case 2:I.type=t.int32();break;case 3:I.connectionId=t.string();break;case 4:I.address=t.string();break;default:t.skipType(7&e)}}return I},fromJSON:e=>({chainId:n(e.chainId)?String(e.chainId):"",type:n(e.type)?iCAAccountTypeFromJSON(e.type):-1,connectionId:n(e.connectionId)?String(e.connectionId):"",address:n(e.address)?String(e.address):""}),toJSON(e){const c={};return void 0!==e.chainId&&(c.chainId=e.chainId),void 0!==e.type&&(c.type=iCAAccountTypeToJSON(e.type)),void 0!==e.connectionId&&(c.connectionId=e.connectionId),void 0!==e.address&&(c.address=e.address),c},fromPartial(e){const c={chainId:"",type:0,connectionId:"",address:""};return c.chainId=e.chainId??"",c.type=e.type??0,c.connectionId=e.connectionId??"",c.address=e.address??"",c},fromProtoMsg:e=>ICAAccount.decode(e.value),toProto:e=>ICAAccount.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.ICAAccount",value:ICAAccount.encode(e).finish()})};
|
|
@@ -1,113 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
3
|
-
import { isSet } from '../../helpers.js';
|
|
4
|
-
import {} from '../../json-safe.js';
|
|
5
|
-
function createBaseStakeibcPacketData() {
|
|
6
|
-
return {
|
|
7
|
-
noData: undefined,
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export const StakeibcPacketData = {
|
|
11
|
-
typeUrl: '/stride.stakeibc.StakeibcPacketData',
|
|
12
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
13
|
-
if (message.noData !== undefined) {
|
|
14
|
-
NoData.encode(message.noData, writer.uint32(10).fork()).ldelim();
|
|
15
|
-
}
|
|
16
|
-
return writer;
|
|
17
|
-
},
|
|
18
|
-
decode(input, length) {
|
|
19
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
21
|
-
const message = createBaseStakeibcPacketData();
|
|
22
|
-
while (reader.pos < end) {
|
|
23
|
-
const tag = reader.uint32();
|
|
24
|
-
switch (tag >>> 3) {
|
|
25
|
-
case 1:
|
|
26
|
-
message.noData = NoData.decode(reader, reader.uint32());
|
|
27
|
-
break;
|
|
28
|
-
default:
|
|
29
|
-
reader.skipType(tag & 7);
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return message;
|
|
34
|
-
},
|
|
35
|
-
fromJSON(object) {
|
|
36
|
-
return {
|
|
37
|
-
noData: isSet(object.noData) ? NoData.fromJSON(object.noData) : undefined,
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
toJSON(message) {
|
|
41
|
-
const obj = {};
|
|
42
|
-
message.noData !== undefined &&
|
|
43
|
-
(obj.noData = message.noData ? NoData.toJSON(message.noData) : undefined);
|
|
44
|
-
return obj;
|
|
45
|
-
},
|
|
46
|
-
fromPartial(object) {
|
|
47
|
-
const message = createBaseStakeibcPacketData();
|
|
48
|
-
message.noData =
|
|
49
|
-
object.noData !== undefined && object.noData !== null
|
|
50
|
-
? NoData.fromPartial(object.noData)
|
|
51
|
-
: undefined;
|
|
52
|
-
return message;
|
|
53
|
-
},
|
|
54
|
-
fromProtoMsg(message) {
|
|
55
|
-
return StakeibcPacketData.decode(message.value);
|
|
56
|
-
},
|
|
57
|
-
toProto(message) {
|
|
58
|
-
return StakeibcPacketData.encode(message).finish();
|
|
59
|
-
},
|
|
60
|
-
toProtoMsg(message) {
|
|
61
|
-
return {
|
|
62
|
-
typeUrl: '/stride.stakeibc.StakeibcPacketData',
|
|
63
|
-
value: StakeibcPacketData.encode(message).finish(),
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
function createBaseNoData() {
|
|
68
|
-
return {};
|
|
69
|
-
}
|
|
70
|
-
export const NoData = {
|
|
71
|
-
typeUrl: '/stride.stakeibc.NoData',
|
|
72
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
73
|
-
return writer;
|
|
74
|
-
},
|
|
75
|
-
decode(input, length) {
|
|
76
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
77
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message = createBaseNoData();
|
|
79
|
-
while (reader.pos < end) {
|
|
80
|
-
const tag = reader.uint32();
|
|
81
|
-
switch (tag >>> 3) {
|
|
82
|
-
default:
|
|
83
|
-
reader.skipType(tag & 7);
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return message;
|
|
88
|
-
},
|
|
89
|
-
fromJSON(_) {
|
|
90
|
-
return {};
|
|
91
|
-
},
|
|
92
|
-
toJSON(_) {
|
|
93
|
-
const obj = {};
|
|
94
|
-
return obj;
|
|
95
|
-
},
|
|
96
|
-
fromPartial(_) {
|
|
97
|
-
const message = createBaseNoData();
|
|
98
|
-
return message;
|
|
99
|
-
},
|
|
100
|
-
fromProtoMsg(message) {
|
|
101
|
-
return NoData.decode(message.value);
|
|
102
|
-
},
|
|
103
|
-
toProto(message) {
|
|
104
|
-
return NoData.encode(message).finish();
|
|
105
|
-
},
|
|
106
|
-
toProtoMsg(message) {
|
|
107
|
-
return {
|
|
108
|
-
typeUrl: '/stride.stakeibc.NoData',
|
|
109
|
-
value: NoData.encode(message).finish(),
|
|
110
|
-
};
|
|
111
|
-
},
|
|
112
|
-
};
|
|
113
|
-
//# sourceMappingURL=packet.js.map
|
|
1
|
+
import{BinaryReader as o,BinaryWriter as t}from"../../binary.js";import{isSet as a}from"../../helpers.js";import{}from"../../json-safe.js";export const StakeibcPacketData={typeUrl:"/stride.stakeibc.StakeibcPacketData",encode:(o,a=t.create())=>(void 0!==o.noData&&NoData.encode(o.noData,a.uint32(10).fork()).ldelim(),a),decode(t,a){const e=t instanceof o?t:new o(t);let n=void 0===a?e.len:e.pos+a;const i={noData:void 0};for(;e.pos<n;){const o=e.uint32();if(o>>>3==1)i.noData=NoData.decode(e,e.uint32());else e.skipType(7&o)}return i},fromJSON:o=>({noData:a(o.noData)?NoData.fromJSON(o.noData):void 0}),toJSON(o){const t={};return void 0!==o.noData&&(t.noData=o.noData?NoData.toJSON(o.noData):void 0),t},fromPartial(o){const t={noData:void 0};return t.noData=void 0!==o.noData&&null!==o.noData?NoData.fromPartial(o.noData):void 0,t},fromProtoMsg:o=>StakeibcPacketData.decode(o.value),toProto:o=>StakeibcPacketData.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/stride.stakeibc.StakeibcPacketData",value:StakeibcPacketData.encode(o).finish()})};export const NoData={typeUrl:"/stride.stakeibc.NoData",encode:(o,a=t.create())=>a,decode(t,a){const e=t instanceof o?t:new o(t);let n=void 0===a?e.len:e.pos+a;const i={};for(;e.pos<n;){const o=e.uint32();e.skipType(7&o)}return i},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>NoData.decode(o.value),toProto:o=>NoData.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/stride.stakeibc.NoData",value:NoData.encode(o).finish()})};
|
|
@@ -1,317 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
3
|
-
import { isSet } from '../../helpers.js';
|
|
4
|
-
import {} from '../../json-safe.js';
|
|
5
|
-
function createBaseParams() {
|
|
6
|
-
return {
|
|
7
|
-
rewardsInterval: BigInt(0),
|
|
8
|
-
delegateInterval: BigInt(0),
|
|
9
|
-
depositInterval: BigInt(0),
|
|
10
|
-
redemptionRateInterval: BigInt(0),
|
|
11
|
-
strideCommission: BigInt(0),
|
|
12
|
-
reinvestInterval: BigInt(0),
|
|
13
|
-
icaTimeoutNanos: BigInt(0),
|
|
14
|
-
bufferSize: BigInt(0),
|
|
15
|
-
ibcTimeoutBlocks: BigInt(0),
|
|
16
|
-
feeTransferTimeoutNanos: BigInt(0),
|
|
17
|
-
maxStakeIcaCallsPerEpoch: BigInt(0),
|
|
18
|
-
defaultMinRedemptionRateThreshold: BigInt(0),
|
|
19
|
-
defaultMaxRedemptionRateThreshold: BigInt(0),
|
|
20
|
-
ibcTransferTimeoutNanos: BigInt(0),
|
|
21
|
-
validatorSlashQueryThreshold: BigInt(0),
|
|
22
|
-
validatorWeightCap: BigInt(0),
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export const Params = {
|
|
26
|
-
typeUrl: '/stride.stakeibc.Params',
|
|
27
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
28
|
-
if (message.rewardsInterval !== BigInt(0)) {
|
|
29
|
-
writer.uint32(8).uint64(message.rewardsInterval);
|
|
30
|
-
}
|
|
31
|
-
if (message.delegateInterval !== BigInt(0)) {
|
|
32
|
-
writer.uint32(48).uint64(message.delegateInterval);
|
|
33
|
-
}
|
|
34
|
-
if (message.depositInterval !== BigInt(0)) {
|
|
35
|
-
writer.uint32(16).uint64(message.depositInterval);
|
|
36
|
-
}
|
|
37
|
-
if (message.redemptionRateInterval !== BigInt(0)) {
|
|
38
|
-
writer.uint32(24).uint64(message.redemptionRateInterval);
|
|
39
|
-
}
|
|
40
|
-
if (message.strideCommission !== BigInt(0)) {
|
|
41
|
-
writer.uint32(32).uint64(message.strideCommission);
|
|
42
|
-
}
|
|
43
|
-
if (message.reinvestInterval !== BigInt(0)) {
|
|
44
|
-
writer.uint32(56).uint64(message.reinvestInterval);
|
|
45
|
-
}
|
|
46
|
-
if (message.icaTimeoutNanos !== BigInt(0)) {
|
|
47
|
-
writer.uint32(72).uint64(message.icaTimeoutNanos);
|
|
48
|
-
}
|
|
49
|
-
if (message.bufferSize !== BigInt(0)) {
|
|
50
|
-
writer.uint32(80).uint64(message.bufferSize);
|
|
51
|
-
}
|
|
52
|
-
if (message.ibcTimeoutBlocks !== BigInt(0)) {
|
|
53
|
-
writer.uint32(88).uint64(message.ibcTimeoutBlocks);
|
|
54
|
-
}
|
|
55
|
-
if (message.feeTransferTimeoutNanos !== BigInt(0)) {
|
|
56
|
-
writer.uint32(96).uint64(message.feeTransferTimeoutNanos);
|
|
57
|
-
}
|
|
58
|
-
if (message.maxStakeIcaCallsPerEpoch !== BigInt(0)) {
|
|
59
|
-
writer.uint32(104).uint64(message.maxStakeIcaCallsPerEpoch);
|
|
60
|
-
}
|
|
61
|
-
if (message.defaultMinRedemptionRateThreshold !== BigInt(0)) {
|
|
62
|
-
writer.uint32(112).uint64(message.defaultMinRedemptionRateThreshold);
|
|
63
|
-
}
|
|
64
|
-
if (message.defaultMaxRedemptionRateThreshold !== BigInt(0)) {
|
|
65
|
-
writer.uint32(120).uint64(message.defaultMaxRedemptionRateThreshold);
|
|
66
|
-
}
|
|
67
|
-
if (message.ibcTransferTimeoutNanos !== BigInt(0)) {
|
|
68
|
-
writer.uint32(128).uint64(message.ibcTransferTimeoutNanos);
|
|
69
|
-
}
|
|
70
|
-
if (message.validatorSlashQueryThreshold !== BigInt(0)) {
|
|
71
|
-
writer.uint32(152).uint64(message.validatorSlashQueryThreshold);
|
|
72
|
-
}
|
|
73
|
-
if (message.validatorWeightCap !== BigInt(0)) {
|
|
74
|
-
writer.uint32(160).uint64(message.validatorWeightCap);
|
|
75
|
-
}
|
|
76
|
-
return writer;
|
|
77
|
-
},
|
|
78
|
-
decode(input, length) {
|
|
79
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
80
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
81
|
-
const message = createBaseParams();
|
|
82
|
-
while (reader.pos < end) {
|
|
83
|
-
const tag = reader.uint32();
|
|
84
|
-
switch (tag >>> 3) {
|
|
85
|
-
case 1:
|
|
86
|
-
message.rewardsInterval = reader.uint64();
|
|
87
|
-
break;
|
|
88
|
-
case 6:
|
|
89
|
-
message.delegateInterval = reader.uint64();
|
|
90
|
-
break;
|
|
91
|
-
case 2:
|
|
92
|
-
message.depositInterval = reader.uint64();
|
|
93
|
-
break;
|
|
94
|
-
case 3:
|
|
95
|
-
message.redemptionRateInterval = reader.uint64();
|
|
96
|
-
break;
|
|
97
|
-
case 4:
|
|
98
|
-
message.strideCommission = reader.uint64();
|
|
99
|
-
break;
|
|
100
|
-
case 7:
|
|
101
|
-
message.reinvestInterval = reader.uint64();
|
|
102
|
-
break;
|
|
103
|
-
case 9:
|
|
104
|
-
message.icaTimeoutNanos = reader.uint64();
|
|
105
|
-
break;
|
|
106
|
-
case 10:
|
|
107
|
-
message.bufferSize = reader.uint64();
|
|
108
|
-
break;
|
|
109
|
-
case 11:
|
|
110
|
-
message.ibcTimeoutBlocks = reader.uint64();
|
|
111
|
-
break;
|
|
112
|
-
case 12:
|
|
113
|
-
message.feeTransferTimeoutNanos = reader.uint64();
|
|
114
|
-
break;
|
|
115
|
-
case 13:
|
|
116
|
-
message.maxStakeIcaCallsPerEpoch = reader.uint64();
|
|
117
|
-
break;
|
|
118
|
-
case 14:
|
|
119
|
-
message.defaultMinRedemptionRateThreshold = reader.uint64();
|
|
120
|
-
break;
|
|
121
|
-
case 15:
|
|
122
|
-
message.defaultMaxRedemptionRateThreshold = reader.uint64();
|
|
123
|
-
break;
|
|
124
|
-
case 16:
|
|
125
|
-
message.ibcTransferTimeoutNanos = reader.uint64();
|
|
126
|
-
break;
|
|
127
|
-
case 19:
|
|
128
|
-
message.validatorSlashQueryThreshold = reader.uint64();
|
|
129
|
-
break;
|
|
130
|
-
case 20:
|
|
131
|
-
message.validatorWeightCap = reader.uint64();
|
|
132
|
-
break;
|
|
133
|
-
default:
|
|
134
|
-
reader.skipType(tag & 7);
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return message;
|
|
139
|
-
},
|
|
140
|
-
fromJSON(object) {
|
|
141
|
-
return {
|
|
142
|
-
rewardsInterval: isSet(object.rewardsInterval)
|
|
143
|
-
? BigInt(object.rewardsInterval.toString())
|
|
144
|
-
: BigInt(0),
|
|
145
|
-
delegateInterval: isSet(object.delegateInterval)
|
|
146
|
-
? BigInt(object.delegateInterval.toString())
|
|
147
|
-
: BigInt(0),
|
|
148
|
-
depositInterval: isSet(object.depositInterval)
|
|
149
|
-
? BigInt(object.depositInterval.toString())
|
|
150
|
-
: BigInt(0),
|
|
151
|
-
redemptionRateInterval: isSet(object.redemptionRateInterval)
|
|
152
|
-
? BigInt(object.redemptionRateInterval.toString())
|
|
153
|
-
: BigInt(0),
|
|
154
|
-
strideCommission: isSet(object.strideCommission)
|
|
155
|
-
? BigInt(object.strideCommission.toString())
|
|
156
|
-
: BigInt(0),
|
|
157
|
-
reinvestInterval: isSet(object.reinvestInterval)
|
|
158
|
-
? BigInt(object.reinvestInterval.toString())
|
|
159
|
-
: BigInt(0),
|
|
160
|
-
icaTimeoutNanos: isSet(object.icaTimeoutNanos)
|
|
161
|
-
? BigInt(object.icaTimeoutNanos.toString())
|
|
162
|
-
: BigInt(0),
|
|
163
|
-
bufferSize: isSet(object.bufferSize)
|
|
164
|
-
? BigInt(object.bufferSize.toString())
|
|
165
|
-
: BigInt(0),
|
|
166
|
-
ibcTimeoutBlocks: isSet(object.ibcTimeoutBlocks)
|
|
167
|
-
? BigInt(object.ibcTimeoutBlocks.toString())
|
|
168
|
-
: BigInt(0),
|
|
169
|
-
feeTransferTimeoutNanos: isSet(object.feeTransferTimeoutNanos)
|
|
170
|
-
? BigInt(object.feeTransferTimeoutNanos.toString())
|
|
171
|
-
: BigInt(0),
|
|
172
|
-
maxStakeIcaCallsPerEpoch: isSet(object.maxStakeIcaCallsPerEpoch)
|
|
173
|
-
? BigInt(object.maxStakeIcaCallsPerEpoch.toString())
|
|
174
|
-
: BigInt(0),
|
|
175
|
-
defaultMinRedemptionRateThreshold: isSet(object.defaultMinRedemptionRateThreshold)
|
|
176
|
-
? BigInt(object.defaultMinRedemptionRateThreshold.toString())
|
|
177
|
-
: BigInt(0),
|
|
178
|
-
defaultMaxRedemptionRateThreshold: isSet(object.defaultMaxRedemptionRateThreshold)
|
|
179
|
-
? BigInt(object.defaultMaxRedemptionRateThreshold.toString())
|
|
180
|
-
: BigInt(0),
|
|
181
|
-
ibcTransferTimeoutNanos: isSet(object.ibcTransferTimeoutNanos)
|
|
182
|
-
? BigInt(object.ibcTransferTimeoutNanos.toString())
|
|
183
|
-
: BigInt(0),
|
|
184
|
-
validatorSlashQueryThreshold: isSet(object.validatorSlashQueryThreshold)
|
|
185
|
-
? BigInt(object.validatorSlashQueryThreshold.toString())
|
|
186
|
-
: BigInt(0),
|
|
187
|
-
validatorWeightCap: isSet(object.validatorWeightCap)
|
|
188
|
-
? BigInt(object.validatorWeightCap.toString())
|
|
189
|
-
: BigInt(0),
|
|
190
|
-
};
|
|
191
|
-
},
|
|
192
|
-
toJSON(message) {
|
|
193
|
-
const obj = {};
|
|
194
|
-
message.rewardsInterval !== undefined &&
|
|
195
|
-
(obj.rewardsInterval = (message.rewardsInterval || BigInt(0)).toString());
|
|
196
|
-
message.delegateInterval !== undefined &&
|
|
197
|
-
(obj.delegateInterval = (message.delegateInterval || BigInt(0)).toString());
|
|
198
|
-
message.depositInterval !== undefined &&
|
|
199
|
-
(obj.depositInterval = (message.depositInterval || BigInt(0)).toString());
|
|
200
|
-
message.redemptionRateInterval !== undefined &&
|
|
201
|
-
(obj.redemptionRateInterval = (message.redemptionRateInterval || BigInt(0)).toString());
|
|
202
|
-
message.strideCommission !== undefined &&
|
|
203
|
-
(obj.strideCommission = (message.strideCommission || BigInt(0)).toString());
|
|
204
|
-
message.reinvestInterval !== undefined &&
|
|
205
|
-
(obj.reinvestInterval = (message.reinvestInterval || BigInt(0)).toString());
|
|
206
|
-
message.icaTimeoutNanos !== undefined &&
|
|
207
|
-
(obj.icaTimeoutNanos = (message.icaTimeoutNanos || BigInt(0)).toString());
|
|
208
|
-
message.bufferSize !== undefined &&
|
|
209
|
-
(obj.bufferSize = (message.bufferSize || BigInt(0)).toString());
|
|
210
|
-
message.ibcTimeoutBlocks !== undefined &&
|
|
211
|
-
(obj.ibcTimeoutBlocks = (message.ibcTimeoutBlocks || BigInt(0)).toString());
|
|
212
|
-
message.feeTransferTimeoutNanos !== undefined &&
|
|
213
|
-
(obj.feeTransferTimeoutNanos = (message.feeTransferTimeoutNanos || BigInt(0)).toString());
|
|
214
|
-
message.maxStakeIcaCallsPerEpoch !== undefined &&
|
|
215
|
-
(obj.maxStakeIcaCallsPerEpoch = (message.maxStakeIcaCallsPerEpoch || BigInt(0)).toString());
|
|
216
|
-
message.defaultMinRedemptionRateThreshold !== undefined &&
|
|
217
|
-
(obj.defaultMinRedemptionRateThreshold = (message.defaultMinRedemptionRateThreshold || BigInt(0)).toString());
|
|
218
|
-
message.defaultMaxRedemptionRateThreshold !== undefined &&
|
|
219
|
-
(obj.defaultMaxRedemptionRateThreshold = (message.defaultMaxRedemptionRateThreshold || BigInt(0)).toString());
|
|
220
|
-
message.ibcTransferTimeoutNanos !== undefined &&
|
|
221
|
-
(obj.ibcTransferTimeoutNanos = (message.ibcTransferTimeoutNanos || BigInt(0)).toString());
|
|
222
|
-
message.validatorSlashQueryThreshold !== undefined &&
|
|
223
|
-
(obj.validatorSlashQueryThreshold = (message.validatorSlashQueryThreshold || BigInt(0)).toString());
|
|
224
|
-
message.validatorWeightCap !== undefined &&
|
|
225
|
-
(obj.validatorWeightCap = (message.validatorWeightCap || BigInt(0)).toString());
|
|
226
|
-
return obj;
|
|
227
|
-
},
|
|
228
|
-
fromPartial(object) {
|
|
229
|
-
const message = createBaseParams();
|
|
230
|
-
message.rewardsInterval =
|
|
231
|
-
object.rewardsInterval !== undefined && object.rewardsInterval !== null
|
|
232
|
-
? BigInt(object.rewardsInterval.toString())
|
|
233
|
-
: BigInt(0);
|
|
234
|
-
message.delegateInterval =
|
|
235
|
-
object.delegateInterval !== undefined && object.delegateInterval !== null
|
|
236
|
-
? BigInt(object.delegateInterval.toString())
|
|
237
|
-
: BigInt(0);
|
|
238
|
-
message.depositInterval =
|
|
239
|
-
object.depositInterval !== undefined && object.depositInterval !== null
|
|
240
|
-
? BigInt(object.depositInterval.toString())
|
|
241
|
-
: BigInt(0);
|
|
242
|
-
message.redemptionRateInterval =
|
|
243
|
-
object.redemptionRateInterval !== undefined &&
|
|
244
|
-
object.redemptionRateInterval !== null
|
|
245
|
-
? BigInt(object.redemptionRateInterval.toString())
|
|
246
|
-
: BigInt(0);
|
|
247
|
-
message.strideCommission =
|
|
248
|
-
object.strideCommission !== undefined && object.strideCommission !== null
|
|
249
|
-
? BigInt(object.strideCommission.toString())
|
|
250
|
-
: BigInt(0);
|
|
251
|
-
message.reinvestInterval =
|
|
252
|
-
object.reinvestInterval !== undefined && object.reinvestInterval !== null
|
|
253
|
-
? BigInt(object.reinvestInterval.toString())
|
|
254
|
-
: BigInt(0);
|
|
255
|
-
message.icaTimeoutNanos =
|
|
256
|
-
object.icaTimeoutNanos !== undefined && object.icaTimeoutNanos !== null
|
|
257
|
-
? BigInt(object.icaTimeoutNanos.toString())
|
|
258
|
-
: BigInt(0);
|
|
259
|
-
message.bufferSize =
|
|
260
|
-
object.bufferSize !== undefined && object.bufferSize !== null
|
|
261
|
-
? BigInt(object.bufferSize.toString())
|
|
262
|
-
: BigInt(0);
|
|
263
|
-
message.ibcTimeoutBlocks =
|
|
264
|
-
object.ibcTimeoutBlocks !== undefined && object.ibcTimeoutBlocks !== null
|
|
265
|
-
? BigInt(object.ibcTimeoutBlocks.toString())
|
|
266
|
-
: BigInt(0);
|
|
267
|
-
message.feeTransferTimeoutNanos =
|
|
268
|
-
object.feeTransferTimeoutNanos !== undefined &&
|
|
269
|
-
object.feeTransferTimeoutNanos !== null
|
|
270
|
-
? BigInt(object.feeTransferTimeoutNanos.toString())
|
|
271
|
-
: BigInt(0);
|
|
272
|
-
message.maxStakeIcaCallsPerEpoch =
|
|
273
|
-
object.maxStakeIcaCallsPerEpoch !== undefined &&
|
|
274
|
-
object.maxStakeIcaCallsPerEpoch !== null
|
|
275
|
-
? BigInt(object.maxStakeIcaCallsPerEpoch.toString())
|
|
276
|
-
: BigInt(0);
|
|
277
|
-
message.defaultMinRedemptionRateThreshold =
|
|
278
|
-
object.defaultMinRedemptionRateThreshold !== undefined &&
|
|
279
|
-
object.defaultMinRedemptionRateThreshold !== null
|
|
280
|
-
? BigInt(object.defaultMinRedemptionRateThreshold.toString())
|
|
281
|
-
: BigInt(0);
|
|
282
|
-
message.defaultMaxRedemptionRateThreshold =
|
|
283
|
-
object.defaultMaxRedemptionRateThreshold !== undefined &&
|
|
284
|
-
object.defaultMaxRedemptionRateThreshold !== null
|
|
285
|
-
? BigInt(object.defaultMaxRedemptionRateThreshold.toString())
|
|
286
|
-
: BigInt(0);
|
|
287
|
-
message.ibcTransferTimeoutNanos =
|
|
288
|
-
object.ibcTransferTimeoutNanos !== undefined &&
|
|
289
|
-
object.ibcTransferTimeoutNanos !== null
|
|
290
|
-
? BigInt(object.ibcTransferTimeoutNanos.toString())
|
|
291
|
-
: BigInt(0);
|
|
292
|
-
message.validatorSlashQueryThreshold =
|
|
293
|
-
object.validatorSlashQueryThreshold !== undefined &&
|
|
294
|
-
object.validatorSlashQueryThreshold !== null
|
|
295
|
-
? BigInt(object.validatorSlashQueryThreshold.toString())
|
|
296
|
-
: BigInt(0);
|
|
297
|
-
message.validatorWeightCap =
|
|
298
|
-
object.validatorWeightCap !== undefined &&
|
|
299
|
-
object.validatorWeightCap !== null
|
|
300
|
-
? BigInt(object.validatorWeightCap.toString())
|
|
301
|
-
: BigInt(0);
|
|
302
|
-
return message;
|
|
303
|
-
},
|
|
304
|
-
fromProtoMsg(message) {
|
|
305
|
-
return Params.decode(message.value);
|
|
306
|
-
},
|
|
307
|
-
toProto(message) {
|
|
308
|
-
return Params.encode(message).finish();
|
|
309
|
-
},
|
|
310
|
-
toProtoMsg(message) {
|
|
311
|
-
return {
|
|
312
|
-
typeUrl: '/stride.stakeibc.Params',
|
|
313
|
-
value: Params.encode(message).finish(),
|
|
314
|
-
};
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
//# sourceMappingURL=params.js.map
|
|
1
|
+
import{BinaryReader as e,BinaryWriter as t}from"../../binary.js";import{isSet as i}from"../../helpers.js";import{}from"../../json-safe.js";function n(){return{rewardsInterval:BigInt(0),delegateInterval:BigInt(0),depositInterval:BigInt(0),redemptionRateInterval:BigInt(0),strideCommission:BigInt(0),reinvestInterval:BigInt(0),icaTimeoutNanos:BigInt(0),bufferSize:BigInt(0),ibcTimeoutBlocks:BigInt(0),feeTransferTimeoutNanos:BigInt(0),maxStakeIcaCallsPerEpoch:BigInt(0),defaultMinRedemptionRateThreshold:BigInt(0),defaultMaxRedemptionRateThreshold:BigInt(0),ibcTransferTimeoutNanos:BigInt(0),validatorSlashQueryThreshold:BigInt(0),validatorWeightCap:BigInt(0)}}export const Params={typeUrl:"/stride.stakeibc.Params",encode:(e,i=t.create())=>(e.rewardsInterval!==BigInt(0)&&i.uint32(8).uint64(e.rewardsInterval),e.delegateInterval!==BigInt(0)&&i.uint32(48).uint64(e.delegateInterval),e.depositInterval!==BigInt(0)&&i.uint32(16).uint64(e.depositInterval),e.redemptionRateInterval!==BigInt(0)&&i.uint32(24).uint64(e.redemptionRateInterval),e.strideCommission!==BigInt(0)&&i.uint32(32).uint64(e.strideCommission),e.reinvestInterval!==BigInt(0)&&i.uint32(56).uint64(e.reinvestInterval),e.icaTimeoutNanos!==BigInt(0)&&i.uint32(72).uint64(e.icaTimeoutNanos),e.bufferSize!==BigInt(0)&&i.uint32(80).uint64(e.bufferSize),e.ibcTimeoutBlocks!==BigInt(0)&&i.uint32(88).uint64(e.ibcTimeoutBlocks),e.feeTransferTimeoutNanos!==BigInt(0)&&i.uint32(96).uint64(e.feeTransferTimeoutNanos),e.maxStakeIcaCallsPerEpoch!==BigInt(0)&&i.uint32(104).uint64(e.maxStakeIcaCallsPerEpoch),e.defaultMinRedemptionRateThreshold!==BigInt(0)&&i.uint32(112).uint64(e.defaultMinRedemptionRateThreshold),e.defaultMaxRedemptionRateThreshold!==BigInt(0)&&i.uint32(120).uint64(e.defaultMaxRedemptionRateThreshold),e.ibcTransferTimeoutNanos!==BigInt(0)&&i.uint32(128).uint64(e.ibcTransferTimeoutNanos),e.validatorSlashQueryThreshold!==BigInt(0)&&i.uint32(152).uint64(e.validatorSlashQueryThreshold),e.validatorWeightCap!==BigInt(0)&&i.uint32(160).uint64(e.validatorWeightCap),i),decode(t,i){const a=t instanceof e?t:new e(t);let r=void 0===i?a.len:a.pos+i;const o=n();for(;a.pos<r;){const e=a.uint32();switch(e>>>3){case 1:o.rewardsInterval=a.uint64();break;case 6:o.delegateInterval=a.uint64();break;case 2:o.depositInterval=a.uint64();break;case 3:o.redemptionRateInterval=a.uint64();break;case 4:o.strideCommission=a.uint64();break;case 7:o.reinvestInterval=a.uint64();break;case 9:o.icaTimeoutNanos=a.uint64();break;case 10:o.bufferSize=a.uint64();break;case 11:o.ibcTimeoutBlocks=a.uint64();break;case 12:o.feeTransferTimeoutNanos=a.uint64();break;case 13:o.maxStakeIcaCallsPerEpoch=a.uint64();break;case 14:o.defaultMinRedemptionRateThreshold=a.uint64();break;case 15:o.defaultMaxRedemptionRateThreshold=a.uint64();break;case 16:o.ibcTransferTimeoutNanos=a.uint64();break;case 19:o.validatorSlashQueryThreshold=a.uint64();break;case 20:o.validatorWeightCap=a.uint64();break;default:a.skipType(7&e)}}return o},fromJSON:e=>({rewardsInterval:i(e.rewardsInterval)?BigInt(e.rewardsInterval.toString()):BigInt(0),delegateInterval:i(e.delegateInterval)?BigInt(e.delegateInterval.toString()):BigInt(0),depositInterval:i(e.depositInterval)?BigInt(e.depositInterval.toString()):BigInt(0),redemptionRateInterval:i(e.redemptionRateInterval)?BigInt(e.redemptionRateInterval.toString()):BigInt(0),strideCommission:i(e.strideCommission)?BigInt(e.strideCommission.toString()):BigInt(0),reinvestInterval:i(e.reinvestInterval)?BigInt(e.reinvestInterval.toString()):BigInt(0),icaTimeoutNanos:i(e.icaTimeoutNanos)?BigInt(e.icaTimeoutNanos.toString()):BigInt(0),bufferSize:i(e.bufferSize)?BigInt(e.bufferSize.toString()):BigInt(0),ibcTimeoutBlocks:i(e.ibcTimeoutBlocks)?BigInt(e.ibcTimeoutBlocks.toString()):BigInt(0),feeTransferTimeoutNanos:i(e.feeTransferTimeoutNanos)?BigInt(e.feeTransferTimeoutNanos.toString()):BigInt(0),maxStakeIcaCallsPerEpoch:i(e.maxStakeIcaCallsPerEpoch)?BigInt(e.maxStakeIcaCallsPerEpoch.toString()):BigInt(0),defaultMinRedemptionRateThreshold:i(e.defaultMinRedemptionRateThreshold)?BigInt(e.defaultMinRedemptionRateThreshold.toString()):BigInt(0),defaultMaxRedemptionRateThreshold:i(e.defaultMaxRedemptionRateThreshold)?BigInt(e.defaultMaxRedemptionRateThreshold.toString()):BigInt(0),ibcTransferTimeoutNanos:i(e.ibcTransferTimeoutNanos)?BigInt(e.ibcTransferTimeoutNanos.toString()):BigInt(0),validatorSlashQueryThreshold:i(e.validatorSlashQueryThreshold)?BigInt(e.validatorSlashQueryThreshold.toString()):BigInt(0),validatorWeightCap:i(e.validatorWeightCap)?BigInt(e.validatorWeightCap.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.rewardsInterval&&(t.rewardsInterval=(e.rewardsInterval||BigInt(0)).toString()),void 0!==e.delegateInterval&&(t.delegateInterval=(e.delegateInterval||BigInt(0)).toString()),void 0!==e.depositInterval&&(t.depositInterval=(e.depositInterval||BigInt(0)).toString()),void 0!==e.redemptionRateInterval&&(t.redemptionRateInterval=(e.redemptionRateInterval||BigInt(0)).toString()),void 0!==e.strideCommission&&(t.strideCommission=(e.strideCommission||BigInt(0)).toString()),void 0!==e.reinvestInterval&&(t.reinvestInterval=(e.reinvestInterval||BigInt(0)).toString()),void 0!==e.icaTimeoutNanos&&(t.icaTimeoutNanos=(e.icaTimeoutNanos||BigInt(0)).toString()),void 0!==e.bufferSize&&(t.bufferSize=(e.bufferSize||BigInt(0)).toString()),void 0!==e.ibcTimeoutBlocks&&(t.ibcTimeoutBlocks=(e.ibcTimeoutBlocks||BigInt(0)).toString()),void 0!==e.feeTransferTimeoutNanos&&(t.feeTransferTimeoutNanos=(e.feeTransferTimeoutNanos||BigInt(0)).toString()),void 0!==e.maxStakeIcaCallsPerEpoch&&(t.maxStakeIcaCallsPerEpoch=(e.maxStakeIcaCallsPerEpoch||BigInt(0)).toString()),void 0!==e.defaultMinRedemptionRateThreshold&&(t.defaultMinRedemptionRateThreshold=(e.defaultMinRedemptionRateThreshold||BigInt(0)).toString()),void 0!==e.defaultMaxRedemptionRateThreshold&&(t.defaultMaxRedemptionRateThreshold=(e.defaultMaxRedemptionRateThreshold||BigInt(0)).toString()),void 0!==e.ibcTransferTimeoutNanos&&(t.ibcTransferTimeoutNanos=(e.ibcTransferTimeoutNanos||BigInt(0)).toString()),void 0!==e.validatorSlashQueryThreshold&&(t.validatorSlashQueryThreshold=(e.validatorSlashQueryThreshold||BigInt(0)).toString()),void 0!==e.validatorWeightCap&&(t.validatorWeightCap=(e.validatorWeightCap||BigInt(0)).toString()),t},fromPartial(e){const t=n();return t.rewardsInterval=void 0!==e.rewardsInterval&&null!==e.rewardsInterval?BigInt(e.rewardsInterval.toString()):BigInt(0),t.delegateInterval=void 0!==e.delegateInterval&&null!==e.delegateInterval?BigInt(e.delegateInterval.toString()):BigInt(0),t.depositInterval=void 0!==e.depositInterval&&null!==e.depositInterval?BigInt(e.depositInterval.toString()):BigInt(0),t.redemptionRateInterval=void 0!==e.redemptionRateInterval&&null!==e.redemptionRateInterval?BigInt(e.redemptionRateInterval.toString()):BigInt(0),t.strideCommission=void 0!==e.strideCommission&&null!==e.strideCommission?BigInt(e.strideCommission.toString()):BigInt(0),t.reinvestInterval=void 0!==e.reinvestInterval&&null!==e.reinvestInterval?BigInt(e.reinvestInterval.toString()):BigInt(0),t.icaTimeoutNanos=void 0!==e.icaTimeoutNanos&&null!==e.icaTimeoutNanos?BigInt(e.icaTimeoutNanos.toString()):BigInt(0),t.bufferSize=void 0!==e.bufferSize&&null!==e.bufferSize?BigInt(e.bufferSize.toString()):BigInt(0),t.ibcTimeoutBlocks=void 0!==e.ibcTimeoutBlocks&&null!==e.ibcTimeoutBlocks?BigInt(e.ibcTimeoutBlocks.toString()):BigInt(0),t.feeTransferTimeoutNanos=void 0!==e.feeTransferTimeoutNanos&&null!==e.feeTransferTimeoutNanos?BigInt(e.feeTransferTimeoutNanos.toString()):BigInt(0),t.maxStakeIcaCallsPerEpoch=void 0!==e.maxStakeIcaCallsPerEpoch&&null!==e.maxStakeIcaCallsPerEpoch?BigInt(e.maxStakeIcaCallsPerEpoch.toString()):BigInt(0),t.defaultMinRedemptionRateThreshold=void 0!==e.defaultMinRedemptionRateThreshold&&null!==e.defaultMinRedemptionRateThreshold?BigInt(e.defaultMinRedemptionRateThreshold.toString()):BigInt(0),t.defaultMaxRedemptionRateThreshold=void 0!==e.defaultMaxRedemptionRateThreshold&&null!==e.defaultMaxRedemptionRateThreshold?BigInt(e.defaultMaxRedemptionRateThreshold.toString()):BigInt(0),t.ibcTransferTimeoutNanos=void 0!==e.ibcTransferTimeoutNanos&&null!==e.ibcTransferTimeoutNanos?BigInt(e.ibcTransferTimeoutNanos.toString()):BigInt(0),t.validatorSlashQueryThreshold=void 0!==e.validatorSlashQueryThreshold&&null!==e.validatorSlashQueryThreshold?BigInt(e.validatorSlashQueryThreshold.toString()):BigInt(0),t.validatorWeightCap=void 0!==e.validatorWeightCap&&null!==e.validatorWeightCap?BigInt(e.validatorWeightCap.toString()):BigInt(0),t},fromProtoMsg:e=>Params.decode(e.value),toProto:e=>Params.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.Params",value:Params.encode(e).finish()})};
|