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