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,26 @@
|
|
|
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/nft/genesis.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
import { ClassDefinition } from "./nft";
|
|
5
9
|
import { Params } from "./params";
|
|
6
10
|
export const protobufPackage = "coreum.asset.nft.v1";
|
|
7
11
|
function createBaseGenesisState() {
|
|
8
|
-
return {
|
|
12
|
+
return {
|
|
13
|
+
params: undefined,
|
|
14
|
+
classDefinitions: [],
|
|
15
|
+
frozenNfts: [],
|
|
16
|
+
whitelistedNftAccounts: [],
|
|
17
|
+
burntNfts: [],
|
|
18
|
+
classWhitelistedAccounts: [],
|
|
19
|
+
classFrozenAccounts: [],
|
|
20
|
+
};
|
|
9
21
|
}
|
|
10
22
|
export const GenesisState = {
|
|
11
|
-
encode(message, writer =
|
|
23
|
+
encode(message, writer = new BinaryWriter()) {
|
|
12
24
|
if (message.params !== undefined) {
|
|
13
25
|
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
14
26
|
}
|
|
@@ -24,92 +36,123 @@ export const GenesisState = {
|
|
|
24
36
|
for (const v of message.burntNfts) {
|
|
25
37
|
BurntNFT.encode(v, writer.uint32(42).fork()).ldelim();
|
|
26
38
|
}
|
|
39
|
+
for (const v of message.classWhitelistedAccounts) {
|
|
40
|
+
ClassWhitelistedAccounts.encode(v, writer.uint32(50).fork()).ldelim();
|
|
41
|
+
}
|
|
42
|
+
for (const v of message.classFrozenAccounts) {
|
|
43
|
+
ClassFrozenAccounts.encode(v, writer.uint32(58).fork()).ldelim();
|
|
44
|
+
}
|
|
27
45
|
return writer;
|
|
28
46
|
},
|
|
29
47
|
decode(input, length) {
|
|
30
|
-
const reader = input instanceof
|
|
48
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
31
49
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
50
|
const message = createBaseGenesisState();
|
|
33
51
|
while (reader.pos < end) {
|
|
34
52
|
const tag = reader.uint32();
|
|
35
53
|
switch (tag >>> 3) {
|
|
36
|
-
case 1:
|
|
37
|
-
if (tag
|
|
54
|
+
case 1: {
|
|
55
|
+
if (tag !== 10) {
|
|
38
56
|
break;
|
|
39
57
|
}
|
|
40
58
|
message.params = Params.decode(reader, reader.uint32());
|
|
41
59
|
continue;
|
|
42
|
-
|
|
43
|
-
|
|
60
|
+
}
|
|
61
|
+
case 2: {
|
|
62
|
+
if (tag !== 18) {
|
|
44
63
|
break;
|
|
45
64
|
}
|
|
46
65
|
message.classDefinitions.push(ClassDefinition.decode(reader, reader.uint32()));
|
|
47
66
|
continue;
|
|
48
|
-
|
|
49
|
-
|
|
67
|
+
}
|
|
68
|
+
case 3: {
|
|
69
|
+
if (tag !== 26) {
|
|
50
70
|
break;
|
|
51
71
|
}
|
|
52
72
|
message.frozenNfts.push(FrozenNFT.decode(reader, reader.uint32()));
|
|
53
73
|
continue;
|
|
54
|
-
|
|
55
|
-
|
|
74
|
+
}
|
|
75
|
+
case 4: {
|
|
76
|
+
if (tag !== 34) {
|
|
56
77
|
break;
|
|
57
78
|
}
|
|
58
79
|
message.whitelistedNftAccounts.push(WhitelistedNFTAccounts.decode(reader, reader.uint32()));
|
|
59
80
|
continue;
|
|
60
|
-
|
|
61
|
-
|
|
81
|
+
}
|
|
82
|
+
case 5: {
|
|
83
|
+
if (tag !== 42) {
|
|
62
84
|
break;
|
|
63
85
|
}
|
|
64
86
|
message.burntNfts.push(BurntNFT.decode(reader, reader.uint32()));
|
|
65
87
|
continue;
|
|
88
|
+
}
|
|
89
|
+
case 6: {
|
|
90
|
+
if (tag !== 50) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.classWhitelistedAccounts.push(ClassWhitelistedAccounts.decode(reader, reader.uint32()));
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
case 7: {
|
|
97
|
+
if (tag !== 58) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.classFrozenAccounts.push(ClassFrozenAccounts.decode(reader, reader.uint32()));
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
66
103
|
}
|
|
67
|
-
if ((tag & 7)
|
|
104
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
68
105
|
break;
|
|
69
106
|
}
|
|
70
|
-
reader.
|
|
107
|
+
reader.skip(tag & 7);
|
|
71
108
|
}
|
|
72
109
|
return message;
|
|
73
110
|
},
|
|
74
111
|
fromJSON(object) {
|
|
75
112
|
return {
|
|
76
113
|
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
77
|
-
classDefinitions: Array.isArray(object?.classDefinitions)
|
|
114
|
+
classDefinitions: globalThis.Array.isArray(object?.classDefinitions)
|
|
78
115
|
? object.classDefinitions.map((e) => ClassDefinition.fromJSON(e))
|
|
79
116
|
: [],
|
|
80
|
-
frozenNfts: Array.isArray(object?.frozenNfts)
|
|
81
|
-
|
|
117
|
+
frozenNfts: globalThis.Array.isArray(object?.frozenNfts)
|
|
118
|
+
? object.frozenNfts.map((e) => FrozenNFT.fromJSON(e))
|
|
119
|
+
: [],
|
|
120
|
+
whitelistedNftAccounts: globalThis.Array.isArray(object?.whitelistedNftAccounts)
|
|
82
121
|
? object.whitelistedNftAccounts.map((e) => WhitelistedNFTAccounts.fromJSON(e))
|
|
83
122
|
: [],
|
|
84
|
-
burntNfts: Array.isArray(object?.burntNfts)
|
|
123
|
+
burntNfts: globalThis.Array.isArray(object?.burntNfts)
|
|
124
|
+
? object.burntNfts.map((e) => BurntNFT.fromJSON(e))
|
|
125
|
+
: [],
|
|
126
|
+
classWhitelistedAccounts: globalThis.Array.isArray(object?.classWhitelistedAccounts)
|
|
127
|
+
? object.classWhitelistedAccounts.map((e) => ClassWhitelistedAccounts.fromJSON(e))
|
|
128
|
+
: [],
|
|
129
|
+
classFrozenAccounts: globalThis.Array.isArray(object?.classFrozenAccounts)
|
|
130
|
+
? object.classFrozenAccounts.map((e) => ClassFrozenAccounts.fromJSON(e))
|
|
131
|
+
: [],
|
|
85
132
|
};
|
|
86
133
|
},
|
|
87
134
|
toJSON(message) {
|
|
88
135
|
const obj = {};
|
|
89
|
-
message.params !== undefined
|
|
90
|
-
|
|
91
|
-
obj.classDefinitions = message.classDefinitions.map((e) => e ? ClassDefinition.toJSON(e) : undefined);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
obj.classDefinitions = [];
|
|
136
|
+
if (message.params !== undefined) {
|
|
137
|
+
obj.params = Params.toJSON(message.params);
|
|
95
138
|
}
|
|
96
|
-
if (message.
|
|
97
|
-
obj.
|
|
139
|
+
if (message.classDefinitions?.length) {
|
|
140
|
+
obj.classDefinitions = message.classDefinitions.map((e) => ClassDefinition.toJSON(e));
|
|
98
141
|
}
|
|
99
|
-
|
|
100
|
-
obj.frozenNfts =
|
|
142
|
+
if (message.frozenNfts?.length) {
|
|
143
|
+
obj.frozenNfts = message.frozenNfts.map((e) => FrozenNFT.toJSON(e));
|
|
101
144
|
}
|
|
102
|
-
if (message.whitelistedNftAccounts) {
|
|
103
|
-
obj.whitelistedNftAccounts = message.whitelistedNftAccounts.map((e) =>
|
|
145
|
+
if (message.whitelistedNftAccounts?.length) {
|
|
146
|
+
obj.whitelistedNftAccounts = message.whitelistedNftAccounts.map((e) => WhitelistedNFTAccounts.toJSON(e));
|
|
104
147
|
}
|
|
105
|
-
|
|
106
|
-
obj.
|
|
148
|
+
if (message.burntNfts?.length) {
|
|
149
|
+
obj.burntNfts = message.burntNfts.map((e) => BurntNFT.toJSON(e));
|
|
107
150
|
}
|
|
108
|
-
if (message.
|
|
109
|
-
obj.
|
|
151
|
+
if (message.classWhitelistedAccounts?.length) {
|
|
152
|
+
obj.classWhitelistedAccounts = message.classWhitelistedAccounts.map((e) => ClassWhitelistedAccounts.toJSON(e));
|
|
110
153
|
}
|
|
111
|
-
|
|
112
|
-
obj.
|
|
154
|
+
if (message.classFrozenAccounts?.length) {
|
|
155
|
+
obj.classFrozenAccounts = message.classFrozenAccounts.map((e) => ClassFrozenAccounts.toJSON(e));
|
|
113
156
|
}
|
|
114
157
|
return obj;
|
|
115
158
|
},
|
|
@@ -118,14 +161,22 @@ export const GenesisState = {
|
|
|
118
161
|
},
|
|
119
162
|
fromPartial(object) {
|
|
120
163
|
const message = createBaseGenesisState();
|
|
121
|
-
message.params =
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
message.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
164
|
+
message.params =
|
|
165
|
+
object.params !== undefined && object.params !== null
|
|
166
|
+
? Params.fromPartial(object.params)
|
|
167
|
+
: undefined;
|
|
168
|
+
message.classDefinitions =
|
|
169
|
+
object.classDefinitions?.map((e) => ClassDefinition.fromPartial(e)) || [];
|
|
170
|
+
message.frozenNfts =
|
|
171
|
+
object.frozenNfts?.map((e) => FrozenNFT.fromPartial(e)) || [];
|
|
172
|
+
message.whitelistedNftAccounts =
|
|
173
|
+
object.whitelistedNftAccounts?.map((e) => WhitelistedNFTAccounts.fromPartial(e)) || [];
|
|
174
|
+
message.burntNfts =
|
|
175
|
+
object.burntNfts?.map((e) => BurntNFT.fromPartial(e)) || [];
|
|
176
|
+
message.classWhitelistedAccounts =
|
|
177
|
+
object.classWhitelistedAccounts?.map((e) => ClassWhitelistedAccounts.fromPartial(e)) || [];
|
|
178
|
+
message.classFrozenAccounts =
|
|
179
|
+
object.classFrozenAccounts?.map((e) => ClassFrozenAccounts.fromPartial(e)) || [];
|
|
129
180
|
return message;
|
|
130
181
|
},
|
|
131
182
|
};
|
|
@@ -133,7 +184,7 @@ function createBaseFrozenNFT() {
|
|
|
133
184
|
return { classID: "", nftIDs: [] };
|
|
134
185
|
}
|
|
135
186
|
export const FrozenNFT = {
|
|
136
|
-
encode(message, writer =
|
|
187
|
+
encode(message, writer = new BinaryWriter()) {
|
|
137
188
|
if (message.classID !== "") {
|
|
138
189
|
writer.uint32(10).string(message.classID);
|
|
139
190
|
}
|
|
@@ -143,46 +194,49 @@ export const FrozenNFT = {
|
|
|
143
194
|
return writer;
|
|
144
195
|
},
|
|
145
196
|
decode(input, length) {
|
|
146
|
-
const reader = input instanceof
|
|
197
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
147
198
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
148
199
|
const message = createBaseFrozenNFT();
|
|
149
200
|
while (reader.pos < end) {
|
|
150
201
|
const tag = reader.uint32();
|
|
151
202
|
switch (tag >>> 3) {
|
|
152
|
-
case 1:
|
|
153
|
-
if (tag
|
|
203
|
+
case 1: {
|
|
204
|
+
if (tag !== 10) {
|
|
154
205
|
break;
|
|
155
206
|
}
|
|
156
207
|
message.classID = reader.string();
|
|
157
208
|
continue;
|
|
158
|
-
|
|
159
|
-
|
|
209
|
+
}
|
|
210
|
+
case 2: {
|
|
211
|
+
if (tag !== 18) {
|
|
160
212
|
break;
|
|
161
213
|
}
|
|
162
214
|
message.nftIDs.push(reader.string());
|
|
163
215
|
continue;
|
|
216
|
+
}
|
|
164
217
|
}
|
|
165
|
-
if ((tag & 7)
|
|
218
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
166
219
|
break;
|
|
167
220
|
}
|
|
168
|
-
reader.
|
|
221
|
+
reader.skip(tag & 7);
|
|
169
222
|
}
|
|
170
223
|
return message;
|
|
171
224
|
},
|
|
172
225
|
fromJSON(object) {
|
|
173
226
|
return {
|
|
174
|
-
classID: isSet(object.classID) ? String(object.classID) : "",
|
|
175
|
-
nftIDs: Array.isArray(object?.nftIDs)
|
|
227
|
+
classID: isSet(object.classID) ? globalThis.String(object.classID) : "",
|
|
228
|
+
nftIDs: globalThis.Array.isArray(object?.nftIDs)
|
|
229
|
+
? object.nftIDs.map((e) => globalThis.String(e))
|
|
230
|
+
: [],
|
|
176
231
|
};
|
|
177
232
|
},
|
|
178
233
|
toJSON(message) {
|
|
179
234
|
const obj = {};
|
|
180
|
-
message.classID !==
|
|
181
|
-
|
|
182
|
-
obj.nftIDs = message.nftIDs.map((e) => e);
|
|
235
|
+
if (message.classID !== "") {
|
|
236
|
+
obj.classID = message.classID;
|
|
183
237
|
}
|
|
184
|
-
|
|
185
|
-
obj.nftIDs =
|
|
238
|
+
if (message.nftIDs?.length) {
|
|
239
|
+
obj.nftIDs = message.nftIDs;
|
|
186
240
|
}
|
|
187
241
|
return obj;
|
|
188
242
|
},
|
|
@@ -200,7 +254,7 @@ function createBaseWhitelistedNFTAccounts() {
|
|
|
200
254
|
return { classID: "", nftID: "", accounts: [] };
|
|
201
255
|
}
|
|
202
256
|
export const WhitelistedNFTAccounts = {
|
|
203
|
-
encode(message, writer =
|
|
257
|
+
encode(message, writer = new BinaryWriter()) {
|
|
204
258
|
if (message.classID !== "") {
|
|
205
259
|
writer.uint32(10).string(message.classID);
|
|
206
260
|
}
|
|
@@ -213,54 +267,60 @@ export const WhitelistedNFTAccounts = {
|
|
|
213
267
|
return writer;
|
|
214
268
|
},
|
|
215
269
|
decode(input, length) {
|
|
216
|
-
const reader = input instanceof
|
|
270
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
217
271
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
218
272
|
const message = createBaseWhitelistedNFTAccounts();
|
|
219
273
|
while (reader.pos < end) {
|
|
220
274
|
const tag = reader.uint32();
|
|
221
275
|
switch (tag >>> 3) {
|
|
222
|
-
case 1:
|
|
223
|
-
if (tag
|
|
276
|
+
case 1: {
|
|
277
|
+
if (tag !== 10) {
|
|
224
278
|
break;
|
|
225
279
|
}
|
|
226
280
|
message.classID = reader.string();
|
|
227
281
|
continue;
|
|
228
|
-
|
|
229
|
-
|
|
282
|
+
}
|
|
283
|
+
case 2: {
|
|
284
|
+
if (tag !== 18) {
|
|
230
285
|
break;
|
|
231
286
|
}
|
|
232
287
|
message.nftID = reader.string();
|
|
233
288
|
continue;
|
|
234
|
-
|
|
235
|
-
|
|
289
|
+
}
|
|
290
|
+
case 4: {
|
|
291
|
+
if (tag !== 34) {
|
|
236
292
|
break;
|
|
237
293
|
}
|
|
238
294
|
message.accounts.push(reader.string());
|
|
239
295
|
continue;
|
|
296
|
+
}
|
|
240
297
|
}
|
|
241
|
-
if ((tag & 7)
|
|
298
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
242
299
|
break;
|
|
243
300
|
}
|
|
244
|
-
reader.
|
|
301
|
+
reader.skip(tag & 7);
|
|
245
302
|
}
|
|
246
303
|
return message;
|
|
247
304
|
},
|
|
248
305
|
fromJSON(object) {
|
|
249
306
|
return {
|
|
250
|
-
classID: isSet(object.classID) ? String(object.classID) : "",
|
|
251
|
-
nftID: isSet(object.nftID) ? String(object.nftID) : "",
|
|
252
|
-
accounts: Array.isArray(object?.accounts)
|
|
307
|
+
classID: isSet(object.classID) ? globalThis.String(object.classID) : "",
|
|
308
|
+
nftID: isSet(object.nftID) ? globalThis.String(object.nftID) : "",
|
|
309
|
+
accounts: globalThis.Array.isArray(object?.accounts)
|
|
310
|
+
? object.accounts.map((e) => globalThis.String(e))
|
|
311
|
+
: [],
|
|
253
312
|
};
|
|
254
313
|
},
|
|
255
314
|
toJSON(message) {
|
|
256
315
|
const obj = {};
|
|
257
|
-
message.classID !==
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
316
|
+
if (message.classID !== "") {
|
|
317
|
+
obj.classID = message.classID;
|
|
318
|
+
}
|
|
319
|
+
if (message.nftID !== "") {
|
|
320
|
+
obj.nftID = message.nftID;
|
|
261
321
|
}
|
|
262
|
-
|
|
263
|
-
obj.accounts =
|
|
322
|
+
if (message.accounts?.length) {
|
|
323
|
+
obj.accounts = message.accounts;
|
|
264
324
|
}
|
|
265
325
|
return obj;
|
|
266
326
|
},
|
|
@@ -275,11 +335,151 @@ export const WhitelistedNFTAccounts = {
|
|
|
275
335
|
return message;
|
|
276
336
|
},
|
|
277
337
|
};
|
|
338
|
+
function createBaseClassWhitelistedAccounts() {
|
|
339
|
+
return { classID: "", accounts: [] };
|
|
340
|
+
}
|
|
341
|
+
export const ClassWhitelistedAccounts = {
|
|
342
|
+
encode(message, writer = new BinaryWriter()) {
|
|
343
|
+
if (message.classID !== "") {
|
|
344
|
+
writer.uint32(10).string(message.classID);
|
|
345
|
+
}
|
|
346
|
+
for (const v of message.accounts) {
|
|
347
|
+
writer.uint32(18).string(v);
|
|
348
|
+
}
|
|
349
|
+
return writer;
|
|
350
|
+
},
|
|
351
|
+
decode(input, length) {
|
|
352
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
353
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
354
|
+
const message = createBaseClassWhitelistedAccounts();
|
|
355
|
+
while (reader.pos < end) {
|
|
356
|
+
const tag = reader.uint32();
|
|
357
|
+
switch (tag >>> 3) {
|
|
358
|
+
case 1: {
|
|
359
|
+
if (tag !== 10) {
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
message.classID = reader.string();
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
case 2: {
|
|
366
|
+
if (tag !== 18) {
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
message.accounts.push(reader.string());
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
reader.skip(tag & 7);
|
|
377
|
+
}
|
|
378
|
+
return message;
|
|
379
|
+
},
|
|
380
|
+
fromJSON(object) {
|
|
381
|
+
return {
|
|
382
|
+
classID: isSet(object.classID) ? globalThis.String(object.classID) : "",
|
|
383
|
+
accounts: globalThis.Array.isArray(object?.accounts)
|
|
384
|
+
? object.accounts.map((e) => globalThis.String(e))
|
|
385
|
+
: [],
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
toJSON(message) {
|
|
389
|
+
const obj = {};
|
|
390
|
+
if (message.classID !== "") {
|
|
391
|
+
obj.classID = message.classID;
|
|
392
|
+
}
|
|
393
|
+
if (message.accounts?.length) {
|
|
394
|
+
obj.accounts = message.accounts;
|
|
395
|
+
}
|
|
396
|
+
return obj;
|
|
397
|
+
},
|
|
398
|
+
create(base) {
|
|
399
|
+
return ClassWhitelistedAccounts.fromPartial(base ?? {});
|
|
400
|
+
},
|
|
401
|
+
fromPartial(object) {
|
|
402
|
+
const message = createBaseClassWhitelistedAccounts();
|
|
403
|
+
message.classID = object.classID ?? "";
|
|
404
|
+
message.accounts = object.accounts?.map((e) => e) || [];
|
|
405
|
+
return message;
|
|
406
|
+
},
|
|
407
|
+
};
|
|
408
|
+
function createBaseClassFrozenAccounts() {
|
|
409
|
+
return { classID: "", accounts: [] };
|
|
410
|
+
}
|
|
411
|
+
export const ClassFrozenAccounts = {
|
|
412
|
+
encode(message, writer = new BinaryWriter()) {
|
|
413
|
+
if (message.classID !== "") {
|
|
414
|
+
writer.uint32(10).string(message.classID);
|
|
415
|
+
}
|
|
416
|
+
for (const v of message.accounts) {
|
|
417
|
+
writer.uint32(18).string(v);
|
|
418
|
+
}
|
|
419
|
+
return writer;
|
|
420
|
+
},
|
|
421
|
+
decode(input, length) {
|
|
422
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
423
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
424
|
+
const message = createBaseClassFrozenAccounts();
|
|
425
|
+
while (reader.pos < end) {
|
|
426
|
+
const tag = reader.uint32();
|
|
427
|
+
switch (tag >>> 3) {
|
|
428
|
+
case 1: {
|
|
429
|
+
if (tag !== 10) {
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
message.classID = reader.string();
|
|
433
|
+
continue;
|
|
434
|
+
}
|
|
435
|
+
case 2: {
|
|
436
|
+
if (tag !== 18) {
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
message.accounts.push(reader.string());
|
|
440
|
+
continue;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
reader.skip(tag & 7);
|
|
447
|
+
}
|
|
448
|
+
return message;
|
|
449
|
+
},
|
|
450
|
+
fromJSON(object) {
|
|
451
|
+
return {
|
|
452
|
+
classID: isSet(object.classID) ? globalThis.String(object.classID) : "",
|
|
453
|
+
accounts: globalThis.Array.isArray(object?.accounts)
|
|
454
|
+
? object.accounts.map((e) => globalThis.String(e))
|
|
455
|
+
: [],
|
|
456
|
+
};
|
|
457
|
+
},
|
|
458
|
+
toJSON(message) {
|
|
459
|
+
const obj = {};
|
|
460
|
+
if (message.classID !== "") {
|
|
461
|
+
obj.classID = message.classID;
|
|
462
|
+
}
|
|
463
|
+
if (message.accounts?.length) {
|
|
464
|
+
obj.accounts = message.accounts;
|
|
465
|
+
}
|
|
466
|
+
return obj;
|
|
467
|
+
},
|
|
468
|
+
create(base) {
|
|
469
|
+
return ClassFrozenAccounts.fromPartial(base ?? {});
|
|
470
|
+
},
|
|
471
|
+
fromPartial(object) {
|
|
472
|
+
const message = createBaseClassFrozenAccounts();
|
|
473
|
+
message.classID = object.classID ?? "";
|
|
474
|
+
message.accounts = object.accounts?.map((e) => e) || [];
|
|
475
|
+
return message;
|
|
476
|
+
},
|
|
477
|
+
};
|
|
278
478
|
function createBaseBurntNFT() {
|
|
279
479
|
return { classID: "", nftIDs: [] };
|
|
280
480
|
}
|
|
281
481
|
export const BurntNFT = {
|
|
282
|
-
encode(message, writer =
|
|
482
|
+
encode(message, writer = new BinaryWriter()) {
|
|
283
483
|
if (message.classID !== "") {
|
|
284
484
|
writer.uint32(10).string(message.classID);
|
|
285
485
|
}
|
|
@@ -289,46 +489,49 @@ export const BurntNFT = {
|
|
|
289
489
|
return writer;
|
|
290
490
|
},
|
|
291
491
|
decode(input, length) {
|
|
292
|
-
const reader = input instanceof
|
|
492
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
293
493
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
294
494
|
const message = createBaseBurntNFT();
|
|
295
495
|
while (reader.pos < end) {
|
|
296
496
|
const tag = reader.uint32();
|
|
297
497
|
switch (tag >>> 3) {
|
|
298
|
-
case 1:
|
|
299
|
-
if (tag
|
|
498
|
+
case 1: {
|
|
499
|
+
if (tag !== 10) {
|
|
300
500
|
break;
|
|
301
501
|
}
|
|
302
502
|
message.classID = reader.string();
|
|
303
503
|
continue;
|
|
304
|
-
|
|
305
|
-
|
|
504
|
+
}
|
|
505
|
+
case 2: {
|
|
506
|
+
if (tag !== 18) {
|
|
306
507
|
break;
|
|
307
508
|
}
|
|
308
509
|
message.nftIDs.push(reader.string());
|
|
309
510
|
continue;
|
|
511
|
+
}
|
|
310
512
|
}
|
|
311
|
-
if ((tag & 7)
|
|
513
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
312
514
|
break;
|
|
313
515
|
}
|
|
314
|
-
reader.
|
|
516
|
+
reader.skip(tag & 7);
|
|
315
517
|
}
|
|
316
518
|
return message;
|
|
317
519
|
},
|
|
318
520
|
fromJSON(object) {
|
|
319
521
|
return {
|
|
320
|
-
classID: isSet(object.classID) ? String(object.classID) : "",
|
|
321
|
-
nftIDs: Array.isArray(object?.nftIDs)
|
|
522
|
+
classID: isSet(object.classID) ? globalThis.String(object.classID) : "",
|
|
523
|
+
nftIDs: globalThis.Array.isArray(object?.nftIDs)
|
|
524
|
+
? object.nftIDs.map((e) => globalThis.String(e))
|
|
525
|
+
: [],
|
|
322
526
|
};
|
|
323
527
|
},
|
|
324
528
|
toJSON(message) {
|
|
325
529
|
const obj = {};
|
|
326
|
-
message.classID !==
|
|
327
|
-
|
|
328
|
-
obj.nftIDs = message.nftIDs.map((e) => e);
|
|
530
|
+
if (message.classID !== "") {
|
|
531
|
+
obj.classID = message.classID;
|
|
329
532
|
}
|
|
330
|
-
|
|
331
|
-
obj.nftIDs =
|
|
533
|
+
if (message.nftIDs?.length) {
|
|
534
|
+
obj.nftIDs = message.nftIDs;
|
|
332
535
|
}
|
|
333
536
|
return obj;
|
|
334
537
|
},
|
|
@@ -342,10 +545,6 @@ export const BurntNFT = {
|
|
|
342
545
|
return message;
|
|
343
546
|
},
|
|
344
547
|
};
|
|
345
|
-
if (_m0.util.Long !== Long) {
|
|
346
|
-
_m0.util.Long = Long;
|
|
347
|
-
_m0.configure();
|
|
348
|
-
}
|
|
349
548
|
function isSet(value) {
|
|
350
549
|
return value !== null && value !== undefined;
|
|
351
550
|
}
|