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,12 +1,13 @@
|
|
|
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/feemodel/query.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryMinGasPriceResponse = exports.QueryMinGasPriceRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryRecommendedGasPriceResponse = exports.QueryRecommendedGasPriceRequest = exports.QueryMinGasPriceResponse = exports.QueryMinGasPriceRequest = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
10
11
|
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
12
|
const params_1 = require("./params");
|
|
12
13
|
exports.protobufPackage = "coreum.feemodel.v1";
|
|
@@ -14,21 +15,21 @@ function createBaseQueryMinGasPriceRequest() {
|
|
|
14
15
|
return {};
|
|
15
16
|
}
|
|
16
17
|
exports.QueryMinGasPriceRequest = {
|
|
17
|
-
encode(_, writer =
|
|
18
|
+
encode(_, writer = new binary_1.BinaryWriter()) {
|
|
18
19
|
return writer;
|
|
19
20
|
},
|
|
20
21
|
decode(input, length) {
|
|
21
|
-
const reader = input instanceof
|
|
22
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
22
23
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
24
|
const message = createBaseQueryMinGasPriceRequest();
|
|
24
25
|
while (reader.pos < end) {
|
|
25
26
|
const tag = reader.uint32();
|
|
26
27
|
switch (tag >>> 3) {
|
|
27
28
|
}
|
|
28
|
-
if ((tag & 7)
|
|
29
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29
30
|
break;
|
|
30
31
|
}
|
|
31
|
-
reader.
|
|
32
|
+
reader.skip(tag & 7);
|
|
32
33
|
}
|
|
33
34
|
return message;
|
|
34
35
|
},
|
|
@@ -40,7 +41,7 @@ exports.QueryMinGasPriceRequest = {
|
|
|
40
41
|
return obj;
|
|
41
42
|
},
|
|
42
43
|
create(base) {
|
|
43
|
-
return exports.QueryMinGasPriceRequest.fromPartial(base
|
|
44
|
+
return exports.QueryMinGasPriceRequest.fromPartial(base ?? {});
|
|
44
45
|
},
|
|
45
46
|
fromPartial(_) {
|
|
46
47
|
const message = createBaseQueryMinGasPriceRequest();
|
|
@@ -51,30 +52,31 @@ function createBaseQueryMinGasPriceResponse() {
|
|
|
51
52
|
return { minGasPrice: undefined };
|
|
52
53
|
}
|
|
53
54
|
exports.QueryMinGasPriceResponse = {
|
|
54
|
-
encode(message, writer =
|
|
55
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
55
56
|
if (message.minGasPrice !== undefined) {
|
|
56
57
|
coin_1.DecCoin.encode(message.minGasPrice, writer.uint32(10).fork()).ldelim();
|
|
57
58
|
}
|
|
58
59
|
return writer;
|
|
59
60
|
},
|
|
60
61
|
decode(input, length) {
|
|
61
|
-
const reader = input instanceof
|
|
62
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
62
63
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
63
64
|
const message = createBaseQueryMinGasPriceResponse();
|
|
64
65
|
while (reader.pos < end) {
|
|
65
66
|
const tag = reader.uint32();
|
|
66
67
|
switch (tag >>> 3) {
|
|
67
|
-
case 1:
|
|
68
|
-
if (tag
|
|
68
|
+
case 1: {
|
|
69
|
+
if (tag !== 10) {
|
|
69
70
|
break;
|
|
70
71
|
}
|
|
71
72
|
message.minGasPrice = coin_1.DecCoin.decode(reader, reader.uint32());
|
|
72
73
|
continue;
|
|
74
|
+
}
|
|
73
75
|
}
|
|
74
|
-
if ((tag & 7)
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
75
77
|
break;
|
|
76
78
|
}
|
|
77
|
-
reader.
|
|
79
|
+
reader.skip(tag & 7);
|
|
78
80
|
}
|
|
79
81
|
return message;
|
|
80
82
|
},
|
|
@@ -87,14 +89,13 @@ exports.QueryMinGasPriceResponse = {
|
|
|
87
89
|
},
|
|
88
90
|
toJSON(message) {
|
|
89
91
|
const obj = {};
|
|
90
|
-
message.minGasPrice !== undefined
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
: undefined);
|
|
92
|
+
if (message.minGasPrice !== undefined) {
|
|
93
|
+
obj.minGasPrice = coin_1.DecCoin.toJSON(message.minGasPrice);
|
|
94
|
+
}
|
|
94
95
|
return obj;
|
|
95
96
|
},
|
|
96
97
|
create(base) {
|
|
97
|
-
return exports.QueryMinGasPriceResponse.fromPartial(base
|
|
98
|
+
return exports.QueryMinGasPriceResponse.fromPartial(base ?? {});
|
|
98
99
|
},
|
|
99
100
|
fromPartial(object) {
|
|
100
101
|
const message = createBaseQueryMinGasPriceResponse();
|
|
@@ -105,25 +106,172 @@ exports.QueryMinGasPriceResponse = {
|
|
|
105
106
|
return message;
|
|
106
107
|
},
|
|
107
108
|
};
|
|
109
|
+
function createBaseQueryRecommendedGasPriceRequest() {
|
|
110
|
+
return { afterBlocks: 0 };
|
|
111
|
+
}
|
|
112
|
+
exports.QueryRecommendedGasPriceRequest = {
|
|
113
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
114
|
+
if (message.afterBlocks !== 0) {
|
|
115
|
+
writer.uint32(8).uint32(message.afterBlocks);
|
|
116
|
+
}
|
|
117
|
+
return writer;
|
|
118
|
+
},
|
|
119
|
+
decode(input, length) {
|
|
120
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
121
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
122
|
+
const message = createBaseQueryRecommendedGasPriceRequest();
|
|
123
|
+
while (reader.pos < end) {
|
|
124
|
+
const tag = reader.uint32();
|
|
125
|
+
switch (tag >>> 3) {
|
|
126
|
+
case 1: {
|
|
127
|
+
if (tag !== 8) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
message.afterBlocks = reader.uint32();
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
reader.skip(tag & 7);
|
|
138
|
+
}
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
fromJSON(object) {
|
|
142
|
+
return {
|
|
143
|
+
afterBlocks: isSet(object.afterBlocks)
|
|
144
|
+
? globalThis.Number(object.afterBlocks)
|
|
145
|
+
: 0,
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
toJSON(message) {
|
|
149
|
+
const obj = {};
|
|
150
|
+
if (message.afterBlocks !== 0) {
|
|
151
|
+
obj.afterBlocks = Math.round(message.afterBlocks);
|
|
152
|
+
}
|
|
153
|
+
return obj;
|
|
154
|
+
},
|
|
155
|
+
create(base) {
|
|
156
|
+
return exports.QueryRecommendedGasPriceRequest.fromPartial(base ?? {});
|
|
157
|
+
},
|
|
158
|
+
fromPartial(object) {
|
|
159
|
+
const message = createBaseQueryRecommendedGasPriceRequest();
|
|
160
|
+
message.afterBlocks = object.afterBlocks ?? 0;
|
|
161
|
+
return message;
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
function createBaseQueryRecommendedGasPriceResponse() {
|
|
165
|
+
return { low: undefined, med: undefined, high: undefined };
|
|
166
|
+
}
|
|
167
|
+
exports.QueryRecommendedGasPriceResponse = {
|
|
168
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
169
|
+
if (message.low !== undefined) {
|
|
170
|
+
coin_1.DecCoin.encode(message.low, writer.uint32(10).fork()).ldelim();
|
|
171
|
+
}
|
|
172
|
+
if (message.med !== undefined) {
|
|
173
|
+
coin_1.DecCoin.encode(message.med, writer.uint32(18).fork()).ldelim();
|
|
174
|
+
}
|
|
175
|
+
if (message.high !== undefined) {
|
|
176
|
+
coin_1.DecCoin.encode(message.high, writer.uint32(26).fork()).ldelim();
|
|
177
|
+
}
|
|
178
|
+
return writer;
|
|
179
|
+
},
|
|
180
|
+
decode(input, length) {
|
|
181
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
182
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
183
|
+
const message = createBaseQueryRecommendedGasPriceResponse();
|
|
184
|
+
while (reader.pos < end) {
|
|
185
|
+
const tag = reader.uint32();
|
|
186
|
+
switch (tag >>> 3) {
|
|
187
|
+
case 1: {
|
|
188
|
+
if (tag !== 10) {
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
message.low = coin_1.DecCoin.decode(reader, reader.uint32());
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
case 2: {
|
|
195
|
+
if (tag !== 18) {
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
message.med = coin_1.DecCoin.decode(reader, reader.uint32());
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
case 3: {
|
|
202
|
+
if (tag !== 26) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
message.high = coin_1.DecCoin.decode(reader, reader.uint32());
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
reader.skip(tag & 7);
|
|
213
|
+
}
|
|
214
|
+
return message;
|
|
215
|
+
},
|
|
216
|
+
fromJSON(object) {
|
|
217
|
+
return {
|
|
218
|
+
low: isSet(object.low) ? coin_1.DecCoin.fromJSON(object.low) : undefined,
|
|
219
|
+
med: isSet(object.med) ? coin_1.DecCoin.fromJSON(object.med) : undefined,
|
|
220
|
+
high: isSet(object.high) ? coin_1.DecCoin.fromJSON(object.high) : undefined,
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
toJSON(message) {
|
|
224
|
+
const obj = {};
|
|
225
|
+
if (message.low !== undefined) {
|
|
226
|
+
obj.low = coin_1.DecCoin.toJSON(message.low);
|
|
227
|
+
}
|
|
228
|
+
if (message.med !== undefined) {
|
|
229
|
+
obj.med = coin_1.DecCoin.toJSON(message.med);
|
|
230
|
+
}
|
|
231
|
+
if (message.high !== undefined) {
|
|
232
|
+
obj.high = coin_1.DecCoin.toJSON(message.high);
|
|
233
|
+
}
|
|
234
|
+
return obj;
|
|
235
|
+
},
|
|
236
|
+
create(base) {
|
|
237
|
+
return exports.QueryRecommendedGasPriceResponse.fromPartial(base ?? {});
|
|
238
|
+
},
|
|
239
|
+
fromPartial(object) {
|
|
240
|
+
const message = createBaseQueryRecommendedGasPriceResponse();
|
|
241
|
+
message.low =
|
|
242
|
+
object.low !== undefined && object.low !== null
|
|
243
|
+
? coin_1.DecCoin.fromPartial(object.low)
|
|
244
|
+
: undefined;
|
|
245
|
+
message.med =
|
|
246
|
+
object.med !== undefined && object.med !== null
|
|
247
|
+
? coin_1.DecCoin.fromPartial(object.med)
|
|
248
|
+
: undefined;
|
|
249
|
+
message.high =
|
|
250
|
+
object.high !== undefined && object.high !== null
|
|
251
|
+
? coin_1.DecCoin.fromPartial(object.high)
|
|
252
|
+
: undefined;
|
|
253
|
+
return message;
|
|
254
|
+
},
|
|
255
|
+
};
|
|
108
256
|
function createBaseQueryParamsRequest() {
|
|
109
257
|
return {};
|
|
110
258
|
}
|
|
111
259
|
exports.QueryParamsRequest = {
|
|
112
|
-
encode(_, writer =
|
|
260
|
+
encode(_, writer = new binary_1.BinaryWriter()) {
|
|
113
261
|
return writer;
|
|
114
262
|
},
|
|
115
263
|
decode(input, length) {
|
|
116
|
-
const reader = input instanceof
|
|
264
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
117
265
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
118
266
|
const message = createBaseQueryParamsRequest();
|
|
119
267
|
while (reader.pos < end) {
|
|
120
268
|
const tag = reader.uint32();
|
|
121
269
|
switch (tag >>> 3) {
|
|
122
270
|
}
|
|
123
|
-
if ((tag & 7)
|
|
271
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
124
272
|
break;
|
|
125
273
|
}
|
|
126
|
-
reader.
|
|
274
|
+
reader.skip(tag & 7);
|
|
127
275
|
}
|
|
128
276
|
return message;
|
|
129
277
|
},
|
|
@@ -135,7 +283,7 @@ exports.QueryParamsRequest = {
|
|
|
135
283
|
return obj;
|
|
136
284
|
},
|
|
137
285
|
create(base) {
|
|
138
|
-
return exports.QueryParamsRequest.fromPartial(base
|
|
286
|
+
return exports.QueryParamsRequest.fromPartial(base ?? {});
|
|
139
287
|
},
|
|
140
288
|
fromPartial(_) {
|
|
141
289
|
const message = createBaseQueryParamsRequest();
|
|
@@ -146,30 +294,31 @@ function createBaseQueryParamsResponse() {
|
|
|
146
294
|
return { params: undefined };
|
|
147
295
|
}
|
|
148
296
|
exports.QueryParamsResponse = {
|
|
149
|
-
encode(message, writer =
|
|
297
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
150
298
|
if (message.params !== undefined) {
|
|
151
299
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
152
300
|
}
|
|
153
301
|
return writer;
|
|
154
302
|
},
|
|
155
303
|
decode(input, length) {
|
|
156
|
-
const reader = input instanceof
|
|
304
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
157
305
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
158
306
|
const message = createBaseQueryParamsResponse();
|
|
159
307
|
while (reader.pos < end) {
|
|
160
308
|
const tag = reader.uint32();
|
|
161
309
|
switch (tag >>> 3) {
|
|
162
|
-
case 1:
|
|
163
|
-
if (tag
|
|
310
|
+
case 1: {
|
|
311
|
+
if (tag !== 10) {
|
|
164
312
|
break;
|
|
165
313
|
}
|
|
166
314
|
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
167
315
|
continue;
|
|
316
|
+
}
|
|
168
317
|
}
|
|
169
|
-
if ((tag & 7)
|
|
318
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
170
319
|
break;
|
|
171
320
|
}
|
|
172
|
-
reader.
|
|
321
|
+
reader.skip(tag & 7);
|
|
173
322
|
}
|
|
174
323
|
return message;
|
|
175
324
|
},
|
|
@@ -180,12 +329,13 @@ exports.QueryParamsResponse = {
|
|
|
180
329
|
},
|
|
181
330
|
toJSON(message) {
|
|
182
331
|
const obj = {};
|
|
183
|
-
message.params !== undefined
|
|
184
|
-
|
|
332
|
+
if (message.params !== undefined) {
|
|
333
|
+
obj.params = params_1.Params.toJSON(message.params);
|
|
334
|
+
}
|
|
185
335
|
return obj;
|
|
186
336
|
},
|
|
187
337
|
create(base) {
|
|
188
|
-
return exports.QueryParamsResponse.fromPartial(base
|
|
338
|
+
return exports.QueryParamsResponse.fromPartial(base ?? {});
|
|
189
339
|
},
|
|
190
340
|
fromPartial(object) {
|
|
191
341
|
const message = createBaseQueryParamsResponse();
|
|
@@ -196,29 +346,32 @@ exports.QueryParamsResponse = {
|
|
|
196
346
|
return message;
|
|
197
347
|
},
|
|
198
348
|
};
|
|
349
|
+
exports.QueryServiceName = "coreum.feemodel.v1.Query";
|
|
199
350
|
class QueryClientImpl {
|
|
200
351
|
constructor(rpc, opts) {
|
|
201
|
-
this.service =
|
|
352
|
+
this.service = opts?.service || exports.QueryServiceName;
|
|
202
353
|
this.rpc = rpc;
|
|
203
354
|
this.MinGasPrice = this.MinGasPrice.bind(this);
|
|
355
|
+
this.RecommendedGasPrice = this.RecommendedGasPrice.bind(this);
|
|
204
356
|
this.Params = this.Params.bind(this);
|
|
205
357
|
}
|
|
206
358
|
MinGasPrice(request) {
|
|
207
359
|
const data = exports.QueryMinGasPriceRequest.encode(request).finish();
|
|
208
360
|
const promise = this.rpc.request(this.service, "MinGasPrice", data);
|
|
209
|
-
return promise.then((data) => exports.QueryMinGasPriceResponse.decode(
|
|
361
|
+
return promise.then((data) => exports.QueryMinGasPriceResponse.decode(new binary_1.BinaryReader(data)));
|
|
362
|
+
}
|
|
363
|
+
RecommendedGasPrice(request) {
|
|
364
|
+
const data = exports.QueryRecommendedGasPriceRequest.encode(request).finish();
|
|
365
|
+
const promise = this.rpc.request(this.service, "RecommendedGasPrice", data);
|
|
366
|
+
return promise.then((data) => exports.QueryRecommendedGasPriceResponse.decode(new binary_1.BinaryReader(data)));
|
|
210
367
|
}
|
|
211
368
|
Params(request) {
|
|
212
369
|
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
213
370
|
const promise = this.rpc.request(this.service, "Params", data);
|
|
214
|
-
return promise.then((data) => exports.QueryParamsResponse.decode(
|
|
371
|
+
return promise.then((data) => exports.QueryParamsResponse.decode(new binary_1.BinaryReader(data)));
|
|
215
372
|
}
|
|
216
373
|
}
|
|
217
374
|
exports.QueryClientImpl = QueryClientImpl;
|
|
218
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
219
|
-
minimal_1.default.util.Long = long_1.default;
|
|
220
|
-
minimal_1.default.configure();
|
|
221
|
-
}
|
|
222
375
|
function isSet(value) {
|
|
223
376
|
return value !== null && value !== undefined;
|
|
224
377
|
}
|
|
@@ -2,6 +2,7 @@ import { GeneratedType } from "@cosmjs/proto-signing";
|
|
|
2
2
|
import { MsgSend as NFTMsgSend } from "./nft/v1beta1/tx";
|
|
3
3
|
import { MsgIssueClass as NFTMsgIssueClass, MsgMint as NFTMsgMint, MsgAddToWhitelist as NFTMsgAddToWhitelist, MsgBurn as NFTMsgBurn, MsgRemoveFromWhitelist as NFTMsgRemoveFromWhitelist, MsgFreeze as NFTMsgFreeze, MsgUnfreeze as NFTMsgUnfreeze } from "./asset/nft/v1/tx";
|
|
4
4
|
import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit, MsgClawback as FTMsgClawback, MsgUpdateDEXUnifiedRefAmount, MsgUpdateDEXWhitelistedDenoms } from "./asset/ft/v1/tx";
|
|
5
|
+
import { MsgUpdateParams as DEXMsgUpdateParams, MsgPlaceOrder as DEXMsgPlaceOrder, MsgCancelOrder as DEXMsgCancelOrder, MsgCancelOrdersByDenom as DEXMsgCancelOrdersByDenom } from "./dex/v1/tx";
|
|
5
6
|
import { FTMsgs, NFTMsgs } from "../types/msgs";
|
|
6
7
|
export { Feature } from "./asset/ft/v1/token";
|
|
7
8
|
export { ClassFeature } from "./asset/nft/v1/nft";
|
|
@@ -214,3 +215,48 @@ export declare namespace NFT {
|
|
|
214
215
|
value: NFTMsgSend;
|
|
215
216
|
};
|
|
216
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* Transaction Module for the DEX module
|
|
220
|
+
*/
|
|
221
|
+
export declare namespace DEX {
|
|
222
|
+
/** MsgPlaceOrder message creator
|
|
223
|
+
* Places a new order on the native DEX
|
|
224
|
+
*
|
|
225
|
+
* @param object Represents the properties available for this MsgPlaceOrder message.
|
|
226
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
227
|
+
*/
|
|
228
|
+
const PlaceOrder: (object: DEXMsgPlaceOrder) => {
|
|
229
|
+
typeUrl: string;
|
|
230
|
+
value: DEXMsgPlaceOrder;
|
|
231
|
+
};
|
|
232
|
+
/** MsgCancelOrder message creator
|
|
233
|
+
* Cancels an order by ID
|
|
234
|
+
*
|
|
235
|
+
* @param object Represents the properties available for this MsgCancelOrder message.
|
|
236
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
237
|
+
*/
|
|
238
|
+
const CancelOrder: (object: DEXMsgCancelOrder) => {
|
|
239
|
+
typeUrl: string;
|
|
240
|
+
value: DEXMsgCancelOrder;
|
|
241
|
+
};
|
|
242
|
+
/** MsgUpdateParams message creator
|
|
243
|
+
* Updates module parameters
|
|
244
|
+
*
|
|
245
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
246
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
247
|
+
*/
|
|
248
|
+
const UpdateParams: (object: DEXMsgUpdateParams) => {
|
|
249
|
+
typeUrl: string;
|
|
250
|
+
value: DEXMsgUpdateParams;
|
|
251
|
+
};
|
|
252
|
+
/** MsgCancelOrdersByDenom message creator
|
|
253
|
+
* Cancels all existing orders by denom
|
|
254
|
+
*
|
|
255
|
+
* @param object Represents the properties available for this MsgCancelOrdersByDenom message.
|
|
256
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
257
|
+
*/
|
|
258
|
+
const CancelOrdersByDenom: (object: DEXMsgCancelOrdersByDenom) => {
|
|
259
|
+
typeUrl: string;
|
|
260
|
+
value: DEXMsgCancelOrdersByDenom;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NFT = exports.FT = exports.coreumRegistry = exports.ClassFeature = exports.Feature = void 0;
|
|
3
|
+
exports.DEX = exports.NFT = exports.FT = exports.coreumRegistry = exports.ClassFeature = exports.Feature = void 0;
|
|
4
4
|
const asset_1 = require("./asset");
|
|
5
5
|
const nft_1 = require("./nft");
|
|
6
|
+
const dex_1 = require("./dex");
|
|
6
7
|
const tx_1 = require("./nft/v1beta1/tx");
|
|
7
8
|
const tx_2 = require("./asset/nft/v1/tx");
|
|
8
9
|
const tx_3 = require("./asset/ft/v1/tx");
|
|
10
|
+
const tx_4 = require("./dex/v1/tx");
|
|
9
11
|
var token_1 = require("./asset/ft/v1/token");
|
|
10
12
|
Object.defineProperty(exports, "Feature", { enumerable: true, get: function () { return token_1.Feature; } });
|
|
11
13
|
var nft_2 = require("./asset/nft/v1/nft");
|
|
@@ -17,6 +19,7 @@ exports.coreumRegistry = [
|
|
|
17
19
|
...asset_1.assetFtRegistry,
|
|
18
20
|
...asset_1.assetNftRegistry,
|
|
19
21
|
...nft_1.nftBetaRegistry,
|
|
22
|
+
...dex_1.dexRegistry,
|
|
20
23
|
];
|
|
21
24
|
/**
|
|
22
25
|
* Transaction Module for the Fungible Tokens module. (assetft)
|
|
@@ -258,3 +261,57 @@ var NFT;
|
|
|
258
261
|
};
|
|
259
262
|
};
|
|
260
263
|
})(NFT || (exports.NFT = NFT = {}));
|
|
264
|
+
/**
|
|
265
|
+
* Transaction Module for the DEX module
|
|
266
|
+
*/
|
|
267
|
+
var DEX;
|
|
268
|
+
(function (DEX) {
|
|
269
|
+
/** MsgPlaceOrder message creator
|
|
270
|
+
* Places a new order on the native DEX
|
|
271
|
+
*
|
|
272
|
+
* @param object Represents the properties available for this MsgPlaceOrder message.
|
|
273
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
274
|
+
*/
|
|
275
|
+
DEX.PlaceOrder = function (object) {
|
|
276
|
+
return {
|
|
277
|
+
typeUrl: "/coreum.dex.v1.MsgPlaceOrder",
|
|
278
|
+
value: tx_4.MsgPlaceOrder.fromPartial(object),
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
/** MsgCancelOrder message creator
|
|
282
|
+
* Cancels an order by ID
|
|
283
|
+
*
|
|
284
|
+
* @param object Represents the properties available for this MsgCancelOrder message.
|
|
285
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
286
|
+
*/
|
|
287
|
+
DEX.CancelOrder = function (object) {
|
|
288
|
+
return {
|
|
289
|
+
typeUrl: "/coreum.dex.v1.MsgCancelOrder",
|
|
290
|
+
value: tx_4.MsgCancelOrder.fromPartial(object),
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/** MsgUpdateParams message creator
|
|
294
|
+
* Updates module parameters
|
|
295
|
+
*
|
|
296
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
297
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
298
|
+
*/
|
|
299
|
+
DEX.UpdateParams = function (object) {
|
|
300
|
+
return {
|
|
301
|
+
typeUrl: "/coreum.dex.v1.MsgUpdateParams",
|
|
302
|
+
value: tx_4.MsgUpdateParams.fromPartial(object),
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
/** MsgCancelOrdersByDenom message creator
|
|
306
|
+
* Cancels all existing orders by denom
|
|
307
|
+
*
|
|
308
|
+
* @param object Represents the properties available for this MsgCancelOrdersByDenom message.
|
|
309
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
310
|
+
*/
|
|
311
|
+
DEX.CancelOrdersByDenom = function (object) {
|
|
312
|
+
return {
|
|
313
|
+
typeUrl: "/coreum.dex.v1.MsgCancelOrdersByDenom",
|
|
314
|
+
value: tx_4.MsgCancelOrdersByDenom.fromPartial(object),
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
})(DEX || (exports.DEX = DEX = {}));
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const nftBetaRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
1
|
+
export declare const nftBetaRegistry: ReadonlyArray<[string, any]>;
|
|
@@ -1,103 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
export declare const protobufPackage = "cosmos.nft.v1beta1";
|
|
4
3
|
/** EventSend is emitted on Msg/Send */
|
|
5
4
|
export interface EventSend {
|
|
5
|
+
/** class_id associated with the nft */
|
|
6
6
|
classId: string;
|
|
7
|
+
/** id is a unique identifier of the nft */
|
|
7
8
|
id: string;
|
|
9
|
+
/** sender is the address of the owner of nft */
|
|
8
10
|
sender: string;
|
|
11
|
+
/** receiver is the receiver address of nft */
|
|
9
12
|
receiver: string;
|
|
10
13
|
}
|
|
11
14
|
/** EventMint is emitted on Mint */
|
|
12
15
|
export interface EventMint {
|
|
16
|
+
/** class_id associated with the nft */
|
|
13
17
|
classId: string;
|
|
18
|
+
/** id is a unique identifier of the nft */
|
|
14
19
|
id: string;
|
|
20
|
+
/** owner is the owner address of the nft */
|
|
15
21
|
owner: string;
|
|
16
22
|
}
|
|
17
23
|
/** EventBurn is emitted on Burn */
|
|
18
24
|
export interface EventBurn {
|
|
25
|
+
/** class_id associated with the nft */
|
|
19
26
|
classId: string;
|
|
27
|
+
/** id is a unique identifier of the nft */
|
|
20
28
|
id: string;
|
|
29
|
+
/** owner is the owner address of the nft */
|
|
21
30
|
owner: string;
|
|
22
31
|
}
|
|
23
|
-
export declare const EventSend:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
fromJSON(object: any): EventSend;
|
|
27
|
-
toJSON(message: EventSend): unknown;
|
|
28
|
-
create<I extends {
|
|
29
|
-
classId?: string;
|
|
30
|
-
id?: string;
|
|
31
|
-
sender?: string;
|
|
32
|
-
receiver?: string;
|
|
33
|
-
} & {
|
|
34
|
-
classId?: string;
|
|
35
|
-
id?: string;
|
|
36
|
-
sender?: string;
|
|
37
|
-
receiver?: string;
|
|
38
|
-
} & { [K in Exclude<keyof I, keyof EventSend>]: never; }>(base?: I): EventSend;
|
|
39
|
-
fromPartial<I_1 extends {
|
|
40
|
-
classId?: string;
|
|
41
|
-
id?: string;
|
|
42
|
-
sender?: string;
|
|
43
|
-
receiver?: string;
|
|
44
|
-
} & {
|
|
45
|
-
classId?: string;
|
|
46
|
-
id?: string;
|
|
47
|
-
sender?: string;
|
|
48
|
-
receiver?: string;
|
|
49
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventSend>]: never; }>(object: I_1): EventSend;
|
|
50
|
-
};
|
|
51
|
-
export declare const EventMint: {
|
|
52
|
-
encode(message: EventMint, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventMint;
|
|
54
|
-
fromJSON(object: any): EventMint;
|
|
55
|
-
toJSON(message: EventMint): unknown;
|
|
56
|
-
create<I extends {
|
|
57
|
-
classId?: string;
|
|
58
|
-
id?: string;
|
|
59
|
-
owner?: string;
|
|
60
|
-
} & {
|
|
61
|
-
classId?: string;
|
|
62
|
-
id?: string;
|
|
63
|
-
owner?: string;
|
|
64
|
-
} & { [K in Exclude<keyof I, keyof EventMint>]: never; }>(base?: I): EventMint;
|
|
65
|
-
fromPartial<I_1 extends {
|
|
66
|
-
classId?: string;
|
|
67
|
-
id?: string;
|
|
68
|
-
owner?: string;
|
|
69
|
-
} & {
|
|
70
|
-
classId?: string;
|
|
71
|
-
id?: string;
|
|
72
|
-
owner?: string;
|
|
73
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventMint>]: never; }>(object: I_1): EventMint;
|
|
74
|
-
};
|
|
75
|
-
export declare const EventBurn: {
|
|
76
|
-
encode(message: EventBurn, writer?: _m0.Writer): _m0.Writer;
|
|
77
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventBurn;
|
|
78
|
-
fromJSON(object: any): EventBurn;
|
|
79
|
-
toJSON(message: EventBurn): unknown;
|
|
80
|
-
create<I extends {
|
|
81
|
-
classId?: string;
|
|
82
|
-
id?: string;
|
|
83
|
-
owner?: string;
|
|
84
|
-
} & {
|
|
85
|
-
classId?: string;
|
|
86
|
-
id?: string;
|
|
87
|
-
owner?: string;
|
|
88
|
-
} & { [K in Exclude<keyof I, keyof EventBurn>]: never; }>(base?: I): EventBurn;
|
|
89
|
-
fromPartial<I_1 extends {
|
|
90
|
-
classId?: string;
|
|
91
|
-
id?: string;
|
|
92
|
-
owner?: string;
|
|
93
|
-
} & {
|
|
94
|
-
classId?: string;
|
|
95
|
-
id?: string;
|
|
96
|
-
owner?: string;
|
|
97
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventBurn>]: never; }>(object: I_1): EventBurn;
|
|
98
|
-
};
|
|
32
|
+
export declare const EventSend: MessageFns<EventSend>;
|
|
33
|
+
export declare const EventMint: MessageFns<EventMint>;
|
|
34
|
+
export declare const EventBurn: MessageFns<EventBurn>;
|
|
99
35
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
100
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
36
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
101
37
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
102
38
|
} : Partial<T>;
|
|
103
39
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -106,4 +42,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
106
42
|
} & {
|
|
107
43
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
108
44
|
};
|
|
45
|
+
export interface MessageFns<T> {
|
|
46
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
47
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
48
|
+
fromJSON(object: any): T;
|
|
49
|
+
toJSON(message: T): unknown;
|
|
50
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
51
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
52
|
+
}
|
|
109
53
|
export {};
|