coreum-js 2.11.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 +1 -1
- 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,556 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import Long from "long";
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
5
|
-
import { Any } from "../../../google/protobuf/any";
|
|
6
|
-
import { voteOptionFromJSON, voteOptionToJSON, WeightedVoteOption, } from "./gov";
|
|
7
|
-
export const protobufPackage = "cosmos.gov.v1beta1";
|
|
8
|
-
function createBaseMsgSubmitProposal() {
|
|
9
|
-
return { content: undefined, initialDeposit: [], proposer: "" };
|
|
10
|
-
}
|
|
11
|
-
export const MsgSubmitProposal = {
|
|
12
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
13
|
-
if (message.content !== undefined) {
|
|
14
|
-
Any.encode(message.content, writer.uint32(10).fork()).ldelim();
|
|
15
|
-
}
|
|
16
|
-
for (const v of message.initialDeposit) {
|
|
17
|
-
Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
18
|
-
}
|
|
19
|
-
if (message.proposer !== "") {
|
|
20
|
-
writer.uint32(26).string(message.proposer);
|
|
21
|
-
}
|
|
22
|
-
return writer;
|
|
23
|
-
},
|
|
24
|
-
decode(input, length) {
|
|
25
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
-
const message = createBaseMsgSubmitProposal();
|
|
28
|
-
while (reader.pos < end) {
|
|
29
|
-
const tag = reader.uint32();
|
|
30
|
-
switch (tag >>> 3) {
|
|
31
|
-
case 1:
|
|
32
|
-
if (tag !== 10) {
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
message.content = Any.decode(reader, reader.uint32());
|
|
36
|
-
continue;
|
|
37
|
-
case 2:
|
|
38
|
-
if (tag !== 18) {
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
message.initialDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
42
|
-
continue;
|
|
43
|
-
case 3:
|
|
44
|
-
if (tag !== 26) {
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
message.proposer = reader.string();
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
reader.skipType(tag & 7);
|
|
54
|
-
}
|
|
55
|
-
return message;
|
|
56
|
-
},
|
|
57
|
-
fromJSON(object) {
|
|
58
|
-
return {
|
|
59
|
-
content: isSet(object.content) ? Any.fromJSON(object.content) : undefined,
|
|
60
|
-
initialDeposit: Array.isArray(object?.initialDeposit)
|
|
61
|
-
? object.initialDeposit.map((e) => Coin.fromJSON(e))
|
|
62
|
-
: [],
|
|
63
|
-
proposer: isSet(object.proposer) ? String(object.proposer) : "",
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
toJSON(message) {
|
|
67
|
-
const obj = {};
|
|
68
|
-
message.content !== undefined &&
|
|
69
|
-
(obj.content = message.content ? Any.toJSON(message.content) : undefined);
|
|
70
|
-
if (message.initialDeposit) {
|
|
71
|
-
obj.initialDeposit = message.initialDeposit.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
obj.initialDeposit = [];
|
|
75
|
-
}
|
|
76
|
-
message.proposer !== undefined && (obj.proposer = message.proposer);
|
|
77
|
-
return obj;
|
|
78
|
-
},
|
|
79
|
-
create(base) {
|
|
80
|
-
return MsgSubmitProposal.fromPartial(base ?? {});
|
|
81
|
-
},
|
|
82
|
-
fromPartial(object) {
|
|
83
|
-
const message = createBaseMsgSubmitProposal();
|
|
84
|
-
message.content =
|
|
85
|
-
object.content !== undefined && object.content !== null
|
|
86
|
-
? Any.fromPartial(object.content)
|
|
87
|
-
: undefined;
|
|
88
|
-
message.initialDeposit =
|
|
89
|
-
object.initialDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
90
|
-
message.proposer = object.proposer ?? "";
|
|
91
|
-
return message;
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
function createBaseMsgSubmitProposalResponse() {
|
|
95
|
-
return { proposalId: 0 };
|
|
96
|
-
}
|
|
97
|
-
export const MsgSubmitProposalResponse = {
|
|
98
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
99
|
-
if (message.proposalId !== 0) {
|
|
100
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
101
|
-
}
|
|
102
|
-
return writer;
|
|
103
|
-
},
|
|
104
|
-
decode(input, length) {
|
|
105
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
106
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
107
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
108
|
-
while (reader.pos < end) {
|
|
109
|
-
const tag = reader.uint32();
|
|
110
|
-
switch (tag >>> 3) {
|
|
111
|
-
case 1:
|
|
112
|
-
if (tag !== 8) {
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
reader.skipType(tag & 7);
|
|
122
|
-
}
|
|
123
|
-
return message;
|
|
124
|
-
},
|
|
125
|
-
fromJSON(object) {
|
|
126
|
-
return {
|
|
127
|
-
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
128
|
-
};
|
|
129
|
-
},
|
|
130
|
-
toJSON(message) {
|
|
131
|
-
const obj = {};
|
|
132
|
-
message.proposalId !== undefined &&
|
|
133
|
-
(obj.proposalId = Math.round(message.proposalId));
|
|
134
|
-
return obj;
|
|
135
|
-
},
|
|
136
|
-
create(base) {
|
|
137
|
-
return MsgSubmitProposalResponse.fromPartial(base ?? {});
|
|
138
|
-
},
|
|
139
|
-
fromPartial(object) {
|
|
140
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
141
|
-
message.proposalId = object.proposalId ?? 0;
|
|
142
|
-
return message;
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
function createBaseMsgVote() {
|
|
146
|
-
return { proposalId: 0, voter: "", option: 0 };
|
|
147
|
-
}
|
|
148
|
-
export const MsgVote = {
|
|
149
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
150
|
-
if (message.proposalId !== 0) {
|
|
151
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
152
|
-
}
|
|
153
|
-
if (message.voter !== "") {
|
|
154
|
-
writer.uint32(18).string(message.voter);
|
|
155
|
-
}
|
|
156
|
-
if (message.option !== 0) {
|
|
157
|
-
writer.uint32(24).int32(message.option);
|
|
158
|
-
}
|
|
159
|
-
return writer;
|
|
160
|
-
},
|
|
161
|
-
decode(input, length) {
|
|
162
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
163
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
164
|
-
const message = createBaseMsgVote();
|
|
165
|
-
while (reader.pos < end) {
|
|
166
|
-
const tag = reader.uint32();
|
|
167
|
-
switch (tag >>> 3) {
|
|
168
|
-
case 1:
|
|
169
|
-
if (tag !== 8) {
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
173
|
-
continue;
|
|
174
|
-
case 2:
|
|
175
|
-
if (tag !== 18) {
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
message.voter = reader.string();
|
|
179
|
-
continue;
|
|
180
|
-
case 3:
|
|
181
|
-
if (tag !== 24) {
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
message.option = reader.int32();
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
reader.skipType(tag & 7);
|
|
191
|
-
}
|
|
192
|
-
return message;
|
|
193
|
-
},
|
|
194
|
-
fromJSON(object) {
|
|
195
|
-
return {
|
|
196
|
-
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
197
|
-
voter: isSet(object.voter) ? String(object.voter) : "",
|
|
198
|
-
option: isSet(object.option) ? voteOptionFromJSON(object.option) : 0,
|
|
199
|
-
};
|
|
200
|
-
},
|
|
201
|
-
toJSON(message) {
|
|
202
|
-
const obj = {};
|
|
203
|
-
message.proposalId !== undefined &&
|
|
204
|
-
(obj.proposalId = Math.round(message.proposalId));
|
|
205
|
-
message.voter !== undefined && (obj.voter = message.voter);
|
|
206
|
-
message.option !== undefined &&
|
|
207
|
-
(obj.option = voteOptionToJSON(message.option));
|
|
208
|
-
return obj;
|
|
209
|
-
},
|
|
210
|
-
create(base) {
|
|
211
|
-
return MsgVote.fromPartial(base ?? {});
|
|
212
|
-
},
|
|
213
|
-
fromPartial(object) {
|
|
214
|
-
const message = createBaseMsgVote();
|
|
215
|
-
message.proposalId = object.proposalId ?? 0;
|
|
216
|
-
message.voter = object.voter ?? "";
|
|
217
|
-
message.option = object.option ?? 0;
|
|
218
|
-
return message;
|
|
219
|
-
},
|
|
220
|
-
};
|
|
221
|
-
function createBaseMsgVoteResponse() {
|
|
222
|
-
return {};
|
|
223
|
-
}
|
|
224
|
-
export const MsgVoteResponse = {
|
|
225
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
226
|
-
return writer;
|
|
227
|
-
},
|
|
228
|
-
decode(input, length) {
|
|
229
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
230
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
231
|
-
const message = createBaseMsgVoteResponse();
|
|
232
|
-
while (reader.pos < end) {
|
|
233
|
-
const tag = reader.uint32();
|
|
234
|
-
switch (tag >>> 3) {
|
|
235
|
-
}
|
|
236
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
reader.skipType(tag & 7);
|
|
240
|
-
}
|
|
241
|
-
return message;
|
|
242
|
-
},
|
|
243
|
-
fromJSON(_) {
|
|
244
|
-
return {};
|
|
245
|
-
},
|
|
246
|
-
toJSON(_) {
|
|
247
|
-
const obj = {};
|
|
248
|
-
return obj;
|
|
249
|
-
},
|
|
250
|
-
create(base) {
|
|
251
|
-
return MsgVoteResponse.fromPartial(base ?? {});
|
|
252
|
-
},
|
|
253
|
-
fromPartial(_) {
|
|
254
|
-
const message = createBaseMsgVoteResponse();
|
|
255
|
-
return message;
|
|
256
|
-
},
|
|
257
|
-
};
|
|
258
|
-
function createBaseMsgVoteWeighted() {
|
|
259
|
-
return { proposalId: 0, voter: "", options: [] };
|
|
260
|
-
}
|
|
261
|
-
export const MsgVoteWeighted = {
|
|
262
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
263
|
-
if (message.proposalId !== 0) {
|
|
264
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
265
|
-
}
|
|
266
|
-
if (message.voter !== "") {
|
|
267
|
-
writer.uint32(18).string(message.voter);
|
|
268
|
-
}
|
|
269
|
-
for (const v of message.options) {
|
|
270
|
-
WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim();
|
|
271
|
-
}
|
|
272
|
-
return writer;
|
|
273
|
-
},
|
|
274
|
-
decode(input, length) {
|
|
275
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
276
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
277
|
-
const message = createBaseMsgVoteWeighted();
|
|
278
|
-
while (reader.pos < end) {
|
|
279
|
-
const tag = reader.uint32();
|
|
280
|
-
switch (tag >>> 3) {
|
|
281
|
-
case 1:
|
|
282
|
-
if (tag !== 8) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
286
|
-
continue;
|
|
287
|
-
case 2:
|
|
288
|
-
if (tag !== 18) {
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
message.voter = reader.string();
|
|
292
|
-
continue;
|
|
293
|
-
case 3:
|
|
294
|
-
if (tag !== 26) {
|
|
295
|
-
break;
|
|
296
|
-
}
|
|
297
|
-
message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
|
|
298
|
-
continue;
|
|
299
|
-
}
|
|
300
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
301
|
-
break;
|
|
302
|
-
}
|
|
303
|
-
reader.skipType(tag & 7);
|
|
304
|
-
}
|
|
305
|
-
return message;
|
|
306
|
-
},
|
|
307
|
-
fromJSON(object) {
|
|
308
|
-
return {
|
|
309
|
-
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
310
|
-
voter: isSet(object.voter) ? String(object.voter) : "",
|
|
311
|
-
options: Array.isArray(object?.options)
|
|
312
|
-
? object.options.map((e) => WeightedVoteOption.fromJSON(e))
|
|
313
|
-
: [],
|
|
314
|
-
};
|
|
315
|
-
},
|
|
316
|
-
toJSON(message) {
|
|
317
|
-
const obj = {};
|
|
318
|
-
message.proposalId !== undefined &&
|
|
319
|
-
(obj.proposalId = Math.round(message.proposalId));
|
|
320
|
-
message.voter !== undefined && (obj.voter = message.voter);
|
|
321
|
-
if (message.options) {
|
|
322
|
-
obj.options = message.options.map((e) => e ? WeightedVoteOption.toJSON(e) : undefined);
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
obj.options = [];
|
|
326
|
-
}
|
|
327
|
-
return obj;
|
|
328
|
-
},
|
|
329
|
-
create(base) {
|
|
330
|
-
return MsgVoteWeighted.fromPartial(base ?? {});
|
|
331
|
-
},
|
|
332
|
-
fromPartial(object) {
|
|
333
|
-
const message = createBaseMsgVoteWeighted();
|
|
334
|
-
message.proposalId = object.proposalId ?? 0;
|
|
335
|
-
message.voter = object.voter ?? "";
|
|
336
|
-
message.options =
|
|
337
|
-
object.options?.map((e) => WeightedVoteOption.fromPartial(e)) || [];
|
|
338
|
-
return message;
|
|
339
|
-
},
|
|
340
|
-
};
|
|
341
|
-
function createBaseMsgVoteWeightedResponse() {
|
|
342
|
-
return {};
|
|
343
|
-
}
|
|
344
|
-
export const MsgVoteWeightedResponse = {
|
|
345
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
346
|
-
return writer;
|
|
347
|
-
},
|
|
348
|
-
decode(input, length) {
|
|
349
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
350
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
351
|
-
const message = createBaseMsgVoteWeightedResponse();
|
|
352
|
-
while (reader.pos < end) {
|
|
353
|
-
const tag = reader.uint32();
|
|
354
|
-
switch (tag >>> 3) {
|
|
355
|
-
}
|
|
356
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
357
|
-
break;
|
|
358
|
-
}
|
|
359
|
-
reader.skipType(tag & 7);
|
|
360
|
-
}
|
|
361
|
-
return message;
|
|
362
|
-
},
|
|
363
|
-
fromJSON(_) {
|
|
364
|
-
return {};
|
|
365
|
-
},
|
|
366
|
-
toJSON(_) {
|
|
367
|
-
const obj = {};
|
|
368
|
-
return obj;
|
|
369
|
-
},
|
|
370
|
-
create(base) {
|
|
371
|
-
return MsgVoteWeightedResponse.fromPartial(base ?? {});
|
|
372
|
-
},
|
|
373
|
-
fromPartial(_) {
|
|
374
|
-
const message = createBaseMsgVoteWeightedResponse();
|
|
375
|
-
return message;
|
|
376
|
-
},
|
|
377
|
-
};
|
|
378
|
-
function createBaseMsgDeposit() {
|
|
379
|
-
return { proposalId: 0, depositor: "", amount: [] };
|
|
380
|
-
}
|
|
381
|
-
export const MsgDeposit = {
|
|
382
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
383
|
-
if (message.proposalId !== 0) {
|
|
384
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
385
|
-
}
|
|
386
|
-
if (message.depositor !== "") {
|
|
387
|
-
writer.uint32(18).string(message.depositor);
|
|
388
|
-
}
|
|
389
|
-
for (const v of message.amount) {
|
|
390
|
-
Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
391
|
-
}
|
|
392
|
-
return writer;
|
|
393
|
-
},
|
|
394
|
-
decode(input, length) {
|
|
395
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
396
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
397
|
-
const message = createBaseMsgDeposit();
|
|
398
|
-
while (reader.pos < end) {
|
|
399
|
-
const tag = reader.uint32();
|
|
400
|
-
switch (tag >>> 3) {
|
|
401
|
-
case 1:
|
|
402
|
-
if (tag !== 8) {
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
406
|
-
continue;
|
|
407
|
-
case 2:
|
|
408
|
-
if (tag !== 18) {
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
message.depositor = reader.string();
|
|
412
|
-
continue;
|
|
413
|
-
case 3:
|
|
414
|
-
if (tag !== 26) {
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
418
|
-
continue;
|
|
419
|
-
}
|
|
420
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
421
|
-
break;
|
|
422
|
-
}
|
|
423
|
-
reader.skipType(tag & 7);
|
|
424
|
-
}
|
|
425
|
-
return message;
|
|
426
|
-
},
|
|
427
|
-
fromJSON(object) {
|
|
428
|
-
return {
|
|
429
|
-
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
430
|
-
depositor: isSet(object.depositor) ? String(object.depositor) : "",
|
|
431
|
-
amount: Array.isArray(object?.amount)
|
|
432
|
-
? object.amount.map((e) => Coin.fromJSON(e))
|
|
433
|
-
: [],
|
|
434
|
-
};
|
|
435
|
-
},
|
|
436
|
-
toJSON(message) {
|
|
437
|
-
const obj = {};
|
|
438
|
-
message.proposalId !== undefined &&
|
|
439
|
-
(obj.proposalId = Math.round(message.proposalId));
|
|
440
|
-
message.depositor !== undefined && (obj.depositor = message.depositor);
|
|
441
|
-
if (message.amount) {
|
|
442
|
-
obj.amount = message.amount.map((e) => (e ? Coin.toJSON(e) : undefined));
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
obj.amount = [];
|
|
446
|
-
}
|
|
447
|
-
return obj;
|
|
448
|
-
},
|
|
449
|
-
create(base) {
|
|
450
|
-
return MsgDeposit.fromPartial(base ?? {});
|
|
451
|
-
},
|
|
452
|
-
fromPartial(object) {
|
|
453
|
-
const message = createBaseMsgDeposit();
|
|
454
|
-
message.proposalId = object.proposalId ?? 0;
|
|
455
|
-
message.depositor = object.depositor ?? "";
|
|
456
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
457
|
-
return message;
|
|
458
|
-
},
|
|
459
|
-
};
|
|
460
|
-
function createBaseMsgDepositResponse() {
|
|
461
|
-
return {};
|
|
462
|
-
}
|
|
463
|
-
export const MsgDepositResponse = {
|
|
464
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
465
|
-
return writer;
|
|
466
|
-
},
|
|
467
|
-
decode(input, length) {
|
|
468
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
469
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
-
const message = createBaseMsgDepositResponse();
|
|
471
|
-
while (reader.pos < end) {
|
|
472
|
-
const tag = reader.uint32();
|
|
473
|
-
switch (tag >>> 3) {
|
|
474
|
-
}
|
|
475
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
476
|
-
break;
|
|
477
|
-
}
|
|
478
|
-
reader.skipType(tag & 7);
|
|
479
|
-
}
|
|
480
|
-
return message;
|
|
481
|
-
},
|
|
482
|
-
fromJSON(_) {
|
|
483
|
-
return {};
|
|
484
|
-
},
|
|
485
|
-
toJSON(_) {
|
|
486
|
-
const obj = {};
|
|
487
|
-
return obj;
|
|
488
|
-
},
|
|
489
|
-
create(base) {
|
|
490
|
-
return MsgDepositResponse.fromPartial(base ?? {});
|
|
491
|
-
},
|
|
492
|
-
fromPartial(_) {
|
|
493
|
-
const message = createBaseMsgDepositResponse();
|
|
494
|
-
return message;
|
|
495
|
-
},
|
|
496
|
-
};
|
|
497
|
-
export class MsgClientImpl {
|
|
498
|
-
rpc;
|
|
499
|
-
service;
|
|
500
|
-
constructor(rpc, opts) {
|
|
501
|
-
this.service = opts?.service || "cosmos.gov.v1beta1.Msg";
|
|
502
|
-
this.rpc = rpc;
|
|
503
|
-
this.SubmitProposal = this.SubmitProposal.bind(this);
|
|
504
|
-
this.Vote = this.Vote.bind(this);
|
|
505
|
-
this.VoteWeighted = this.VoteWeighted.bind(this);
|
|
506
|
-
this.Deposit = this.Deposit.bind(this);
|
|
507
|
-
}
|
|
508
|
-
SubmitProposal(request) {
|
|
509
|
-
const data = MsgSubmitProposal.encode(request).finish();
|
|
510
|
-
const promise = this.rpc.request(this.service, "SubmitProposal", data);
|
|
511
|
-
return promise.then((data) => MsgSubmitProposalResponse.decode(_m0.Reader.create(data)));
|
|
512
|
-
}
|
|
513
|
-
Vote(request) {
|
|
514
|
-
const data = MsgVote.encode(request).finish();
|
|
515
|
-
const promise = this.rpc.request(this.service, "Vote", data);
|
|
516
|
-
return promise.then((data) => MsgVoteResponse.decode(_m0.Reader.create(data)));
|
|
517
|
-
}
|
|
518
|
-
VoteWeighted(request) {
|
|
519
|
-
const data = MsgVoteWeighted.encode(request).finish();
|
|
520
|
-
const promise = this.rpc.request(this.service, "VoteWeighted", data);
|
|
521
|
-
return promise.then((data) => MsgVoteWeightedResponse.decode(_m0.Reader.create(data)));
|
|
522
|
-
}
|
|
523
|
-
Deposit(request) {
|
|
524
|
-
const data = MsgDeposit.encode(request).finish();
|
|
525
|
-
const promise = this.rpc.request(this.service, "Deposit", data);
|
|
526
|
-
return promise.then((data) => MsgDepositResponse.decode(_m0.Reader.create(data)));
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
var tsProtoGlobalThis = (() => {
|
|
530
|
-
if (typeof globalThis !== "undefined") {
|
|
531
|
-
return globalThis;
|
|
532
|
-
}
|
|
533
|
-
if (typeof self !== "undefined") {
|
|
534
|
-
return self;
|
|
535
|
-
}
|
|
536
|
-
if (typeof window !== "undefined") {
|
|
537
|
-
return window;
|
|
538
|
-
}
|
|
539
|
-
if (typeof global !== "undefined") {
|
|
540
|
-
return global;
|
|
541
|
-
}
|
|
542
|
-
throw "Unable to locate global object";
|
|
543
|
-
})();
|
|
544
|
-
function longToNumber(long) {
|
|
545
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
546
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
547
|
-
}
|
|
548
|
-
return long.toNumber();
|
|
549
|
-
}
|
|
550
|
-
if (_m0.util.Long !== Long) {
|
|
551
|
-
_m0.util.Long = Long;
|
|
552
|
-
_m0.configure();
|
|
553
|
-
}
|
|
554
|
-
function isSet(value) {
|
|
555
|
-
return value !== null && value !== undefined;
|
|
556
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const protobufPackage = "cosmos.msg.v1";
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
3
|
-
export declare const protobufPackage = "cosmos.staking.v1beta1";
|
|
4
|
-
/**
|
|
5
|
-
* AuthorizationType defines the type of staking module authorization type
|
|
6
|
-
*
|
|
7
|
-
* Since: cosmos-sdk 0.43
|
|
8
|
-
*/
|
|
9
|
-
export declare enum AuthorizationType {
|
|
10
|
-
/** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */
|
|
11
|
-
AUTHORIZATION_TYPE_UNSPECIFIED = 0,
|
|
12
|
-
/** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */
|
|
13
|
-
AUTHORIZATION_TYPE_DELEGATE = 1,
|
|
14
|
-
/** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */
|
|
15
|
-
AUTHORIZATION_TYPE_UNDELEGATE = 2,
|
|
16
|
-
/** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */
|
|
17
|
-
AUTHORIZATION_TYPE_REDELEGATE = 3,
|
|
18
|
-
/** AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION - AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation */
|
|
19
|
-
AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION = 4,
|
|
20
|
-
UNRECOGNIZED = -1
|
|
21
|
-
}
|
|
22
|
-
export declare function authorizationTypeFromJSON(object: any): AuthorizationType;
|
|
23
|
-
export declare function authorizationTypeToJSON(object: AuthorizationType): string;
|
|
24
|
-
/**
|
|
25
|
-
* StakeAuthorization defines authorization for delegate/undelegate/redelegate.
|
|
26
|
-
*
|
|
27
|
-
* Since: cosmos-sdk 0.43
|
|
28
|
-
*/
|
|
29
|
-
export interface StakeAuthorization {
|
|
30
|
-
/**
|
|
31
|
-
* max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
|
|
32
|
-
* empty, there is no spend limit and any amount of coins can be delegated.
|
|
33
|
-
*/
|
|
34
|
-
maxTokens: Coin | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
|
|
37
|
-
* account.
|
|
38
|
-
*/
|
|
39
|
-
allowList?: StakeAuthorization_Validators | undefined;
|
|
40
|
-
/** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */
|
|
41
|
-
denyList?: StakeAuthorization_Validators | undefined;
|
|
42
|
-
/** authorization_type defines one of AuthorizationType. */
|
|
43
|
-
authorizationType: AuthorizationType;
|
|
44
|
-
}
|
|
45
|
-
/** Validators defines list of validator addresses. */
|
|
46
|
-
export interface StakeAuthorization_Validators {
|
|
47
|
-
address: string[];
|
|
48
|
-
}
|
|
49
|
-
export declare const StakeAuthorization: {
|
|
50
|
-
encode(message: StakeAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StakeAuthorization;
|
|
52
|
-
fromJSON(object: any): StakeAuthorization;
|
|
53
|
-
toJSON(message: StakeAuthorization): unknown;
|
|
54
|
-
create<I extends {
|
|
55
|
-
maxTokens?: {
|
|
56
|
-
denom?: string;
|
|
57
|
-
amount?: string;
|
|
58
|
-
};
|
|
59
|
-
allowList?: {
|
|
60
|
-
address?: string[];
|
|
61
|
-
};
|
|
62
|
-
denyList?: {
|
|
63
|
-
address?: string[];
|
|
64
|
-
};
|
|
65
|
-
authorizationType?: AuthorizationType;
|
|
66
|
-
} & {
|
|
67
|
-
maxTokens?: {
|
|
68
|
-
denom?: string;
|
|
69
|
-
amount?: string;
|
|
70
|
-
} & {
|
|
71
|
-
denom?: string;
|
|
72
|
-
amount?: string;
|
|
73
|
-
} & { [K in Exclude<keyof I["maxTokens"], keyof Coin>]: never; };
|
|
74
|
-
allowList?: {
|
|
75
|
-
address?: string[];
|
|
76
|
-
} & {
|
|
77
|
-
address?: string[] & string[] & { [K_1 in Exclude<keyof I["allowList"]["address"], keyof string[]>]: never; };
|
|
78
|
-
} & { [K_2 in Exclude<keyof I["allowList"], "address">]: never; };
|
|
79
|
-
denyList?: {
|
|
80
|
-
address?: string[];
|
|
81
|
-
} & {
|
|
82
|
-
address?: string[] & string[] & { [K_3 in Exclude<keyof I["denyList"]["address"], keyof string[]>]: never; };
|
|
83
|
-
} & { [K_4 in Exclude<keyof I["denyList"], "address">]: never; };
|
|
84
|
-
authorizationType?: AuthorizationType;
|
|
85
|
-
} & { [K_5 in Exclude<keyof I, keyof StakeAuthorization>]: never; }>(base?: I): StakeAuthorization;
|
|
86
|
-
fromPartial<I_1 extends {
|
|
87
|
-
maxTokens?: {
|
|
88
|
-
denom?: string;
|
|
89
|
-
amount?: string;
|
|
90
|
-
};
|
|
91
|
-
allowList?: {
|
|
92
|
-
address?: string[];
|
|
93
|
-
};
|
|
94
|
-
denyList?: {
|
|
95
|
-
address?: string[];
|
|
96
|
-
};
|
|
97
|
-
authorizationType?: AuthorizationType;
|
|
98
|
-
} & {
|
|
99
|
-
maxTokens?: {
|
|
100
|
-
denom?: string;
|
|
101
|
-
amount?: string;
|
|
102
|
-
} & {
|
|
103
|
-
denom?: string;
|
|
104
|
-
amount?: string;
|
|
105
|
-
} & { [K_6 in Exclude<keyof I_1["maxTokens"], keyof Coin>]: never; };
|
|
106
|
-
allowList?: {
|
|
107
|
-
address?: string[];
|
|
108
|
-
} & {
|
|
109
|
-
address?: string[] & string[] & { [K_7 in Exclude<keyof I_1["allowList"]["address"], keyof string[]>]: never; };
|
|
110
|
-
} & { [K_8 in Exclude<keyof I_1["allowList"], "address">]: never; };
|
|
111
|
-
denyList?: {
|
|
112
|
-
address?: string[];
|
|
113
|
-
} & {
|
|
114
|
-
address?: string[] & string[] & { [K_9 in Exclude<keyof I_1["denyList"]["address"], keyof string[]>]: never; };
|
|
115
|
-
} & { [K_10 in Exclude<keyof I_1["denyList"], "address">]: never; };
|
|
116
|
-
authorizationType?: AuthorizationType;
|
|
117
|
-
} & { [K_11 in Exclude<keyof I_1, keyof StakeAuthorization>]: never; }>(object: I_1): StakeAuthorization;
|
|
118
|
-
};
|
|
119
|
-
export declare const StakeAuthorization_Validators: {
|
|
120
|
-
encode(message: StakeAuthorization_Validators, writer?: _m0.Writer): _m0.Writer;
|
|
121
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StakeAuthorization_Validators;
|
|
122
|
-
fromJSON(object: any): StakeAuthorization_Validators;
|
|
123
|
-
toJSON(message: StakeAuthorization_Validators): unknown;
|
|
124
|
-
create<I extends {
|
|
125
|
-
address?: string[];
|
|
126
|
-
} & {
|
|
127
|
-
address?: string[] & string[] & { [K in Exclude<keyof I["address"], keyof string[]>]: never; };
|
|
128
|
-
} & { [K_1 in Exclude<keyof I, "address">]: never; }>(base?: I): StakeAuthorization_Validators;
|
|
129
|
-
fromPartial<I_1 extends {
|
|
130
|
-
address?: string[];
|
|
131
|
-
} & {
|
|
132
|
-
address?: string[] & string[] & { [K_2 in Exclude<keyof I_1["address"], keyof string[]>]: never; };
|
|
133
|
-
} & { [K_3 in Exclude<keyof I_1, "address">]: never; }>(object: I_1): StakeAuthorization_Validators;
|
|
134
|
-
};
|
|
135
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
136
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
137
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
138
|
-
} : Partial<T>;
|
|
139
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
140
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
141
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
142
|
-
} & {
|
|
143
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
144
|
-
};
|
|
145
|
-
export {};
|