@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,82 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Minter, Params, } from './mint.js';
|
|
3
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
4
|
-
import { isSet } from '../../../helpers.js';
|
|
5
|
-
import {} from '../../../json-safe.js';
|
|
6
|
-
function createBaseGenesisState() {
|
|
7
|
-
return {
|
|
8
|
-
minter: Minter.fromPartial({}),
|
|
9
|
-
params: Params.fromPartial({}),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export const GenesisState = {
|
|
13
|
-
typeUrl: '/cosmos.mint.v1beta1.GenesisState',
|
|
14
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
15
|
-
if (message.minter !== undefined) {
|
|
16
|
-
Minter.encode(message.minter, writer.uint32(10).fork()).ldelim();
|
|
17
|
-
}
|
|
18
|
-
if (message.params !== undefined) {
|
|
19
|
-
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
20
|
-
}
|
|
21
|
-
return writer;
|
|
22
|
-
},
|
|
23
|
-
decode(input, length) {
|
|
24
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
25
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
-
const message = createBaseGenesisState();
|
|
27
|
-
while (reader.pos < end) {
|
|
28
|
-
const tag = reader.uint32();
|
|
29
|
-
switch (tag >>> 3) {
|
|
30
|
-
case 1:
|
|
31
|
-
message.minter = Minter.decode(reader, reader.uint32());
|
|
32
|
-
break;
|
|
33
|
-
case 2:
|
|
34
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
35
|
-
break;
|
|
36
|
-
default:
|
|
37
|
-
reader.skipType(tag & 7);
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return message;
|
|
42
|
-
},
|
|
43
|
-
fromJSON(object) {
|
|
44
|
-
return {
|
|
45
|
-
minter: isSet(object.minter) ? Minter.fromJSON(object.minter) : undefined,
|
|
46
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
toJSON(message) {
|
|
50
|
-
const obj = {};
|
|
51
|
-
message.minter !== undefined &&
|
|
52
|
-
(obj.minter = message.minter ? Minter.toJSON(message.minter) : undefined);
|
|
53
|
-
message.params !== undefined &&
|
|
54
|
-
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
55
|
-
return obj;
|
|
56
|
-
},
|
|
57
|
-
fromPartial(object) {
|
|
58
|
-
const message = createBaseGenesisState();
|
|
59
|
-
message.minter =
|
|
60
|
-
object.minter !== undefined && object.minter !== null
|
|
61
|
-
? Minter.fromPartial(object.minter)
|
|
62
|
-
: undefined;
|
|
63
|
-
message.params =
|
|
64
|
-
object.params !== undefined && object.params !== null
|
|
65
|
-
? Params.fromPartial(object.params)
|
|
66
|
-
: undefined;
|
|
67
|
-
return message;
|
|
68
|
-
},
|
|
69
|
-
fromProtoMsg(message) {
|
|
70
|
-
return GenesisState.decode(message.value);
|
|
71
|
-
},
|
|
72
|
-
toProto(message) {
|
|
73
|
-
return GenesisState.encode(message).finish();
|
|
74
|
-
},
|
|
75
|
-
toProtoMsg(message) {
|
|
76
|
-
return {
|
|
77
|
-
typeUrl: '/cosmos.mint.v1beta1.GenesisState',
|
|
78
|
-
value: GenesisState.encode(message).finish(),
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
//# sourceMappingURL=genesis.js.map
|
|
1
|
+
import{Minter as e,Params as r}from"./mint.js";import{BinaryReader as t,BinaryWriter as o}from"../../../binary.js";import{isSet as i}from"../../../helpers.js";import{}from"../../../json-safe.js";function a(){return{minter:e.fromPartial({}),params:r.fromPartial({})}}export const GenesisState={typeUrl:"/cosmos.mint.v1beta1.GenesisState",encode:(t,i=o.create())=>(void 0!==t.minter&&e.encode(t.minter,i.uint32(10).fork()).ldelim(),void 0!==t.params&&r.encode(t.params,i.uint32(18).fork()).ldelim(),i),decode(o,i){const n=o instanceof t?o:new t(o);let s=void 0===i?n.len:n.pos+i;const m=a();for(;n.pos<s;){const t=n.uint32();switch(t>>>3){case 1:m.minter=e.decode(n,n.uint32());break;case 2:m.params=r.decode(n,n.uint32());break;default:n.skipType(7&t)}}return m},fromJSON:t=>({minter:i(t.minter)?e.fromJSON(t.minter):void 0,params:i(t.params)?r.fromJSON(t.params):void 0}),toJSON(t){const o={};return void 0!==t.minter&&(o.minter=t.minter?e.toJSON(t.minter):void 0),void 0!==t.params&&(o.params=t.params?r.toJSON(t.params):void 0),o},fromPartial(t){const o=a();return o.minter=void 0!==t.minter&&null!==t.minter?e.fromPartial(t.minter):void 0,o.params=void 0!==t.params&&null!==t.params?r.fromPartial(t.params):void 0,o},fromProtoMsg:e=>GenesisState.decode(e.value),toProto:e=>GenesisState.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.mint.v1beta1.GenesisState",value:GenesisState.encode(e).finish()})};
|
|
@@ -1,211 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
3
|
-
import { Decimal, isSet } from '../../../helpers.js';
|
|
4
|
-
import {} from '../../../json-safe.js';
|
|
5
|
-
function createBaseMinter() {
|
|
6
|
-
return {
|
|
7
|
-
inflation: '',
|
|
8
|
-
annualProvisions: '',
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export const Minter = {
|
|
12
|
-
typeUrl: '/cosmos.mint.v1beta1.Minter',
|
|
13
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
14
|
-
if (message.inflation !== '') {
|
|
15
|
-
writer
|
|
16
|
-
.uint32(10)
|
|
17
|
-
.string(Decimal.fromUserInput(message.inflation, 18).atomics);
|
|
18
|
-
}
|
|
19
|
-
if (message.annualProvisions !== '') {
|
|
20
|
-
writer
|
|
21
|
-
.uint32(18)
|
|
22
|
-
.string(Decimal.fromUserInput(message.annualProvisions, 18).atomics);
|
|
23
|
-
}
|
|
24
|
-
return writer;
|
|
25
|
-
},
|
|
26
|
-
decode(input, length) {
|
|
27
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
28
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
-
const message = createBaseMinter();
|
|
30
|
-
while (reader.pos < end) {
|
|
31
|
-
const tag = reader.uint32();
|
|
32
|
-
switch (tag >>> 3) {
|
|
33
|
-
case 1:
|
|
34
|
-
message.inflation = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
35
|
-
break;
|
|
36
|
-
case 2:
|
|
37
|
-
message.annualProvisions = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
38
|
-
break;
|
|
39
|
-
default:
|
|
40
|
-
reader.skipType(tag & 7);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return message;
|
|
45
|
-
},
|
|
46
|
-
fromJSON(object) {
|
|
47
|
-
return {
|
|
48
|
-
inflation: isSet(object.inflation) ? String(object.inflation) : '',
|
|
49
|
-
annualProvisions: isSet(object.annualProvisions)
|
|
50
|
-
? String(object.annualProvisions)
|
|
51
|
-
: '',
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
toJSON(message) {
|
|
55
|
-
const obj = {};
|
|
56
|
-
message.inflation !== undefined && (obj.inflation = message.inflation);
|
|
57
|
-
message.annualProvisions !== undefined &&
|
|
58
|
-
(obj.annualProvisions = message.annualProvisions);
|
|
59
|
-
return obj;
|
|
60
|
-
},
|
|
61
|
-
fromPartial(object) {
|
|
62
|
-
const message = createBaseMinter();
|
|
63
|
-
message.inflation = object.inflation ?? '';
|
|
64
|
-
message.annualProvisions = object.annualProvisions ?? '';
|
|
65
|
-
return message;
|
|
66
|
-
},
|
|
67
|
-
fromProtoMsg(message) {
|
|
68
|
-
return Minter.decode(message.value);
|
|
69
|
-
},
|
|
70
|
-
toProto(message) {
|
|
71
|
-
return Minter.encode(message).finish();
|
|
72
|
-
},
|
|
73
|
-
toProtoMsg(message) {
|
|
74
|
-
return {
|
|
75
|
-
typeUrl: '/cosmos.mint.v1beta1.Minter',
|
|
76
|
-
value: Minter.encode(message).finish(),
|
|
77
|
-
};
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
function createBaseParams() {
|
|
81
|
-
return {
|
|
82
|
-
mintDenom: '',
|
|
83
|
-
inflationRateChange: '',
|
|
84
|
-
inflationMax: '',
|
|
85
|
-
inflationMin: '',
|
|
86
|
-
goalBonded: '',
|
|
87
|
-
blocksPerYear: BigInt(0),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
export const Params = {
|
|
91
|
-
typeUrl: '/cosmos.mint.v1beta1.Params',
|
|
92
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
93
|
-
if (message.mintDenom !== '') {
|
|
94
|
-
writer.uint32(10).string(message.mintDenom);
|
|
95
|
-
}
|
|
96
|
-
if (message.inflationRateChange !== '') {
|
|
97
|
-
writer
|
|
98
|
-
.uint32(18)
|
|
99
|
-
.string(Decimal.fromUserInput(message.inflationRateChange, 18).atomics);
|
|
100
|
-
}
|
|
101
|
-
if (message.inflationMax !== '') {
|
|
102
|
-
writer
|
|
103
|
-
.uint32(26)
|
|
104
|
-
.string(Decimal.fromUserInput(message.inflationMax, 18).atomics);
|
|
105
|
-
}
|
|
106
|
-
if (message.inflationMin !== '') {
|
|
107
|
-
writer
|
|
108
|
-
.uint32(34)
|
|
109
|
-
.string(Decimal.fromUserInput(message.inflationMin, 18).atomics);
|
|
110
|
-
}
|
|
111
|
-
if (message.goalBonded !== '') {
|
|
112
|
-
writer
|
|
113
|
-
.uint32(42)
|
|
114
|
-
.string(Decimal.fromUserInput(message.goalBonded, 18).atomics);
|
|
115
|
-
}
|
|
116
|
-
if (message.blocksPerYear !== BigInt(0)) {
|
|
117
|
-
writer.uint32(48).uint64(message.blocksPerYear);
|
|
118
|
-
}
|
|
119
|
-
return writer;
|
|
120
|
-
},
|
|
121
|
-
decode(input, length) {
|
|
122
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
123
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
124
|
-
const message = createBaseParams();
|
|
125
|
-
while (reader.pos < end) {
|
|
126
|
-
const tag = reader.uint32();
|
|
127
|
-
switch (tag >>> 3) {
|
|
128
|
-
case 1:
|
|
129
|
-
message.mintDenom = reader.string();
|
|
130
|
-
break;
|
|
131
|
-
case 2:
|
|
132
|
-
message.inflationRateChange = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
133
|
-
break;
|
|
134
|
-
case 3:
|
|
135
|
-
message.inflationMax = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
136
|
-
break;
|
|
137
|
-
case 4:
|
|
138
|
-
message.inflationMin = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
139
|
-
break;
|
|
140
|
-
case 5:
|
|
141
|
-
message.goalBonded = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
142
|
-
break;
|
|
143
|
-
case 6:
|
|
144
|
-
message.blocksPerYear = reader.uint64();
|
|
145
|
-
break;
|
|
146
|
-
default:
|
|
147
|
-
reader.skipType(tag & 7);
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return message;
|
|
152
|
-
},
|
|
153
|
-
fromJSON(object) {
|
|
154
|
-
return {
|
|
155
|
-
mintDenom: isSet(object.mintDenom) ? String(object.mintDenom) : '',
|
|
156
|
-
inflationRateChange: isSet(object.inflationRateChange)
|
|
157
|
-
? String(object.inflationRateChange)
|
|
158
|
-
: '',
|
|
159
|
-
inflationMax: isSet(object.inflationMax)
|
|
160
|
-
? String(object.inflationMax)
|
|
161
|
-
: '',
|
|
162
|
-
inflationMin: isSet(object.inflationMin)
|
|
163
|
-
? String(object.inflationMin)
|
|
164
|
-
: '',
|
|
165
|
-
goalBonded: isSet(object.goalBonded) ? String(object.goalBonded) : '',
|
|
166
|
-
blocksPerYear: isSet(object.blocksPerYear)
|
|
167
|
-
? BigInt(object.blocksPerYear.toString())
|
|
168
|
-
: BigInt(0),
|
|
169
|
-
};
|
|
170
|
-
},
|
|
171
|
-
toJSON(message) {
|
|
172
|
-
const obj = {};
|
|
173
|
-
message.mintDenom !== undefined && (obj.mintDenom = message.mintDenom);
|
|
174
|
-
message.inflationRateChange !== undefined &&
|
|
175
|
-
(obj.inflationRateChange = message.inflationRateChange);
|
|
176
|
-
message.inflationMax !== undefined &&
|
|
177
|
-
(obj.inflationMax = message.inflationMax);
|
|
178
|
-
message.inflationMin !== undefined &&
|
|
179
|
-
(obj.inflationMin = message.inflationMin);
|
|
180
|
-
message.goalBonded !== undefined && (obj.goalBonded = message.goalBonded);
|
|
181
|
-
message.blocksPerYear !== undefined &&
|
|
182
|
-
(obj.blocksPerYear = (message.blocksPerYear || BigInt(0)).toString());
|
|
183
|
-
return obj;
|
|
184
|
-
},
|
|
185
|
-
fromPartial(object) {
|
|
186
|
-
const message = createBaseParams();
|
|
187
|
-
message.mintDenom = object.mintDenom ?? '';
|
|
188
|
-
message.inflationRateChange = object.inflationRateChange ?? '';
|
|
189
|
-
message.inflationMax = object.inflationMax ?? '';
|
|
190
|
-
message.inflationMin = object.inflationMin ?? '';
|
|
191
|
-
message.goalBonded = object.goalBonded ?? '';
|
|
192
|
-
message.blocksPerYear =
|
|
193
|
-
object.blocksPerYear !== undefined && object.blocksPerYear !== null
|
|
194
|
-
? BigInt(object.blocksPerYear.toString())
|
|
195
|
-
: BigInt(0);
|
|
196
|
-
return message;
|
|
197
|
-
},
|
|
198
|
-
fromProtoMsg(message) {
|
|
199
|
-
return Params.decode(message.value);
|
|
200
|
-
},
|
|
201
|
-
toProto(message) {
|
|
202
|
-
return Params.encode(message).finish();
|
|
203
|
-
},
|
|
204
|
-
toProtoMsg(message) {
|
|
205
|
-
return {
|
|
206
|
-
typeUrl: '/cosmos.mint.v1beta1.Params',
|
|
207
|
-
value: Params.encode(message).finish(),
|
|
208
|
-
};
|
|
209
|
-
},
|
|
210
|
-
};
|
|
211
|
-
//# sourceMappingURL=mint.js.map
|
|
1
|
+
import{BinaryReader as n,BinaryWriter as i}from"../../../binary.js";import{Decimal as o,isSet as t}from"../../../helpers.js";import{}from"../../../json-safe.js";export const Minter={typeUrl:"/cosmos.mint.v1beta1.Minter",encode:(n,t=i.create())=>(""!==n.inflation&&t.uint32(10).string(o.fromUserInput(n.inflation,18).atomics),""!==n.annualProvisions&&t.uint32(18).string(o.fromUserInput(n.annualProvisions,18).atomics),t),decode(i,t){const a=i instanceof n?i:new n(i);let e=void 0===t?a.len:a.pos+t;const r={inflation:"",annualProvisions:""};for(;a.pos<e;){const n=a.uint32();switch(n>>>3){case 1:r.inflation=o.fromAtomics(a.string(),18).toString();break;case 2:r.annualProvisions=o.fromAtomics(a.string(),18).toString();break;default:a.skipType(7&n)}}return r},fromJSON:n=>({inflation:t(n.inflation)?String(n.inflation):"",annualProvisions:t(n.annualProvisions)?String(n.annualProvisions):""}),toJSON(n){const i={};return void 0!==n.inflation&&(i.inflation=n.inflation),void 0!==n.annualProvisions&&(i.annualProvisions=n.annualProvisions),i},fromPartial(n){const i={inflation:"",annualProvisions:""};return i.inflation=n.inflation??"",i.annualProvisions=n.annualProvisions??"",i},fromProtoMsg:n=>Minter.decode(n.value),toProto:n=>Minter.encode(n).finish(),toProtoMsg:n=>({typeUrl:"/cosmos.mint.v1beta1.Minter",value:Minter.encode(n).finish()})};function a(){return{mintDenom:"",inflationRateChange:"",inflationMax:"",inflationMin:"",goalBonded:"",blocksPerYear:BigInt(0)}}export const Params={typeUrl:"/cosmos.mint.v1beta1.Params",encode:(n,t=i.create())=>(""!==n.mintDenom&&t.uint32(10).string(n.mintDenom),""!==n.inflationRateChange&&t.uint32(18).string(o.fromUserInput(n.inflationRateChange,18).atomics),""!==n.inflationMax&&t.uint32(26).string(o.fromUserInput(n.inflationMax,18).atomics),""!==n.inflationMin&&t.uint32(34).string(o.fromUserInput(n.inflationMin,18).atomics),""!==n.goalBonded&&t.uint32(42).string(o.fromUserInput(n.goalBonded,18).atomics),n.blocksPerYear!==BigInt(0)&&t.uint32(48).uint64(n.blocksPerYear),t),decode(i,t){const e=i instanceof n?i:new n(i);let r=void 0===t?e.len:e.pos+t;const s=a();for(;e.pos<r;){const n=e.uint32();switch(n>>>3){case 1:s.mintDenom=e.string();break;case 2:s.inflationRateChange=o.fromAtomics(e.string(),18).toString();break;case 3:s.inflationMax=o.fromAtomics(e.string(),18).toString();break;case 4:s.inflationMin=o.fromAtomics(e.string(),18).toString();break;case 5:s.goalBonded=o.fromAtomics(e.string(),18).toString();break;case 6:s.blocksPerYear=e.uint64();break;default:e.skipType(7&n)}}return s},fromJSON:n=>({mintDenom:t(n.mintDenom)?String(n.mintDenom):"",inflationRateChange:t(n.inflationRateChange)?String(n.inflationRateChange):"",inflationMax:t(n.inflationMax)?String(n.inflationMax):"",inflationMin:t(n.inflationMin)?String(n.inflationMin):"",goalBonded:t(n.goalBonded)?String(n.goalBonded):"",blocksPerYear:t(n.blocksPerYear)?BigInt(n.blocksPerYear.toString()):BigInt(0)}),toJSON(n){const i={};return void 0!==n.mintDenom&&(i.mintDenom=n.mintDenom),void 0!==n.inflationRateChange&&(i.inflationRateChange=n.inflationRateChange),void 0!==n.inflationMax&&(i.inflationMax=n.inflationMax),void 0!==n.inflationMin&&(i.inflationMin=n.inflationMin),void 0!==n.goalBonded&&(i.goalBonded=n.goalBonded),void 0!==n.blocksPerYear&&(i.blocksPerYear=(n.blocksPerYear||BigInt(0)).toString()),i},fromPartial(n){const i=a();return i.mintDenom=n.mintDenom??"",i.inflationRateChange=n.inflationRateChange??"",i.inflationMax=n.inflationMax??"",i.inflationMin=n.inflationMin??"",i.goalBonded=n.goalBonded??"",i.blocksPerYear=void 0!==n.blocksPerYear&&null!==n.blocksPerYear?BigInt(n.blocksPerYear.toString()):BigInt(0),i},fromProtoMsg:n=>Params.decode(n.value),toProto:n=>Params.encode(n).finish(),toProtoMsg:n=>({typeUrl:"/cosmos.mint.v1beta1.Params",value:Params.encode(n).finish()})};
|
|
@@ -1,330 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Params } from './mint.js';
|
|
3
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
4
|
-
import {} from '../../../json-safe.js';
|
|
5
|
-
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
|
|
6
|
-
function createBaseQueryParamsRequest() {
|
|
7
|
-
return {};
|
|
8
|
-
}
|
|
9
|
-
export const QueryParamsRequest = {
|
|
10
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryParamsRequest',
|
|
11
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
12
|
-
return writer;
|
|
13
|
-
},
|
|
14
|
-
decode(input, length) {
|
|
15
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17
|
-
const message = createBaseQueryParamsRequest();
|
|
18
|
-
while (reader.pos < end) {
|
|
19
|
-
const tag = reader.uint32();
|
|
20
|
-
switch (tag >>> 3) {
|
|
21
|
-
default:
|
|
22
|
-
reader.skipType(tag & 7);
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return message;
|
|
27
|
-
},
|
|
28
|
-
fromJSON(_) {
|
|
29
|
-
return {};
|
|
30
|
-
},
|
|
31
|
-
toJSON(_) {
|
|
32
|
-
const obj = {};
|
|
33
|
-
return obj;
|
|
34
|
-
},
|
|
35
|
-
fromPartial(_) {
|
|
36
|
-
const message = createBaseQueryParamsRequest();
|
|
37
|
-
return message;
|
|
38
|
-
},
|
|
39
|
-
fromProtoMsg(message) {
|
|
40
|
-
return QueryParamsRequest.decode(message.value);
|
|
41
|
-
},
|
|
42
|
-
toProto(message) {
|
|
43
|
-
return QueryParamsRequest.encode(message).finish();
|
|
44
|
-
},
|
|
45
|
-
toProtoMsg(message) {
|
|
46
|
-
return {
|
|
47
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryParamsRequest',
|
|
48
|
-
value: QueryParamsRequest.encode(message).finish(),
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
function createBaseQueryParamsResponse() {
|
|
53
|
-
return {
|
|
54
|
-
params: Params.fromPartial({}),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export const QueryParamsResponse = {
|
|
58
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryParamsResponse',
|
|
59
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
60
|
-
if (message.params !== undefined) {
|
|
61
|
-
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
62
|
-
}
|
|
63
|
-
return writer;
|
|
64
|
-
},
|
|
65
|
-
decode(input, length) {
|
|
66
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
67
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
-
const message = createBaseQueryParamsResponse();
|
|
69
|
-
while (reader.pos < end) {
|
|
70
|
-
const tag = reader.uint32();
|
|
71
|
-
switch (tag >>> 3) {
|
|
72
|
-
case 1:
|
|
73
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
74
|
-
break;
|
|
75
|
-
default:
|
|
76
|
-
reader.skipType(tag & 7);
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return message;
|
|
81
|
-
},
|
|
82
|
-
fromJSON(object) {
|
|
83
|
-
return {
|
|
84
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
toJSON(message) {
|
|
88
|
-
const obj = {};
|
|
89
|
-
message.params !== undefined &&
|
|
90
|
-
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
91
|
-
return obj;
|
|
92
|
-
},
|
|
93
|
-
fromPartial(object) {
|
|
94
|
-
const message = createBaseQueryParamsResponse();
|
|
95
|
-
message.params =
|
|
96
|
-
object.params !== undefined && object.params !== null
|
|
97
|
-
? Params.fromPartial(object.params)
|
|
98
|
-
: undefined;
|
|
99
|
-
return message;
|
|
100
|
-
},
|
|
101
|
-
fromProtoMsg(message) {
|
|
102
|
-
return QueryParamsResponse.decode(message.value);
|
|
103
|
-
},
|
|
104
|
-
toProto(message) {
|
|
105
|
-
return QueryParamsResponse.encode(message).finish();
|
|
106
|
-
},
|
|
107
|
-
toProtoMsg(message) {
|
|
108
|
-
return {
|
|
109
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryParamsResponse',
|
|
110
|
-
value: QueryParamsResponse.encode(message).finish(),
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
function createBaseQueryInflationRequest() {
|
|
115
|
-
return {};
|
|
116
|
-
}
|
|
117
|
-
export const QueryInflationRequest = {
|
|
118
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryInflationRequest',
|
|
119
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
120
|
-
return writer;
|
|
121
|
-
},
|
|
122
|
-
decode(input, length) {
|
|
123
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
124
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
125
|
-
const message = createBaseQueryInflationRequest();
|
|
126
|
-
while (reader.pos < end) {
|
|
127
|
-
const tag = reader.uint32();
|
|
128
|
-
switch (tag >>> 3) {
|
|
129
|
-
default:
|
|
130
|
-
reader.skipType(tag & 7);
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return message;
|
|
135
|
-
},
|
|
136
|
-
fromJSON(_) {
|
|
137
|
-
return {};
|
|
138
|
-
},
|
|
139
|
-
toJSON(_) {
|
|
140
|
-
const obj = {};
|
|
141
|
-
return obj;
|
|
142
|
-
},
|
|
143
|
-
fromPartial(_) {
|
|
144
|
-
const message = createBaseQueryInflationRequest();
|
|
145
|
-
return message;
|
|
146
|
-
},
|
|
147
|
-
fromProtoMsg(message) {
|
|
148
|
-
return QueryInflationRequest.decode(message.value);
|
|
149
|
-
},
|
|
150
|
-
toProto(message) {
|
|
151
|
-
return QueryInflationRequest.encode(message).finish();
|
|
152
|
-
},
|
|
153
|
-
toProtoMsg(message) {
|
|
154
|
-
return {
|
|
155
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryInflationRequest',
|
|
156
|
-
value: QueryInflationRequest.encode(message).finish(),
|
|
157
|
-
};
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
function createBaseQueryInflationResponse() {
|
|
161
|
-
return {
|
|
162
|
-
inflation: new Uint8Array(),
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
export const QueryInflationResponse = {
|
|
166
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryInflationResponse',
|
|
167
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
168
|
-
if (message.inflation.length !== 0) {
|
|
169
|
-
writer.uint32(10).bytes(message.inflation);
|
|
170
|
-
}
|
|
171
|
-
return writer;
|
|
172
|
-
},
|
|
173
|
-
decode(input, length) {
|
|
174
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
175
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
176
|
-
const message = createBaseQueryInflationResponse();
|
|
177
|
-
while (reader.pos < end) {
|
|
178
|
-
const tag = reader.uint32();
|
|
179
|
-
switch (tag >>> 3) {
|
|
180
|
-
case 1:
|
|
181
|
-
message.inflation = reader.bytes();
|
|
182
|
-
break;
|
|
183
|
-
default:
|
|
184
|
-
reader.skipType(tag & 7);
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return message;
|
|
189
|
-
},
|
|
190
|
-
fromJSON(object) {
|
|
191
|
-
return {
|
|
192
|
-
inflation: isSet(object.inflation)
|
|
193
|
-
? bytesFromBase64(object.inflation)
|
|
194
|
-
: new Uint8Array(),
|
|
195
|
-
};
|
|
196
|
-
},
|
|
197
|
-
toJSON(message) {
|
|
198
|
-
const obj = {};
|
|
199
|
-
message.inflation !== undefined &&
|
|
200
|
-
(obj.inflation = base64FromBytes(message.inflation !== undefined ? message.inflation : new Uint8Array()));
|
|
201
|
-
return obj;
|
|
202
|
-
},
|
|
203
|
-
fromPartial(object) {
|
|
204
|
-
const message = createBaseQueryInflationResponse();
|
|
205
|
-
message.inflation = object.inflation ?? new Uint8Array();
|
|
206
|
-
return message;
|
|
207
|
-
},
|
|
208
|
-
fromProtoMsg(message) {
|
|
209
|
-
return QueryInflationResponse.decode(message.value);
|
|
210
|
-
},
|
|
211
|
-
toProto(message) {
|
|
212
|
-
return QueryInflationResponse.encode(message).finish();
|
|
213
|
-
},
|
|
214
|
-
toProtoMsg(message) {
|
|
215
|
-
return {
|
|
216
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryInflationResponse',
|
|
217
|
-
value: QueryInflationResponse.encode(message).finish(),
|
|
218
|
-
};
|
|
219
|
-
},
|
|
220
|
-
};
|
|
221
|
-
function createBaseQueryAnnualProvisionsRequest() {
|
|
222
|
-
return {};
|
|
223
|
-
}
|
|
224
|
-
export const QueryAnnualProvisionsRequest = {
|
|
225
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest',
|
|
226
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
227
|
-
return writer;
|
|
228
|
-
},
|
|
229
|
-
decode(input, length) {
|
|
230
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
231
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
232
|
-
const message = createBaseQueryAnnualProvisionsRequest();
|
|
233
|
-
while (reader.pos < end) {
|
|
234
|
-
const tag = reader.uint32();
|
|
235
|
-
switch (tag >>> 3) {
|
|
236
|
-
default:
|
|
237
|
-
reader.skipType(tag & 7);
|
|
238
|
-
break;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
return message;
|
|
242
|
-
},
|
|
243
|
-
fromJSON(_) {
|
|
244
|
-
return {};
|
|
245
|
-
},
|
|
246
|
-
toJSON(_) {
|
|
247
|
-
const obj = {};
|
|
248
|
-
return obj;
|
|
249
|
-
},
|
|
250
|
-
fromPartial(_) {
|
|
251
|
-
const message = createBaseQueryAnnualProvisionsRequest();
|
|
252
|
-
return message;
|
|
253
|
-
},
|
|
254
|
-
fromProtoMsg(message) {
|
|
255
|
-
return QueryAnnualProvisionsRequest.decode(message.value);
|
|
256
|
-
},
|
|
257
|
-
toProto(message) {
|
|
258
|
-
return QueryAnnualProvisionsRequest.encode(message).finish();
|
|
259
|
-
},
|
|
260
|
-
toProtoMsg(message) {
|
|
261
|
-
return {
|
|
262
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest',
|
|
263
|
-
value: QueryAnnualProvisionsRequest.encode(message).finish(),
|
|
264
|
-
};
|
|
265
|
-
},
|
|
266
|
-
};
|
|
267
|
-
function createBaseQueryAnnualProvisionsResponse() {
|
|
268
|
-
return {
|
|
269
|
-
annualProvisions: new Uint8Array(),
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
export const QueryAnnualProvisionsResponse = {
|
|
273
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse',
|
|
274
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
275
|
-
if (message.annualProvisions.length !== 0) {
|
|
276
|
-
writer.uint32(10).bytes(message.annualProvisions);
|
|
277
|
-
}
|
|
278
|
-
return writer;
|
|
279
|
-
},
|
|
280
|
-
decode(input, length) {
|
|
281
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
282
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
283
|
-
const message = createBaseQueryAnnualProvisionsResponse();
|
|
284
|
-
while (reader.pos < end) {
|
|
285
|
-
const tag = reader.uint32();
|
|
286
|
-
switch (tag >>> 3) {
|
|
287
|
-
case 1:
|
|
288
|
-
message.annualProvisions = reader.bytes();
|
|
289
|
-
break;
|
|
290
|
-
default:
|
|
291
|
-
reader.skipType(tag & 7);
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
return message;
|
|
296
|
-
},
|
|
297
|
-
fromJSON(object) {
|
|
298
|
-
return {
|
|
299
|
-
annualProvisions: isSet(object.annualProvisions)
|
|
300
|
-
? bytesFromBase64(object.annualProvisions)
|
|
301
|
-
: new Uint8Array(),
|
|
302
|
-
};
|
|
303
|
-
},
|
|
304
|
-
toJSON(message) {
|
|
305
|
-
const obj = {};
|
|
306
|
-
message.annualProvisions !== undefined &&
|
|
307
|
-
(obj.annualProvisions = base64FromBytes(message.annualProvisions !== undefined
|
|
308
|
-
? message.annualProvisions
|
|
309
|
-
: new Uint8Array()));
|
|
310
|
-
return obj;
|
|
311
|
-
},
|
|
312
|
-
fromPartial(object) {
|
|
313
|
-
const message = createBaseQueryAnnualProvisionsResponse();
|
|
314
|
-
message.annualProvisions = object.annualProvisions ?? new Uint8Array();
|
|
315
|
-
return message;
|
|
316
|
-
},
|
|
317
|
-
fromProtoMsg(message) {
|
|
318
|
-
return QueryAnnualProvisionsResponse.decode(message.value);
|
|
319
|
-
},
|
|
320
|
-
toProto(message) {
|
|
321
|
-
return QueryAnnualProvisionsResponse.encode(message).finish();
|
|
322
|
-
},
|
|
323
|
-
toProtoMsg(message) {
|
|
324
|
-
return {
|
|
325
|
-
typeUrl: '/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse',
|
|
326
|
-
value: QueryAnnualProvisionsResponse.encode(message).finish(),
|
|
327
|
-
};
|
|
328
|
-
},
|
|
329
|
-
};
|
|
330
|
-
//# sourceMappingURL=query.js.map
|
|
1
|
+
import{Params as o}from"./mint.js";import{BinaryReader as e,BinaryWriter as n}from"../../../binary.js";import{}from"../../../json-safe.js";import{isSet as s,bytesFromBase64 as t,base64FromBytes as r}from"../../../helpers.js";export const QueryParamsRequest={typeUrl:"/cosmos.mint.v1beta1.QueryParamsRequest",encode:(o,e=n.create())=>e,decode(o,n){const s=o instanceof e?o:new e(o);let t=void 0===n?s.len:s.pos+n;const r={};for(;s.pos<t;){const o=s.uint32();s.skipType(7&o)}return r},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>QueryParamsRequest.decode(o.value),toProto:o=>QueryParamsRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.mint.v1beta1.QueryParamsRequest",value:QueryParamsRequest.encode(o).finish()})};function i(){return{params:o.fromPartial({})}}export const QueryParamsResponse={typeUrl:"/cosmos.mint.v1beta1.QueryParamsResponse",encode:(e,s=n.create())=>(void 0!==e.params&&o.encode(e.params,s.uint32(10).fork()).ldelim(),s),decode(n,s){const t=n instanceof e?n:new e(n);let r=void 0===s?t.len:t.pos+s;const a=i();for(;t.pos<r;){const e=t.uint32();if(e>>>3==1)a.params=o.decode(t,t.uint32());else t.skipType(7&e)}return a},fromJSON:e=>({params:s(e.params)?o.fromJSON(e.params):void 0}),toJSON(e){const n={};return void 0!==e.params&&(n.params=e.params?o.toJSON(e.params):void 0),n},fromPartial(e){const n=i();return n.params=void 0!==e.params&&null!==e.params?o.fromPartial(e.params):void 0,n},fromProtoMsg:o=>QueryParamsResponse.decode(o.value),toProto:o=>QueryParamsResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.mint.v1beta1.QueryParamsResponse",value:QueryParamsResponse.encode(o).finish()})};export const QueryInflationRequest={typeUrl:"/cosmos.mint.v1beta1.QueryInflationRequest",encode:(o,e=n.create())=>e,decode(o,n){const s=o instanceof e?o:new e(o);let t=void 0===n?s.len:s.pos+n;const r={};for(;s.pos<t;){const o=s.uint32();s.skipType(7&o)}return r},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>QueryInflationRequest.decode(o.value),toProto:o=>QueryInflationRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.mint.v1beta1.QueryInflationRequest",value:QueryInflationRequest.encode(o).finish()})};function a(){return{inflation:new Uint8Array}}export const QueryInflationResponse={typeUrl:"/cosmos.mint.v1beta1.QueryInflationResponse",encode:(o,e=n.create())=>(0!==o.inflation.length&&e.uint32(10).bytes(o.inflation),e),decode(o,n){const s=o instanceof e?o:new e(o);let t=void 0===n?s.len:s.pos+n;const r=a();for(;s.pos<t;){const o=s.uint32();if(o>>>3==1)r.inflation=s.bytes();else s.skipType(7&o)}return r},fromJSON:o=>({inflation:s(o.inflation)?t(o.inflation):new Uint8Array}),toJSON(o){const e={};return void 0!==o.inflation&&(e.inflation=r(void 0!==o.inflation?o.inflation:new Uint8Array)),e},fromPartial(o){const e=a();return e.inflation=o.inflation??new Uint8Array,e},fromProtoMsg:o=>QueryInflationResponse.decode(o.value),toProto:o=>QueryInflationResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.mint.v1beta1.QueryInflationResponse",value:QueryInflationResponse.encode(o).finish()})};export const QueryAnnualProvisionsRequest={typeUrl:"/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest",encode:(o,e=n.create())=>e,decode(o,n){const s=o instanceof e?o:new e(o);let t=void 0===n?s.len:s.pos+n;const r={};for(;s.pos<t;){const o=s.uint32();s.skipType(7&o)}return r},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>QueryAnnualProvisionsRequest.decode(o.value),toProto:o=>QueryAnnualProvisionsRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest",value:QueryAnnualProvisionsRequest.encode(o).finish()})};function u(){return{annualProvisions:new Uint8Array}}export const QueryAnnualProvisionsResponse={typeUrl:"/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse",encode:(o,e=n.create())=>(0!==o.annualProvisions.length&&e.uint32(10).bytes(o.annualProvisions),e),decode(o,n){const s=o instanceof e?o:new e(o);let t=void 0===n?s.len:s.pos+n;const r=u();for(;s.pos<t;){const o=s.uint32();if(o>>>3==1)r.annualProvisions=s.bytes();else s.skipType(7&o)}return r},fromJSON:o=>({annualProvisions:s(o.annualProvisions)?t(o.annualProvisions):new Uint8Array}),toJSON(o){const e={};return void 0!==o.annualProvisions&&(e.annualProvisions=r(void 0!==o.annualProvisions?o.annualProvisions:new Uint8Array)),e},fromPartial(o){const e=u();return e.annualProvisions=o.annualProvisions??new Uint8Array,e},fromProtoMsg:o=>QueryAnnualProvisionsResponse.decode(o.value),toProto:o=>QueryAnnualProvisionsResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse",value:QueryAnnualProvisionsResponse.encode(o).finish()})};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
//# sourceMappingURL=msg.js.map
|
|
1
|
+
export{};
|