coreum-js 2.16.3 → 2.17.1
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 +15 -16
- 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 -28
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/main/coreum/asset/ft/v1/token.js +276 -200
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -147
- 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 -43
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/main/coreum/asset/nft/v1/nft.js +139 -104
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +2 -0
- package/dist/main/coreum/dex/index.js +11 -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/extensions/ft.js +2 -1
- package/dist/main/coreum/extensions/nft.js +2 -1
- package/dist/main/coreum/extensions/nftbeta.js +2 -1
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -37
- 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 -27
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/bank.js +2 -1
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +11 -10
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +16 -9
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.d.ts +2636 -6
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.d.ts +14 -2
- package/dist/main/google/protobuf/any.js +6 -7
- package/dist/main/google/protobuf/duration.d.ts +14 -2
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.d.ts +14 -2
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/index.js +7 -17
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.d.ts +6360 -92
- package/dist/main/tendermint/abci/types.js +195 -235
- package/dist/main/tendermint/crypto/keys.d.ts +14 -2
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.d.ts +152 -10
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.d.ts +196 -12
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.d.ts +1744 -26
- package/dist/main/tendermint/types/types.js +62 -73
- package/dist/main/tendermint/types/validator.d.ts +230 -6
- package/dist/main/tendermint/types/validator.js +10 -13
- package/dist/main/tendermint/version/types.d.ts +28 -4
- 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/utils/convertStringToAny.d.ts +0 -1
- package/dist/main/utils/nft.js +2 -1
- package/dist/main/wasm/v1/authz.d.ts +20 -75
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/extensions/wasm.js +2 -1
- package/dist/main/wasm/v1/genesis.d.ts +14 -34
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -26
- 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.d.ts +40 -4
- package/dist/main/wasm/v1/pagination.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -106
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -187
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -210
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -67
- package/dist/main/wasm/v1/types.js +224 -195
- package/dist/module/client/index.js +2 -1
- 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 -28
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -147
- 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 -43
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +2 -0
- package/dist/module/coreum/dex/index.js +8 -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 -13
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -37
- 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 -27
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -19
- 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/google/api/http.d.ts +2636 -6
- package/dist/module/google/protobuf/any.d.ts +14 -2
- package/dist/module/google/protobuf/duration.d.ts +14 -2
- package/dist/module/google/protobuf/timestamp.d.ts +14 -2
- package/dist/module/services/cosmostation.js +1 -1
- package/dist/module/tendermint/abci/types.d.ts +6360 -92
- package/dist/module/tendermint/crypto/keys.d.ts +14 -2
- package/dist/module/tendermint/crypto/proof.d.ts +152 -10
- package/dist/module/tendermint/types/params.d.ts +196 -12
- package/dist/module/tendermint/types/types.d.ts +1744 -26
- package/dist/module/tendermint/types/validator.d.ts +230 -6
- package/dist/module/tendermint/version/types.d.ts +28 -4
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/utils/convertStringToAny.d.ts +0 -1
- package/dist/module/wasm/v1/authz.d.ts +20 -75
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -34
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -26
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/pagination.d.ts +40 -4
- package/dist/module/wasm/v1/proposal.d.ts +23 -106
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -187
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -210
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -67
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.0
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: coreum-protos/feemodel/query.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
5
9
|
import { Params } from "./params";
|
|
6
10
|
export const protobufPackage = "coreum.feemodel.v1";
|
|
@@ -8,21 +12,21 @@ function createBaseQueryMinGasPriceRequest() {
|
|
|
8
12
|
return {};
|
|
9
13
|
}
|
|
10
14
|
export const QueryMinGasPriceRequest = {
|
|
11
|
-
encode(_, writer =
|
|
15
|
+
encode(_, writer = new BinaryWriter()) {
|
|
12
16
|
return writer;
|
|
13
17
|
},
|
|
14
18
|
decode(input, length) {
|
|
15
|
-
const reader = input instanceof
|
|
19
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16
20
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17
21
|
const message = createBaseQueryMinGasPriceRequest();
|
|
18
22
|
while (reader.pos < end) {
|
|
19
23
|
const tag = reader.uint32();
|
|
20
24
|
switch (tag >>> 3) {
|
|
21
25
|
}
|
|
22
|
-
if ((tag & 7)
|
|
26
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23
27
|
break;
|
|
24
28
|
}
|
|
25
|
-
reader.
|
|
29
|
+
reader.skip(tag & 7);
|
|
26
30
|
}
|
|
27
31
|
return message;
|
|
28
32
|
},
|
|
@@ -45,30 +49,31 @@ function createBaseQueryMinGasPriceResponse() {
|
|
|
45
49
|
return { minGasPrice: undefined };
|
|
46
50
|
}
|
|
47
51
|
export const QueryMinGasPriceResponse = {
|
|
48
|
-
encode(message, writer =
|
|
52
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49
53
|
if (message.minGasPrice !== undefined) {
|
|
50
54
|
DecCoin.encode(message.minGasPrice, writer.uint32(10).fork()).ldelim();
|
|
51
55
|
}
|
|
52
56
|
return writer;
|
|
53
57
|
},
|
|
54
58
|
decode(input, length) {
|
|
55
|
-
const reader = input instanceof
|
|
59
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
56
60
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
57
61
|
const message = createBaseQueryMinGasPriceResponse();
|
|
58
62
|
while (reader.pos < end) {
|
|
59
63
|
const tag = reader.uint32();
|
|
60
64
|
switch (tag >>> 3) {
|
|
61
|
-
case 1:
|
|
62
|
-
if (tag
|
|
65
|
+
case 1: {
|
|
66
|
+
if (tag !== 10) {
|
|
63
67
|
break;
|
|
64
68
|
}
|
|
65
69
|
message.minGasPrice = DecCoin.decode(reader, reader.uint32());
|
|
66
70
|
continue;
|
|
71
|
+
}
|
|
67
72
|
}
|
|
68
|
-
if ((tag & 7)
|
|
73
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
69
74
|
break;
|
|
70
75
|
}
|
|
71
|
-
reader.
|
|
76
|
+
reader.skip(tag & 7);
|
|
72
77
|
}
|
|
73
78
|
return message;
|
|
74
79
|
},
|
|
@@ -81,10 +86,9 @@ export const QueryMinGasPriceResponse = {
|
|
|
81
86
|
},
|
|
82
87
|
toJSON(message) {
|
|
83
88
|
const obj = {};
|
|
84
|
-
message.minGasPrice !== undefined
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
: undefined);
|
|
89
|
+
if (message.minGasPrice !== undefined) {
|
|
90
|
+
obj.minGasPrice = DecCoin.toJSON(message.minGasPrice);
|
|
91
|
+
}
|
|
88
92
|
return obj;
|
|
89
93
|
},
|
|
90
94
|
create(base) {
|
|
@@ -99,25 +103,172 @@ export const QueryMinGasPriceResponse = {
|
|
|
99
103
|
return message;
|
|
100
104
|
},
|
|
101
105
|
};
|
|
106
|
+
function createBaseQueryRecommendedGasPriceRequest() {
|
|
107
|
+
return { afterBlocks: 0 };
|
|
108
|
+
}
|
|
109
|
+
export const QueryRecommendedGasPriceRequest = {
|
|
110
|
+
encode(message, writer = new BinaryWriter()) {
|
|
111
|
+
if (message.afterBlocks !== 0) {
|
|
112
|
+
writer.uint32(8).uint32(message.afterBlocks);
|
|
113
|
+
}
|
|
114
|
+
return writer;
|
|
115
|
+
},
|
|
116
|
+
decode(input, length) {
|
|
117
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
118
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
119
|
+
const message = createBaseQueryRecommendedGasPriceRequest();
|
|
120
|
+
while (reader.pos < end) {
|
|
121
|
+
const tag = reader.uint32();
|
|
122
|
+
switch (tag >>> 3) {
|
|
123
|
+
case 1: {
|
|
124
|
+
if (tag !== 8) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
message.afterBlocks = reader.uint32();
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
reader.skip(tag & 7);
|
|
135
|
+
}
|
|
136
|
+
return message;
|
|
137
|
+
},
|
|
138
|
+
fromJSON(object) {
|
|
139
|
+
return {
|
|
140
|
+
afterBlocks: isSet(object.afterBlocks)
|
|
141
|
+
? globalThis.Number(object.afterBlocks)
|
|
142
|
+
: 0,
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
toJSON(message) {
|
|
146
|
+
const obj = {};
|
|
147
|
+
if (message.afterBlocks !== 0) {
|
|
148
|
+
obj.afterBlocks = Math.round(message.afterBlocks);
|
|
149
|
+
}
|
|
150
|
+
return obj;
|
|
151
|
+
},
|
|
152
|
+
create(base) {
|
|
153
|
+
return QueryRecommendedGasPriceRequest.fromPartial(base ?? {});
|
|
154
|
+
},
|
|
155
|
+
fromPartial(object) {
|
|
156
|
+
const message = createBaseQueryRecommendedGasPriceRequest();
|
|
157
|
+
message.afterBlocks = object.afterBlocks ?? 0;
|
|
158
|
+
return message;
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
function createBaseQueryRecommendedGasPriceResponse() {
|
|
162
|
+
return { low: undefined, med: undefined, high: undefined };
|
|
163
|
+
}
|
|
164
|
+
export const QueryRecommendedGasPriceResponse = {
|
|
165
|
+
encode(message, writer = new BinaryWriter()) {
|
|
166
|
+
if (message.low !== undefined) {
|
|
167
|
+
DecCoin.encode(message.low, writer.uint32(10).fork()).ldelim();
|
|
168
|
+
}
|
|
169
|
+
if (message.med !== undefined) {
|
|
170
|
+
DecCoin.encode(message.med, writer.uint32(18).fork()).ldelim();
|
|
171
|
+
}
|
|
172
|
+
if (message.high !== undefined) {
|
|
173
|
+
DecCoin.encode(message.high, writer.uint32(26).fork()).ldelim();
|
|
174
|
+
}
|
|
175
|
+
return writer;
|
|
176
|
+
},
|
|
177
|
+
decode(input, length) {
|
|
178
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
179
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
180
|
+
const message = createBaseQueryRecommendedGasPriceResponse();
|
|
181
|
+
while (reader.pos < end) {
|
|
182
|
+
const tag = reader.uint32();
|
|
183
|
+
switch (tag >>> 3) {
|
|
184
|
+
case 1: {
|
|
185
|
+
if (tag !== 10) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
message.low = DecCoin.decode(reader, reader.uint32());
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
case 2: {
|
|
192
|
+
if (tag !== 18) {
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
message.med = DecCoin.decode(reader, reader.uint32());
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
case 3: {
|
|
199
|
+
if (tag !== 26) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
message.high = DecCoin.decode(reader, reader.uint32());
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
reader.skip(tag & 7);
|
|
210
|
+
}
|
|
211
|
+
return message;
|
|
212
|
+
},
|
|
213
|
+
fromJSON(object) {
|
|
214
|
+
return {
|
|
215
|
+
low: isSet(object.low) ? DecCoin.fromJSON(object.low) : undefined,
|
|
216
|
+
med: isSet(object.med) ? DecCoin.fromJSON(object.med) : undefined,
|
|
217
|
+
high: isSet(object.high) ? DecCoin.fromJSON(object.high) : undefined,
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
toJSON(message) {
|
|
221
|
+
const obj = {};
|
|
222
|
+
if (message.low !== undefined) {
|
|
223
|
+
obj.low = DecCoin.toJSON(message.low);
|
|
224
|
+
}
|
|
225
|
+
if (message.med !== undefined) {
|
|
226
|
+
obj.med = DecCoin.toJSON(message.med);
|
|
227
|
+
}
|
|
228
|
+
if (message.high !== undefined) {
|
|
229
|
+
obj.high = DecCoin.toJSON(message.high);
|
|
230
|
+
}
|
|
231
|
+
return obj;
|
|
232
|
+
},
|
|
233
|
+
create(base) {
|
|
234
|
+
return QueryRecommendedGasPriceResponse.fromPartial(base ?? {});
|
|
235
|
+
},
|
|
236
|
+
fromPartial(object) {
|
|
237
|
+
const message = createBaseQueryRecommendedGasPriceResponse();
|
|
238
|
+
message.low =
|
|
239
|
+
object.low !== undefined && object.low !== null
|
|
240
|
+
? DecCoin.fromPartial(object.low)
|
|
241
|
+
: undefined;
|
|
242
|
+
message.med =
|
|
243
|
+
object.med !== undefined && object.med !== null
|
|
244
|
+
? DecCoin.fromPartial(object.med)
|
|
245
|
+
: undefined;
|
|
246
|
+
message.high =
|
|
247
|
+
object.high !== undefined && object.high !== null
|
|
248
|
+
? DecCoin.fromPartial(object.high)
|
|
249
|
+
: undefined;
|
|
250
|
+
return message;
|
|
251
|
+
},
|
|
252
|
+
};
|
|
102
253
|
function createBaseQueryParamsRequest() {
|
|
103
254
|
return {};
|
|
104
255
|
}
|
|
105
256
|
export const QueryParamsRequest = {
|
|
106
|
-
encode(_, writer =
|
|
257
|
+
encode(_, writer = new BinaryWriter()) {
|
|
107
258
|
return writer;
|
|
108
259
|
},
|
|
109
260
|
decode(input, length) {
|
|
110
|
-
const reader = input instanceof
|
|
261
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
111
262
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
112
263
|
const message = createBaseQueryParamsRequest();
|
|
113
264
|
while (reader.pos < end) {
|
|
114
265
|
const tag = reader.uint32();
|
|
115
266
|
switch (tag >>> 3) {
|
|
116
267
|
}
|
|
117
|
-
if ((tag & 7)
|
|
268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
118
269
|
break;
|
|
119
270
|
}
|
|
120
|
-
reader.
|
|
271
|
+
reader.skip(tag & 7);
|
|
121
272
|
}
|
|
122
273
|
return message;
|
|
123
274
|
},
|
|
@@ -140,30 +291,31 @@ function createBaseQueryParamsResponse() {
|
|
|
140
291
|
return { params: undefined };
|
|
141
292
|
}
|
|
142
293
|
export const QueryParamsResponse = {
|
|
143
|
-
encode(message, writer =
|
|
294
|
+
encode(message, writer = new BinaryWriter()) {
|
|
144
295
|
if (message.params !== undefined) {
|
|
145
296
|
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
146
297
|
}
|
|
147
298
|
return writer;
|
|
148
299
|
},
|
|
149
300
|
decode(input, length) {
|
|
150
|
-
const reader = input instanceof
|
|
301
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
151
302
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
152
303
|
const message = createBaseQueryParamsResponse();
|
|
153
304
|
while (reader.pos < end) {
|
|
154
305
|
const tag = reader.uint32();
|
|
155
306
|
switch (tag >>> 3) {
|
|
156
|
-
case 1:
|
|
157
|
-
if (tag
|
|
307
|
+
case 1: {
|
|
308
|
+
if (tag !== 10) {
|
|
158
309
|
break;
|
|
159
310
|
}
|
|
160
311
|
message.params = Params.decode(reader, reader.uint32());
|
|
161
312
|
continue;
|
|
313
|
+
}
|
|
162
314
|
}
|
|
163
|
-
if ((tag & 7)
|
|
315
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
164
316
|
break;
|
|
165
317
|
}
|
|
166
|
-
reader.
|
|
318
|
+
reader.skip(tag & 7);
|
|
167
319
|
}
|
|
168
320
|
return message;
|
|
169
321
|
},
|
|
@@ -174,8 +326,9 @@ export const QueryParamsResponse = {
|
|
|
174
326
|
},
|
|
175
327
|
toJSON(message) {
|
|
176
328
|
const obj = {};
|
|
177
|
-
message.params !== undefined
|
|
178
|
-
|
|
329
|
+
if (message.params !== undefined) {
|
|
330
|
+
obj.params = Params.toJSON(message.params);
|
|
331
|
+
}
|
|
179
332
|
return obj;
|
|
180
333
|
},
|
|
181
334
|
create(base) {
|
|
@@ -190,30 +343,33 @@ export const QueryParamsResponse = {
|
|
|
190
343
|
return message;
|
|
191
344
|
},
|
|
192
345
|
};
|
|
346
|
+
export const QueryServiceName = "coreum.feemodel.v1.Query";
|
|
193
347
|
export class QueryClientImpl {
|
|
194
348
|
rpc;
|
|
195
349
|
service;
|
|
196
350
|
constructor(rpc, opts) {
|
|
197
|
-
this.service = opts?.service ||
|
|
351
|
+
this.service = opts?.service || QueryServiceName;
|
|
198
352
|
this.rpc = rpc;
|
|
199
353
|
this.MinGasPrice = this.MinGasPrice.bind(this);
|
|
354
|
+
this.RecommendedGasPrice = this.RecommendedGasPrice.bind(this);
|
|
200
355
|
this.Params = this.Params.bind(this);
|
|
201
356
|
}
|
|
202
357
|
MinGasPrice(request) {
|
|
203
358
|
const data = QueryMinGasPriceRequest.encode(request).finish();
|
|
204
359
|
const promise = this.rpc.request(this.service, "MinGasPrice", data);
|
|
205
|
-
return promise.then((data) => QueryMinGasPriceResponse.decode(
|
|
360
|
+
return promise.then((data) => QueryMinGasPriceResponse.decode(new BinaryReader(data)));
|
|
361
|
+
}
|
|
362
|
+
RecommendedGasPrice(request) {
|
|
363
|
+
const data = QueryRecommendedGasPriceRequest.encode(request).finish();
|
|
364
|
+
const promise = this.rpc.request(this.service, "RecommendedGasPrice", data);
|
|
365
|
+
return promise.then((data) => QueryRecommendedGasPriceResponse.decode(new BinaryReader(data)));
|
|
206
366
|
}
|
|
207
367
|
Params(request) {
|
|
208
368
|
const data = QueryParamsRequest.encode(request).finish();
|
|
209
369
|
const promise = this.rpc.request(this.service, "Params", data);
|
|
210
|
-
return promise.then((data) => QueryParamsResponse.decode(
|
|
370
|
+
return promise.then((data) => QueryParamsResponse.decode(new BinaryReader(data)));
|
|
211
371
|
}
|
|
212
372
|
}
|
|
213
|
-
if (_m0.util.Long !== Long) {
|
|
214
|
-
_m0.util.Long = Long;
|
|
215
|
-
_m0.configure();
|
|
216
|
-
}
|
|
217
373
|
function isSet(value) {
|
|
218
374
|
return value !== null && value !== undefined;
|
|
219
375
|
}
|
|
@@ -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,8 +1,10 @@
|
|
|
1
1
|
import { assetNftRegistry, assetFtRegistry } from "./asset";
|
|
2
2
|
import { nftBetaRegistry } from "./nft";
|
|
3
|
+
import { dexRegistry } from "./dex";
|
|
3
4
|
import { MsgSend as NFTMsgSend } from "./nft/v1beta1/tx";
|
|
4
5
|
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";
|
|
5
6
|
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";
|
|
7
|
+
import { MsgUpdateParams as DEXMsgUpdateParams, MsgPlaceOrder as DEXMsgPlaceOrder, MsgCancelOrder as DEXMsgCancelOrder, MsgCancelOrdersByDenom as DEXMsgCancelOrdersByDenom, } from "./dex/v1/tx";
|
|
6
8
|
export { Feature } from "./asset/ft/v1/token";
|
|
7
9
|
export { ClassFeature } from "./asset/nft/v1/nft";
|
|
8
10
|
/**
|
|
@@ -12,6 +14,7 @@ export const coreumRegistry = [
|
|
|
12
14
|
...assetFtRegistry,
|
|
13
15
|
...assetNftRegistry,
|
|
14
16
|
...nftBetaRegistry,
|
|
17
|
+
...dexRegistry,
|
|
15
18
|
];
|
|
16
19
|
/**
|
|
17
20
|
* Transaction Module for the Fungible Tokens module. (assetft)
|
|
@@ -253,3 +256,57 @@ export var NFT;
|
|
|
253
256
|
};
|
|
254
257
|
};
|
|
255
258
|
})(NFT || (NFT = {}));
|
|
259
|
+
/**
|
|
260
|
+
* Transaction Module for the DEX module
|
|
261
|
+
*/
|
|
262
|
+
export var DEX;
|
|
263
|
+
(function (DEX) {
|
|
264
|
+
/** MsgPlaceOrder message creator
|
|
265
|
+
* Places a new order on the native DEX
|
|
266
|
+
*
|
|
267
|
+
* @param object Represents the properties available for this MsgPlaceOrder message.
|
|
268
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
269
|
+
*/
|
|
270
|
+
DEX.PlaceOrder = function (object) {
|
|
271
|
+
return {
|
|
272
|
+
typeUrl: "/coreum.dex.v1.MsgPlaceOrder",
|
|
273
|
+
value: DEXMsgPlaceOrder.fromPartial(object),
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
/** MsgCancelOrder message creator
|
|
277
|
+
* Cancels an order by ID
|
|
278
|
+
*
|
|
279
|
+
* @param object Represents the properties available for this MsgCancelOrder message.
|
|
280
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
281
|
+
*/
|
|
282
|
+
DEX.CancelOrder = function (object) {
|
|
283
|
+
return {
|
|
284
|
+
typeUrl: "/coreum.dex.v1.MsgCancelOrder",
|
|
285
|
+
value: DEXMsgCancelOrder.fromPartial(object),
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
/** MsgUpdateParams message creator
|
|
289
|
+
* Updates module parameters
|
|
290
|
+
*
|
|
291
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
292
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
293
|
+
*/
|
|
294
|
+
DEX.UpdateParams = function (object) {
|
|
295
|
+
return {
|
|
296
|
+
typeUrl: "/coreum.dex.v1.MsgUpdateParams",
|
|
297
|
+
value: DEXMsgUpdateParams.fromPartial(object),
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
/** MsgCancelOrdersByDenom message creator
|
|
301
|
+
* Cancels all existing orders by denom
|
|
302
|
+
*
|
|
303
|
+
* @param object Represents the properties available for this MsgCancelOrdersByDenom message.
|
|
304
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
305
|
+
*/
|
|
306
|
+
DEX.CancelOrdersByDenom = function (object) {
|
|
307
|
+
return {
|
|
308
|
+
typeUrl: "/coreum.dex.v1.MsgCancelOrdersByDenom",
|
|
309
|
+
value: DEXMsgCancelOrdersByDenom.fromPartial(object),
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
})(DEX || (DEX = {}));
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const nftBetaRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
1
|
+
export declare const nftBetaRegistry: ReadonlyArray<[string, any]>;
|
|
@@ -1,51 +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 Exact<DeepPartial<EventSend>, I>>(base?: I): EventSend;
|
|
29
|
-
fromPartial<I extends Exact<DeepPartial<EventSend>, I>>(object: I): EventSend;
|
|
30
|
-
};
|
|
31
|
-
export declare const EventMint: {
|
|
32
|
-
encode(message: EventMint, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventMint;
|
|
34
|
-
fromJSON(object: any): EventMint;
|
|
35
|
-
toJSON(message: EventMint): unknown;
|
|
36
|
-
create<I extends Exact<DeepPartial<EventMint>, I>>(base?: I): EventMint;
|
|
37
|
-
fromPartial<I extends Exact<DeepPartial<EventMint>, I>>(object: I): EventMint;
|
|
38
|
-
};
|
|
39
|
-
export declare const EventBurn: {
|
|
40
|
-
encode(message: EventBurn, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventBurn;
|
|
42
|
-
fromJSON(object: any): EventBurn;
|
|
43
|
-
toJSON(message: EventBurn): unknown;
|
|
44
|
-
create<I extends Exact<DeepPartial<EventBurn>, I>>(base?: I): EventBurn;
|
|
45
|
-
fromPartial<I extends Exact<DeepPartial<EventBurn>, I>>(object: I): EventBurn;
|
|
46
|
-
};
|
|
32
|
+
export declare const EventSend: MessageFns<EventSend>;
|
|
33
|
+
export declare const EventMint: MessageFns<EventMint>;
|
|
34
|
+
export declare const EventBurn: MessageFns<EventBurn>;
|
|
47
35
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
48
|
-
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 {} ? {
|
|
49
37
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
50
38
|
} : Partial<T>;
|
|
51
39
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -54,4 +42,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
54
42
|
} & {
|
|
55
43
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
56
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
|
+
}
|
|
57
53
|
export {};
|