coreum-js 2.11.0 → 2.13.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/token.d.ts +1 -0
- package/dist/main/coreum/asset/ft/v1/token.js +6 -0
- 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/token.d.ts +1 -0
- package/dist/module/coreum/asset/ft/v1/token.js +6 -0
- 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,5 +1,6 @@
|
|
|
1
1
|
import { CoreumNetworkConfig } from "../types/coreum";
|
|
2
2
|
import { EncodeObject, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
|
3
|
+
import { TxRaw } from "../cosmos";
|
|
3
4
|
import { ExtensionWallets, FeeCalculation, ClientQueryClient } from "../types";
|
|
4
5
|
import { DeliverTxResponse, StargateClient } from "@cosmjs/stargate";
|
|
5
6
|
import EventEmitter from "eventemitter3";
|
|
@@ -107,7 +108,7 @@ export declare class Client {
|
|
|
107
108
|
* @param memo An arbitrary string to add as Memo for the transaction
|
|
108
109
|
* @returns TxRaw object to be submitted to the chain
|
|
109
110
|
*/
|
|
110
|
-
signTx(msgs: readonly EncodeObject[], memo?: string): Promise<
|
|
111
|
+
signTx(msgs: readonly EncodeObject[], memo?: string): Promise<TxRaw>;
|
|
111
112
|
/**
|
|
112
113
|
*
|
|
113
114
|
* @param event String describing the event to subscribe to.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
4
|
import { Params } from "./params";
|
|
5
5
|
import { Token } from "./token";
|
|
6
6
|
export declare const protobufPackage = "coreum.asset.ft.v1";
|
|
@@ -7,12 +7,17 @@ exports.Balance = exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
const params_1 = require("./params");
|
|
12
12
|
const token_1 = require("./token");
|
|
13
13
|
exports.protobufPackage = "coreum.asset.ft.v1";
|
|
14
14
|
function createBaseGenesisState() {
|
|
15
|
-
return {
|
|
15
|
+
return {
|
|
16
|
+
params: undefined,
|
|
17
|
+
tokens: [],
|
|
18
|
+
frozenBalances: [],
|
|
19
|
+
whitelistedBalances: [],
|
|
20
|
+
};
|
|
16
21
|
}
|
|
17
22
|
exports.GenesisState = {
|
|
18
23
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -72,7 +77,9 @@ exports.GenesisState = {
|
|
|
72
77
|
fromJSON(object) {
|
|
73
78
|
return {
|
|
74
79
|
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
75
|
-
tokens: Array.isArray(object === null || object === void 0 ? void 0 : object.tokens)
|
|
80
|
+
tokens: Array.isArray(object === null || object === void 0 ? void 0 : object.tokens)
|
|
81
|
+
? object.tokens.map((e) => token_1.Token.fromJSON(e))
|
|
82
|
+
: [],
|
|
76
83
|
frozenBalances: Array.isArray(object === null || object === void 0 ? void 0 : object.frozenBalances)
|
|
77
84
|
? object.frozenBalances.map((e) => exports.Balance.fromJSON(e))
|
|
78
85
|
: [],
|
|
@@ -83,9 +90,10 @@ exports.GenesisState = {
|
|
|
83
90
|
},
|
|
84
91
|
toJSON(message) {
|
|
85
92
|
const obj = {};
|
|
86
|
-
message.params !== undefined &&
|
|
93
|
+
message.params !== undefined &&
|
|
94
|
+
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
87
95
|
if (message.tokens) {
|
|
88
|
-
obj.tokens = message.tokens.map((e) => e ? token_1.Token.toJSON(e) : undefined);
|
|
96
|
+
obj.tokens = message.tokens.map((e) => (e ? token_1.Token.toJSON(e) : undefined));
|
|
89
97
|
}
|
|
90
98
|
else {
|
|
91
99
|
obj.tokens = [];
|
|
@@ -110,12 +118,15 @@ exports.GenesisState = {
|
|
|
110
118
|
fromPartial(object) {
|
|
111
119
|
var _a, _b, _c;
|
|
112
120
|
const message = createBaseGenesisState();
|
|
113
|
-
message.params =
|
|
114
|
-
|
|
115
|
-
|
|
121
|
+
message.params =
|
|
122
|
+
object.params !== undefined && object.params !== null
|
|
123
|
+
? params_1.Params.fromPartial(object.params)
|
|
124
|
+
: undefined;
|
|
116
125
|
message.tokens = ((_a = object.tokens) === null || _a === void 0 ? void 0 : _a.map((e) => token_1.Token.fromPartial(e))) || [];
|
|
117
|
-
message.frozenBalances =
|
|
118
|
-
|
|
126
|
+
message.frozenBalances =
|
|
127
|
+
((_b = object.frozenBalances) === null || _b === void 0 ? void 0 : _b.map((e) => exports.Balance.fromPartial(e))) || [];
|
|
128
|
+
message.whitelistedBalances =
|
|
129
|
+
((_c = object.whitelistedBalances) === null || _c === void 0 ? void 0 : _c.map((e) => exports.Balance.fromPartial(e))) || [];
|
|
119
130
|
return message;
|
|
120
131
|
},
|
|
121
132
|
};
|
|
@@ -162,14 +173,16 @@ exports.Balance = {
|
|
|
162
173
|
fromJSON(object) {
|
|
163
174
|
return {
|
|
164
175
|
address: isSet(object.address) ? String(object.address) : "",
|
|
165
|
-
coins: Array.isArray(object === null || object === void 0 ? void 0 : object.coins)
|
|
176
|
+
coins: Array.isArray(object === null || object === void 0 ? void 0 : object.coins)
|
|
177
|
+
? object.coins.map((e) => coin_1.Coin.fromJSON(e))
|
|
178
|
+
: [],
|
|
166
179
|
};
|
|
167
180
|
},
|
|
168
181
|
toJSON(message) {
|
|
169
182
|
const obj = {};
|
|
170
183
|
message.address !== undefined && (obj.address = message.address);
|
|
171
184
|
if (message.coins) {
|
|
172
|
-
obj.coins = message.coins.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
185
|
+
obj.coins = message.coins.map((e) => (e ? coin_1.Coin.toJSON(e) : undefined));
|
|
173
186
|
}
|
|
174
187
|
else {
|
|
175
188
|
obj.coins = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
4
|
export declare const protobufPackage = "coreum.asset.ft.v1";
|
|
5
5
|
/** Params store gov manageable parameters. */
|
|
6
6
|
export interface Params {
|
|
@@ -7,7 +7,7 @@ exports.Params = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
exports.protobufPackage = "coreum.asset.ft.v1";
|
|
12
12
|
function createBaseParams() {
|
|
13
13
|
return { issueFee: undefined };
|
|
@@ -41,11 +41,18 @@ exports.Params = {
|
|
|
41
41
|
return message;
|
|
42
42
|
},
|
|
43
43
|
fromJSON(object) {
|
|
44
|
-
return {
|
|
44
|
+
return {
|
|
45
|
+
issueFee: isSet(object.issueFee)
|
|
46
|
+
? coin_1.Coin.fromJSON(object.issueFee)
|
|
47
|
+
: undefined,
|
|
48
|
+
};
|
|
45
49
|
},
|
|
46
50
|
toJSON(message) {
|
|
47
51
|
const obj = {};
|
|
48
|
-
message.issueFee !== undefined &&
|
|
52
|
+
message.issueFee !== undefined &&
|
|
53
|
+
(obj.issueFee = message.issueFee
|
|
54
|
+
? coin_1.Coin.toJSON(message.issueFee)
|
|
55
|
+
: undefined);
|
|
49
56
|
return obj;
|
|
50
57
|
},
|
|
51
58
|
create(base) {
|
|
@@ -53,9 +60,10 @@ exports.Params = {
|
|
|
53
60
|
},
|
|
54
61
|
fromPartial(object) {
|
|
55
62
|
const message = createBaseParams();
|
|
56
|
-
message.issueFee =
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
message.issueFee =
|
|
64
|
+
object.issueFee !== undefined && object.issueFee !== null
|
|
65
|
+
? coin_1.Coin.fromPartial(object.issueFee)
|
|
66
|
+
: undefined;
|
|
59
67
|
return message;
|
|
60
68
|
},
|
|
61
69
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PageRequest, PageResponse } from "
|
|
4
|
-
import { Coin } from "
|
|
3
|
+
import { PageRequest, PageResponse } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
|
|
4
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
5
5
|
import { Params } from "./params";
|
|
6
6
|
import { Token } from "./token";
|
|
7
7
|
export declare const protobufPackage = "coreum.asset.ft.v1";
|
|
@@ -7,8 +7,8 @@ exports.QueryClientImpl = exports.QueryWhitelistedBalanceResponse = exports.Quer
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const pagination_1 = require("
|
|
11
|
-
const coin_1 = require("
|
|
10
|
+
const pagination_1 = require("cosmjs-types/cosmos/base/query/v1beta1/pagination");
|
|
11
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
12
12
|
const params_1 = require("./params");
|
|
13
13
|
const token_1 = require("./token");
|
|
14
14
|
exports.protobufPackage = "coreum.asset.ft.v1";
|
|
@@ -81,11 +81,14 @@ exports.QueryParamsResponse = {
|
|
|
81
81
|
return message;
|
|
82
82
|
},
|
|
83
83
|
fromJSON(object) {
|
|
84
|
-
return {
|
|
84
|
+
return {
|
|
85
|
+
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
86
|
+
};
|
|
85
87
|
},
|
|
86
88
|
toJSON(message) {
|
|
87
89
|
const obj = {};
|
|
88
|
-
message.params !== undefined &&
|
|
90
|
+
message.params !== undefined &&
|
|
91
|
+
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
89
92
|
return obj;
|
|
90
93
|
},
|
|
91
94
|
create(base) {
|
|
@@ -93,9 +96,10 @@ exports.QueryParamsResponse = {
|
|
|
93
96
|
},
|
|
94
97
|
fromPartial(object) {
|
|
95
98
|
const message = createBaseQueryParamsResponse();
|
|
96
|
-
message.params =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
message.params =
|
|
100
|
+
object.params !== undefined && object.params !== null
|
|
101
|
+
? params_1.Params.fromPartial(object.params)
|
|
102
|
+
: undefined;
|
|
99
103
|
return message;
|
|
100
104
|
},
|
|
101
105
|
};
|
|
@@ -180,11 +184,14 @@ exports.QueryTokenResponse = {
|
|
|
180
184
|
return message;
|
|
181
185
|
},
|
|
182
186
|
fromJSON(object) {
|
|
183
|
-
return {
|
|
187
|
+
return {
|
|
188
|
+
token: isSet(object.token) ? token_1.Token.fromJSON(object.token) : undefined,
|
|
189
|
+
};
|
|
184
190
|
},
|
|
185
191
|
toJSON(message) {
|
|
186
192
|
const obj = {};
|
|
187
|
-
message.token !== undefined &&
|
|
193
|
+
message.token !== undefined &&
|
|
194
|
+
(obj.token = message.token ? token_1.Token.toJSON(message.token) : undefined);
|
|
188
195
|
return obj;
|
|
189
196
|
},
|
|
190
197
|
create(base) {
|
|
@@ -192,7 +199,10 @@ exports.QueryTokenResponse = {
|
|
|
192
199
|
},
|
|
193
200
|
fromPartial(object) {
|
|
194
201
|
const message = createBaseQueryTokenResponse();
|
|
195
|
-
message.token =
|
|
202
|
+
message.token =
|
|
203
|
+
object.token !== undefined && object.token !== null
|
|
204
|
+
? token_1.Token.fromPartial(object.token)
|
|
205
|
+
: undefined;
|
|
196
206
|
return message;
|
|
197
207
|
},
|
|
198
208
|
};
|
|
@@ -238,14 +248,18 @@ exports.QueryTokensRequest = {
|
|
|
238
248
|
},
|
|
239
249
|
fromJSON(object) {
|
|
240
250
|
return {
|
|
241
|
-
pagination: isSet(object.pagination)
|
|
251
|
+
pagination: isSet(object.pagination)
|
|
252
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
253
|
+
: undefined,
|
|
242
254
|
issuer: isSet(object.issuer) ? String(object.issuer) : "",
|
|
243
255
|
};
|
|
244
256
|
},
|
|
245
257
|
toJSON(message) {
|
|
246
258
|
const obj = {};
|
|
247
259
|
message.pagination !== undefined &&
|
|
248
|
-
(obj.pagination = message.pagination
|
|
260
|
+
(obj.pagination = message.pagination
|
|
261
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
262
|
+
: undefined);
|
|
249
263
|
message.issuer !== undefined && (obj.issuer = message.issuer);
|
|
250
264
|
return obj;
|
|
251
265
|
},
|
|
@@ -255,9 +269,10 @@ exports.QueryTokensRequest = {
|
|
|
255
269
|
fromPartial(object) {
|
|
256
270
|
var _a;
|
|
257
271
|
const message = createBaseQueryTokensRequest();
|
|
258
|
-
message.pagination =
|
|
259
|
-
|
|
260
|
-
|
|
272
|
+
message.pagination =
|
|
273
|
+
object.pagination !== undefined && object.pagination !== null
|
|
274
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
275
|
+
: undefined;
|
|
261
276
|
message.issuer = (_a = object.issuer) !== null && _a !== void 0 ? _a : "";
|
|
262
277
|
return message;
|
|
263
278
|
},
|
|
@@ -304,16 +319,22 @@ exports.QueryTokensResponse = {
|
|
|
304
319
|
},
|
|
305
320
|
fromJSON(object) {
|
|
306
321
|
return {
|
|
307
|
-
pagination: isSet(object.pagination)
|
|
308
|
-
|
|
322
|
+
pagination: isSet(object.pagination)
|
|
323
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
324
|
+
: undefined,
|
|
325
|
+
tokens: Array.isArray(object === null || object === void 0 ? void 0 : object.tokens)
|
|
326
|
+
? object.tokens.map((e) => token_1.Token.fromJSON(e))
|
|
327
|
+
: [],
|
|
309
328
|
};
|
|
310
329
|
},
|
|
311
330
|
toJSON(message) {
|
|
312
331
|
const obj = {};
|
|
313
332
|
message.pagination !== undefined &&
|
|
314
|
-
(obj.pagination = message.pagination
|
|
333
|
+
(obj.pagination = message.pagination
|
|
334
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
335
|
+
: undefined);
|
|
315
336
|
if (message.tokens) {
|
|
316
|
-
obj.tokens = message.tokens.map((e) => e ? token_1.Token.toJSON(e) : undefined);
|
|
337
|
+
obj.tokens = message.tokens.map((e) => (e ? token_1.Token.toJSON(e) : undefined));
|
|
317
338
|
}
|
|
318
339
|
else {
|
|
319
340
|
obj.tokens = [];
|
|
@@ -326,9 +347,10 @@ exports.QueryTokensResponse = {
|
|
|
326
347
|
fromPartial(object) {
|
|
327
348
|
var _a;
|
|
328
349
|
const message = createBaseQueryTokensResponse();
|
|
329
|
-
message.pagination =
|
|
330
|
-
|
|
331
|
-
|
|
350
|
+
message.pagination =
|
|
351
|
+
object.pagination !== undefined && object.pagination !== null
|
|
352
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
353
|
+
: undefined;
|
|
332
354
|
message.tokens = ((_a = object.tokens) === null || _a === void 0 ? void 0 : _a.map((e) => token_1.Token.fromPartial(e))) || [];
|
|
333
355
|
return message;
|
|
334
356
|
},
|
|
@@ -375,14 +397,18 @@ exports.QueryFrozenBalancesRequest = {
|
|
|
375
397
|
},
|
|
376
398
|
fromJSON(object) {
|
|
377
399
|
return {
|
|
378
|
-
pagination: isSet(object.pagination)
|
|
400
|
+
pagination: isSet(object.pagination)
|
|
401
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
402
|
+
: undefined,
|
|
379
403
|
account: isSet(object.account) ? String(object.account) : "",
|
|
380
404
|
};
|
|
381
405
|
},
|
|
382
406
|
toJSON(message) {
|
|
383
407
|
const obj = {};
|
|
384
408
|
message.pagination !== undefined &&
|
|
385
|
-
(obj.pagination = message.pagination
|
|
409
|
+
(obj.pagination = message.pagination
|
|
410
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
411
|
+
: undefined);
|
|
386
412
|
message.account !== undefined && (obj.account = message.account);
|
|
387
413
|
return obj;
|
|
388
414
|
},
|
|
@@ -392,9 +418,10 @@ exports.QueryFrozenBalancesRequest = {
|
|
|
392
418
|
fromPartial(object) {
|
|
393
419
|
var _a;
|
|
394
420
|
const message = createBaseQueryFrozenBalancesRequest();
|
|
395
|
-
message.pagination =
|
|
396
|
-
|
|
397
|
-
|
|
421
|
+
message.pagination =
|
|
422
|
+
object.pagination !== undefined && object.pagination !== null
|
|
423
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
424
|
+
: undefined;
|
|
398
425
|
message.account = (_a = object.account) !== null && _a !== void 0 ? _a : "";
|
|
399
426
|
return message;
|
|
400
427
|
},
|
|
@@ -441,14 +468,20 @@ exports.QueryFrozenBalancesResponse = {
|
|
|
441
468
|
},
|
|
442
469
|
fromJSON(object) {
|
|
443
470
|
return {
|
|
444
|
-
pagination: isSet(object.pagination)
|
|
445
|
-
|
|
471
|
+
pagination: isSet(object.pagination)
|
|
472
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
473
|
+
: undefined,
|
|
474
|
+
balances: Array.isArray(object === null || object === void 0 ? void 0 : object.balances)
|
|
475
|
+
? object.balances.map((e) => coin_1.Coin.fromJSON(e))
|
|
476
|
+
: [],
|
|
446
477
|
};
|
|
447
478
|
},
|
|
448
479
|
toJSON(message) {
|
|
449
480
|
const obj = {};
|
|
450
481
|
message.pagination !== undefined &&
|
|
451
|
-
(obj.pagination = message.pagination
|
|
482
|
+
(obj.pagination = message.pagination
|
|
483
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
484
|
+
: undefined);
|
|
452
485
|
if (message.balances) {
|
|
453
486
|
obj.balances = message.balances.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
454
487
|
}
|
|
@@ -463,9 +496,10 @@ exports.QueryFrozenBalancesResponse = {
|
|
|
463
496
|
fromPartial(object) {
|
|
464
497
|
var _a;
|
|
465
498
|
const message = createBaseQueryFrozenBalancesResponse();
|
|
466
|
-
message.pagination =
|
|
467
|
-
|
|
468
|
-
|
|
499
|
+
message.pagination =
|
|
500
|
+
object.pagination !== undefined && object.pagination !== null
|
|
501
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
502
|
+
: undefined;
|
|
469
503
|
message.balances = ((_a = object.balances) === null || _a === void 0 ? void 0 : _a.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
470
504
|
return message;
|
|
471
505
|
},
|
|
@@ -565,11 +599,18 @@ exports.QueryFrozenBalanceResponse = {
|
|
|
565
599
|
return message;
|
|
566
600
|
},
|
|
567
601
|
fromJSON(object) {
|
|
568
|
-
return {
|
|
602
|
+
return {
|
|
603
|
+
balance: isSet(object.balance)
|
|
604
|
+
? coin_1.Coin.fromJSON(object.balance)
|
|
605
|
+
: undefined,
|
|
606
|
+
};
|
|
569
607
|
},
|
|
570
608
|
toJSON(message) {
|
|
571
609
|
const obj = {};
|
|
572
|
-
message.balance !== undefined &&
|
|
610
|
+
message.balance !== undefined &&
|
|
611
|
+
(obj.balance = message.balance
|
|
612
|
+
? coin_1.Coin.toJSON(message.balance)
|
|
613
|
+
: undefined);
|
|
573
614
|
return obj;
|
|
574
615
|
},
|
|
575
616
|
create(base) {
|
|
@@ -577,9 +618,10 @@ exports.QueryFrozenBalanceResponse = {
|
|
|
577
618
|
},
|
|
578
619
|
fromPartial(object) {
|
|
579
620
|
const message = createBaseQueryFrozenBalanceResponse();
|
|
580
|
-
message.balance =
|
|
581
|
-
|
|
582
|
-
|
|
621
|
+
message.balance =
|
|
622
|
+
object.balance !== undefined && object.balance !== null
|
|
623
|
+
? coin_1.Coin.fromPartial(object.balance)
|
|
624
|
+
: undefined;
|
|
583
625
|
return message;
|
|
584
626
|
},
|
|
585
627
|
};
|
|
@@ -625,14 +667,18 @@ exports.QueryWhitelistedBalancesRequest = {
|
|
|
625
667
|
},
|
|
626
668
|
fromJSON(object) {
|
|
627
669
|
return {
|
|
628
|
-
pagination: isSet(object.pagination)
|
|
670
|
+
pagination: isSet(object.pagination)
|
|
671
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
672
|
+
: undefined,
|
|
629
673
|
account: isSet(object.account) ? String(object.account) : "",
|
|
630
674
|
};
|
|
631
675
|
},
|
|
632
676
|
toJSON(message) {
|
|
633
677
|
const obj = {};
|
|
634
678
|
message.pagination !== undefined &&
|
|
635
|
-
(obj.pagination = message.pagination
|
|
679
|
+
(obj.pagination = message.pagination
|
|
680
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
681
|
+
: undefined);
|
|
636
682
|
message.account !== undefined && (obj.account = message.account);
|
|
637
683
|
return obj;
|
|
638
684
|
},
|
|
@@ -642,9 +688,10 @@ exports.QueryWhitelistedBalancesRequest = {
|
|
|
642
688
|
fromPartial(object) {
|
|
643
689
|
var _a;
|
|
644
690
|
const message = createBaseQueryWhitelistedBalancesRequest();
|
|
645
|
-
message.pagination =
|
|
646
|
-
|
|
647
|
-
|
|
691
|
+
message.pagination =
|
|
692
|
+
object.pagination !== undefined && object.pagination !== null
|
|
693
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
694
|
+
: undefined;
|
|
648
695
|
message.account = (_a = object.account) !== null && _a !== void 0 ? _a : "";
|
|
649
696
|
return message;
|
|
650
697
|
},
|
|
@@ -691,14 +738,20 @@ exports.QueryWhitelistedBalancesResponse = {
|
|
|
691
738
|
},
|
|
692
739
|
fromJSON(object) {
|
|
693
740
|
return {
|
|
694
|
-
pagination: isSet(object.pagination)
|
|
695
|
-
|
|
741
|
+
pagination: isSet(object.pagination)
|
|
742
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
743
|
+
: undefined,
|
|
744
|
+
balances: Array.isArray(object === null || object === void 0 ? void 0 : object.balances)
|
|
745
|
+
? object.balances.map((e) => coin_1.Coin.fromJSON(e))
|
|
746
|
+
: [],
|
|
696
747
|
};
|
|
697
748
|
},
|
|
698
749
|
toJSON(message) {
|
|
699
750
|
const obj = {};
|
|
700
751
|
message.pagination !== undefined &&
|
|
701
|
-
(obj.pagination = message.pagination
|
|
752
|
+
(obj.pagination = message.pagination
|
|
753
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
754
|
+
: undefined);
|
|
702
755
|
if (message.balances) {
|
|
703
756
|
obj.balances = message.balances.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
704
757
|
}
|
|
@@ -713,9 +766,10 @@ exports.QueryWhitelistedBalancesResponse = {
|
|
|
713
766
|
fromPartial(object) {
|
|
714
767
|
var _a;
|
|
715
768
|
const message = createBaseQueryWhitelistedBalancesResponse();
|
|
716
|
-
message.pagination =
|
|
717
|
-
|
|
718
|
-
|
|
769
|
+
message.pagination =
|
|
770
|
+
object.pagination !== undefined && object.pagination !== null
|
|
771
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
772
|
+
: undefined;
|
|
719
773
|
message.balances = ((_a = object.balances) === null || _a === void 0 ? void 0 : _a.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
720
774
|
return message;
|
|
721
775
|
},
|
|
@@ -815,11 +869,18 @@ exports.QueryWhitelistedBalanceResponse = {
|
|
|
815
869
|
return message;
|
|
816
870
|
},
|
|
817
871
|
fromJSON(object) {
|
|
818
|
-
return {
|
|
872
|
+
return {
|
|
873
|
+
balance: isSet(object.balance)
|
|
874
|
+
? coin_1.Coin.fromJSON(object.balance)
|
|
875
|
+
: undefined,
|
|
876
|
+
};
|
|
819
877
|
},
|
|
820
878
|
toJSON(message) {
|
|
821
879
|
const obj = {};
|
|
822
|
-
message.balance !== undefined &&
|
|
880
|
+
message.balance !== undefined &&
|
|
881
|
+
(obj.balance = message.balance
|
|
882
|
+
? coin_1.Coin.toJSON(message.balance)
|
|
883
|
+
: undefined);
|
|
823
884
|
return obj;
|
|
824
885
|
},
|
|
825
886
|
create(base) {
|
|
@@ -827,9 +888,10 @@ exports.QueryWhitelistedBalanceResponse = {
|
|
|
827
888
|
},
|
|
828
889
|
fromPartial(object) {
|
|
829
890
|
const message = createBaseQueryWhitelistedBalanceResponse();
|
|
830
|
-
message.balance =
|
|
831
|
-
|
|
832
|
-
|
|
891
|
+
message.balance =
|
|
892
|
+
object.balance !== undefined && object.balance !== null
|
|
893
|
+
? coin_1.Coin.fromPartial(object.balance)
|
|
894
|
+
: undefined;
|
|
833
895
|
return message;
|
|
834
896
|
},
|
|
835
897
|
};
|
|
@@ -17,6 +17,7 @@ var Feature;
|
|
|
17
17
|
Feature[Feature["whitelisting"] = 3] = "whitelisting";
|
|
18
18
|
Feature[Feature["ibc"] = 4] = "ibc";
|
|
19
19
|
Feature[Feature["block_smart_contracts"] = 5] = "block_smart_contracts";
|
|
20
|
+
Feature[Feature["clawback"] = 6] = "clawback";
|
|
20
21
|
Feature[Feature["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
21
22
|
})(Feature || (exports.Feature = Feature = {}));
|
|
22
23
|
function featureFromJSON(object) {
|
|
@@ -39,6 +40,9 @@ function featureFromJSON(object) {
|
|
|
39
40
|
case 5:
|
|
40
41
|
case "block_smart_contracts":
|
|
41
42
|
return Feature.block_smart_contracts;
|
|
43
|
+
case 6:
|
|
44
|
+
case "clawback":
|
|
45
|
+
return Feature.clawback;
|
|
42
46
|
case -1:
|
|
43
47
|
case "UNRECOGNIZED":
|
|
44
48
|
default:
|
|
@@ -60,6 +64,8 @@ function featureToJSON(object) {
|
|
|
60
64
|
return "ibc";
|
|
61
65
|
case Feature.block_smart_contracts:
|
|
62
66
|
return "block_smart_contracts";
|
|
67
|
+
case Feature.clawback:
|
|
68
|
+
return "clawback";
|
|
63
69
|
case Feature.UNRECOGNIZED:
|
|
64
70
|
default:
|
|
65
71
|
return "UNRECOGNIZED";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
4
|
import { Feature } from "./token";
|
|
5
5
|
export declare const protobufPackage = "coreum.asset.ft.v1";
|
|
6
6
|
/** MsgIssue defines message to issue new fungible token. */
|
|
@@ -7,7 +7,7 @@ exports.MsgClientImpl = exports.EmptyResponse = exports.MsgSetWhitelistedLimit =
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
const token_1 = require("./token");
|
|
12
12
|
exports.protobufPackage = "coreum.asset.ft.v1";
|
|
13
13
|
function createBaseMsgIssue() {
|
|
@@ -70,7 +70,7 @@ export declare const GenesisState: {
|
|
|
70
70
|
} & {
|
|
71
71
|
denom?: string;
|
|
72
72
|
amount?: string;
|
|
73
|
-
} & { [K in Exclude<keyof I["params"]["mintFee"], keyof import("
|
|
73
|
+
} & { [K in Exclude<keyof I["params"]["mintFee"], keyof import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>]: never; };
|
|
74
74
|
} & { [K_1 in Exclude<keyof I["params"], "mintFee">]: never; };
|
|
75
75
|
classDefinitions?: {
|
|
76
76
|
id?: string;
|
|
@@ -176,7 +176,7 @@ export declare const GenesisState: {
|
|
|
176
176
|
} & {
|
|
177
177
|
denom?: string;
|
|
178
178
|
amount?: string;
|
|
179
|
-
} & { [K_15 in Exclude<keyof I_1["params"]["mintFee"], keyof import("
|
|
179
|
+
} & { [K_15 in Exclude<keyof I_1["params"]["mintFee"], keyof import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>]: never; };
|
|
180
180
|
} & { [K_16 in Exclude<keyof I_1["params"], "mintFee">]: never; };
|
|
181
181
|
classDefinitions?: {
|
|
182
182
|
id?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
4
|
export declare const protobufPackage = "coreum.asset.nft.v1";
|
|
5
5
|
/** Params store gov manageable parameters. */
|
|
6
6
|
export interface Params {
|
|
@@ -7,7 +7,7 @@ exports.Params = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
exports.protobufPackage = "coreum.asset.nft.v1";
|
|
12
12
|
function createBaseParams() {
|
|
13
13
|
return { mintFee: undefined };
|
|
@@ -41,11 +41,18 @@ exports.Params = {
|
|
|
41
41
|
return message;
|
|
42
42
|
},
|
|
43
43
|
fromJSON(object) {
|
|
44
|
-
return {
|
|
44
|
+
return {
|
|
45
|
+
mintFee: isSet(object.mintFee)
|
|
46
|
+
? coin_1.Coin.fromJSON(object.mintFee)
|
|
47
|
+
: undefined,
|
|
48
|
+
};
|
|
45
49
|
},
|
|
46
50
|
toJSON(message) {
|
|
47
51
|
const obj = {};
|
|
48
|
-
message.mintFee !== undefined &&
|
|
52
|
+
message.mintFee !== undefined &&
|
|
53
|
+
(obj.mintFee = message.mintFee
|
|
54
|
+
? coin_1.Coin.toJSON(message.mintFee)
|
|
55
|
+
: undefined);
|
|
49
56
|
return obj;
|
|
50
57
|
},
|
|
51
58
|
create(base) {
|
|
@@ -53,9 +60,10 @@ exports.Params = {
|
|
|
53
60
|
},
|
|
54
61
|
fromPartial(object) {
|
|
55
62
|
const message = createBaseParams();
|
|
56
|
-
message.mintFee =
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
message.mintFee =
|
|
64
|
+
object.mintFee !== undefined && object.mintFee !== null
|
|
65
|
+
? coin_1.Coin.fromPartial(object.mintFee)
|
|
66
|
+
: undefined;
|
|
59
67
|
return message;
|
|
60
68
|
},
|
|
61
69
|
};
|