coreum-js 2.10.0 → 2.12.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/main/client/index.d.ts +2 -1
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/main/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/params.js +14 -6
- package/dist/main/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/main/coreum/asset/ft/v1/query.js +116 -54
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/main/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/nft/v1/params.js +14 -6
- package/dist/main/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/main/coreum/asset/nft/v1/query.js +49 -22
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/main/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/query.js +22 -11
- package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/main/coreum/nft/v1beta1/query.js +83 -39
- package/dist/main/cosmos/extensions/bank.d.ts +8 -8
- package/dist/main/cosmos/extensions/bank.js +2 -2
- package/dist/main/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/main/cosmos/extensions/distribution.js +1 -1
- package/dist/main/cosmos/extensions/gov.d.ts +21 -21
- package/dist/main/cosmos/extensions/gov.js +1 -1
- package/dist/main/cosmos/index.d.ts +12 -21
- package/dist/main/cosmos/index.js +50 -42
- package/dist/main/types/msgs.d.ts +4 -4
- package/dist/main/wasm/v1/authz.d.ts +1 -1
- package/dist/main/wasm/v1/authz.js +1 -1
- package/dist/main/wasm/v1/proposal.d.ts +1 -1
- package/dist/main/wasm/v1/proposal.js +1 -1
- package/dist/main/wasm/v1/tx.d.ts +1 -1
- package/dist/main/wasm/v1/tx.js +1 -1
- package/dist/module/client/index.d.ts +2 -1
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/module/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/params.js +14 -6
- package/dist/module/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/module/coreum/asset/ft/v1/query.js +116 -54
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/module/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/nft/v1/params.js +14 -6
- package/dist/module/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/module/coreum/asset/nft/v1/query.js +49 -22
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/module/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/query.js +22 -11
- package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/module/coreum/nft/v1beta1/query.js +83 -39
- package/dist/module/cosmos/extensions/bank.d.ts +8 -8
- package/dist/module/cosmos/extensions/bank.js +2 -2
- package/dist/module/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/module/cosmos/extensions/distribution.js +1 -1
- package/dist/module/cosmos/extensions/gov.d.ts +21 -21
- package/dist/module/cosmos/extensions/gov.js +1 -1
- package/dist/module/cosmos/index.d.ts +12 -21
- package/dist/module/cosmos/index.js +29 -19
- package/dist/module/types/msgs.d.ts +4 -4
- package/dist/module/wasm/v1/authz.d.ts +1 -1
- package/dist/module/wasm/v1/authz.js +1 -1
- package/dist/module/wasm/v1/proposal.d.ts +1 -1
- package/dist/module/wasm/v1/proposal.js +1 -1
- package/dist/module/wasm/v1/tx.d.ts +1 -1
- package/dist/module/wasm/v1/tx.js +1 -1
- package/package.json +9 -9
- package/dist/main/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/main/cosmos/auth/v1beta1/auth.js +0 -437
- package/dist/main/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/main/cosmos/authz/v1beta1/authz.js +0 -319
- package/dist/main/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/main/cosmos/authz/v1beta1/event.js +0 -162
- package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/main/cosmos/authz/v1beta1/genesis.js +0 -68
- package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/authz/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/main/cosmos/authz/v1beta1/query.js +0 -512
- package/dist/main/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/main/cosmos/authz/v1beta1/tx.js +0 -435
- package/dist/main/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/main/cosmos/bank/v1beta1/authz.js +0 -83
- package/dist/main/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/main/cosmos/bank/v1beta1/bank.js +0 -556
- package/dist/main/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/main/cosmos/bank/v1beta1/genesis.js +0 -207
- package/dist/main/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/bank/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/main/cosmos/bank/v1beta1/query.js +0 -1595
- package/dist/main/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/main/cosmos/bank/v1beta1/tx.js +0 -498
- package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/main/cosmos/base/query/v1beta1/pagination.js +0 -241
- package/dist/main/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/main/cosmos/base/v1beta1/coin.js +0 -241
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.js +0 -172
- package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/main/cosmos/distribution/v1beta1/distribution.js +0 -887
- package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/main/cosmos/distribution/v1beta1/genesis.js +0 -784
- package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/distribution/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/main/cosmos/distribution/v1beta1/query.js +0 -1335
- package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/main/cosmos/distribution/v1beta1/tx.js +0 -824
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.js +0 -412
- package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/main/cosmos/feegrant/v1beta1/genesis.js +0 -66
- package/dist/main/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/feegrant/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/main/cosmos/feegrant/v1beta1/query.js +0 -460
- package/dist/main/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/main/cosmos/feegrant/v1beta1/tx.js +0 -252
- package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/main/cosmos/gov/v1beta1/genesis.js +0 -194
- package/dist/main/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/main/cosmos/gov/v1beta1/gov.js +0 -1037
- package/dist/main/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/gov/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/main/cosmos/gov/v1beta1/query.js +0 -1186
- package/dist/main/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/gov/v1beta1/tx.js +0 -566
- package/dist/main/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/main/cosmos/msg/v1/msg.js +0 -5
- package/dist/main/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/main/cosmos/staking/v1beta1/authz.js +0 -224
- package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/main/cosmos/staking/v1beta1/genesis.js +0 -305
- package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/staking/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/main/cosmos/staking/v1beta1/query.js +0 -2019
- package/dist/main/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/main/cosmos/staking/v1beta1/staking.js +0 -2127
- package/dist/main/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/main/cosmos/staking/v1beta1/tx.js +0 -1141
- package/dist/main/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/main/cosmos/tx/signing/v1beta1/signing.js +0 -546
- package/dist/main/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/main/cosmos/tx/v1beta1/tx.js +0 -1276
- package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/vesting/v1beta1/tx.js +0 -454
- package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/main/cosmos/vesting/v1beta1/vesting.js +0 -498
- package/dist/module/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/module/cosmos/auth/v1beta1/auth.js +0 -427
- package/dist/module/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/module/cosmos/authz/v1beta1/authz.js +0 -309
- package/dist/module/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/module/cosmos/authz/v1beta1/event.js +0 -154
- package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/module/cosmos/authz/v1beta1/genesis.js +0 -61
- package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/authz/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/module/cosmos/authz/v1beta1/query.js +0 -501
- package/dist/module/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/module/cosmos/authz/v1beta1/tx.js +0 -426
- package/dist/module/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/module/cosmos/bank/v1beta1/authz.js +0 -76
- package/dist/module/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/module/cosmos/bank/v1beta1/bank.js +0 -543
- package/dist/module/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/module/cosmos/bank/v1beta1/genesis.js +0 -199
- package/dist/module/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/bank/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/module/cosmos/bank/v1beta1/query.js +0 -1575
- package/dist/module/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/module/cosmos/bank/v1beta1/tx.js +0 -489
- package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/module/cosmos/base/query/v1beta1/pagination.js +0 -233
- package/dist/module/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/module/cosmos/base/v1beta1/coin.js +0 -231
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.js +0 -164
- package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/module/cosmos/distribution/v1beta1/distribution.js +0 -869
- package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/module/cosmos/distribution/v1beta1/genesis.js +0 -770
- package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/distribution/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/module/cosmos/distribution/v1beta1/query.js +0 -1315
- package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/module/cosmos/distribution/v1beta1/tx.js +0 -810
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.js +0 -402
- package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/module/cosmos/feegrant/v1beta1/genesis.js +0 -59
- package/dist/module/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/feegrant/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/module/cosmos/feegrant/v1beta1/query.js +0 -450
- package/dist/module/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/module/cosmos/feegrant/v1beta1/tx.js +0 -245
- package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/module/cosmos/gov/v1beta1/genesis.js +0 -187
- package/dist/module/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/module/cosmos/gov/v1beta1/gov.js +0 -1019
- package/dist/module/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/gov/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/module/cosmos/gov/v1beta1/query.js +0 -1170
- package/dist/module/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/gov/v1beta1/tx.js +0 -556
- package/dist/module/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/module/cosmos/msg/v1/msg.js +0 -2
- package/dist/module/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/module/cosmos/staking/v1beta1/authz.js +0 -214
- package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/module/cosmos/staking/v1beta1/genesis.js +0 -297
- package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/staking/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/module/cosmos/staking/v1beta1/query.js +0 -1995
- package/dist/module/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/module/cosmos/staking/v1beta1/staking.js +0 -2097
- package/dist/module/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/module/cosmos/staking/v1beta1/tx.js +0 -1127
- package/dist/module/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/module/cosmos/tx/signing/v1beta1/signing.js +0 -534
- package/dist/module/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/module/cosmos/tx/v1beta1/tx.js +0 -1258
- package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/vesting/v1beta1/tx.js +0 -446
- package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/module/cosmos/vesting/v1beta1/vesting.js +0 -488
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const long_1 = __importDefault(require("long"));
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const gov_1 = require("./gov");
|
|
11
|
-
exports.protobufPackage = "cosmos.gov.v1beta1";
|
|
12
|
-
function createBaseGenesisState() {
|
|
13
|
-
return {
|
|
14
|
-
startingProposalId: 0,
|
|
15
|
-
deposits: [],
|
|
16
|
-
votes: [],
|
|
17
|
-
proposals: [],
|
|
18
|
-
depositParams: undefined,
|
|
19
|
-
votingParams: undefined,
|
|
20
|
-
tallyParams: undefined,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
exports.GenesisState = {
|
|
24
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
25
|
-
if (message.startingProposalId !== 0) {
|
|
26
|
-
writer.uint32(8).uint64(message.startingProposalId);
|
|
27
|
-
}
|
|
28
|
-
for (const v of message.deposits) {
|
|
29
|
-
gov_1.Deposit.encode(v, writer.uint32(18).fork()).ldelim();
|
|
30
|
-
}
|
|
31
|
-
for (const v of message.votes) {
|
|
32
|
-
gov_1.Vote.encode(v, writer.uint32(26).fork()).ldelim();
|
|
33
|
-
}
|
|
34
|
-
for (const v of message.proposals) {
|
|
35
|
-
gov_1.Proposal.encode(v, writer.uint32(34).fork()).ldelim();
|
|
36
|
-
}
|
|
37
|
-
if (message.depositParams !== undefined) {
|
|
38
|
-
gov_1.DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim();
|
|
39
|
-
}
|
|
40
|
-
if (message.votingParams !== undefined) {
|
|
41
|
-
gov_1.VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim();
|
|
42
|
-
}
|
|
43
|
-
if (message.tallyParams !== undefined) {
|
|
44
|
-
gov_1.TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim();
|
|
45
|
-
}
|
|
46
|
-
return writer;
|
|
47
|
-
},
|
|
48
|
-
decode(input, length) {
|
|
49
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
50
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
-
const message = createBaseGenesisState();
|
|
52
|
-
while (reader.pos < end) {
|
|
53
|
-
const tag = reader.uint32();
|
|
54
|
-
switch (tag >>> 3) {
|
|
55
|
-
case 1:
|
|
56
|
-
if (tag !== 8) {
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
message.startingProposalId = longToNumber(reader.uint64());
|
|
60
|
-
continue;
|
|
61
|
-
case 2:
|
|
62
|
-
if (tag !== 18) {
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32()));
|
|
66
|
-
continue;
|
|
67
|
-
case 3:
|
|
68
|
-
if (tag !== 26) {
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
message.votes.push(gov_1.Vote.decode(reader, reader.uint32()));
|
|
72
|
-
continue;
|
|
73
|
-
case 4:
|
|
74
|
-
if (tag !== 34) {
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32()));
|
|
78
|
-
continue;
|
|
79
|
-
case 5:
|
|
80
|
-
if (tag !== 42) {
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32());
|
|
84
|
-
continue;
|
|
85
|
-
case 6:
|
|
86
|
-
if (tag !== 50) {
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32());
|
|
90
|
-
continue;
|
|
91
|
-
case 7:
|
|
92
|
-
if (tag !== 58) {
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32());
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
reader.skipType(tag & 7);
|
|
102
|
-
}
|
|
103
|
-
return message;
|
|
104
|
-
},
|
|
105
|
-
fromJSON(object) {
|
|
106
|
-
return {
|
|
107
|
-
startingProposalId: isSet(object.startingProposalId) ? Number(object.startingProposalId) : 0,
|
|
108
|
-
deposits: Array.isArray(object === null || object === void 0 ? void 0 : object.deposits) ? object.deposits.map((e) => gov_1.Deposit.fromJSON(e)) : [],
|
|
109
|
-
votes: Array.isArray(object === null || object === void 0 ? void 0 : object.votes) ? object.votes.map((e) => gov_1.Vote.fromJSON(e)) : [],
|
|
110
|
-
proposals: Array.isArray(object === null || object === void 0 ? void 0 : object.proposals) ? object.proposals.map((e) => gov_1.Proposal.fromJSON(e)) : [],
|
|
111
|
-
depositParams: isSet(object.depositParams) ? gov_1.DepositParams.fromJSON(object.depositParams) : undefined,
|
|
112
|
-
votingParams: isSet(object.votingParams) ? gov_1.VotingParams.fromJSON(object.votingParams) : undefined,
|
|
113
|
-
tallyParams: isSet(object.tallyParams) ? gov_1.TallyParams.fromJSON(object.tallyParams) : undefined,
|
|
114
|
-
};
|
|
115
|
-
},
|
|
116
|
-
toJSON(message) {
|
|
117
|
-
const obj = {};
|
|
118
|
-
message.startingProposalId !== undefined && (obj.startingProposalId = Math.round(message.startingProposalId));
|
|
119
|
-
if (message.deposits) {
|
|
120
|
-
obj.deposits = message.deposits.map((e) => e ? gov_1.Deposit.toJSON(e) : undefined);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
obj.deposits = [];
|
|
124
|
-
}
|
|
125
|
-
if (message.votes) {
|
|
126
|
-
obj.votes = message.votes.map((e) => e ? gov_1.Vote.toJSON(e) : undefined);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
obj.votes = [];
|
|
130
|
-
}
|
|
131
|
-
if (message.proposals) {
|
|
132
|
-
obj.proposals = message.proposals.map((e) => e ? gov_1.Proposal.toJSON(e) : undefined);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
obj.proposals = [];
|
|
136
|
-
}
|
|
137
|
-
message.depositParams !== undefined &&
|
|
138
|
-
(obj.depositParams = message.depositParams ? gov_1.DepositParams.toJSON(message.depositParams) : undefined);
|
|
139
|
-
message.votingParams !== undefined &&
|
|
140
|
-
(obj.votingParams = message.votingParams ? gov_1.VotingParams.toJSON(message.votingParams) : undefined);
|
|
141
|
-
message.tallyParams !== undefined &&
|
|
142
|
-
(obj.tallyParams = message.tallyParams ? gov_1.TallyParams.toJSON(message.tallyParams) : undefined);
|
|
143
|
-
return obj;
|
|
144
|
-
},
|
|
145
|
-
create(base) {
|
|
146
|
-
return exports.GenesisState.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
147
|
-
},
|
|
148
|
-
fromPartial(object) {
|
|
149
|
-
var _a, _b, _c, _d;
|
|
150
|
-
const message = createBaseGenesisState();
|
|
151
|
-
message.startingProposalId = (_a = object.startingProposalId) !== null && _a !== void 0 ? _a : 0;
|
|
152
|
-
message.deposits = ((_b = object.deposits) === null || _b === void 0 ? void 0 : _b.map((e) => gov_1.Deposit.fromPartial(e))) || [];
|
|
153
|
-
message.votes = ((_c = object.votes) === null || _c === void 0 ? void 0 : _c.map((e) => gov_1.Vote.fromPartial(e))) || [];
|
|
154
|
-
message.proposals = ((_d = object.proposals) === null || _d === void 0 ? void 0 : _d.map((e) => gov_1.Proposal.fromPartial(e))) || [];
|
|
155
|
-
message.depositParams = (object.depositParams !== undefined && object.depositParams !== null)
|
|
156
|
-
? gov_1.DepositParams.fromPartial(object.depositParams)
|
|
157
|
-
: undefined;
|
|
158
|
-
message.votingParams = (object.votingParams !== undefined && object.votingParams !== null)
|
|
159
|
-
? gov_1.VotingParams.fromPartial(object.votingParams)
|
|
160
|
-
: undefined;
|
|
161
|
-
message.tallyParams = (object.tallyParams !== undefined && object.tallyParams !== null)
|
|
162
|
-
? gov_1.TallyParams.fromPartial(object.tallyParams)
|
|
163
|
-
: undefined;
|
|
164
|
-
return message;
|
|
165
|
-
},
|
|
166
|
-
};
|
|
167
|
-
var tsProtoGlobalThis = (() => {
|
|
168
|
-
if (typeof globalThis !== "undefined") {
|
|
169
|
-
return globalThis;
|
|
170
|
-
}
|
|
171
|
-
if (typeof self !== "undefined") {
|
|
172
|
-
return self;
|
|
173
|
-
}
|
|
174
|
-
if (typeof window !== "undefined") {
|
|
175
|
-
return window;
|
|
176
|
-
}
|
|
177
|
-
if (typeof global !== "undefined") {
|
|
178
|
-
return global;
|
|
179
|
-
}
|
|
180
|
-
throw "Unable to locate global object";
|
|
181
|
-
})();
|
|
182
|
-
function longToNumber(long) {
|
|
183
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
184
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
185
|
-
}
|
|
186
|
-
return long.toNumber();
|
|
187
|
-
}
|
|
188
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
189
|
-
minimal_1.default.util.Long = long_1.default;
|
|
190
|
-
minimal_1.default.configure();
|
|
191
|
-
}
|
|
192
|
-
function isSet(value) {
|
|
193
|
-
return value !== null && value !== undefined;
|
|
194
|
-
}
|