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,454 +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.MsgClientImpl = exports.MsgCreatePeriodicVestingAccountResponse = exports.MsgCreatePeriodicVestingAccount = exports.MsgCreatePermanentLockedAccountResponse = exports.MsgCreatePermanentLockedAccount = exports.MsgCreateVestingAccountResponse = exports.MsgCreateVestingAccount = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const long_1 = __importDefault(require("long"));
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("../../base/v1beta1/coin");
|
|
11
|
-
const vesting_1 = require("./vesting");
|
|
12
|
-
exports.protobufPackage = "cosmos.vesting.v1beta1";
|
|
13
|
-
function createBaseMsgCreateVestingAccount() {
|
|
14
|
-
return { fromAddress: "", toAddress: "", amount: [], endTime: 0, delayed: false };
|
|
15
|
-
}
|
|
16
|
-
exports.MsgCreateVestingAccount = {
|
|
17
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
18
|
-
if (message.fromAddress !== "") {
|
|
19
|
-
writer.uint32(10).string(message.fromAddress);
|
|
20
|
-
}
|
|
21
|
-
if (message.toAddress !== "") {
|
|
22
|
-
writer.uint32(18).string(message.toAddress);
|
|
23
|
-
}
|
|
24
|
-
for (const v of message.amount) {
|
|
25
|
-
coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
26
|
-
}
|
|
27
|
-
if (message.endTime !== 0) {
|
|
28
|
-
writer.uint32(32).int64(message.endTime);
|
|
29
|
-
}
|
|
30
|
-
if (message.delayed === true) {
|
|
31
|
-
writer.uint32(40).bool(message.delayed);
|
|
32
|
-
}
|
|
33
|
-
return writer;
|
|
34
|
-
},
|
|
35
|
-
decode(input, length) {
|
|
36
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
37
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
-
const message = createBaseMsgCreateVestingAccount();
|
|
39
|
-
while (reader.pos < end) {
|
|
40
|
-
const tag = reader.uint32();
|
|
41
|
-
switch (tag >>> 3) {
|
|
42
|
-
case 1:
|
|
43
|
-
if (tag !== 10) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
message.fromAddress = reader.string();
|
|
47
|
-
continue;
|
|
48
|
-
case 2:
|
|
49
|
-
if (tag !== 18) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
message.toAddress = reader.string();
|
|
53
|
-
continue;
|
|
54
|
-
case 3:
|
|
55
|
-
if (tag !== 26) {
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
message.amount.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
59
|
-
continue;
|
|
60
|
-
case 4:
|
|
61
|
-
if (tag !== 32) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
message.endTime = longToNumber(reader.int64());
|
|
65
|
-
continue;
|
|
66
|
-
case 5:
|
|
67
|
-
if (tag !== 40) {
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
message.delayed = reader.bool();
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
reader.skipType(tag & 7);
|
|
77
|
-
}
|
|
78
|
-
return message;
|
|
79
|
-
},
|
|
80
|
-
fromJSON(object) {
|
|
81
|
-
return {
|
|
82
|
-
fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
|
|
83
|
-
toAddress: isSet(object.toAddress) ? String(object.toAddress) : "",
|
|
84
|
-
amount: Array.isArray(object === null || object === void 0 ? void 0 : object.amount) ? object.amount.map((e) => coin_1.Coin.fromJSON(e)) : [],
|
|
85
|
-
endTime: isSet(object.endTime) ? Number(object.endTime) : 0,
|
|
86
|
-
delayed: isSet(object.delayed) ? Boolean(object.delayed) : false,
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
toJSON(message) {
|
|
90
|
-
const obj = {};
|
|
91
|
-
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
|
|
92
|
-
message.toAddress !== undefined && (obj.toAddress = message.toAddress);
|
|
93
|
-
if (message.amount) {
|
|
94
|
-
obj.amount = message.amount.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
obj.amount = [];
|
|
98
|
-
}
|
|
99
|
-
message.endTime !== undefined && (obj.endTime = Math.round(message.endTime));
|
|
100
|
-
message.delayed !== undefined && (obj.delayed = message.delayed);
|
|
101
|
-
return obj;
|
|
102
|
-
},
|
|
103
|
-
create(base) {
|
|
104
|
-
return exports.MsgCreateVestingAccount.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
105
|
-
},
|
|
106
|
-
fromPartial(object) {
|
|
107
|
-
var _a, _b, _c, _d, _e;
|
|
108
|
-
const message = createBaseMsgCreateVestingAccount();
|
|
109
|
-
message.fromAddress = (_a = object.fromAddress) !== null && _a !== void 0 ? _a : "";
|
|
110
|
-
message.toAddress = (_b = object.toAddress) !== null && _b !== void 0 ? _b : "";
|
|
111
|
-
message.amount = ((_c = object.amount) === null || _c === void 0 ? void 0 : _c.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
112
|
-
message.endTime = (_d = object.endTime) !== null && _d !== void 0 ? _d : 0;
|
|
113
|
-
message.delayed = (_e = object.delayed) !== null && _e !== void 0 ? _e : false;
|
|
114
|
-
return message;
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
function createBaseMsgCreateVestingAccountResponse() {
|
|
118
|
-
return {};
|
|
119
|
-
}
|
|
120
|
-
exports.MsgCreateVestingAccountResponse = {
|
|
121
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
122
|
-
return writer;
|
|
123
|
-
},
|
|
124
|
-
decode(input, length) {
|
|
125
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
126
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
-
const message = createBaseMsgCreateVestingAccountResponse();
|
|
128
|
-
while (reader.pos < end) {
|
|
129
|
-
const tag = reader.uint32();
|
|
130
|
-
switch (tag >>> 3) {
|
|
131
|
-
}
|
|
132
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
reader.skipType(tag & 7);
|
|
136
|
-
}
|
|
137
|
-
return message;
|
|
138
|
-
},
|
|
139
|
-
fromJSON(_) {
|
|
140
|
-
return {};
|
|
141
|
-
},
|
|
142
|
-
toJSON(_) {
|
|
143
|
-
const obj = {};
|
|
144
|
-
return obj;
|
|
145
|
-
},
|
|
146
|
-
create(base) {
|
|
147
|
-
return exports.MsgCreateVestingAccountResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
148
|
-
},
|
|
149
|
-
fromPartial(_) {
|
|
150
|
-
const message = createBaseMsgCreateVestingAccountResponse();
|
|
151
|
-
return message;
|
|
152
|
-
},
|
|
153
|
-
};
|
|
154
|
-
function createBaseMsgCreatePermanentLockedAccount() {
|
|
155
|
-
return { fromAddress: "", toAddress: "", amount: [] };
|
|
156
|
-
}
|
|
157
|
-
exports.MsgCreatePermanentLockedAccount = {
|
|
158
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
159
|
-
if (message.fromAddress !== "") {
|
|
160
|
-
writer.uint32(10).string(message.fromAddress);
|
|
161
|
-
}
|
|
162
|
-
if (message.toAddress !== "") {
|
|
163
|
-
writer.uint32(18).string(message.toAddress);
|
|
164
|
-
}
|
|
165
|
-
for (const v of message.amount) {
|
|
166
|
-
coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
167
|
-
}
|
|
168
|
-
return writer;
|
|
169
|
-
},
|
|
170
|
-
decode(input, length) {
|
|
171
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
172
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
173
|
-
const message = createBaseMsgCreatePermanentLockedAccount();
|
|
174
|
-
while (reader.pos < end) {
|
|
175
|
-
const tag = reader.uint32();
|
|
176
|
-
switch (tag >>> 3) {
|
|
177
|
-
case 1:
|
|
178
|
-
if (tag !== 10) {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
message.fromAddress = reader.string();
|
|
182
|
-
continue;
|
|
183
|
-
case 2:
|
|
184
|
-
if (tag !== 18) {
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
message.toAddress = reader.string();
|
|
188
|
-
continue;
|
|
189
|
-
case 3:
|
|
190
|
-
if (tag !== 26) {
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
message.amount.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
194
|
-
continue;
|
|
195
|
-
}
|
|
196
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
reader.skipType(tag & 7);
|
|
200
|
-
}
|
|
201
|
-
return message;
|
|
202
|
-
},
|
|
203
|
-
fromJSON(object) {
|
|
204
|
-
return {
|
|
205
|
-
fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
|
|
206
|
-
toAddress: isSet(object.toAddress) ? String(object.toAddress) : "",
|
|
207
|
-
amount: Array.isArray(object === null || object === void 0 ? void 0 : object.amount) ? object.amount.map((e) => coin_1.Coin.fromJSON(e)) : [],
|
|
208
|
-
};
|
|
209
|
-
},
|
|
210
|
-
toJSON(message) {
|
|
211
|
-
const obj = {};
|
|
212
|
-
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
|
|
213
|
-
message.toAddress !== undefined && (obj.toAddress = message.toAddress);
|
|
214
|
-
if (message.amount) {
|
|
215
|
-
obj.amount = message.amount.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
obj.amount = [];
|
|
219
|
-
}
|
|
220
|
-
return obj;
|
|
221
|
-
},
|
|
222
|
-
create(base) {
|
|
223
|
-
return exports.MsgCreatePermanentLockedAccount.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
224
|
-
},
|
|
225
|
-
fromPartial(object) {
|
|
226
|
-
var _a, _b, _c;
|
|
227
|
-
const message = createBaseMsgCreatePermanentLockedAccount();
|
|
228
|
-
message.fromAddress = (_a = object.fromAddress) !== null && _a !== void 0 ? _a : "";
|
|
229
|
-
message.toAddress = (_b = object.toAddress) !== null && _b !== void 0 ? _b : "";
|
|
230
|
-
message.amount = ((_c = object.amount) === null || _c === void 0 ? void 0 : _c.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
231
|
-
return message;
|
|
232
|
-
},
|
|
233
|
-
};
|
|
234
|
-
function createBaseMsgCreatePermanentLockedAccountResponse() {
|
|
235
|
-
return {};
|
|
236
|
-
}
|
|
237
|
-
exports.MsgCreatePermanentLockedAccountResponse = {
|
|
238
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
239
|
-
return writer;
|
|
240
|
-
},
|
|
241
|
-
decode(input, length) {
|
|
242
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
243
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
244
|
-
const message = createBaseMsgCreatePermanentLockedAccountResponse();
|
|
245
|
-
while (reader.pos < end) {
|
|
246
|
-
const tag = reader.uint32();
|
|
247
|
-
switch (tag >>> 3) {
|
|
248
|
-
}
|
|
249
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
reader.skipType(tag & 7);
|
|
253
|
-
}
|
|
254
|
-
return message;
|
|
255
|
-
},
|
|
256
|
-
fromJSON(_) {
|
|
257
|
-
return {};
|
|
258
|
-
},
|
|
259
|
-
toJSON(_) {
|
|
260
|
-
const obj = {};
|
|
261
|
-
return obj;
|
|
262
|
-
},
|
|
263
|
-
create(base) {
|
|
264
|
-
return exports.MsgCreatePermanentLockedAccountResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
265
|
-
},
|
|
266
|
-
fromPartial(_) {
|
|
267
|
-
const message = createBaseMsgCreatePermanentLockedAccountResponse();
|
|
268
|
-
return message;
|
|
269
|
-
},
|
|
270
|
-
};
|
|
271
|
-
function createBaseMsgCreatePeriodicVestingAccount() {
|
|
272
|
-
return { fromAddress: "", toAddress: "", startTime: 0, vestingPeriods: [] };
|
|
273
|
-
}
|
|
274
|
-
exports.MsgCreatePeriodicVestingAccount = {
|
|
275
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
276
|
-
if (message.fromAddress !== "") {
|
|
277
|
-
writer.uint32(10).string(message.fromAddress);
|
|
278
|
-
}
|
|
279
|
-
if (message.toAddress !== "") {
|
|
280
|
-
writer.uint32(18).string(message.toAddress);
|
|
281
|
-
}
|
|
282
|
-
if (message.startTime !== 0) {
|
|
283
|
-
writer.uint32(24).int64(message.startTime);
|
|
284
|
-
}
|
|
285
|
-
for (const v of message.vestingPeriods) {
|
|
286
|
-
vesting_1.Period.encode(v, writer.uint32(34).fork()).ldelim();
|
|
287
|
-
}
|
|
288
|
-
return writer;
|
|
289
|
-
},
|
|
290
|
-
decode(input, length) {
|
|
291
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
292
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
293
|
-
const message = createBaseMsgCreatePeriodicVestingAccount();
|
|
294
|
-
while (reader.pos < end) {
|
|
295
|
-
const tag = reader.uint32();
|
|
296
|
-
switch (tag >>> 3) {
|
|
297
|
-
case 1:
|
|
298
|
-
if (tag !== 10) {
|
|
299
|
-
break;
|
|
300
|
-
}
|
|
301
|
-
message.fromAddress = reader.string();
|
|
302
|
-
continue;
|
|
303
|
-
case 2:
|
|
304
|
-
if (tag !== 18) {
|
|
305
|
-
break;
|
|
306
|
-
}
|
|
307
|
-
message.toAddress = reader.string();
|
|
308
|
-
continue;
|
|
309
|
-
case 3:
|
|
310
|
-
if (tag !== 24) {
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
313
|
-
message.startTime = longToNumber(reader.int64());
|
|
314
|
-
continue;
|
|
315
|
-
case 4:
|
|
316
|
-
if (tag !== 34) {
|
|
317
|
-
break;
|
|
318
|
-
}
|
|
319
|
-
message.vestingPeriods.push(vesting_1.Period.decode(reader, reader.uint32()));
|
|
320
|
-
continue;
|
|
321
|
-
}
|
|
322
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
reader.skipType(tag & 7);
|
|
326
|
-
}
|
|
327
|
-
return message;
|
|
328
|
-
},
|
|
329
|
-
fromJSON(object) {
|
|
330
|
-
return {
|
|
331
|
-
fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
|
|
332
|
-
toAddress: isSet(object.toAddress) ? String(object.toAddress) : "",
|
|
333
|
-
startTime: isSet(object.startTime) ? Number(object.startTime) : 0,
|
|
334
|
-
vestingPeriods: Array.isArray(object === null || object === void 0 ? void 0 : object.vestingPeriods)
|
|
335
|
-
? object.vestingPeriods.map((e) => vesting_1.Period.fromJSON(e))
|
|
336
|
-
: [],
|
|
337
|
-
};
|
|
338
|
-
},
|
|
339
|
-
toJSON(message) {
|
|
340
|
-
const obj = {};
|
|
341
|
-
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
|
|
342
|
-
message.toAddress !== undefined && (obj.toAddress = message.toAddress);
|
|
343
|
-
message.startTime !== undefined && (obj.startTime = Math.round(message.startTime));
|
|
344
|
-
if (message.vestingPeriods) {
|
|
345
|
-
obj.vestingPeriods = message.vestingPeriods.map((e) => e ? vesting_1.Period.toJSON(e) : undefined);
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
obj.vestingPeriods = [];
|
|
349
|
-
}
|
|
350
|
-
return obj;
|
|
351
|
-
},
|
|
352
|
-
create(base) {
|
|
353
|
-
return exports.MsgCreatePeriodicVestingAccount.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
354
|
-
},
|
|
355
|
-
fromPartial(object) {
|
|
356
|
-
var _a, _b, _c, _d;
|
|
357
|
-
const message = createBaseMsgCreatePeriodicVestingAccount();
|
|
358
|
-
message.fromAddress = (_a = object.fromAddress) !== null && _a !== void 0 ? _a : "";
|
|
359
|
-
message.toAddress = (_b = object.toAddress) !== null && _b !== void 0 ? _b : "";
|
|
360
|
-
message.startTime = (_c = object.startTime) !== null && _c !== void 0 ? _c : 0;
|
|
361
|
-
message.vestingPeriods = ((_d = object.vestingPeriods) === null || _d === void 0 ? void 0 : _d.map((e) => vesting_1.Period.fromPartial(e))) || [];
|
|
362
|
-
return message;
|
|
363
|
-
},
|
|
364
|
-
};
|
|
365
|
-
function createBaseMsgCreatePeriodicVestingAccountResponse() {
|
|
366
|
-
return {};
|
|
367
|
-
}
|
|
368
|
-
exports.MsgCreatePeriodicVestingAccountResponse = {
|
|
369
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
370
|
-
return writer;
|
|
371
|
-
},
|
|
372
|
-
decode(input, length) {
|
|
373
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
374
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
375
|
-
const message = createBaseMsgCreatePeriodicVestingAccountResponse();
|
|
376
|
-
while (reader.pos < end) {
|
|
377
|
-
const tag = reader.uint32();
|
|
378
|
-
switch (tag >>> 3) {
|
|
379
|
-
}
|
|
380
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
reader.skipType(tag & 7);
|
|
384
|
-
}
|
|
385
|
-
return message;
|
|
386
|
-
},
|
|
387
|
-
fromJSON(_) {
|
|
388
|
-
return {};
|
|
389
|
-
},
|
|
390
|
-
toJSON(_) {
|
|
391
|
-
const obj = {};
|
|
392
|
-
return obj;
|
|
393
|
-
},
|
|
394
|
-
create(base) {
|
|
395
|
-
return exports.MsgCreatePeriodicVestingAccountResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
396
|
-
},
|
|
397
|
-
fromPartial(_) {
|
|
398
|
-
const message = createBaseMsgCreatePeriodicVestingAccountResponse();
|
|
399
|
-
return message;
|
|
400
|
-
},
|
|
401
|
-
};
|
|
402
|
-
class MsgClientImpl {
|
|
403
|
-
constructor(rpc, opts) {
|
|
404
|
-
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || "cosmos.vesting.v1beta1.Msg";
|
|
405
|
-
this.rpc = rpc;
|
|
406
|
-
this.CreateVestingAccount = this.CreateVestingAccount.bind(this);
|
|
407
|
-
this.CreatePermanentLockedAccount = this.CreatePermanentLockedAccount.bind(this);
|
|
408
|
-
this.CreatePeriodicVestingAccount = this.CreatePeriodicVestingAccount.bind(this);
|
|
409
|
-
}
|
|
410
|
-
CreateVestingAccount(request) {
|
|
411
|
-
const data = exports.MsgCreateVestingAccount.encode(request).finish();
|
|
412
|
-
const promise = this.rpc.request(this.service, "CreateVestingAccount", data);
|
|
413
|
-
return promise.then((data) => exports.MsgCreateVestingAccountResponse.decode(minimal_1.default.Reader.create(data)));
|
|
414
|
-
}
|
|
415
|
-
CreatePermanentLockedAccount(request) {
|
|
416
|
-
const data = exports.MsgCreatePermanentLockedAccount.encode(request).finish();
|
|
417
|
-
const promise = this.rpc.request(this.service, "CreatePermanentLockedAccount", data);
|
|
418
|
-
return promise.then((data) => exports.MsgCreatePermanentLockedAccountResponse.decode(minimal_1.default.Reader.create(data)));
|
|
419
|
-
}
|
|
420
|
-
CreatePeriodicVestingAccount(request) {
|
|
421
|
-
const data = exports.MsgCreatePeriodicVestingAccount.encode(request).finish();
|
|
422
|
-
const promise = this.rpc.request(this.service, "CreatePeriodicVestingAccount", data);
|
|
423
|
-
return promise.then((data) => exports.MsgCreatePeriodicVestingAccountResponse.decode(minimal_1.default.Reader.create(data)));
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
exports.MsgClientImpl = MsgClientImpl;
|
|
427
|
-
var tsProtoGlobalThis = (() => {
|
|
428
|
-
if (typeof globalThis !== "undefined") {
|
|
429
|
-
return globalThis;
|
|
430
|
-
}
|
|
431
|
-
if (typeof self !== "undefined") {
|
|
432
|
-
return self;
|
|
433
|
-
}
|
|
434
|
-
if (typeof window !== "undefined") {
|
|
435
|
-
return window;
|
|
436
|
-
}
|
|
437
|
-
if (typeof global !== "undefined") {
|
|
438
|
-
return global;
|
|
439
|
-
}
|
|
440
|
-
throw "Unable to locate global object";
|
|
441
|
-
})();
|
|
442
|
-
function longToNumber(long) {
|
|
443
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
444
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
445
|
-
}
|
|
446
|
-
return long.toNumber();
|
|
447
|
-
}
|
|
448
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
449
|
-
minimal_1.default.util.Long = long_1.default;
|
|
450
|
-
minimal_1.default.configure();
|
|
451
|
-
}
|
|
452
|
-
function isSet(value) {
|
|
453
|
-
return value !== null && value !== undefined;
|
|
454
|
-
}
|