coreum-js 2.16.2 → 2.17.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.js +16 -17
- package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
- package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -120
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/main/coreum/asset/ft/v1/token.js +273 -197
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
- package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
- package/dist/main/coreum/asset/index.d.ts +2 -3
- package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
- package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -147
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +1 -0
- package/dist/main/coreum/dex/index.js +12 -0
- package/dist/main/coreum/dex/v1/event.d.ts +73 -0
- package/dist/main/coreum/dex/v1/event.js +470 -0
- package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/main/coreum/dex/v1/genesis.js +318 -0
- package/dist/main/coreum/dex/v1/order.d.ts +172 -0
- package/dist/main/coreum/dex/v1/order.js +1137 -0
- package/dist/main/coreum/dex/v1/params.d.ts +34 -0
- package/dist/main/coreum/dex/v1/params.js +139 -0
- package/dist/main/coreum/dex/v1/query.d.ts +133 -0
- package/dist/main/coreum/dex/v1/query.js +873 -0
- package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/main/coreum/dex/v1/tx.js +521 -0
- package/dist/main/coreum/extensions/dex.d.ts +12 -0
- package/dist/main/coreum/extensions/dex.js +32 -0
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -233
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
- package/dist/main/coreum/feemodel/v1/query.js +196 -43
- package/dist/main/coreum/index.d.ts +46 -0
- package/dist/main/coreum/index.js +58 -1
- package/dist/main/coreum/nft/index.d.ts +1 -2
- package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -79
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +9 -9
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +14 -8
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.js +3 -4
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.js +183 -223
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.js +57 -68
- package/dist/main/tendermint/types/validator.js +10 -13
- package/dist/main/tendermint/version/types.js +6 -8
- package/dist/main/types/core.d.ts +2 -1
- package/dist/main/types/core.js +2 -0
- package/dist/main/wasm/v1/authz.d.ts +20 -471
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/genesis.d.ts +14 -1020
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -62
- package/dist/main/wasm/v1/ibc.js +91 -76
- package/dist/main/wasm/v1/index.d.ts +1 -2
- package/dist/main/wasm/v1/pagination.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -720
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -1201
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -788
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -297
- package/dist/main/wasm/v1/types.js +219 -190
- package/dist/module/client/index.js +4 -3
- package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
- package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -120
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
- package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
- package/dist/module/coreum/asset/index.d.ts +2 -3
- package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
- package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -147
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +1 -0
- package/dist/module/coreum/dex/index.js +9 -0
- package/dist/module/coreum/dex/v1/event.d.ts +73 -0
- package/dist/module/coreum/dex/v1/event.js +467 -0
- package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/module/coreum/dex/v1/genesis.js +315 -0
- package/dist/module/coreum/dex/v1/order.d.ts +172 -0
- package/dist/module/coreum/dex/v1/order.js +1128 -0
- package/dist/module/coreum/dex/v1/params.d.ts +34 -0
- package/dist/module/coreum/dex/v1/params.js +136 -0
- package/dist/module/coreum/dex/v1/query.d.ts +133 -0
- package/dist/module/coreum/dex/v1/query.js +871 -0
- package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/module/coreum/dex/v1/tx.js +519 -0
- package/dist/module/coreum/extensions/dex.d.ts +12 -0
- package/dist/module/coreum/extensions/dex.js +28 -0
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -233
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
- package/dist/module/coreum/feemodel/v1/query.js +191 -35
- package/dist/module/coreum/index.d.ts +46 -0
- package/dist/module/coreum/index.js +57 -0
- package/dist/module/coreum/nft/index.d.ts +1 -2
- package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -79
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
- package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
- package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/module/cosmos/extensions/gov.d.ts +13 -13
- package/dist/module/cosmos/index.d.ts +8 -8
- package/dist/module/services/cosmostation.js +1 -1
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/wasm/v1/authz.d.ts +20 -471
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -1020
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -62
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/proposal.d.ts +23 -720
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -1201
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -788
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -297
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: coreum-protos/ft/params.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
8
|
exports.Params = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
9
11
|
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
10
|
-
const duration_1 = require("
|
|
11
|
-
const timestamp_1 = require("
|
|
12
|
+
const duration_1 = require("cosmjs-types/google/protobuf/duration");
|
|
13
|
+
const timestamp_1 = require("cosmjs-types/google/protobuf/timestamp");
|
|
12
14
|
exports.protobufPackage = "coreum.asset.ft.v1";
|
|
13
15
|
function createBaseParams() {
|
|
14
16
|
return {
|
|
@@ -18,7 +20,7 @@ function createBaseParams() {
|
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
exports.Params = {
|
|
21
|
-
encode(message, writer =
|
|
23
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
22
24
|
if (message.issueFee !== undefined) {
|
|
23
25
|
coin_1.Coin.encode(message.issueFee, writer.uint32(10).fork()).ldelim();
|
|
24
26
|
}
|
|
@@ -31,35 +33,38 @@ exports.Params = {
|
|
|
31
33
|
return writer;
|
|
32
34
|
},
|
|
33
35
|
decode(input, length) {
|
|
34
|
-
const reader = input instanceof
|
|
36
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
35
37
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
38
|
const message = createBaseParams();
|
|
37
39
|
while (reader.pos < end) {
|
|
38
40
|
const tag = reader.uint32();
|
|
39
41
|
switch (tag >>> 3) {
|
|
40
|
-
case 1:
|
|
42
|
+
case 1: {
|
|
41
43
|
if (tag !== 10) {
|
|
42
44
|
break;
|
|
43
45
|
}
|
|
44
46
|
message.issueFee = coin_1.Coin.decode(reader, reader.uint32());
|
|
45
47
|
continue;
|
|
46
|
-
|
|
48
|
+
}
|
|
49
|
+
case 2: {
|
|
47
50
|
if (tag !== 18) {
|
|
48
51
|
break;
|
|
49
52
|
}
|
|
50
53
|
message.tokenUpgradeDecisionTimeout = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
51
54
|
continue;
|
|
52
|
-
|
|
55
|
+
}
|
|
56
|
+
case 3: {
|
|
53
57
|
if (tag !== 26) {
|
|
54
58
|
break;
|
|
55
59
|
}
|
|
56
60
|
message.tokenUpgradeGracePeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
57
61
|
continue;
|
|
62
|
+
}
|
|
58
63
|
}
|
|
59
64
|
if ((tag & 7) === 4 || tag === 0) {
|
|
60
65
|
break;
|
|
61
66
|
}
|
|
62
|
-
reader.
|
|
67
|
+
reader.skip(tag & 7);
|
|
63
68
|
}
|
|
64
69
|
return message;
|
|
65
70
|
},
|
|
@@ -78,31 +83,29 @@ exports.Params = {
|
|
|
78
83
|
},
|
|
79
84
|
toJSON(message) {
|
|
80
85
|
const obj = {};
|
|
81
|
-
message.issueFee !== undefined
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
message.tokenUpgradeGracePeriod !== undefined
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
: undefined);
|
|
86
|
+
if (message.issueFee !== undefined) {
|
|
87
|
+
obj.issueFee = coin_1.Coin.toJSON(message.issueFee);
|
|
88
|
+
}
|
|
89
|
+
if (message.tokenUpgradeDecisionTimeout !== undefined) {
|
|
90
|
+
obj.tokenUpgradeDecisionTimeout =
|
|
91
|
+
message.tokenUpgradeDecisionTimeout.toISOString();
|
|
92
|
+
}
|
|
93
|
+
if (message.tokenUpgradeGracePeriod !== undefined) {
|
|
94
|
+
obj.tokenUpgradeGracePeriod = duration_1.Duration.toJSON(message.tokenUpgradeGracePeriod);
|
|
95
|
+
}
|
|
92
96
|
return obj;
|
|
93
97
|
},
|
|
94
98
|
create(base) {
|
|
95
|
-
return exports.Params.fromPartial(base
|
|
99
|
+
return exports.Params.fromPartial(base ?? {});
|
|
96
100
|
},
|
|
97
101
|
fromPartial(object) {
|
|
98
|
-
var _a;
|
|
99
102
|
const message = createBaseParams();
|
|
100
103
|
message.issueFee =
|
|
101
104
|
object.issueFee !== undefined && object.issueFee !== null
|
|
102
105
|
? coin_1.Coin.fromPartial(object.issueFee)
|
|
103
106
|
: undefined;
|
|
104
107
|
message.tokenUpgradeDecisionTimeout =
|
|
105
|
-
|
|
108
|
+
object.tokenUpgradeDecisionTimeout ?? undefined;
|
|
106
109
|
message.tokenUpgradeGracePeriod =
|
|
107
110
|
object.tokenUpgradeGracePeriod !== undefined &&
|
|
108
111
|
object.tokenUpgradeGracePeriod !== null
|
|
@@ -112,21 +115,22 @@ exports.Params = {
|
|
|
112
115
|
},
|
|
113
116
|
};
|
|
114
117
|
function toTimestamp(date) {
|
|
115
|
-
const seconds = date.getTime() / 1000;
|
|
118
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
116
119
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
117
|
-
return { seconds, nanos };
|
|
120
|
+
return { seconds: BigInt(seconds), nanos };
|
|
118
121
|
}
|
|
119
122
|
function fromTimestamp(t) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
const seconds = BigInt(t.seconds || 0);
|
|
124
|
+
const nanos = BigInt(t.nanos || 0);
|
|
125
|
+
const millis = seconds * BigInt(1000) + nanos / BigInt(1000000);
|
|
126
|
+
return new Date(Number(millis)); // Convert bigint to number
|
|
123
127
|
}
|
|
124
128
|
function fromJsonTimestamp(o) {
|
|
125
|
-
if (o instanceof Date) {
|
|
129
|
+
if (o instanceof globalThis.Date) {
|
|
126
130
|
return o;
|
|
127
131
|
}
|
|
128
132
|
else if (typeof o === "string") {
|
|
129
|
-
return new Date(o);
|
|
133
|
+
return new globalThis.Date(o);
|
|
130
134
|
}
|
|
131
135
|
else {
|
|
132
136
|
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|