coreum-js 2.16.3 → 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 +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 +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/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 +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 -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,14 +1,17 @@
|
|
|
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/nft/tx.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MsgClientImpl = exports.EmptyResponse = exports.MsgRemoveFromWhitelist = exports.MsgAddToWhitelist = exports.MsgUnfreeze = exports.MsgFreeze = exports.MsgBurn = exports.MsgMint = exports.MsgIssueClass = exports.protobufPackage = void 0;
|
|
8
|
+
exports.MsgClientImpl = exports.MsgServiceName = exports.EmptyResponse = exports.MsgUpdateParams = exports.MsgRemoveFromClassWhitelist = exports.MsgAddToClassWhitelist = exports.MsgRemoveFromWhitelist = exports.MsgAddToWhitelist = exports.MsgClassUnfreeze = exports.MsgClassFreeze = exports.MsgUnfreeze = exports.MsgFreeze = exports.MsgBurn = exports.MsgUpdateData = exports.MsgMint = exports.MsgIssueClass = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const any_1 = require("../../../../google/protobuf/any");
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
11
|
+
const any_1 = require("cosmjs-types/google/protobuf/any");
|
|
11
12
|
const nft_1 = require("./nft");
|
|
13
|
+
const params_1 = require("./params");
|
|
14
|
+
const types_1 = require("./types");
|
|
12
15
|
exports.protobufPackage = "coreum.asset.nft.v1";
|
|
13
16
|
function createBaseMsgIssueClass() {
|
|
14
17
|
return {
|
|
@@ -24,7 +27,7 @@ function createBaseMsgIssueClass() {
|
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
29
|
exports.MsgIssueClass = {
|
|
27
|
-
encode(message, writer =
|
|
30
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
28
31
|
if (message.issuer !== "") {
|
|
29
32
|
writer.uint32(10).string(message.issuer);
|
|
30
33
|
}
|
|
@@ -57,60 +60,67 @@ exports.MsgIssueClass = {
|
|
|
57
60
|
return writer;
|
|
58
61
|
},
|
|
59
62
|
decode(input, length) {
|
|
60
|
-
const reader = input instanceof
|
|
63
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
61
64
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
62
65
|
const message = createBaseMsgIssueClass();
|
|
63
66
|
while (reader.pos < end) {
|
|
64
67
|
const tag = reader.uint32();
|
|
65
68
|
switch (tag >>> 3) {
|
|
66
|
-
case 1:
|
|
67
|
-
if (tag
|
|
69
|
+
case 1: {
|
|
70
|
+
if (tag !== 10) {
|
|
68
71
|
break;
|
|
69
72
|
}
|
|
70
73
|
message.issuer = reader.string();
|
|
71
74
|
continue;
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
}
|
|
76
|
+
case 2: {
|
|
77
|
+
if (tag !== 18) {
|
|
74
78
|
break;
|
|
75
79
|
}
|
|
76
80
|
message.symbol = reader.string();
|
|
77
81
|
continue;
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
}
|
|
83
|
+
case 3: {
|
|
84
|
+
if (tag !== 26) {
|
|
80
85
|
break;
|
|
81
86
|
}
|
|
82
87
|
message.name = reader.string();
|
|
83
88
|
continue;
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
}
|
|
90
|
+
case 4: {
|
|
91
|
+
if (tag !== 34) {
|
|
86
92
|
break;
|
|
87
93
|
}
|
|
88
94
|
message.description = reader.string();
|
|
89
95
|
continue;
|
|
90
|
-
|
|
91
|
-
|
|
96
|
+
}
|
|
97
|
+
case 5: {
|
|
98
|
+
if (tag !== 42) {
|
|
92
99
|
break;
|
|
93
100
|
}
|
|
94
101
|
message.uri = reader.string();
|
|
95
102
|
continue;
|
|
96
|
-
|
|
97
|
-
|
|
103
|
+
}
|
|
104
|
+
case 6: {
|
|
105
|
+
if (tag !== 50) {
|
|
98
106
|
break;
|
|
99
107
|
}
|
|
100
108
|
message.uriHash = reader.string();
|
|
101
109
|
continue;
|
|
102
|
-
|
|
103
|
-
|
|
110
|
+
}
|
|
111
|
+
case 7: {
|
|
112
|
+
if (tag !== 58) {
|
|
104
113
|
break;
|
|
105
114
|
}
|
|
106
115
|
message.data = any_1.Any.decode(reader, reader.uint32());
|
|
107
116
|
continue;
|
|
108
|
-
|
|
109
|
-
|
|
117
|
+
}
|
|
118
|
+
case 8: {
|
|
119
|
+
if (tag === 64) {
|
|
110
120
|
message.features.push(reader.int32());
|
|
111
121
|
continue;
|
|
112
122
|
}
|
|
113
|
-
if (tag
|
|
123
|
+
if (tag === 66) {
|
|
114
124
|
const end2 = reader.uint32() + reader.pos;
|
|
115
125
|
while (reader.pos < end2) {
|
|
116
126
|
message.features.push(reader.int32());
|
|
@@ -118,74 +128,89 @@ exports.MsgIssueClass = {
|
|
|
118
128
|
continue;
|
|
119
129
|
}
|
|
120
130
|
break;
|
|
121
|
-
|
|
122
|
-
|
|
131
|
+
}
|
|
132
|
+
case 9: {
|
|
133
|
+
if (tag !== 74) {
|
|
123
134
|
break;
|
|
124
135
|
}
|
|
125
136
|
message.royaltyRate = reader.string();
|
|
126
137
|
continue;
|
|
138
|
+
}
|
|
127
139
|
}
|
|
128
|
-
if ((tag & 7)
|
|
140
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
129
141
|
break;
|
|
130
142
|
}
|
|
131
|
-
reader.
|
|
143
|
+
reader.skip(tag & 7);
|
|
132
144
|
}
|
|
133
145
|
return message;
|
|
134
146
|
},
|
|
135
147
|
fromJSON(object) {
|
|
136
148
|
return {
|
|
137
|
-
issuer: isSet(object.issuer) ? String(object.issuer) : "",
|
|
138
|
-
symbol: isSet(object.symbol) ? String(object.symbol) : "",
|
|
139
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
140
|
-
description: isSet(object.description)
|
|
141
|
-
|
|
142
|
-
|
|
149
|
+
issuer: isSet(object.issuer) ? globalThis.String(object.issuer) : "",
|
|
150
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
151
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
152
|
+
description: isSet(object.description)
|
|
153
|
+
? globalThis.String(object.description)
|
|
154
|
+
: "",
|
|
155
|
+
uri: isSet(object.uri) ? globalThis.String(object.uri) : "",
|
|
156
|
+
uriHash: isSet(object.uriHash) ? globalThis.String(object.uriHash) : "",
|
|
143
157
|
data: isSet(object.data) ? any_1.Any.fromJSON(object.data) : undefined,
|
|
144
|
-
features: Array.isArray(object
|
|
158
|
+
features: globalThis.Array.isArray(object?.features)
|
|
145
159
|
? object.features.map((e) => (0, nft_1.classFeatureFromJSON)(e))
|
|
146
160
|
: [],
|
|
147
|
-
royaltyRate: isSet(object.royaltyRate)
|
|
161
|
+
royaltyRate: isSet(object.royaltyRate)
|
|
162
|
+
? globalThis.String(object.royaltyRate)
|
|
163
|
+
: "",
|
|
148
164
|
};
|
|
149
165
|
},
|
|
150
166
|
toJSON(message) {
|
|
151
167
|
const obj = {};
|
|
152
|
-
message.issuer !==
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
message.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
message.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if (message.
|
|
168
|
+
if (message.issuer !== "") {
|
|
169
|
+
obj.issuer = message.issuer;
|
|
170
|
+
}
|
|
171
|
+
if (message.symbol !== "") {
|
|
172
|
+
obj.symbol = message.symbol;
|
|
173
|
+
}
|
|
174
|
+
if (message.name !== "") {
|
|
175
|
+
obj.name = message.name;
|
|
176
|
+
}
|
|
177
|
+
if (message.description !== "") {
|
|
178
|
+
obj.description = message.description;
|
|
179
|
+
}
|
|
180
|
+
if (message.uri !== "") {
|
|
181
|
+
obj.uri = message.uri;
|
|
182
|
+
}
|
|
183
|
+
if (message.uriHash !== "") {
|
|
184
|
+
obj.uriHash = message.uriHash;
|
|
185
|
+
}
|
|
186
|
+
if (message.data !== undefined) {
|
|
187
|
+
obj.data = any_1.Any.toJSON(message.data);
|
|
188
|
+
}
|
|
189
|
+
if (message.features?.length) {
|
|
162
190
|
obj.features = message.features.map((e) => (0, nft_1.classFeatureToJSON)(e));
|
|
163
191
|
}
|
|
164
|
-
|
|
165
|
-
obj.
|
|
192
|
+
if (message.royaltyRate !== "") {
|
|
193
|
+
obj.royaltyRate = message.royaltyRate;
|
|
166
194
|
}
|
|
167
|
-
message.royaltyRate !== undefined &&
|
|
168
|
-
(obj.royaltyRate = message.royaltyRate);
|
|
169
195
|
return obj;
|
|
170
196
|
},
|
|
171
197
|
create(base) {
|
|
172
|
-
return exports.MsgIssueClass.fromPartial(base
|
|
198
|
+
return exports.MsgIssueClass.fromPartial(base ?? {});
|
|
173
199
|
},
|
|
174
200
|
fromPartial(object) {
|
|
175
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
176
201
|
const message = createBaseMsgIssueClass();
|
|
177
|
-
message.issuer =
|
|
178
|
-
message.symbol =
|
|
179
|
-
message.name =
|
|
180
|
-
message.description =
|
|
181
|
-
message.uri =
|
|
182
|
-
message.uriHash =
|
|
202
|
+
message.issuer = object.issuer ?? "";
|
|
203
|
+
message.symbol = object.symbol ?? "";
|
|
204
|
+
message.name = object.name ?? "";
|
|
205
|
+
message.description = object.description ?? "";
|
|
206
|
+
message.uri = object.uri ?? "";
|
|
207
|
+
message.uriHash = object.uriHash ?? "";
|
|
183
208
|
message.data =
|
|
184
209
|
object.data !== undefined && object.data !== null
|
|
185
210
|
? any_1.Any.fromPartial(object.data)
|
|
186
211
|
: undefined;
|
|
187
|
-
message.features =
|
|
188
|
-
message.royaltyRate =
|
|
212
|
+
message.features = object.features?.map((e) => e) || [];
|
|
213
|
+
message.royaltyRate = object.royaltyRate ?? "";
|
|
189
214
|
return message;
|
|
190
215
|
},
|
|
191
216
|
};
|
|
@@ -201,7 +226,7 @@ function createBaseMsgMint() {
|
|
|
201
226
|
};
|
|
202
227
|
}
|
|
203
228
|
exports.MsgMint = {
|
|
204
|
-
encode(message, writer =
|
|
229
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
205
230
|
if (message.sender !== "") {
|
|
206
231
|
writer.uint32(10).string(message.sender);
|
|
207
232
|
}
|
|
@@ -226,101 +251,223 @@ exports.MsgMint = {
|
|
|
226
251
|
return writer;
|
|
227
252
|
},
|
|
228
253
|
decode(input, length) {
|
|
229
|
-
const reader = input instanceof
|
|
254
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
230
255
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
231
256
|
const message = createBaseMsgMint();
|
|
232
257
|
while (reader.pos < end) {
|
|
233
258
|
const tag = reader.uint32();
|
|
234
259
|
switch (tag >>> 3) {
|
|
235
|
-
case 1:
|
|
236
|
-
if (tag
|
|
260
|
+
case 1: {
|
|
261
|
+
if (tag !== 10) {
|
|
237
262
|
break;
|
|
238
263
|
}
|
|
239
264
|
message.sender = reader.string();
|
|
240
265
|
continue;
|
|
241
|
-
|
|
242
|
-
|
|
266
|
+
}
|
|
267
|
+
case 2: {
|
|
268
|
+
if (tag !== 18) {
|
|
243
269
|
break;
|
|
244
270
|
}
|
|
245
271
|
message.classId = reader.string();
|
|
246
272
|
continue;
|
|
247
|
-
|
|
248
|
-
|
|
273
|
+
}
|
|
274
|
+
case 3: {
|
|
275
|
+
if (tag !== 26) {
|
|
249
276
|
break;
|
|
250
277
|
}
|
|
251
278
|
message.id = reader.string();
|
|
252
279
|
continue;
|
|
253
|
-
|
|
254
|
-
|
|
280
|
+
}
|
|
281
|
+
case 4: {
|
|
282
|
+
if (tag !== 34) {
|
|
255
283
|
break;
|
|
256
284
|
}
|
|
257
285
|
message.uri = reader.string();
|
|
258
286
|
continue;
|
|
259
|
-
|
|
260
|
-
|
|
287
|
+
}
|
|
288
|
+
case 5: {
|
|
289
|
+
if (tag !== 42) {
|
|
261
290
|
break;
|
|
262
291
|
}
|
|
263
292
|
message.uriHash = reader.string();
|
|
264
293
|
continue;
|
|
265
|
-
|
|
266
|
-
|
|
294
|
+
}
|
|
295
|
+
case 6: {
|
|
296
|
+
if (tag !== 50) {
|
|
267
297
|
break;
|
|
268
298
|
}
|
|
269
299
|
message.data = any_1.Any.decode(reader, reader.uint32());
|
|
270
300
|
continue;
|
|
271
|
-
|
|
272
|
-
|
|
301
|
+
}
|
|
302
|
+
case 7: {
|
|
303
|
+
if (tag !== 58) {
|
|
273
304
|
break;
|
|
274
305
|
}
|
|
275
306
|
message.recipient = reader.string();
|
|
276
307
|
continue;
|
|
308
|
+
}
|
|
277
309
|
}
|
|
278
|
-
if ((tag & 7)
|
|
310
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
279
311
|
break;
|
|
280
312
|
}
|
|
281
|
-
reader.
|
|
313
|
+
reader.skip(tag & 7);
|
|
282
314
|
}
|
|
283
315
|
return message;
|
|
284
316
|
},
|
|
285
317
|
fromJSON(object) {
|
|
286
318
|
return {
|
|
287
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
288
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
289
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
290
|
-
uri: isSet(object.uri) ? String(object.uri) : "",
|
|
291
|
-
uriHash: isSet(object.uriHash) ? String(object.uriHash) : "",
|
|
319
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
320
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
321
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
322
|
+
uri: isSet(object.uri) ? globalThis.String(object.uri) : "",
|
|
323
|
+
uriHash: isSet(object.uriHash) ? globalThis.String(object.uriHash) : "",
|
|
292
324
|
data: isSet(object.data) ? any_1.Any.fromJSON(object.data) : undefined,
|
|
293
|
-
recipient: isSet(object.recipient)
|
|
325
|
+
recipient: isSet(object.recipient)
|
|
326
|
+
? globalThis.String(object.recipient)
|
|
327
|
+
: "",
|
|
294
328
|
};
|
|
295
329
|
},
|
|
296
330
|
toJSON(message) {
|
|
297
331
|
const obj = {};
|
|
298
|
-
message.sender !==
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
message.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
332
|
+
if (message.sender !== "") {
|
|
333
|
+
obj.sender = message.sender;
|
|
334
|
+
}
|
|
335
|
+
if (message.classId !== "") {
|
|
336
|
+
obj.classId = message.classId;
|
|
337
|
+
}
|
|
338
|
+
if (message.id !== "") {
|
|
339
|
+
obj.id = message.id;
|
|
340
|
+
}
|
|
341
|
+
if (message.uri !== "") {
|
|
342
|
+
obj.uri = message.uri;
|
|
343
|
+
}
|
|
344
|
+
if (message.uriHash !== "") {
|
|
345
|
+
obj.uriHash = message.uriHash;
|
|
346
|
+
}
|
|
347
|
+
if (message.data !== undefined) {
|
|
348
|
+
obj.data = any_1.Any.toJSON(message.data);
|
|
349
|
+
}
|
|
350
|
+
if (message.recipient !== "") {
|
|
351
|
+
obj.recipient = message.recipient;
|
|
352
|
+
}
|
|
306
353
|
return obj;
|
|
307
354
|
},
|
|
308
355
|
create(base) {
|
|
309
|
-
return exports.MsgMint.fromPartial(base
|
|
356
|
+
return exports.MsgMint.fromPartial(base ?? {});
|
|
310
357
|
},
|
|
311
358
|
fromPartial(object) {
|
|
312
|
-
var _a, _b, _c, _d, _e, _f;
|
|
313
359
|
const message = createBaseMsgMint();
|
|
314
|
-
message.sender =
|
|
315
|
-
message.classId =
|
|
316
|
-
message.id =
|
|
317
|
-
message.uri =
|
|
318
|
-
message.uriHash =
|
|
360
|
+
message.sender = object.sender ?? "";
|
|
361
|
+
message.classId = object.classId ?? "";
|
|
362
|
+
message.id = object.id ?? "";
|
|
363
|
+
message.uri = object.uri ?? "";
|
|
364
|
+
message.uriHash = object.uriHash ?? "";
|
|
319
365
|
message.data =
|
|
320
366
|
object.data !== undefined && object.data !== null
|
|
321
367
|
? any_1.Any.fromPartial(object.data)
|
|
322
368
|
: undefined;
|
|
323
|
-
message.recipient =
|
|
369
|
+
message.recipient = object.recipient ?? "";
|
|
370
|
+
return message;
|
|
371
|
+
},
|
|
372
|
+
};
|
|
373
|
+
function createBaseMsgUpdateData() {
|
|
374
|
+
return { sender: "", classId: "", id: "", items: [] };
|
|
375
|
+
}
|
|
376
|
+
exports.MsgUpdateData = {
|
|
377
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
378
|
+
if (message.sender !== "") {
|
|
379
|
+
writer.uint32(10).string(message.sender);
|
|
380
|
+
}
|
|
381
|
+
if (message.classId !== "") {
|
|
382
|
+
writer.uint32(18).string(message.classId);
|
|
383
|
+
}
|
|
384
|
+
if (message.id !== "") {
|
|
385
|
+
writer.uint32(26).string(message.id);
|
|
386
|
+
}
|
|
387
|
+
for (const v of message.items) {
|
|
388
|
+
types_1.DataDynamicIndexedItem.encode(v, writer.uint32(34).fork()).ldelim();
|
|
389
|
+
}
|
|
390
|
+
return writer;
|
|
391
|
+
},
|
|
392
|
+
decode(input, length) {
|
|
393
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
394
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
395
|
+
const message = createBaseMsgUpdateData();
|
|
396
|
+
while (reader.pos < end) {
|
|
397
|
+
const tag = reader.uint32();
|
|
398
|
+
switch (tag >>> 3) {
|
|
399
|
+
case 1: {
|
|
400
|
+
if (tag !== 10) {
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
message.sender = reader.string();
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
case 2: {
|
|
407
|
+
if (tag !== 18) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
message.classId = reader.string();
|
|
411
|
+
continue;
|
|
412
|
+
}
|
|
413
|
+
case 3: {
|
|
414
|
+
if (tag !== 26) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
message.id = reader.string();
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
case 4: {
|
|
421
|
+
if (tag !== 34) {
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
message.items.push(types_1.DataDynamicIndexedItem.decode(reader, reader.uint32()));
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
reader.skip(tag & 7);
|
|
432
|
+
}
|
|
433
|
+
return message;
|
|
434
|
+
},
|
|
435
|
+
fromJSON(object) {
|
|
436
|
+
return {
|
|
437
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
438
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
439
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
440
|
+
items: globalThis.Array.isArray(object?.items)
|
|
441
|
+
? object.items.map((e) => types_1.DataDynamicIndexedItem.fromJSON(e))
|
|
442
|
+
: [],
|
|
443
|
+
};
|
|
444
|
+
},
|
|
445
|
+
toJSON(message) {
|
|
446
|
+
const obj = {};
|
|
447
|
+
if (message.sender !== "") {
|
|
448
|
+
obj.sender = message.sender;
|
|
449
|
+
}
|
|
450
|
+
if (message.classId !== "") {
|
|
451
|
+
obj.classId = message.classId;
|
|
452
|
+
}
|
|
453
|
+
if (message.id !== "") {
|
|
454
|
+
obj.id = message.id;
|
|
455
|
+
}
|
|
456
|
+
if (message.items?.length) {
|
|
457
|
+
obj.items = message.items.map((e) => types_1.DataDynamicIndexedItem.toJSON(e));
|
|
458
|
+
}
|
|
459
|
+
return obj;
|
|
460
|
+
},
|
|
461
|
+
create(base) {
|
|
462
|
+
return exports.MsgUpdateData.fromPartial(base ?? {});
|
|
463
|
+
},
|
|
464
|
+
fromPartial(object) {
|
|
465
|
+
const message = createBaseMsgUpdateData();
|
|
466
|
+
message.sender = object.sender ?? "";
|
|
467
|
+
message.classId = object.classId ?? "";
|
|
468
|
+
message.id = object.id ?? "";
|
|
469
|
+
message.items =
|
|
470
|
+
object.items?.map((e) => types_1.DataDynamicIndexedItem.fromPartial(e)) || [];
|
|
324
471
|
return message;
|
|
325
472
|
},
|
|
326
473
|
};
|
|
@@ -328,7 +475,7 @@ function createBaseMsgBurn() {
|
|
|
328
475
|
return { sender: "", classId: "", id: "" };
|
|
329
476
|
}
|
|
330
477
|
exports.MsgBurn = {
|
|
331
|
-
encode(message, writer =
|
|
478
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
332
479
|
if (message.sender !== "") {
|
|
333
480
|
writer.uint32(10).string(message.sender);
|
|
334
481
|
}
|
|
@@ -341,61 +488,69 @@ exports.MsgBurn = {
|
|
|
341
488
|
return writer;
|
|
342
489
|
},
|
|
343
490
|
decode(input, length) {
|
|
344
|
-
const reader = input instanceof
|
|
491
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
345
492
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
346
493
|
const message = createBaseMsgBurn();
|
|
347
494
|
while (reader.pos < end) {
|
|
348
495
|
const tag = reader.uint32();
|
|
349
496
|
switch (tag >>> 3) {
|
|
350
|
-
case 1:
|
|
351
|
-
if (tag
|
|
497
|
+
case 1: {
|
|
498
|
+
if (tag !== 10) {
|
|
352
499
|
break;
|
|
353
500
|
}
|
|
354
501
|
message.sender = reader.string();
|
|
355
502
|
continue;
|
|
356
|
-
|
|
357
|
-
|
|
503
|
+
}
|
|
504
|
+
case 2: {
|
|
505
|
+
if (tag !== 18) {
|
|
358
506
|
break;
|
|
359
507
|
}
|
|
360
508
|
message.classId = reader.string();
|
|
361
509
|
continue;
|
|
362
|
-
|
|
363
|
-
|
|
510
|
+
}
|
|
511
|
+
case 3: {
|
|
512
|
+
if (tag !== 26) {
|
|
364
513
|
break;
|
|
365
514
|
}
|
|
366
515
|
message.id = reader.string();
|
|
367
516
|
continue;
|
|
517
|
+
}
|
|
368
518
|
}
|
|
369
|
-
if ((tag & 7)
|
|
519
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
370
520
|
break;
|
|
371
521
|
}
|
|
372
|
-
reader.
|
|
522
|
+
reader.skip(tag & 7);
|
|
373
523
|
}
|
|
374
524
|
return message;
|
|
375
525
|
},
|
|
376
526
|
fromJSON(object) {
|
|
377
527
|
return {
|
|
378
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
379
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
380
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
528
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
529
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
530
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
381
531
|
};
|
|
382
532
|
},
|
|
383
533
|
toJSON(message) {
|
|
384
534
|
const obj = {};
|
|
385
|
-
message.sender !==
|
|
386
|
-
|
|
387
|
-
|
|
535
|
+
if (message.sender !== "") {
|
|
536
|
+
obj.sender = message.sender;
|
|
537
|
+
}
|
|
538
|
+
if (message.classId !== "") {
|
|
539
|
+
obj.classId = message.classId;
|
|
540
|
+
}
|
|
541
|
+
if (message.id !== "") {
|
|
542
|
+
obj.id = message.id;
|
|
543
|
+
}
|
|
388
544
|
return obj;
|
|
389
545
|
},
|
|
390
546
|
create(base) {
|
|
391
|
-
return exports.MsgBurn.fromPartial(base
|
|
547
|
+
return exports.MsgBurn.fromPartial(base ?? {});
|
|
392
548
|
},
|
|
393
549
|
fromPartial(object) {
|
|
394
|
-
var _a, _b, _c;
|
|
395
550
|
const message = createBaseMsgBurn();
|
|
396
|
-
message.sender =
|
|
397
|
-
message.classId =
|
|
398
|
-
message.id =
|
|
551
|
+
message.sender = object.sender ?? "";
|
|
552
|
+
message.classId = object.classId ?? "";
|
|
553
|
+
message.id = object.id ?? "";
|
|
399
554
|
return message;
|
|
400
555
|
},
|
|
401
556
|
};
|
|
@@ -403,7 +558,7 @@ function createBaseMsgFreeze() {
|
|
|
403
558
|
return { sender: "", classId: "", id: "" };
|
|
404
559
|
}
|
|
405
560
|
exports.MsgFreeze = {
|
|
406
|
-
encode(message, writer =
|
|
561
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
407
562
|
if (message.sender !== "") {
|
|
408
563
|
writer.uint32(10).string(message.sender);
|
|
409
564
|
}
|
|
@@ -416,61 +571,69 @@ exports.MsgFreeze = {
|
|
|
416
571
|
return writer;
|
|
417
572
|
},
|
|
418
573
|
decode(input, length) {
|
|
419
|
-
const reader = input instanceof
|
|
574
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
420
575
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
421
576
|
const message = createBaseMsgFreeze();
|
|
422
577
|
while (reader.pos < end) {
|
|
423
578
|
const tag = reader.uint32();
|
|
424
579
|
switch (tag >>> 3) {
|
|
425
|
-
case 1:
|
|
426
|
-
if (tag
|
|
580
|
+
case 1: {
|
|
581
|
+
if (tag !== 10) {
|
|
427
582
|
break;
|
|
428
583
|
}
|
|
429
584
|
message.sender = reader.string();
|
|
430
585
|
continue;
|
|
431
|
-
|
|
432
|
-
|
|
586
|
+
}
|
|
587
|
+
case 2: {
|
|
588
|
+
if (tag !== 18) {
|
|
433
589
|
break;
|
|
434
590
|
}
|
|
435
591
|
message.classId = reader.string();
|
|
436
592
|
continue;
|
|
437
|
-
|
|
438
|
-
|
|
593
|
+
}
|
|
594
|
+
case 3: {
|
|
595
|
+
if (tag !== 26) {
|
|
439
596
|
break;
|
|
440
597
|
}
|
|
441
598
|
message.id = reader.string();
|
|
442
599
|
continue;
|
|
600
|
+
}
|
|
443
601
|
}
|
|
444
|
-
if ((tag & 7)
|
|
602
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
445
603
|
break;
|
|
446
604
|
}
|
|
447
|
-
reader.
|
|
605
|
+
reader.skip(tag & 7);
|
|
448
606
|
}
|
|
449
607
|
return message;
|
|
450
608
|
},
|
|
451
609
|
fromJSON(object) {
|
|
452
610
|
return {
|
|
453
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
454
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
455
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
611
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
612
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
613
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
456
614
|
};
|
|
457
615
|
},
|
|
458
616
|
toJSON(message) {
|
|
459
617
|
const obj = {};
|
|
460
|
-
message.sender !==
|
|
461
|
-
|
|
462
|
-
|
|
618
|
+
if (message.sender !== "") {
|
|
619
|
+
obj.sender = message.sender;
|
|
620
|
+
}
|
|
621
|
+
if (message.classId !== "") {
|
|
622
|
+
obj.classId = message.classId;
|
|
623
|
+
}
|
|
624
|
+
if (message.id !== "") {
|
|
625
|
+
obj.id = message.id;
|
|
626
|
+
}
|
|
463
627
|
return obj;
|
|
464
628
|
},
|
|
465
629
|
create(base) {
|
|
466
|
-
return exports.MsgFreeze.fromPartial(base
|
|
630
|
+
return exports.MsgFreeze.fromPartial(base ?? {});
|
|
467
631
|
},
|
|
468
632
|
fromPartial(object) {
|
|
469
|
-
var _a, _b, _c;
|
|
470
633
|
const message = createBaseMsgFreeze();
|
|
471
|
-
message.sender =
|
|
472
|
-
message.classId =
|
|
473
|
-
message.id =
|
|
634
|
+
message.sender = object.sender ?? "";
|
|
635
|
+
message.classId = object.classId ?? "";
|
|
636
|
+
message.id = object.id ?? "";
|
|
474
637
|
return message;
|
|
475
638
|
},
|
|
476
639
|
};
|
|
@@ -478,7 +641,7 @@ function createBaseMsgUnfreeze() {
|
|
|
478
641
|
return { sender: "", classId: "", id: "" };
|
|
479
642
|
}
|
|
480
643
|
exports.MsgUnfreeze = {
|
|
481
|
-
encode(message, writer =
|
|
644
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
482
645
|
if (message.sender !== "") {
|
|
483
646
|
writer.uint32(10).string(message.sender);
|
|
484
647
|
}
|
|
@@ -491,61 +654,235 @@ exports.MsgUnfreeze = {
|
|
|
491
654
|
return writer;
|
|
492
655
|
},
|
|
493
656
|
decode(input, length) {
|
|
494
|
-
const reader = input instanceof
|
|
657
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
495
658
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
496
659
|
const message = createBaseMsgUnfreeze();
|
|
497
660
|
while (reader.pos < end) {
|
|
498
661
|
const tag = reader.uint32();
|
|
499
662
|
switch (tag >>> 3) {
|
|
500
|
-
case 1:
|
|
501
|
-
if (tag
|
|
663
|
+
case 1: {
|
|
664
|
+
if (tag !== 10) {
|
|
502
665
|
break;
|
|
503
666
|
}
|
|
504
667
|
message.sender = reader.string();
|
|
505
668
|
continue;
|
|
506
|
-
|
|
507
|
-
|
|
669
|
+
}
|
|
670
|
+
case 2: {
|
|
671
|
+
if (tag !== 18) {
|
|
508
672
|
break;
|
|
509
673
|
}
|
|
510
674
|
message.classId = reader.string();
|
|
511
675
|
continue;
|
|
512
|
-
|
|
513
|
-
|
|
676
|
+
}
|
|
677
|
+
case 3: {
|
|
678
|
+
if (tag !== 26) {
|
|
514
679
|
break;
|
|
515
680
|
}
|
|
516
681
|
message.id = reader.string();
|
|
517
682
|
continue;
|
|
683
|
+
}
|
|
518
684
|
}
|
|
519
|
-
if ((tag & 7)
|
|
685
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
520
686
|
break;
|
|
521
687
|
}
|
|
522
|
-
reader.
|
|
688
|
+
reader.skip(tag & 7);
|
|
523
689
|
}
|
|
524
690
|
return message;
|
|
525
691
|
},
|
|
526
692
|
fromJSON(object) {
|
|
527
693
|
return {
|
|
528
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
529
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
530
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
694
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
695
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
696
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
531
697
|
};
|
|
532
698
|
},
|
|
533
699
|
toJSON(message) {
|
|
534
700
|
const obj = {};
|
|
535
|
-
message.sender !==
|
|
536
|
-
|
|
537
|
-
|
|
701
|
+
if (message.sender !== "") {
|
|
702
|
+
obj.sender = message.sender;
|
|
703
|
+
}
|
|
704
|
+
if (message.classId !== "") {
|
|
705
|
+
obj.classId = message.classId;
|
|
706
|
+
}
|
|
707
|
+
if (message.id !== "") {
|
|
708
|
+
obj.id = message.id;
|
|
709
|
+
}
|
|
538
710
|
return obj;
|
|
539
711
|
},
|
|
540
712
|
create(base) {
|
|
541
|
-
return exports.MsgUnfreeze.fromPartial(base
|
|
713
|
+
return exports.MsgUnfreeze.fromPartial(base ?? {});
|
|
542
714
|
},
|
|
543
715
|
fromPartial(object) {
|
|
544
|
-
var _a, _b, _c;
|
|
545
716
|
const message = createBaseMsgUnfreeze();
|
|
546
|
-
message.sender =
|
|
547
|
-
message.classId =
|
|
548
|
-
message.id =
|
|
717
|
+
message.sender = object.sender ?? "";
|
|
718
|
+
message.classId = object.classId ?? "";
|
|
719
|
+
message.id = object.id ?? "";
|
|
720
|
+
return message;
|
|
721
|
+
},
|
|
722
|
+
};
|
|
723
|
+
function createBaseMsgClassFreeze() {
|
|
724
|
+
return { sender: "", classId: "", account: "" };
|
|
725
|
+
}
|
|
726
|
+
exports.MsgClassFreeze = {
|
|
727
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
728
|
+
if (message.sender !== "") {
|
|
729
|
+
writer.uint32(10).string(message.sender);
|
|
730
|
+
}
|
|
731
|
+
if (message.classId !== "") {
|
|
732
|
+
writer.uint32(18).string(message.classId);
|
|
733
|
+
}
|
|
734
|
+
if (message.account !== "") {
|
|
735
|
+
writer.uint32(26).string(message.account);
|
|
736
|
+
}
|
|
737
|
+
return writer;
|
|
738
|
+
},
|
|
739
|
+
decode(input, length) {
|
|
740
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
741
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
742
|
+
const message = createBaseMsgClassFreeze();
|
|
743
|
+
while (reader.pos < end) {
|
|
744
|
+
const tag = reader.uint32();
|
|
745
|
+
switch (tag >>> 3) {
|
|
746
|
+
case 1: {
|
|
747
|
+
if (tag !== 10) {
|
|
748
|
+
break;
|
|
749
|
+
}
|
|
750
|
+
message.sender = reader.string();
|
|
751
|
+
continue;
|
|
752
|
+
}
|
|
753
|
+
case 2: {
|
|
754
|
+
if (tag !== 18) {
|
|
755
|
+
break;
|
|
756
|
+
}
|
|
757
|
+
message.classId = reader.string();
|
|
758
|
+
continue;
|
|
759
|
+
}
|
|
760
|
+
case 3: {
|
|
761
|
+
if (tag !== 26) {
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
764
|
+
message.account = reader.string();
|
|
765
|
+
continue;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
reader.skip(tag & 7);
|
|
772
|
+
}
|
|
773
|
+
return message;
|
|
774
|
+
},
|
|
775
|
+
fromJSON(object) {
|
|
776
|
+
return {
|
|
777
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
778
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
779
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
780
|
+
};
|
|
781
|
+
},
|
|
782
|
+
toJSON(message) {
|
|
783
|
+
const obj = {};
|
|
784
|
+
if (message.sender !== "") {
|
|
785
|
+
obj.sender = message.sender;
|
|
786
|
+
}
|
|
787
|
+
if (message.classId !== "") {
|
|
788
|
+
obj.classId = message.classId;
|
|
789
|
+
}
|
|
790
|
+
if (message.account !== "") {
|
|
791
|
+
obj.account = message.account;
|
|
792
|
+
}
|
|
793
|
+
return obj;
|
|
794
|
+
},
|
|
795
|
+
create(base) {
|
|
796
|
+
return exports.MsgClassFreeze.fromPartial(base ?? {});
|
|
797
|
+
},
|
|
798
|
+
fromPartial(object) {
|
|
799
|
+
const message = createBaseMsgClassFreeze();
|
|
800
|
+
message.sender = object.sender ?? "";
|
|
801
|
+
message.classId = object.classId ?? "";
|
|
802
|
+
message.account = object.account ?? "";
|
|
803
|
+
return message;
|
|
804
|
+
},
|
|
805
|
+
};
|
|
806
|
+
function createBaseMsgClassUnfreeze() {
|
|
807
|
+
return { sender: "", classId: "", account: "" };
|
|
808
|
+
}
|
|
809
|
+
exports.MsgClassUnfreeze = {
|
|
810
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
811
|
+
if (message.sender !== "") {
|
|
812
|
+
writer.uint32(10).string(message.sender);
|
|
813
|
+
}
|
|
814
|
+
if (message.classId !== "") {
|
|
815
|
+
writer.uint32(18).string(message.classId);
|
|
816
|
+
}
|
|
817
|
+
if (message.account !== "") {
|
|
818
|
+
writer.uint32(26).string(message.account);
|
|
819
|
+
}
|
|
820
|
+
return writer;
|
|
821
|
+
},
|
|
822
|
+
decode(input, length) {
|
|
823
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
824
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
825
|
+
const message = createBaseMsgClassUnfreeze();
|
|
826
|
+
while (reader.pos < end) {
|
|
827
|
+
const tag = reader.uint32();
|
|
828
|
+
switch (tag >>> 3) {
|
|
829
|
+
case 1: {
|
|
830
|
+
if (tag !== 10) {
|
|
831
|
+
break;
|
|
832
|
+
}
|
|
833
|
+
message.sender = reader.string();
|
|
834
|
+
continue;
|
|
835
|
+
}
|
|
836
|
+
case 2: {
|
|
837
|
+
if (tag !== 18) {
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
message.classId = reader.string();
|
|
841
|
+
continue;
|
|
842
|
+
}
|
|
843
|
+
case 3: {
|
|
844
|
+
if (tag !== 26) {
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
message.account = reader.string();
|
|
848
|
+
continue;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
reader.skip(tag & 7);
|
|
855
|
+
}
|
|
856
|
+
return message;
|
|
857
|
+
},
|
|
858
|
+
fromJSON(object) {
|
|
859
|
+
return {
|
|
860
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
861
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
862
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
863
|
+
};
|
|
864
|
+
},
|
|
865
|
+
toJSON(message) {
|
|
866
|
+
const obj = {};
|
|
867
|
+
if (message.sender !== "") {
|
|
868
|
+
obj.sender = message.sender;
|
|
869
|
+
}
|
|
870
|
+
if (message.classId !== "") {
|
|
871
|
+
obj.classId = message.classId;
|
|
872
|
+
}
|
|
873
|
+
if (message.account !== "") {
|
|
874
|
+
obj.account = message.account;
|
|
875
|
+
}
|
|
876
|
+
return obj;
|
|
877
|
+
},
|
|
878
|
+
create(base) {
|
|
879
|
+
return exports.MsgClassUnfreeze.fromPartial(base ?? {});
|
|
880
|
+
},
|
|
881
|
+
fromPartial(object) {
|
|
882
|
+
const message = createBaseMsgClassUnfreeze();
|
|
883
|
+
message.sender = object.sender ?? "";
|
|
884
|
+
message.classId = object.classId ?? "";
|
|
885
|
+
message.account = object.account ?? "";
|
|
549
886
|
return message;
|
|
550
887
|
},
|
|
551
888
|
};
|
|
@@ -553,7 +890,7 @@ function createBaseMsgAddToWhitelist() {
|
|
|
553
890
|
return { sender: "", classId: "", id: "", account: "" };
|
|
554
891
|
}
|
|
555
892
|
exports.MsgAddToWhitelist = {
|
|
556
|
-
encode(message, writer =
|
|
893
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
557
894
|
if (message.sender !== "") {
|
|
558
895
|
writer.uint32(10).string(message.sender);
|
|
559
896
|
}
|
|
@@ -569,70 +906,81 @@ exports.MsgAddToWhitelist = {
|
|
|
569
906
|
return writer;
|
|
570
907
|
},
|
|
571
908
|
decode(input, length) {
|
|
572
|
-
const reader = input instanceof
|
|
909
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
573
910
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
574
911
|
const message = createBaseMsgAddToWhitelist();
|
|
575
912
|
while (reader.pos < end) {
|
|
576
913
|
const tag = reader.uint32();
|
|
577
914
|
switch (tag >>> 3) {
|
|
578
|
-
case 1:
|
|
579
|
-
if (tag
|
|
915
|
+
case 1: {
|
|
916
|
+
if (tag !== 10) {
|
|
580
917
|
break;
|
|
581
918
|
}
|
|
582
919
|
message.sender = reader.string();
|
|
583
920
|
continue;
|
|
584
|
-
|
|
585
|
-
|
|
921
|
+
}
|
|
922
|
+
case 2: {
|
|
923
|
+
if (tag !== 18) {
|
|
586
924
|
break;
|
|
587
925
|
}
|
|
588
926
|
message.classId = reader.string();
|
|
589
927
|
continue;
|
|
590
|
-
|
|
591
|
-
|
|
928
|
+
}
|
|
929
|
+
case 3: {
|
|
930
|
+
if (tag !== 26) {
|
|
592
931
|
break;
|
|
593
932
|
}
|
|
594
933
|
message.id = reader.string();
|
|
595
934
|
continue;
|
|
596
|
-
|
|
597
|
-
|
|
935
|
+
}
|
|
936
|
+
case 4: {
|
|
937
|
+
if (tag !== 34) {
|
|
598
938
|
break;
|
|
599
939
|
}
|
|
600
940
|
message.account = reader.string();
|
|
601
941
|
continue;
|
|
942
|
+
}
|
|
602
943
|
}
|
|
603
|
-
if ((tag & 7)
|
|
944
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
604
945
|
break;
|
|
605
946
|
}
|
|
606
|
-
reader.
|
|
947
|
+
reader.skip(tag & 7);
|
|
607
948
|
}
|
|
608
949
|
return message;
|
|
609
950
|
},
|
|
610
951
|
fromJSON(object) {
|
|
611
952
|
return {
|
|
612
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
613
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
614
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
615
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
953
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
954
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
955
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
956
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
616
957
|
};
|
|
617
958
|
},
|
|
618
959
|
toJSON(message) {
|
|
619
960
|
const obj = {};
|
|
620
|
-
message.sender !==
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
message.
|
|
961
|
+
if (message.sender !== "") {
|
|
962
|
+
obj.sender = message.sender;
|
|
963
|
+
}
|
|
964
|
+
if (message.classId !== "") {
|
|
965
|
+
obj.classId = message.classId;
|
|
966
|
+
}
|
|
967
|
+
if (message.id !== "") {
|
|
968
|
+
obj.id = message.id;
|
|
969
|
+
}
|
|
970
|
+
if (message.account !== "") {
|
|
971
|
+
obj.account = message.account;
|
|
972
|
+
}
|
|
624
973
|
return obj;
|
|
625
974
|
},
|
|
626
975
|
create(base) {
|
|
627
|
-
return exports.MsgAddToWhitelist.fromPartial(base
|
|
976
|
+
return exports.MsgAddToWhitelist.fromPartial(base ?? {});
|
|
628
977
|
},
|
|
629
978
|
fromPartial(object) {
|
|
630
|
-
var _a, _b, _c, _d;
|
|
631
979
|
const message = createBaseMsgAddToWhitelist();
|
|
632
|
-
message.sender =
|
|
633
|
-
message.classId =
|
|
634
|
-
message.id =
|
|
635
|
-
message.account =
|
|
980
|
+
message.sender = object.sender ?? "";
|
|
981
|
+
message.classId = object.classId ?? "";
|
|
982
|
+
message.id = object.id ?? "";
|
|
983
|
+
message.account = object.account ?? "";
|
|
636
984
|
return message;
|
|
637
985
|
},
|
|
638
986
|
};
|
|
@@ -640,7 +988,7 @@ function createBaseMsgRemoveFromWhitelist() {
|
|
|
640
988
|
return { sender: "", classId: "", id: "", account: "" };
|
|
641
989
|
}
|
|
642
990
|
exports.MsgRemoveFromWhitelist = {
|
|
643
|
-
encode(message, writer =
|
|
991
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
644
992
|
if (message.sender !== "") {
|
|
645
993
|
writer.uint32(10).string(message.sender);
|
|
646
994
|
}
|
|
@@ -656,70 +1004,320 @@ exports.MsgRemoveFromWhitelist = {
|
|
|
656
1004
|
return writer;
|
|
657
1005
|
},
|
|
658
1006
|
decode(input, length) {
|
|
659
|
-
const reader = input instanceof
|
|
1007
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
660
1008
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
661
1009
|
const message = createBaseMsgRemoveFromWhitelist();
|
|
662
1010
|
while (reader.pos < end) {
|
|
663
1011
|
const tag = reader.uint32();
|
|
664
1012
|
switch (tag >>> 3) {
|
|
665
|
-
case 1:
|
|
666
|
-
if (tag
|
|
1013
|
+
case 1: {
|
|
1014
|
+
if (tag !== 10) {
|
|
667
1015
|
break;
|
|
668
1016
|
}
|
|
669
1017
|
message.sender = reader.string();
|
|
670
1018
|
continue;
|
|
671
|
-
|
|
672
|
-
|
|
1019
|
+
}
|
|
1020
|
+
case 2: {
|
|
1021
|
+
if (tag !== 18) {
|
|
673
1022
|
break;
|
|
674
1023
|
}
|
|
675
1024
|
message.classId = reader.string();
|
|
676
1025
|
continue;
|
|
677
|
-
|
|
678
|
-
|
|
1026
|
+
}
|
|
1027
|
+
case 3: {
|
|
1028
|
+
if (tag !== 26) {
|
|
679
1029
|
break;
|
|
680
1030
|
}
|
|
681
1031
|
message.id = reader.string();
|
|
682
1032
|
continue;
|
|
683
|
-
|
|
684
|
-
|
|
1033
|
+
}
|
|
1034
|
+
case 4: {
|
|
1035
|
+
if (tag !== 34) {
|
|
685
1036
|
break;
|
|
686
1037
|
}
|
|
687
1038
|
message.account = reader.string();
|
|
688
1039
|
continue;
|
|
1040
|
+
}
|
|
689
1041
|
}
|
|
690
|
-
if ((tag & 7)
|
|
1042
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
691
1043
|
break;
|
|
692
1044
|
}
|
|
693
|
-
reader.
|
|
1045
|
+
reader.skip(tag & 7);
|
|
694
1046
|
}
|
|
695
1047
|
return message;
|
|
696
1048
|
},
|
|
697
1049
|
fromJSON(object) {
|
|
698
1050
|
return {
|
|
699
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
700
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
701
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
702
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
1051
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
1052
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
1053
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1054
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
703
1055
|
};
|
|
704
1056
|
},
|
|
705
1057
|
toJSON(message) {
|
|
706
1058
|
const obj = {};
|
|
707
|
-
message.sender !==
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
message.
|
|
1059
|
+
if (message.sender !== "") {
|
|
1060
|
+
obj.sender = message.sender;
|
|
1061
|
+
}
|
|
1062
|
+
if (message.classId !== "") {
|
|
1063
|
+
obj.classId = message.classId;
|
|
1064
|
+
}
|
|
1065
|
+
if (message.id !== "") {
|
|
1066
|
+
obj.id = message.id;
|
|
1067
|
+
}
|
|
1068
|
+
if (message.account !== "") {
|
|
1069
|
+
obj.account = message.account;
|
|
1070
|
+
}
|
|
711
1071
|
return obj;
|
|
712
1072
|
},
|
|
713
1073
|
create(base) {
|
|
714
|
-
return exports.MsgRemoveFromWhitelist.fromPartial(base
|
|
1074
|
+
return exports.MsgRemoveFromWhitelist.fromPartial(base ?? {});
|
|
715
1075
|
},
|
|
716
1076
|
fromPartial(object) {
|
|
717
|
-
var _a, _b, _c, _d;
|
|
718
1077
|
const message = createBaseMsgRemoveFromWhitelist();
|
|
719
|
-
message.sender =
|
|
720
|
-
message.classId =
|
|
721
|
-
message.id =
|
|
722
|
-
message.account =
|
|
1078
|
+
message.sender = object.sender ?? "";
|
|
1079
|
+
message.classId = object.classId ?? "";
|
|
1080
|
+
message.id = object.id ?? "";
|
|
1081
|
+
message.account = object.account ?? "";
|
|
1082
|
+
return message;
|
|
1083
|
+
},
|
|
1084
|
+
};
|
|
1085
|
+
function createBaseMsgAddToClassWhitelist() {
|
|
1086
|
+
return { sender: "", classId: "", account: "" };
|
|
1087
|
+
}
|
|
1088
|
+
exports.MsgAddToClassWhitelist = {
|
|
1089
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1090
|
+
if (message.sender !== "") {
|
|
1091
|
+
writer.uint32(10).string(message.sender);
|
|
1092
|
+
}
|
|
1093
|
+
if (message.classId !== "") {
|
|
1094
|
+
writer.uint32(18).string(message.classId);
|
|
1095
|
+
}
|
|
1096
|
+
if (message.account !== "") {
|
|
1097
|
+
writer.uint32(26).string(message.account);
|
|
1098
|
+
}
|
|
1099
|
+
return writer;
|
|
1100
|
+
},
|
|
1101
|
+
decode(input, length) {
|
|
1102
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1103
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1104
|
+
const message = createBaseMsgAddToClassWhitelist();
|
|
1105
|
+
while (reader.pos < end) {
|
|
1106
|
+
const tag = reader.uint32();
|
|
1107
|
+
switch (tag >>> 3) {
|
|
1108
|
+
case 1: {
|
|
1109
|
+
if (tag !== 10) {
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
message.sender = reader.string();
|
|
1113
|
+
continue;
|
|
1114
|
+
}
|
|
1115
|
+
case 2: {
|
|
1116
|
+
if (tag !== 18) {
|
|
1117
|
+
break;
|
|
1118
|
+
}
|
|
1119
|
+
message.classId = reader.string();
|
|
1120
|
+
continue;
|
|
1121
|
+
}
|
|
1122
|
+
case 3: {
|
|
1123
|
+
if (tag !== 26) {
|
|
1124
|
+
break;
|
|
1125
|
+
}
|
|
1126
|
+
message.account = reader.string();
|
|
1127
|
+
continue;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1131
|
+
break;
|
|
1132
|
+
}
|
|
1133
|
+
reader.skip(tag & 7);
|
|
1134
|
+
}
|
|
1135
|
+
return message;
|
|
1136
|
+
},
|
|
1137
|
+
fromJSON(object) {
|
|
1138
|
+
return {
|
|
1139
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
1140
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
1141
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
1142
|
+
};
|
|
1143
|
+
},
|
|
1144
|
+
toJSON(message) {
|
|
1145
|
+
const obj = {};
|
|
1146
|
+
if (message.sender !== "") {
|
|
1147
|
+
obj.sender = message.sender;
|
|
1148
|
+
}
|
|
1149
|
+
if (message.classId !== "") {
|
|
1150
|
+
obj.classId = message.classId;
|
|
1151
|
+
}
|
|
1152
|
+
if (message.account !== "") {
|
|
1153
|
+
obj.account = message.account;
|
|
1154
|
+
}
|
|
1155
|
+
return obj;
|
|
1156
|
+
},
|
|
1157
|
+
create(base) {
|
|
1158
|
+
return exports.MsgAddToClassWhitelist.fromPartial(base ?? {});
|
|
1159
|
+
},
|
|
1160
|
+
fromPartial(object) {
|
|
1161
|
+
const message = createBaseMsgAddToClassWhitelist();
|
|
1162
|
+
message.sender = object.sender ?? "";
|
|
1163
|
+
message.classId = object.classId ?? "";
|
|
1164
|
+
message.account = object.account ?? "";
|
|
1165
|
+
return message;
|
|
1166
|
+
},
|
|
1167
|
+
};
|
|
1168
|
+
function createBaseMsgRemoveFromClassWhitelist() {
|
|
1169
|
+
return { sender: "", classId: "", account: "" };
|
|
1170
|
+
}
|
|
1171
|
+
exports.MsgRemoveFromClassWhitelist = {
|
|
1172
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1173
|
+
if (message.sender !== "") {
|
|
1174
|
+
writer.uint32(10).string(message.sender);
|
|
1175
|
+
}
|
|
1176
|
+
if (message.classId !== "") {
|
|
1177
|
+
writer.uint32(18).string(message.classId);
|
|
1178
|
+
}
|
|
1179
|
+
if (message.account !== "") {
|
|
1180
|
+
writer.uint32(26).string(message.account);
|
|
1181
|
+
}
|
|
1182
|
+
return writer;
|
|
1183
|
+
},
|
|
1184
|
+
decode(input, length) {
|
|
1185
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1186
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1187
|
+
const message = createBaseMsgRemoveFromClassWhitelist();
|
|
1188
|
+
while (reader.pos < end) {
|
|
1189
|
+
const tag = reader.uint32();
|
|
1190
|
+
switch (tag >>> 3) {
|
|
1191
|
+
case 1: {
|
|
1192
|
+
if (tag !== 10) {
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
1195
|
+
message.sender = reader.string();
|
|
1196
|
+
continue;
|
|
1197
|
+
}
|
|
1198
|
+
case 2: {
|
|
1199
|
+
if (tag !== 18) {
|
|
1200
|
+
break;
|
|
1201
|
+
}
|
|
1202
|
+
message.classId = reader.string();
|
|
1203
|
+
continue;
|
|
1204
|
+
}
|
|
1205
|
+
case 3: {
|
|
1206
|
+
if (tag !== 26) {
|
|
1207
|
+
break;
|
|
1208
|
+
}
|
|
1209
|
+
message.account = reader.string();
|
|
1210
|
+
continue;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
reader.skip(tag & 7);
|
|
1217
|
+
}
|
|
1218
|
+
return message;
|
|
1219
|
+
},
|
|
1220
|
+
fromJSON(object) {
|
|
1221
|
+
return {
|
|
1222
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
1223
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
1224
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
1225
|
+
};
|
|
1226
|
+
},
|
|
1227
|
+
toJSON(message) {
|
|
1228
|
+
const obj = {};
|
|
1229
|
+
if (message.sender !== "") {
|
|
1230
|
+
obj.sender = message.sender;
|
|
1231
|
+
}
|
|
1232
|
+
if (message.classId !== "") {
|
|
1233
|
+
obj.classId = message.classId;
|
|
1234
|
+
}
|
|
1235
|
+
if (message.account !== "") {
|
|
1236
|
+
obj.account = message.account;
|
|
1237
|
+
}
|
|
1238
|
+
return obj;
|
|
1239
|
+
},
|
|
1240
|
+
create(base) {
|
|
1241
|
+
return exports.MsgRemoveFromClassWhitelist.fromPartial(base ?? {});
|
|
1242
|
+
},
|
|
1243
|
+
fromPartial(object) {
|
|
1244
|
+
const message = createBaseMsgRemoveFromClassWhitelist();
|
|
1245
|
+
message.sender = object.sender ?? "";
|
|
1246
|
+
message.classId = object.classId ?? "";
|
|
1247
|
+
message.account = object.account ?? "";
|
|
1248
|
+
return message;
|
|
1249
|
+
},
|
|
1250
|
+
};
|
|
1251
|
+
function createBaseMsgUpdateParams() {
|
|
1252
|
+
return { authority: "", params: undefined };
|
|
1253
|
+
}
|
|
1254
|
+
exports.MsgUpdateParams = {
|
|
1255
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1256
|
+
if (message.authority !== "") {
|
|
1257
|
+
writer.uint32(10).string(message.authority);
|
|
1258
|
+
}
|
|
1259
|
+
if (message.params !== undefined) {
|
|
1260
|
+
params_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
1261
|
+
}
|
|
1262
|
+
return writer;
|
|
1263
|
+
},
|
|
1264
|
+
decode(input, length) {
|
|
1265
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1266
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1267
|
+
const message = createBaseMsgUpdateParams();
|
|
1268
|
+
while (reader.pos < end) {
|
|
1269
|
+
const tag = reader.uint32();
|
|
1270
|
+
switch (tag >>> 3) {
|
|
1271
|
+
case 1: {
|
|
1272
|
+
if (tag !== 10) {
|
|
1273
|
+
break;
|
|
1274
|
+
}
|
|
1275
|
+
message.authority = reader.string();
|
|
1276
|
+
continue;
|
|
1277
|
+
}
|
|
1278
|
+
case 2: {
|
|
1279
|
+
if (tag !== 18) {
|
|
1280
|
+
break;
|
|
1281
|
+
}
|
|
1282
|
+
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
1283
|
+
continue;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1287
|
+
break;
|
|
1288
|
+
}
|
|
1289
|
+
reader.skip(tag & 7);
|
|
1290
|
+
}
|
|
1291
|
+
return message;
|
|
1292
|
+
},
|
|
1293
|
+
fromJSON(object) {
|
|
1294
|
+
return {
|
|
1295
|
+
authority: isSet(object.authority)
|
|
1296
|
+
? globalThis.String(object.authority)
|
|
1297
|
+
: "",
|
|
1298
|
+
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
1299
|
+
};
|
|
1300
|
+
},
|
|
1301
|
+
toJSON(message) {
|
|
1302
|
+
const obj = {};
|
|
1303
|
+
if (message.authority !== "") {
|
|
1304
|
+
obj.authority = message.authority;
|
|
1305
|
+
}
|
|
1306
|
+
if (message.params !== undefined) {
|
|
1307
|
+
obj.params = params_1.Params.toJSON(message.params);
|
|
1308
|
+
}
|
|
1309
|
+
return obj;
|
|
1310
|
+
},
|
|
1311
|
+
create(base) {
|
|
1312
|
+
return exports.MsgUpdateParams.fromPartial(base ?? {});
|
|
1313
|
+
},
|
|
1314
|
+
fromPartial(object) {
|
|
1315
|
+
const message = createBaseMsgUpdateParams();
|
|
1316
|
+
message.authority = object.authority ?? "";
|
|
1317
|
+
message.params =
|
|
1318
|
+
object.params !== undefined && object.params !== null
|
|
1319
|
+
? params_1.Params.fromPartial(object.params)
|
|
1320
|
+
: undefined;
|
|
723
1321
|
return message;
|
|
724
1322
|
},
|
|
725
1323
|
};
|
|
@@ -727,21 +1325,21 @@ function createBaseEmptyResponse() {
|
|
|
727
1325
|
return {};
|
|
728
1326
|
}
|
|
729
1327
|
exports.EmptyResponse = {
|
|
730
|
-
encode(_, writer =
|
|
1328
|
+
encode(_, writer = new binary_1.BinaryWriter()) {
|
|
731
1329
|
return writer;
|
|
732
1330
|
},
|
|
733
1331
|
decode(input, length) {
|
|
734
|
-
const reader = input instanceof
|
|
1332
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
735
1333
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
736
1334
|
const message = createBaseEmptyResponse();
|
|
737
1335
|
while (reader.pos < end) {
|
|
738
1336
|
const tag = reader.uint32();
|
|
739
1337
|
switch (tag >>> 3) {
|
|
740
1338
|
}
|
|
741
|
-
if ((tag & 7)
|
|
1339
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
742
1340
|
break;
|
|
743
1341
|
}
|
|
744
|
-
reader.
|
|
1342
|
+
reader.skip(tag & 7);
|
|
745
1343
|
}
|
|
746
1344
|
return message;
|
|
747
1345
|
},
|
|
@@ -753,66 +1351,99 @@ exports.EmptyResponse = {
|
|
|
753
1351
|
return obj;
|
|
754
1352
|
},
|
|
755
1353
|
create(base) {
|
|
756
|
-
return exports.EmptyResponse.fromPartial(base
|
|
1354
|
+
return exports.EmptyResponse.fromPartial(base ?? {});
|
|
757
1355
|
},
|
|
758
1356
|
fromPartial(_) {
|
|
759
1357
|
const message = createBaseEmptyResponse();
|
|
760
1358
|
return message;
|
|
761
1359
|
},
|
|
762
1360
|
};
|
|
1361
|
+
exports.MsgServiceName = "coreum.asset.nft.v1.Msg";
|
|
763
1362
|
class MsgClientImpl {
|
|
764
1363
|
constructor(rpc, opts) {
|
|
765
|
-
this.service =
|
|
1364
|
+
this.service = opts?.service || exports.MsgServiceName;
|
|
766
1365
|
this.rpc = rpc;
|
|
767
1366
|
this.IssueClass = this.IssueClass.bind(this);
|
|
768
1367
|
this.Mint = this.Mint.bind(this);
|
|
1368
|
+
this.UpdateData = this.UpdateData.bind(this);
|
|
769
1369
|
this.Burn = this.Burn.bind(this);
|
|
770
1370
|
this.Freeze = this.Freeze.bind(this);
|
|
771
1371
|
this.Unfreeze = this.Unfreeze.bind(this);
|
|
772
1372
|
this.AddToWhitelist = this.AddToWhitelist.bind(this);
|
|
773
1373
|
this.RemoveFromWhitelist = this.RemoveFromWhitelist.bind(this);
|
|
1374
|
+
this.AddToClassWhitelist = this.AddToClassWhitelist.bind(this);
|
|
1375
|
+
this.RemoveFromClassWhitelist = this.RemoveFromClassWhitelist.bind(this);
|
|
1376
|
+
this.ClassFreeze = this.ClassFreeze.bind(this);
|
|
1377
|
+
this.ClassUnfreeze = this.ClassUnfreeze.bind(this);
|
|
1378
|
+
this.UpdateParams = this.UpdateParams.bind(this);
|
|
774
1379
|
}
|
|
775
1380
|
IssueClass(request) {
|
|
776
1381
|
const data = exports.MsgIssueClass.encode(request).finish();
|
|
777
1382
|
const promise = this.rpc.request(this.service, "IssueClass", data);
|
|
778
|
-
return promise.then((data) => exports.EmptyResponse.decode(
|
|
1383
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
779
1384
|
}
|
|
780
1385
|
Mint(request) {
|
|
781
1386
|
const data = exports.MsgMint.encode(request).finish();
|
|
782
1387
|
const promise = this.rpc.request(this.service, "Mint", data);
|
|
783
|
-
return promise.then((data) => exports.EmptyResponse.decode(
|
|
1388
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
1389
|
+
}
|
|
1390
|
+
UpdateData(request) {
|
|
1391
|
+
const data = exports.MsgUpdateData.encode(request).finish();
|
|
1392
|
+
const promise = this.rpc.request(this.service, "UpdateData", data);
|
|
1393
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
784
1394
|
}
|
|
785
1395
|
Burn(request) {
|
|
786
1396
|
const data = exports.MsgBurn.encode(request).finish();
|
|
787
1397
|
const promise = this.rpc.request(this.service, "Burn", data);
|
|
788
|
-
return promise.then((data) => exports.EmptyResponse.decode(
|
|
1398
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
789
1399
|
}
|
|
790
1400
|
Freeze(request) {
|
|
791
1401
|
const data = exports.MsgFreeze.encode(request).finish();
|
|
792
1402
|
const promise = this.rpc.request(this.service, "Freeze", data);
|
|
793
|
-
return promise.then((data) => exports.EmptyResponse.decode(
|
|
1403
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
794
1404
|
}
|
|
795
1405
|
Unfreeze(request) {
|
|
796
1406
|
const data = exports.MsgUnfreeze.encode(request).finish();
|
|
797
1407
|
const promise = this.rpc.request(this.service, "Unfreeze", data);
|
|
798
|
-
return promise.then((data) => exports.EmptyResponse.decode(
|
|
1408
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
799
1409
|
}
|
|
800
1410
|
AddToWhitelist(request) {
|
|
801
1411
|
const data = exports.MsgAddToWhitelist.encode(request).finish();
|
|
802
1412
|
const promise = this.rpc.request(this.service, "AddToWhitelist", data);
|
|
803
|
-
return promise.then((data) => exports.EmptyResponse.decode(
|
|
1413
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
804
1414
|
}
|
|
805
1415
|
RemoveFromWhitelist(request) {
|
|
806
1416
|
const data = exports.MsgRemoveFromWhitelist.encode(request).finish();
|
|
807
1417
|
const promise = this.rpc.request(this.service, "RemoveFromWhitelist", data);
|
|
808
|
-
return promise.then((data) => exports.EmptyResponse.decode(
|
|
1418
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
1419
|
+
}
|
|
1420
|
+
AddToClassWhitelist(request) {
|
|
1421
|
+
const data = exports.MsgAddToClassWhitelist.encode(request).finish();
|
|
1422
|
+
const promise = this.rpc.request(this.service, "AddToClassWhitelist", data);
|
|
1423
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
1424
|
+
}
|
|
1425
|
+
RemoveFromClassWhitelist(request) {
|
|
1426
|
+
const data = exports.MsgRemoveFromClassWhitelist.encode(request).finish();
|
|
1427
|
+
const promise = this.rpc.request(this.service, "RemoveFromClassWhitelist", data);
|
|
1428
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
1429
|
+
}
|
|
1430
|
+
ClassFreeze(request) {
|
|
1431
|
+
const data = exports.MsgClassFreeze.encode(request).finish();
|
|
1432
|
+
const promise = this.rpc.request(this.service, "ClassFreeze", data);
|
|
1433
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
1434
|
+
}
|
|
1435
|
+
ClassUnfreeze(request) {
|
|
1436
|
+
const data = exports.MsgClassUnfreeze.encode(request).finish();
|
|
1437
|
+
const promise = this.rpc.request(this.service, "ClassUnfreeze", data);
|
|
1438
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
1439
|
+
}
|
|
1440
|
+
UpdateParams(request) {
|
|
1441
|
+
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
1442
|
+
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
1443
|
+
return promise.then((data) => exports.EmptyResponse.decode(new binary_1.BinaryReader(data)));
|
|
809
1444
|
}
|
|
810
1445
|
}
|
|
811
1446
|
exports.MsgClientImpl = MsgClientImpl;
|
|
812
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
813
|
-
minimal_1.default.util.Long = long_1.default;
|
|
814
|
-
minimal_1.default.configure();
|
|
815
|
-
}
|
|
816
1447
|
function isSet(value) {
|
|
817
1448
|
return value !== null && value !== undefined;
|
|
818
1449
|
}
|