@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,257 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
3
|
-
import { isSet } from '../../../helpers.js';
|
|
4
|
-
import {} from '../../../json-safe.js';
|
|
5
|
-
function createBaseCoin() {
|
|
6
|
-
return {
|
|
7
|
-
denom: '',
|
|
8
|
-
amount: '',
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export const Coin = {
|
|
12
|
-
typeUrl: '/cosmos.base.v1beta1.Coin',
|
|
13
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
14
|
-
if (message.denom !== '') {
|
|
15
|
-
writer.uint32(10).string(message.denom);
|
|
16
|
-
}
|
|
17
|
-
if (message.amount !== '') {
|
|
18
|
-
writer.uint32(18).string(message.amount);
|
|
19
|
-
}
|
|
20
|
-
return writer;
|
|
21
|
-
},
|
|
22
|
-
decode(input, length) {
|
|
23
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
-
const message = createBaseCoin();
|
|
26
|
-
while (reader.pos < end) {
|
|
27
|
-
const tag = reader.uint32();
|
|
28
|
-
switch (tag >>> 3) {
|
|
29
|
-
case 1:
|
|
30
|
-
message.denom = reader.string();
|
|
31
|
-
break;
|
|
32
|
-
case 2:
|
|
33
|
-
message.amount = reader.string();
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
reader.skipType(tag & 7);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return message;
|
|
41
|
-
},
|
|
42
|
-
fromJSON(object) {
|
|
43
|
-
return {
|
|
44
|
-
denom: isSet(object.denom) ? String(object.denom) : '',
|
|
45
|
-
amount: isSet(object.amount) ? String(object.amount) : '',
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
toJSON(message) {
|
|
49
|
-
const obj = {};
|
|
50
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
51
|
-
message.amount !== undefined && (obj.amount = message.amount);
|
|
52
|
-
return obj;
|
|
53
|
-
},
|
|
54
|
-
fromPartial(object) {
|
|
55
|
-
const message = createBaseCoin();
|
|
56
|
-
message.denom = object.denom ?? '';
|
|
57
|
-
message.amount = object.amount ?? '';
|
|
58
|
-
return message;
|
|
59
|
-
},
|
|
60
|
-
fromProtoMsg(message) {
|
|
61
|
-
return Coin.decode(message.value);
|
|
62
|
-
},
|
|
63
|
-
toProto(message) {
|
|
64
|
-
return Coin.encode(message).finish();
|
|
65
|
-
},
|
|
66
|
-
toProtoMsg(message) {
|
|
67
|
-
return {
|
|
68
|
-
typeUrl: '/cosmos.base.v1beta1.Coin',
|
|
69
|
-
value: Coin.encode(message).finish(),
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
function createBaseDecCoin() {
|
|
74
|
-
return {
|
|
75
|
-
denom: '',
|
|
76
|
-
amount: '',
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
export const DecCoin = {
|
|
80
|
-
typeUrl: '/cosmos.base.v1beta1.DecCoin',
|
|
81
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
82
|
-
if (message.denom !== '') {
|
|
83
|
-
writer.uint32(10).string(message.denom);
|
|
84
|
-
}
|
|
85
|
-
if (message.amount !== '') {
|
|
86
|
-
writer.uint32(18).string(message.amount);
|
|
87
|
-
}
|
|
88
|
-
return writer;
|
|
89
|
-
},
|
|
90
|
-
decode(input, length) {
|
|
91
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
92
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
93
|
-
const message = createBaseDecCoin();
|
|
94
|
-
while (reader.pos < end) {
|
|
95
|
-
const tag = reader.uint32();
|
|
96
|
-
switch (tag >>> 3) {
|
|
97
|
-
case 1:
|
|
98
|
-
message.denom = reader.string();
|
|
99
|
-
break;
|
|
100
|
-
case 2:
|
|
101
|
-
message.amount = reader.string();
|
|
102
|
-
break;
|
|
103
|
-
default:
|
|
104
|
-
reader.skipType(tag & 7);
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return message;
|
|
109
|
-
},
|
|
110
|
-
fromJSON(object) {
|
|
111
|
-
return {
|
|
112
|
-
denom: isSet(object.denom) ? String(object.denom) : '',
|
|
113
|
-
amount: isSet(object.amount) ? String(object.amount) : '',
|
|
114
|
-
};
|
|
115
|
-
},
|
|
116
|
-
toJSON(message) {
|
|
117
|
-
const obj = {};
|
|
118
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
|
119
|
-
message.amount !== undefined && (obj.amount = message.amount);
|
|
120
|
-
return obj;
|
|
121
|
-
},
|
|
122
|
-
fromPartial(object) {
|
|
123
|
-
const message = createBaseDecCoin();
|
|
124
|
-
message.denom = object.denom ?? '';
|
|
125
|
-
message.amount = object.amount ?? '';
|
|
126
|
-
return message;
|
|
127
|
-
},
|
|
128
|
-
fromProtoMsg(message) {
|
|
129
|
-
return DecCoin.decode(message.value);
|
|
130
|
-
},
|
|
131
|
-
toProto(message) {
|
|
132
|
-
return DecCoin.encode(message).finish();
|
|
133
|
-
},
|
|
134
|
-
toProtoMsg(message) {
|
|
135
|
-
return {
|
|
136
|
-
typeUrl: '/cosmos.base.v1beta1.DecCoin',
|
|
137
|
-
value: DecCoin.encode(message).finish(),
|
|
138
|
-
};
|
|
139
|
-
},
|
|
140
|
-
};
|
|
141
|
-
function createBaseIntProto() {
|
|
142
|
-
return {
|
|
143
|
-
int: '',
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
export const IntProto = {
|
|
147
|
-
typeUrl: '/cosmos.base.v1beta1.IntProto',
|
|
148
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
149
|
-
if (message.int !== '') {
|
|
150
|
-
writer.uint32(10).string(message.int);
|
|
151
|
-
}
|
|
152
|
-
return writer;
|
|
153
|
-
},
|
|
154
|
-
decode(input, length) {
|
|
155
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
156
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
157
|
-
const message = createBaseIntProto();
|
|
158
|
-
while (reader.pos < end) {
|
|
159
|
-
const tag = reader.uint32();
|
|
160
|
-
switch (tag >>> 3) {
|
|
161
|
-
case 1:
|
|
162
|
-
message.int = reader.string();
|
|
163
|
-
break;
|
|
164
|
-
default:
|
|
165
|
-
reader.skipType(tag & 7);
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return message;
|
|
170
|
-
},
|
|
171
|
-
fromJSON(object) {
|
|
172
|
-
return {
|
|
173
|
-
int: isSet(object.int) ? String(object.int) : '',
|
|
174
|
-
};
|
|
175
|
-
},
|
|
176
|
-
toJSON(message) {
|
|
177
|
-
const obj = {};
|
|
178
|
-
message.int !== undefined && (obj.int = message.int);
|
|
179
|
-
return obj;
|
|
180
|
-
},
|
|
181
|
-
fromPartial(object) {
|
|
182
|
-
const message = createBaseIntProto();
|
|
183
|
-
message.int = object.int ?? '';
|
|
184
|
-
return message;
|
|
185
|
-
},
|
|
186
|
-
fromProtoMsg(message) {
|
|
187
|
-
return IntProto.decode(message.value);
|
|
188
|
-
},
|
|
189
|
-
toProto(message) {
|
|
190
|
-
return IntProto.encode(message).finish();
|
|
191
|
-
},
|
|
192
|
-
toProtoMsg(message) {
|
|
193
|
-
return {
|
|
194
|
-
typeUrl: '/cosmos.base.v1beta1.IntProto',
|
|
195
|
-
value: IntProto.encode(message).finish(),
|
|
196
|
-
};
|
|
197
|
-
},
|
|
198
|
-
};
|
|
199
|
-
function createBaseDecProto() {
|
|
200
|
-
return {
|
|
201
|
-
dec: '',
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
export const DecProto = {
|
|
205
|
-
typeUrl: '/cosmos.base.v1beta1.DecProto',
|
|
206
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
207
|
-
if (message.dec !== '') {
|
|
208
|
-
writer.uint32(10).string(message.dec);
|
|
209
|
-
}
|
|
210
|
-
return writer;
|
|
211
|
-
},
|
|
212
|
-
decode(input, length) {
|
|
213
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
214
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
215
|
-
const message = createBaseDecProto();
|
|
216
|
-
while (reader.pos < end) {
|
|
217
|
-
const tag = reader.uint32();
|
|
218
|
-
switch (tag >>> 3) {
|
|
219
|
-
case 1:
|
|
220
|
-
message.dec = reader.string();
|
|
221
|
-
break;
|
|
222
|
-
default:
|
|
223
|
-
reader.skipType(tag & 7);
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
return message;
|
|
228
|
-
},
|
|
229
|
-
fromJSON(object) {
|
|
230
|
-
return {
|
|
231
|
-
dec: isSet(object.dec) ? String(object.dec) : '',
|
|
232
|
-
};
|
|
233
|
-
},
|
|
234
|
-
toJSON(message) {
|
|
235
|
-
const obj = {};
|
|
236
|
-
message.dec !== undefined && (obj.dec = message.dec);
|
|
237
|
-
return obj;
|
|
238
|
-
},
|
|
239
|
-
fromPartial(object) {
|
|
240
|
-
const message = createBaseDecProto();
|
|
241
|
-
message.dec = object.dec ?? '';
|
|
242
|
-
return message;
|
|
243
|
-
},
|
|
244
|
-
fromProtoMsg(message) {
|
|
245
|
-
return DecProto.decode(message.value);
|
|
246
|
-
},
|
|
247
|
-
toProto(message) {
|
|
248
|
-
return DecProto.encode(message).finish();
|
|
249
|
-
},
|
|
250
|
-
toProtoMsg(message) {
|
|
251
|
-
return {
|
|
252
|
-
typeUrl: '/cosmos.base.v1beta1.DecProto',
|
|
253
|
-
value: DecProto.encode(message).finish(),
|
|
254
|
-
};
|
|
255
|
-
},
|
|
256
|
-
};
|
|
257
|
-
//# sourceMappingURL=coin.js.map
|
|
1
|
+
import{BinaryReader as o,BinaryWriter as t}from"../../../binary.js";import{isSet as n}from"../../../helpers.js";import{}from"../../../json-safe.js";export const Coin={typeUrl:"/cosmos.base.v1beta1.Coin",encode:(o,n=t.create())=>(""!==o.denom&&n.uint32(10).string(o.denom),""!==o.amount&&n.uint32(18).string(o.amount),n),decode(t,n){const e=t instanceof o?t:new o(t);let r=void 0===n?e.len:e.pos+n;const s={denom:"",amount:""};for(;e.pos<r;){const o=e.uint32();switch(o>>>3){case 1:s.denom=e.string();break;case 2:s.amount=e.string();break;default:e.skipType(7&o)}}return s},fromJSON:o=>({denom:n(o.denom)?String(o.denom):"",amount:n(o.amount)?String(o.amount):""}),toJSON(o){const t={};return void 0!==o.denom&&(t.denom=o.denom),void 0!==o.amount&&(t.amount=o.amount),t},fromPartial(o){const t={denom:"",amount:""};return t.denom=o.denom??"",t.amount=o.amount??"",t},fromProtoMsg:o=>Coin.decode(o.value),toProto:o=>Coin.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.base.v1beta1.Coin",value:Coin.encode(o).finish()})};export const DecCoin={typeUrl:"/cosmos.base.v1beta1.DecCoin",encode:(o,n=t.create())=>(""!==o.denom&&n.uint32(10).string(o.denom),""!==o.amount&&n.uint32(18).string(o.amount),n),decode(t,n){const e=t instanceof o?t:new o(t);let r=void 0===n?e.len:e.pos+n;const s={denom:"",amount:""};for(;e.pos<r;){const o=e.uint32();switch(o>>>3){case 1:s.denom=e.string();break;case 2:s.amount=e.string();break;default:e.skipType(7&o)}}return s},fromJSON:o=>({denom:n(o.denom)?String(o.denom):"",amount:n(o.amount)?String(o.amount):""}),toJSON(o){const t={};return void 0!==o.denom&&(t.denom=o.denom),void 0!==o.amount&&(t.amount=o.amount),t},fromPartial(o){const t={denom:"",amount:""};return t.denom=o.denom??"",t.amount=o.amount??"",t},fromProtoMsg:o=>DecCoin.decode(o.value),toProto:o=>DecCoin.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.base.v1beta1.DecCoin",value:DecCoin.encode(o).finish()})};export const IntProto={typeUrl:"/cosmos.base.v1beta1.IntProto",encode:(o,n=t.create())=>(""!==o.int&&n.uint32(10).string(o.int),n),decode(t,n){const e=t instanceof o?t:new o(t);let r=void 0===n?e.len:e.pos+n;const s={int:""};for(;e.pos<r;){const o=e.uint32();if(o>>>3==1)s.int=e.string();else e.skipType(7&o)}return s},fromJSON:o=>({int:n(o.int)?String(o.int):""}),toJSON(o){const t={};return void 0!==o.int&&(t.int=o.int),t},fromPartial(o){const t={int:""};return t.int=o.int??"",t},fromProtoMsg:o=>IntProto.decode(o.value),toProto:o=>IntProto.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.base.v1beta1.IntProto",value:IntProto.encode(o).finish()})};export const DecProto={typeUrl:"/cosmos.base.v1beta1.DecProto",encode:(o,n=t.create())=>(""!==o.dec&&n.uint32(10).string(o.dec),n),decode(t,n){const e=t instanceof o?t:new o(t);let r=void 0===n?e.len:e.pos+n;const s={dec:""};for(;e.pos<r;){const o=e.uint32();if(o>>>3==1)s.dec=e.string();else e.skipType(7&o)}return s},fromJSON:o=>({dec:n(o.dec)?String(o.dec):""}),toJSON(o){const t={};return void 0!==o.dec&&(t.dec=o.dec),t},fromPartial(o){const t={dec:""};return t.dec=o.dec??"",t},fromProtoMsg:o=>DecProto.decode(o.value),toProto:o=>DecProto.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.base.v1beta1.DecProto",value:DecProto.encode(o).finish()})};
|
|
@@ -1,249 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _33 from './auth/v1beta1/auth.js';
|
|
3
|
-
import * as _34 from './auth/v1beta1/genesis.js';
|
|
4
|
-
import * as _35 from './auth/v1beta1/query.js';
|
|
5
|
-
import * as _36 from './authz/v1beta1/authz.js';
|
|
6
|
-
import * as _37 from './authz/v1beta1/event.js';
|
|
7
|
-
import * as _38 from './authz/v1beta1/genesis.js';
|
|
8
|
-
import * as _39 from './authz/v1beta1/query.js';
|
|
9
|
-
import * as _40 from './authz/v1beta1/tx.js';
|
|
10
|
-
import * as _41 from './bank/v1beta1/authz.js';
|
|
11
|
-
import * as _42 from './bank/v1beta1/bank.js';
|
|
12
|
-
import * as _43 from './bank/v1beta1/genesis.js';
|
|
13
|
-
import * as _44 from './bank/v1beta1/query.js';
|
|
14
|
-
import * as _45 from './bank/v1beta1/tx.js';
|
|
15
|
-
import * as _46 from './base/abci/v1beta1/abci.js';
|
|
16
|
-
import * as _47 from './base/node/v1beta1/query.js';
|
|
17
|
-
import * as _48 from './base/query/v1beta1/pagination.js';
|
|
18
|
-
import * as _49 from './base/reflection/v2alpha1/reflection.js';
|
|
19
|
-
import * as _50 from './base/v1beta1/coin.js';
|
|
20
|
-
import * as _51 from './crypto/ed25519/keys.js';
|
|
21
|
-
import * as _52 from './crypto/hd/v1/hd.js';
|
|
22
|
-
import * as _53 from './crypto/keyring/v1/record.js';
|
|
23
|
-
import * as _54 from './crypto/multisig/keys.js';
|
|
24
|
-
import * as _55 from './crypto/secp256k1/keys.js';
|
|
25
|
-
import * as _56 from './crypto/secp256r1/keys.js';
|
|
26
|
-
import * as _57 from './distribution/v1beta1/distribution.js';
|
|
27
|
-
import * as _58 from './distribution/v1beta1/genesis.js';
|
|
28
|
-
import * as _59 from './distribution/v1beta1/query.js';
|
|
29
|
-
import * as _60 from './distribution/v1beta1/tx.js';
|
|
30
|
-
import * as _61 from './feegrant/v1beta1/feegrant.js';
|
|
31
|
-
import * as _62 from './feegrant/v1beta1/genesis.js';
|
|
32
|
-
import * as _63 from './feegrant/v1beta1/query.js';
|
|
33
|
-
import * as _64 from './feegrant/v1beta1/tx.js';
|
|
34
|
-
import * as _65 from './gov/v1/genesis.js';
|
|
35
|
-
import * as _66 from './gov/v1/gov.js';
|
|
36
|
-
import * as _67 from './gov/v1/query.js';
|
|
37
|
-
import * as _68 from './gov/v1/tx.js';
|
|
38
|
-
import * as _69 from './gov/v1beta1/genesis.js';
|
|
39
|
-
import * as _70 from './gov/v1beta1/gov.js';
|
|
40
|
-
import * as _71 from './gov/v1beta1/query.js';
|
|
41
|
-
import * as _72 from './gov/v1beta1/tx.js';
|
|
42
|
-
import * as _73 from './group/v1/events.js';
|
|
43
|
-
import * as _74 from './group/v1/genesis.js';
|
|
44
|
-
import * as _75 from './group/v1/query.js';
|
|
45
|
-
import * as _76 from './group/v1/tx.js';
|
|
46
|
-
import * as _77 from './group/v1/types.js';
|
|
47
|
-
import * as _78 from './mint/v1beta1/genesis.js';
|
|
48
|
-
import * as _79 from './mint/v1beta1/mint.js';
|
|
49
|
-
import * as _80 from './mint/v1beta1/query.js';
|
|
50
|
-
import * as _81 from './params/v1beta1/params.js';
|
|
51
|
-
import * as _82 from './params/v1beta1/query.js';
|
|
52
|
-
import * as _83 from './staking/v1beta1/authz.js';
|
|
53
|
-
import * as _84 from './staking/v1beta1/genesis.js';
|
|
54
|
-
import * as _85 from './staking/v1beta1/query.js';
|
|
55
|
-
import * as _86 from './staking/v1beta1/staking.js';
|
|
56
|
-
import * as _87 from './staking/v1beta1/tx.js';
|
|
57
|
-
import * as _88 from './tx/signing/v1beta1/signing.js';
|
|
58
|
-
import * as _89 from './tx/v1beta1/service.js';
|
|
59
|
-
import * as _90 from './tx/v1beta1/tx.js';
|
|
60
|
-
import * as _91 from './upgrade/v1beta1/query.js';
|
|
61
|
-
import * as _92 from './upgrade/v1beta1/tx.js';
|
|
62
|
-
import * as _93 from './upgrade/v1beta1/upgrade.js';
|
|
63
|
-
import * as _94 from './vesting/v1beta1/tx.js';
|
|
64
|
-
import * as _95 from './vesting/v1beta1/vesting.js';
|
|
65
|
-
export var cosmos;
|
|
66
|
-
(function (cosmos) {
|
|
67
|
-
let auth;
|
|
68
|
-
(function (auth) {
|
|
69
|
-
auth.v1beta1 = {
|
|
70
|
-
..._33,
|
|
71
|
-
..._34,
|
|
72
|
-
..._35,
|
|
73
|
-
};
|
|
74
|
-
})(auth = cosmos.auth || (cosmos.auth = {}));
|
|
75
|
-
let authz;
|
|
76
|
-
(function (authz) {
|
|
77
|
-
authz.v1beta1 = {
|
|
78
|
-
..._36,
|
|
79
|
-
..._37,
|
|
80
|
-
..._38,
|
|
81
|
-
..._39,
|
|
82
|
-
..._40,
|
|
83
|
-
};
|
|
84
|
-
})(authz = cosmos.authz || (cosmos.authz = {}));
|
|
85
|
-
let bank;
|
|
86
|
-
(function (bank) {
|
|
87
|
-
bank.v1beta1 = {
|
|
88
|
-
..._41,
|
|
89
|
-
..._42,
|
|
90
|
-
..._43,
|
|
91
|
-
..._44,
|
|
92
|
-
..._45,
|
|
93
|
-
};
|
|
94
|
-
})(bank = cosmos.bank || (cosmos.bank = {}));
|
|
95
|
-
let base;
|
|
96
|
-
(function (base) {
|
|
97
|
-
let abci;
|
|
98
|
-
(function (abci) {
|
|
99
|
-
abci.v1beta1 = {
|
|
100
|
-
..._46,
|
|
101
|
-
};
|
|
102
|
-
})(abci = base.abci || (base.abci = {}));
|
|
103
|
-
let node;
|
|
104
|
-
(function (node) {
|
|
105
|
-
node.v1beta1 = {
|
|
106
|
-
..._47,
|
|
107
|
-
};
|
|
108
|
-
})(node = base.node || (base.node = {}));
|
|
109
|
-
let query;
|
|
110
|
-
(function (query) {
|
|
111
|
-
query.v1beta1 = {
|
|
112
|
-
..._48,
|
|
113
|
-
};
|
|
114
|
-
})(query = base.query || (base.query = {}));
|
|
115
|
-
let reflection;
|
|
116
|
-
(function (reflection) {
|
|
117
|
-
reflection.v2alpha1 = {
|
|
118
|
-
..._49,
|
|
119
|
-
};
|
|
120
|
-
})(reflection = base.reflection || (base.reflection = {}));
|
|
121
|
-
base.v1beta1 = {
|
|
122
|
-
..._50,
|
|
123
|
-
};
|
|
124
|
-
})(base = cosmos.base || (cosmos.base = {}));
|
|
125
|
-
let crypto;
|
|
126
|
-
(function (crypto) {
|
|
127
|
-
crypto.ed25519 = {
|
|
128
|
-
..._51,
|
|
129
|
-
};
|
|
130
|
-
let hd;
|
|
131
|
-
(function (hd) {
|
|
132
|
-
hd.v1 = {
|
|
133
|
-
..._52,
|
|
134
|
-
};
|
|
135
|
-
})(hd = crypto.hd || (crypto.hd = {}));
|
|
136
|
-
let keyring;
|
|
137
|
-
(function (keyring) {
|
|
138
|
-
keyring.v1 = {
|
|
139
|
-
..._53,
|
|
140
|
-
};
|
|
141
|
-
})(keyring = crypto.keyring || (crypto.keyring = {}));
|
|
142
|
-
crypto.multisig = {
|
|
143
|
-
..._54,
|
|
144
|
-
};
|
|
145
|
-
crypto.secp256k1 = {
|
|
146
|
-
..._55,
|
|
147
|
-
};
|
|
148
|
-
crypto.secp256r1 = {
|
|
149
|
-
..._56,
|
|
150
|
-
};
|
|
151
|
-
})(crypto = cosmos.crypto || (cosmos.crypto = {}));
|
|
152
|
-
let distribution;
|
|
153
|
-
(function (distribution) {
|
|
154
|
-
distribution.v1beta1 = {
|
|
155
|
-
..._57,
|
|
156
|
-
..._58,
|
|
157
|
-
..._59,
|
|
158
|
-
..._60,
|
|
159
|
-
};
|
|
160
|
-
})(distribution = cosmos.distribution || (cosmos.distribution = {}));
|
|
161
|
-
let feegrant;
|
|
162
|
-
(function (feegrant) {
|
|
163
|
-
feegrant.v1beta1 = {
|
|
164
|
-
..._61,
|
|
165
|
-
..._62,
|
|
166
|
-
..._63,
|
|
167
|
-
..._64,
|
|
168
|
-
};
|
|
169
|
-
})(feegrant = cosmos.feegrant || (cosmos.feegrant = {}));
|
|
170
|
-
let gov;
|
|
171
|
-
(function (gov) {
|
|
172
|
-
gov.v1 = {
|
|
173
|
-
..._65,
|
|
174
|
-
..._66,
|
|
175
|
-
..._67,
|
|
176
|
-
..._68,
|
|
177
|
-
};
|
|
178
|
-
gov.v1beta1 = {
|
|
179
|
-
..._69,
|
|
180
|
-
..._70,
|
|
181
|
-
..._71,
|
|
182
|
-
..._72,
|
|
183
|
-
};
|
|
184
|
-
})(gov = cosmos.gov || (cosmos.gov = {}));
|
|
185
|
-
let group;
|
|
186
|
-
(function (group) {
|
|
187
|
-
group.v1 = {
|
|
188
|
-
..._73,
|
|
189
|
-
..._74,
|
|
190
|
-
..._75,
|
|
191
|
-
..._76,
|
|
192
|
-
..._77,
|
|
193
|
-
};
|
|
194
|
-
})(group = cosmos.group || (cosmos.group = {}));
|
|
195
|
-
let mint;
|
|
196
|
-
(function (mint) {
|
|
197
|
-
mint.v1beta1 = {
|
|
198
|
-
..._78,
|
|
199
|
-
..._79,
|
|
200
|
-
..._80,
|
|
201
|
-
};
|
|
202
|
-
})(mint = cosmos.mint || (cosmos.mint = {}));
|
|
203
|
-
let params;
|
|
204
|
-
(function (params) {
|
|
205
|
-
params.v1beta1 = {
|
|
206
|
-
..._81,
|
|
207
|
-
..._82,
|
|
208
|
-
};
|
|
209
|
-
})(params = cosmos.params || (cosmos.params = {}));
|
|
210
|
-
let staking;
|
|
211
|
-
(function (staking) {
|
|
212
|
-
staking.v1beta1 = {
|
|
213
|
-
..._83,
|
|
214
|
-
..._84,
|
|
215
|
-
..._85,
|
|
216
|
-
..._86,
|
|
217
|
-
..._87,
|
|
218
|
-
};
|
|
219
|
-
})(staking = cosmos.staking || (cosmos.staking = {}));
|
|
220
|
-
let tx;
|
|
221
|
-
(function (tx) {
|
|
222
|
-
let signing;
|
|
223
|
-
(function (signing) {
|
|
224
|
-
signing.v1beta1 = {
|
|
225
|
-
..._88,
|
|
226
|
-
};
|
|
227
|
-
})(signing = tx.signing || (tx.signing = {}));
|
|
228
|
-
tx.v1beta1 = {
|
|
229
|
-
..._89,
|
|
230
|
-
..._90,
|
|
231
|
-
};
|
|
232
|
-
})(tx = cosmos.tx || (cosmos.tx = {}));
|
|
233
|
-
let upgrade;
|
|
234
|
-
(function (upgrade) {
|
|
235
|
-
upgrade.v1beta1 = {
|
|
236
|
-
..._91,
|
|
237
|
-
..._92,
|
|
238
|
-
..._93,
|
|
239
|
-
};
|
|
240
|
-
})(upgrade = cosmos.upgrade || (cosmos.upgrade = {}));
|
|
241
|
-
let vesting;
|
|
242
|
-
(function (vesting) {
|
|
243
|
-
vesting.v1beta1 = {
|
|
244
|
-
..._94,
|
|
245
|
-
..._95,
|
|
246
|
-
};
|
|
247
|
-
})(vesting = cosmos.vesting || (cosmos.vesting = {}));
|
|
248
|
-
})(cosmos || (cosmos = {}));
|
|
249
|
-
//# sourceMappingURL=bundle.js.map
|
|
1
|
+
import*as t from"./auth/v1beta1/auth.js";import*as s from"./auth/v1beta1/genesis.js";import*as a from"./auth/v1beta1/query.js";import*as o from"./authz/v1beta1/authz.js";import*as r from"./authz/v1beta1/event.js";import*as e from"./authz/v1beta1/genesis.js";import*as i from"./authz/v1beta1/query.js";import*as m from"./authz/v1beta1/tx.js";import*as n from"./bank/v1beta1/authz.js";import*as v from"./bank/v1beta1/bank.js";import*as p from"./bank/v1beta1/genesis.js";import*as f from"./bank/v1beta1/query.js";import*as b from"./bank/v1beta1/tx.js";import*as u from"./base/abci/v1beta1/abci.js";import*as g from"./base/node/v1beta1/query.js";import*as j from"./base/query/v1beta1/pagination.js";import*as c from"./base/reflection/v2alpha1/reflection.js";import*as y from"./base/v1beta1/coin.js";import*as k from"./crypto/ed25519/keys.js";import*as d from"./crypto/hd/v1/hd.js";import*as h from"./crypto/keyring/v1/record.js";import*as x from"./crypto/multisig/keys.js";import*as q from"./crypto/secp256k1/keys.js";import*as l from"./crypto/secp256r1/keys.js";import*as z from"./distribution/v1beta1/distribution.js";import*as w from"./distribution/v1beta1/genesis.js";import*as A from"./distribution/v1beta1/query.js";import*as B from"./distribution/v1beta1/tx.js";import*as C from"./feegrant/v1beta1/feegrant.js";import*as D from"./feegrant/v1beta1/genesis.js";import*as E from"./feegrant/v1beta1/query.js";import*as F from"./feegrant/v1beta1/tx.js";import*as G from"./gov/v1/genesis.js";import*as H from"./gov/v1/gov.js";import*as I from"./gov/v1/query.js";import*as J from"./gov/v1/tx.js";import*as K from"./gov/v1beta1/genesis.js";import*as L from"./gov/v1beta1/gov.js";import*as M from"./gov/v1beta1/query.js";import*as N from"./gov/v1beta1/tx.js";import*as O from"./group/v1/events.js";import*as P from"./group/v1/genesis.js";import*as Q from"./group/v1/query.js";import*as R from"./group/v1/tx.js";import*as S from"./group/v1/types.js";import*as T from"./mint/v1beta1/genesis.js";import*as U from"./mint/v1beta1/mint.js";import*as V from"./mint/v1beta1/query.js";import*as W from"./params/v1beta1/params.js";import*as X from"./params/v1beta1/query.js";import*as Y from"./staking/v1beta1/authz.js";import*as Z from"./staking/v1beta1/genesis.js";import*as $ from"./staking/v1beta1/query.js";import*as _ from"./staking/v1beta1/staking.js";import*as tt from"./staking/v1beta1/tx.js";import*as st from"./tx/signing/v1beta1/signing.js";import*as at from"./tx/v1beta1/service.js";import*as ot from"./tx/v1beta1/tx.js";import*as rt from"./upgrade/v1beta1/query.js";import*as et from"./upgrade/v1beta1/tx.js";import*as it from"./upgrade/v1beta1/upgrade.js";import*as mt from"./vesting/v1beta1/tx.js";import*as nt from"./vesting/v1beta1/vesting.js";export var cosmos;!function(vt){let pt,ft,bt,ut,gt,jt,ct,yt,kt,dt,ht,xt,qt,lt,zt;!function(o){o.v1beta1={...t,...s,...a}}(pt=vt.auth||(vt.auth={})),function(t){t.v1beta1={...o,...r,...e,...i,...m}}(ft=vt.authz||(vt.authz={})),function(t){t.v1beta1={...n,...v,...p,...f,...b}}(bt=vt.bank||(vt.bank={})),function(t){let s,a,o,r;!function(t){t.v1beta1={...u}}(s=t.abci||(t.abci={})),function(t){t.v1beta1={...g}}(a=t.node||(t.node={})),function(t){t.v1beta1={...j}}(o=t.query||(t.query={})),function(t){t.v2alpha1={...c}}(r=t.reflection||(t.reflection={})),t.v1beta1={...y}}(ut=vt.base||(vt.base={})),function(t){let s,a;t.ed25519={...k},function(t){t.v1={...d}}(s=t.hd||(t.hd={})),function(t){t.v1={...h}}(a=t.keyring||(t.keyring={})),t.multisig={...x},t.secp256k1={...q},t.secp256r1={...l}}(gt=vt.crypto||(vt.crypto={})),function(t){t.v1beta1={...z,...w,...A,...B}}(jt=vt.distribution||(vt.distribution={})),function(t){t.v1beta1={...C,...D,...E,...F}}(ct=vt.feegrant||(vt.feegrant={})),function(t){t.v1={...G,...H,...I,...J},t.v1beta1={...K,...L,...M,...N}}(yt=vt.gov||(vt.gov={})),function(t){t.v1={...O,...P,...Q,...R,...S}}(kt=vt.group||(vt.group={})),function(t){t.v1beta1={...T,...U,...V}}(dt=vt.mint||(vt.mint={})),function(t){t.v1beta1={...W,...X}}(ht=vt.params||(vt.params={})),function(t){t.v1beta1={...Y,...Z,...$,..._,...tt}}(xt=vt.staking||(vt.staking={})),function(t){let s;!function(t){t.v1beta1={...st}}(s=t.signing||(t.signing={})),t.v1beta1={...at,...ot}}(qt=vt.tx||(vt.tx={})),function(t){t.v1beta1={...rt,...et,...it}}(lt=vt.upgrade||(vt.upgrade={})),function(t){t.v1beta1={...mt,...nt}}(zt=vt.vesting||(vt.vesting={}))}(cosmos||(cosmos={}));
|
|
@@ -1,123 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
3
|
-
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
|
|
4
|
-
import {} from '../../../json-safe.js';
|
|
5
|
-
function createBasePubKey() {
|
|
6
|
-
return {
|
|
7
|
-
key: new Uint8Array(),
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export const PubKey = {
|
|
11
|
-
typeUrl: '/cosmos.crypto.ed25519.PubKey',
|
|
12
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
13
|
-
if (message.key.length !== 0) {
|
|
14
|
-
writer.uint32(10).bytes(message.key);
|
|
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 = createBasePubKey();
|
|
22
|
-
while (reader.pos < end) {
|
|
23
|
-
const tag = reader.uint32();
|
|
24
|
-
switch (tag >>> 3) {
|
|
25
|
-
case 1:
|
|
26
|
-
message.key = reader.bytes();
|
|
27
|
-
break;
|
|
28
|
-
default:
|
|
29
|
-
reader.skipType(tag & 7);
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return message;
|
|
34
|
-
},
|
|
35
|
-
fromJSON(object) {
|
|
36
|
-
return {
|
|
37
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
toJSON(message) {
|
|
41
|
-
const obj = {};
|
|
42
|
-
message.key !== undefined &&
|
|
43
|
-
(obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
44
|
-
return obj;
|
|
45
|
-
},
|
|
46
|
-
fromPartial(object) {
|
|
47
|
-
const message = createBasePubKey();
|
|
48
|
-
message.key = object.key ?? new Uint8Array();
|
|
49
|
-
return message;
|
|
50
|
-
},
|
|
51
|
-
fromProtoMsg(message) {
|
|
52
|
-
return PubKey.decode(message.value);
|
|
53
|
-
},
|
|
54
|
-
toProto(message) {
|
|
55
|
-
return PubKey.encode(message).finish();
|
|
56
|
-
},
|
|
57
|
-
toProtoMsg(message) {
|
|
58
|
-
return {
|
|
59
|
-
typeUrl: '/cosmos.crypto.ed25519.PubKey',
|
|
60
|
-
value: PubKey.encode(message).finish(),
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
function createBasePrivKey() {
|
|
65
|
-
return {
|
|
66
|
-
key: new Uint8Array(),
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export const PrivKey = {
|
|
70
|
-
typeUrl: '/cosmos.crypto.ed25519.PrivKey',
|
|
71
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
72
|
-
if (message.key.length !== 0) {
|
|
73
|
-
writer.uint32(10).bytes(message.key);
|
|
74
|
-
}
|
|
75
|
-
return writer;
|
|
76
|
-
},
|
|
77
|
-
decode(input, length) {
|
|
78
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
79
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
80
|
-
const message = createBasePrivKey();
|
|
81
|
-
while (reader.pos < end) {
|
|
82
|
-
const tag = reader.uint32();
|
|
83
|
-
switch (tag >>> 3) {
|
|
84
|
-
case 1:
|
|
85
|
-
message.key = reader.bytes();
|
|
86
|
-
break;
|
|
87
|
-
default:
|
|
88
|
-
reader.skipType(tag & 7);
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return message;
|
|
93
|
-
},
|
|
94
|
-
fromJSON(object) {
|
|
95
|
-
return {
|
|
96
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
97
|
-
};
|
|
98
|
-
},
|
|
99
|
-
toJSON(message) {
|
|
100
|
-
const obj = {};
|
|
101
|
-
message.key !== undefined &&
|
|
102
|
-
(obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
103
|
-
return obj;
|
|
104
|
-
},
|
|
105
|
-
fromPartial(object) {
|
|
106
|
-
const message = createBasePrivKey();
|
|
107
|
-
message.key = object.key ?? new Uint8Array();
|
|
108
|
-
return message;
|
|
109
|
-
},
|
|
110
|
-
fromProtoMsg(message) {
|
|
111
|
-
return PrivKey.decode(message.value);
|
|
112
|
-
},
|
|
113
|
-
toProto(message) {
|
|
114
|
-
return PrivKey.encode(message).finish();
|
|
115
|
-
},
|
|
116
|
-
toProtoMsg(message) {
|
|
117
|
-
return {
|
|
118
|
-
typeUrl: '/cosmos.crypto.ed25519.PrivKey',
|
|
119
|
-
value: PrivKey.encode(message).finish(),
|
|
120
|
-
};
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=keys.js.map
|
|
1
|
+
import{BinaryReader as e,BinaryWriter as o}from"../../../binary.js";import{isSet as r,bytesFromBase64 as t,base64FromBytes as n}from"../../../helpers.js";import{}from"../../../json-safe.js";function y(){return{key:new Uint8Array}}export const PubKey={typeUrl:"/cosmos.crypto.ed25519.PubKey",encode:(e,r=o.create())=>(0!==e.key.length&&r.uint32(10).bytes(e.key),r),decode(o,r){const t=o instanceof e?o:new e(o);let n=void 0===r?t.len:t.pos+r;const s=y();for(;t.pos<n;){const e=t.uint32();if(e>>>3==1)s.key=t.bytes();else t.skipType(7&e)}return s},fromJSON:e=>({key:r(e.key)?t(e.key):new Uint8Array}),toJSON(e){const o={};return void 0!==e.key&&(o.key=n(void 0!==e.key?e.key:new Uint8Array)),o},fromPartial(e){const o=y();return o.key=e.key??new Uint8Array,o},fromProtoMsg:e=>PubKey.decode(e.value),toProto:e=>PubKey.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:PubKey.encode(e).finish()})};function s(){return{key:new Uint8Array}}export const PrivKey={typeUrl:"/cosmos.crypto.ed25519.PrivKey",encode:(e,r=o.create())=>(0!==e.key.length&&r.uint32(10).bytes(e.key),r),decode(o,r){const t=o instanceof e?o:new e(o);let n=void 0===r?t.len:t.pos+r;const y=s();for(;t.pos<n;){const e=t.uint32();if(e>>>3==1)y.key=t.bytes();else t.skipType(7&e)}return y},fromJSON:e=>({key:r(e.key)?t(e.key):new Uint8Array}),toJSON(e){const o={};return void 0!==e.key&&(o.key=n(void 0!==e.key?e.key:new Uint8Array)),o},fromPartial(e){const o=s();return o.key=e.key??new Uint8Array,o},fromProtoMsg:e=>PrivKey.decode(e.value),toProto:e=>PrivKey.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.crypto.ed25519.PrivKey",value:PrivKey.encode(e).finish()})};
|