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,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: coreum-protos/nft/event.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.EventRemovedFromWhitelist = exports.EventAddedToWhitelist = exports.EventUnfrozen = exports.EventFrozen = exports.EventClassIssued = exports.protobufPackage = void 0;
|
|
8
|
+
exports.EventRemovedFromClassWhitelist = exports.EventAddedToClassWhitelist = exports.EventRemovedFromWhitelist = exports.EventAddedToWhitelist = exports.EventClassUnfrozen = exports.EventClassFrozen = exports.EventUnfrozen = exports.EventFrozen = exports.EventClassIssued = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
10
11
|
const nft_1 = require("./nft");
|
|
11
12
|
exports.protobufPackage = "coreum.asset.nft.v1";
|
|
12
13
|
function createBaseEventClassIssued() {
|
|
@@ -23,7 +24,7 @@ function createBaseEventClassIssued() {
|
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
exports.EventClassIssued = {
|
|
26
|
-
encode(message, writer =
|
|
27
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
27
28
|
if (message.id !== "") {
|
|
28
29
|
writer.uint32(10).string(message.id);
|
|
29
30
|
}
|
|
@@ -56,60 +57,67 @@ exports.EventClassIssued = {
|
|
|
56
57
|
return writer;
|
|
57
58
|
},
|
|
58
59
|
decode(input, length) {
|
|
59
|
-
const reader = input instanceof
|
|
60
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
60
61
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
61
62
|
const message = createBaseEventClassIssued();
|
|
62
63
|
while (reader.pos < end) {
|
|
63
64
|
const tag = reader.uint32();
|
|
64
65
|
switch (tag >>> 3) {
|
|
65
|
-
case 1:
|
|
66
|
-
if (tag
|
|
66
|
+
case 1: {
|
|
67
|
+
if (tag !== 10) {
|
|
67
68
|
break;
|
|
68
69
|
}
|
|
69
70
|
message.id = reader.string();
|
|
70
71
|
continue;
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
}
|
|
73
|
+
case 2: {
|
|
74
|
+
if (tag !== 18) {
|
|
73
75
|
break;
|
|
74
76
|
}
|
|
75
77
|
message.issuer = reader.string();
|
|
76
78
|
continue;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
}
|
|
80
|
+
case 3: {
|
|
81
|
+
if (tag !== 26) {
|
|
79
82
|
break;
|
|
80
83
|
}
|
|
81
84
|
message.symbol = reader.string();
|
|
82
85
|
continue;
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
}
|
|
87
|
+
case 4: {
|
|
88
|
+
if (tag !== 34) {
|
|
85
89
|
break;
|
|
86
90
|
}
|
|
87
91
|
message.name = reader.string();
|
|
88
92
|
continue;
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
}
|
|
94
|
+
case 5: {
|
|
95
|
+
if (tag !== 42) {
|
|
91
96
|
break;
|
|
92
97
|
}
|
|
93
98
|
message.description = reader.string();
|
|
94
99
|
continue;
|
|
95
|
-
|
|
96
|
-
|
|
100
|
+
}
|
|
101
|
+
case 6: {
|
|
102
|
+
if (tag !== 50) {
|
|
97
103
|
break;
|
|
98
104
|
}
|
|
99
105
|
message.uri = reader.string();
|
|
100
106
|
continue;
|
|
101
|
-
|
|
102
|
-
|
|
107
|
+
}
|
|
108
|
+
case 7: {
|
|
109
|
+
if (tag !== 58) {
|
|
103
110
|
break;
|
|
104
111
|
}
|
|
105
112
|
message.uriHash = reader.string();
|
|
106
113
|
continue;
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
}
|
|
115
|
+
case 8: {
|
|
116
|
+
if (tag === 64) {
|
|
109
117
|
message.features.push(reader.int32());
|
|
110
118
|
continue;
|
|
111
119
|
}
|
|
112
|
-
if (tag
|
|
120
|
+
if (tag === 66) {
|
|
113
121
|
const end2 = reader.uint32() + reader.pos;
|
|
114
122
|
while (reader.pos < end2) {
|
|
115
123
|
message.features.push(reader.int32());
|
|
@@ -117,66 +125,86 @@ exports.EventClassIssued = {
|
|
|
117
125
|
continue;
|
|
118
126
|
}
|
|
119
127
|
break;
|
|
120
|
-
|
|
121
|
-
|
|
128
|
+
}
|
|
129
|
+
case 9: {
|
|
130
|
+
if (tag !== 74) {
|
|
122
131
|
break;
|
|
123
132
|
}
|
|
124
133
|
message.royaltyRate = reader.string();
|
|
125
134
|
continue;
|
|
135
|
+
}
|
|
126
136
|
}
|
|
127
|
-
if ((tag & 7)
|
|
137
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
128
138
|
break;
|
|
129
139
|
}
|
|
130
|
-
reader.
|
|
140
|
+
reader.skip(tag & 7);
|
|
131
141
|
}
|
|
132
142
|
return message;
|
|
133
143
|
},
|
|
134
144
|
fromJSON(object) {
|
|
135
145
|
return {
|
|
136
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
147
|
+
issuer: isSet(object.issuer) ? globalThis.String(object.issuer) : "",
|
|
148
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
149
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
150
|
+
description: isSet(object.description)
|
|
151
|
+
? globalThis.String(object.description)
|
|
152
|
+
: "",
|
|
153
|
+
uri: isSet(object.uri) ? globalThis.String(object.uri) : "",
|
|
154
|
+
uriHash: isSet(object.uriHash) ? globalThis.String(object.uriHash) : "",
|
|
155
|
+
features: globalThis.Array.isArray(object?.features)
|
|
156
|
+
? object.features.map((e) => (0, nft_1.classFeatureFromJSON)(e))
|
|
157
|
+
: [],
|
|
158
|
+
royaltyRate: isSet(object.royaltyRate)
|
|
159
|
+
? globalThis.String(object.royaltyRate)
|
|
160
|
+
: "",
|
|
145
161
|
};
|
|
146
162
|
},
|
|
147
163
|
toJSON(message) {
|
|
148
164
|
const obj = {};
|
|
149
|
-
message.id !==
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
message.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
message.
|
|
156
|
-
|
|
165
|
+
if (message.id !== "") {
|
|
166
|
+
obj.id = message.id;
|
|
167
|
+
}
|
|
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.features?.length) {
|
|
157
187
|
obj.features = message.features.map((e) => (0, nft_1.classFeatureToJSON)(e));
|
|
158
188
|
}
|
|
159
|
-
|
|
160
|
-
obj.
|
|
189
|
+
if (message.royaltyRate !== "") {
|
|
190
|
+
obj.royaltyRate = message.royaltyRate;
|
|
161
191
|
}
|
|
162
|
-
message.royaltyRate !== undefined && (obj.royaltyRate = message.royaltyRate);
|
|
163
192
|
return obj;
|
|
164
193
|
},
|
|
165
194
|
create(base) {
|
|
166
|
-
return exports.EventClassIssued.fromPartial(base
|
|
195
|
+
return exports.EventClassIssued.fromPartial(base ?? {});
|
|
167
196
|
},
|
|
168
197
|
fromPartial(object) {
|
|
169
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
170
198
|
const message = createBaseEventClassIssued();
|
|
171
|
-
message.id =
|
|
172
|
-
message.issuer =
|
|
173
|
-
message.symbol =
|
|
174
|
-
message.name =
|
|
175
|
-
message.description =
|
|
176
|
-
message.uri =
|
|
177
|
-
message.uriHash =
|
|
178
|
-
message.features =
|
|
179
|
-
message.royaltyRate =
|
|
199
|
+
message.id = object.id ?? "";
|
|
200
|
+
message.issuer = object.issuer ?? "";
|
|
201
|
+
message.symbol = object.symbol ?? "";
|
|
202
|
+
message.name = object.name ?? "";
|
|
203
|
+
message.description = object.description ?? "";
|
|
204
|
+
message.uri = object.uri ?? "";
|
|
205
|
+
message.uriHash = object.uriHash ?? "";
|
|
206
|
+
message.features = object.features?.map((e) => e) || [];
|
|
207
|
+
message.royaltyRate = object.royaltyRate ?? "";
|
|
180
208
|
return message;
|
|
181
209
|
},
|
|
182
210
|
};
|
|
@@ -184,7 +212,7 @@ function createBaseEventFrozen() {
|
|
|
184
212
|
return { classId: "", id: "", owner: "" };
|
|
185
213
|
}
|
|
186
214
|
exports.EventFrozen = {
|
|
187
|
-
encode(message, writer =
|
|
215
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
188
216
|
if (message.classId !== "") {
|
|
189
217
|
writer.uint32(10).string(message.classId);
|
|
190
218
|
}
|
|
@@ -197,61 +225,69 @@ exports.EventFrozen = {
|
|
|
197
225
|
return writer;
|
|
198
226
|
},
|
|
199
227
|
decode(input, length) {
|
|
200
|
-
const reader = input instanceof
|
|
228
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
201
229
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
202
230
|
const message = createBaseEventFrozen();
|
|
203
231
|
while (reader.pos < end) {
|
|
204
232
|
const tag = reader.uint32();
|
|
205
233
|
switch (tag >>> 3) {
|
|
206
|
-
case 1:
|
|
207
|
-
if (tag
|
|
234
|
+
case 1: {
|
|
235
|
+
if (tag !== 10) {
|
|
208
236
|
break;
|
|
209
237
|
}
|
|
210
238
|
message.classId = reader.string();
|
|
211
239
|
continue;
|
|
212
|
-
|
|
213
|
-
|
|
240
|
+
}
|
|
241
|
+
case 2: {
|
|
242
|
+
if (tag !== 18) {
|
|
214
243
|
break;
|
|
215
244
|
}
|
|
216
245
|
message.id = reader.string();
|
|
217
246
|
continue;
|
|
218
|
-
|
|
219
|
-
|
|
247
|
+
}
|
|
248
|
+
case 3: {
|
|
249
|
+
if (tag !== 26) {
|
|
220
250
|
break;
|
|
221
251
|
}
|
|
222
252
|
message.owner = reader.string();
|
|
223
253
|
continue;
|
|
254
|
+
}
|
|
224
255
|
}
|
|
225
|
-
if ((tag & 7)
|
|
256
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
226
257
|
break;
|
|
227
258
|
}
|
|
228
|
-
reader.
|
|
259
|
+
reader.skip(tag & 7);
|
|
229
260
|
}
|
|
230
261
|
return message;
|
|
231
262
|
},
|
|
232
263
|
fromJSON(object) {
|
|
233
264
|
return {
|
|
234
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
235
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
236
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
265
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
266
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
267
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
237
268
|
};
|
|
238
269
|
},
|
|
239
270
|
toJSON(message) {
|
|
240
271
|
const obj = {};
|
|
241
|
-
message.classId !==
|
|
242
|
-
|
|
243
|
-
|
|
272
|
+
if (message.classId !== "") {
|
|
273
|
+
obj.classId = message.classId;
|
|
274
|
+
}
|
|
275
|
+
if (message.id !== "") {
|
|
276
|
+
obj.id = message.id;
|
|
277
|
+
}
|
|
278
|
+
if (message.owner !== "") {
|
|
279
|
+
obj.owner = message.owner;
|
|
280
|
+
}
|
|
244
281
|
return obj;
|
|
245
282
|
},
|
|
246
283
|
create(base) {
|
|
247
|
-
return exports.EventFrozen.fromPartial(base
|
|
284
|
+
return exports.EventFrozen.fromPartial(base ?? {});
|
|
248
285
|
},
|
|
249
286
|
fromPartial(object) {
|
|
250
|
-
var _a, _b, _c;
|
|
251
287
|
const message = createBaseEventFrozen();
|
|
252
|
-
message.classId =
|
|
253
|
-
message.id =
|
|
254
|
-
message.owner =
|
|
288
|
+
message.classId = object.classId ?? "";
|
|
289
|
+
message.id = object.id ?? "";
|
|
290
|
+
message.owner = object.owner ?? "";
|
|
255
291
|
return message;
|
|
256
292
|
},
|
|
257
293
|
};
|
|
@@ -259,7 +295,7 @@ function createBaseEventUnfrozen() {
|
|
|
259
295
|
return { classId: "", id: "", owner: "" };
|
|
260
296
|
}
|
|
261
297
|
exports.EventUnfrozen = {
|
|
262
|
-
encode(message, writer =
|
|
298
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
263
299
|
if (message.classId !== "") {
|
|
264
300
|
writer.uint32(10).string(message.classId);
|
|
265
301
|
}
|
|
@@ -272,61 +308,205 @@ exports.EventUnfrozen = {
|
|
|
272
308
|
return writer;
|
|
273
309
|
},
|
|
274
310
|
decode(input, length) {
|
|
275
|
-
const reader = input instanceof
|
|
311
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
276
312
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
277
313
|
const message = createBaseEventUnfrozen();
|
|
278
314
|
while (reader.pos < end) {
|
|
279
315
|
const tag = reader.uint32();
|
|
280
316
|
switch (tag >>> 3) {
|
|
281
|
-
case 1:
|
|
282
|
-
if (tag
|
|
317
|
+
case 1: {
|
|
318
|
+
if (tag !== 10) {
|
|
283
319
|
break;
|
|
284
320
|
}
|
|
285
321
|
message.classId = reader.string();
|
|
286
322
|
continue;
|
|
287
|
-
|
|
288
|
-
|
|
323
|
+
}
|
|
324
|
+
case 2: {
|
|
325
|
+
if (tag !== 18) {
|
|
289
326
|
break;
|
|
290
327
|
}
|
|
291
328
|
message.id = reader.string();
|
|
292
329
|
continue;
|
|
293
|
-
|
|
294
|
-
|
|
330
|
+
}
|
|
331
|
+
case 3: {
|
|
332
|
+
if (tag !== 26) {
|
|
295
333
|
break;
|
|
296
334
|
}
|
|
297
335
|
message.owner = reader.string();
|
|
298
336
|
continue;
|
|
337
|
+
}
|
|
299
338
|
}
|
|
300
|
-
if ((tag & 7)
|
|
339
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
301
340
|
break;
|
|
302
341
|
}
|
|
303
|
-
reader.
|
|
342
|
+
reader.skip(tag & 7);
|
|
304
343
|
}
|
|
305
344
|
return message;
|
|
306
345
|
},
|
|
307
346
|
fromJSON(object) {
|
|
308
347
|
return {
|
|
309
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
310
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
311
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
348
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
349
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
350
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
312
351
|
};
|
|
313
352
|
},
|
|
314
353
|
toJSON(message) {
|
|
315
354
|
const obj = {};
|
|
316
|
-
message.classId !==
|
|
317
|
-
|
|
318
|
-
|
|
355
|
+
if (message.classId !== "") {
|
|
356
|
+
obj.classId = message.classId;
|
|
357
|
+
}
|
|
358
|
+
if (message.id !== "") {
|
|
359
|
+
obj.id = message.id;
|
|
360
|
+
}
|
|
361
|
+
if (message.owner !== "") {
|
|
362
|
+
obj.owner = message.owner;
|
|
363
|
+
}
|
|
319
364
|
return obj;
|
|
320
365
|
},
|
|
321
366
|
create(base) {
|
|
322
|
-
return exports.EventUnfrozen.fromPartial(base
|
|
367
|
+
return exports.EventUnfrozen.fromPartial(base ?? {});
|
|
323
368
|
},
|
|
324
369
|
fromPartial(object) {
|
|
325
|
-
var _a, _b, _c;
|
|
326
370
|
const message = createBaseEventUnfrozen();
|
|
327
|
-
message.classId =
|
|
328
|
-
message.id =
|
|
329
|
-
message.owner =
|
|
371
|
+
message.classId = object.classId ?? "";
|
|
372
|
+
message.id = object.id ?? "";
|
|
373
|
+
message.owner = object.owner ?? "";
|
|
374
|
+
return message;
|
|
375
|
+
},
|
|
376
|
+
};
|
|
377
|
+
function createBaseEventClassFrozen() {
|
|
378
|
+
return { classId: "", account: "" };
|
|
379
|
+
}
|
|
380
|
+
exports.EventClassFrozen = {
|
|
381
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
382
|
+
if (message.classId !== "") {
|
|
383
|
+
writer.uint32(10).string(message.classId);
|
|
384
|
+
}
|
|
385
|
+
if (message.account !== "") {
|
|
386
|
+
writer.uint32(26).string(message.account);
|
|
387
|
+
}
|
|
388
|
+
return writer;
|
|
389
|
+
},
|
|
390
|
+
decode(input, length) {
|
|
391
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
392
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
393
|
+
const message = createBaseEventClassFrozen();
|
|
394
|
+
while (reader.pos < end) {
|
|
395
|
+
const tag = reader.uint32();
|
|
396
|
+
switch (tag >>> 3) {
|
|
397
|
+
case 1: {
|
|
398
|
+
if (tag !== 10) {
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
message.classId = reader.string();
|
|
402
|
+
continue;
|
|
403
|
+
}
|
|
404
|
+
case 3: {
|
|
405
|
+
if (tag !== 26) {
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
message.account = reader.string();
|
|
409
|
+
continue;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
reader.skip(tag & 7);
|
|
416
|
+
}
|
|
417
|
+
return message;
|
|
418
|
+
},
|
|
419
|
+
fromJSON(object) {
|
|
420
|
+
return {
|
|
421
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
422
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
423
|
+
};
|
|
424
|
+
},
|
|
425
|
+
toJSON(message) {
|
|
426
|
+
const obj = {};
|
|
427
|
+
if (message.classId !== "") {
|
|
428
|
+
obj.classId = message.classId;
|
|
429
|
+
}
|
|
430
|
+
if (message.account !== "") {
|
|
431
|
+
obj.account = message.account;
|
|
432
|
+
}
|
|
433
|
+
return obj;
|
|
434
|
+
},
|
|
435
|
+
create(base) {
|
|
436
|
+
return exports.EventClassFrozen.fromPartial(base ?? {});
|
|
437
|
+
},
|
|
438
|
+
fromPartial(object) {
|
|
439
|
+
const message = createBaseEventClassFrozen();
|
|
440
|
+
message.classId = object.classId ?? "";
|
|
441
|
+
message.account = object.account ?? "";
|
|
442
|
+
return message;
|
|
443
|
+
},
|
|
444
|
+
};
|
|
445
|
+
function createBaseEventClassUnfrozen() {
|
|
446
|
+
return { classId: "", account: "" };
|
|
447
|
+
}
|
|
448
|
+
exports.EventClassUnfrozen = {
|
|
449
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
450
|
+
if (message.classId !== "") {
|
|
451
|
+
writer.uint32(10).string(message.classId);
|
|
452
|
+
}
|
|
453
|
+
if (message.account !== "") {
|
|
454
|
+
writer.uint32(26).string(message.account);
|
|
455
|
+
}
|
|
456
|
+
return writer;
|
|
457
|
+
},
|
|
458
|
+
decode(input, length) {
|
|
459
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
460
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
461
|
+
const message = createBaseEventClassUnfrozen();
|
|
462
|
+
while (reader.pos < end) {
|
|
463
|
+
const tag = reader.uint32();
|
|
464
|
+
switch (tag >>> 3) {
|
|
465
|
+
case 1: {
|
|
466
|
+
if (tag !== 10) {
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
message.classId = reader.string();
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
case 3: {
|
|
473
|
+
if (tag !== 26) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
message.account = reader.string();
|
|
477
|
+
continue;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
reader.skip(tag & 7);
|
|
484
|
+
}
|
|
485
|
+
return message;
|
|
486
|
+
},
|
|
487
|
+
fromJSON(object) {
|
|
488
|
+
return {
|
|
489
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
490
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
491
|
+
};
|
|
492
|
+
},
|
|
493
|
+
toJSON(message) {
|
|
494
|
+
const obj = {};
|
|
495
|
+
if (message.classId !== "") {
|
|
496
|
+
obj.classId = message.classId;
|
|
497
|
+
}
|
|
498
|
+
if (message.account !== "") {
|
|
499
|
+
obj.account = message.account;
|
|
500
|
+
}
|
|
501
|
+
return obj;
|
|
502
|
+
},
|
|
503
|
+
create(base) {
|
|
504
|
+
return exports.EventClassUnfrozen.fromPartial(base ?? {});
|
|
505
|
+
},
|
|
506
|
+
fromPartial(object) {
|
|
507
|
+
const message = createBaseEventClassUnfrozen();
|
|
508
|
+
message.classId = object.classId ?? "";
|
|
509
|
+
message.account = object.account ?? "";
|
|
330
510
|
return message;
|
|
331
511
|
},
|
|
332
512
|
};
|
|
@@ -334,7 +514,7 @@ function createBaseEventAddedToWhitelist() {
|
|
|
334
514
|
return { classId: "", id: "", account: "" };
|
|
335
515
|
}
|
|
336
516
|
exports.EventAddedToWhitelist = {
|
|
337
|
-
encode(message, writer =
|
|
517
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
338
518
|
if (message.classId !== "") {
|
|
339
519
|
writer.uint32(10).string(message.classId);
|
|
340
520
|
}
|
|
@@ -347,61 +527,69 @@ exports.EventAddedToWhitelist = {
|
|
|
347
527
|
return writer;
|
|
348
528
|
},
|
|
349
529
|
decode(input, length) {
|
|
350
|
-
const reader = input instanceof
|
|
530
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
351
531
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
352
532
|
const message = createBaseEventAddedToWhitelist();
|
|
353
533
|
while (reader.pos < end) {
|
|
354
534
|
const tag = reader.uint32();
|
|
355
535
|
switch (tag >>> 3) {
|
|
356
|
-
case 1:
|
|
357
|
-
if (tag
|
|
536
|
+
case 1: {
|
|
537
|
+
if (tag !== 10) {
|
|
358
538
|
break;
|
|
359
539
|
}
|
|
360
540
|
message.classId = reader.string();
|
|
361
541
|
continue;
|
|
362
|
-
|
|
363
|
-
|
|
542
|
+
}
|
|
543
|
+
case 2: {
|
|
544
|
+
if (tag !== 18) {
|
|
364
545
|
break;
|
|
365
546
|
}
|
|
366
547
|
message.id = reader.string();
|
|
367
548
|
continue;
|
|
368
|
-
|
|
369
|
-
|
|
549
|
+
}
|
|
550
|
+
case 3: {
|
|
551
|
+
if (tag !== 26) {
|
|
370
552
|
break;
|
|
371
553
|
}
|
|
372
554
|
message.account = reader.string();
|
|
373
555
|
continue;
|
|
556
|
+
}
|
|
374
557
|
}
|
|
375
|
-
if ((tag & 7)
|
|
558
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
376
559
|
break;
|
|
377
560
|
}
|
|
378
|
-
reader.
|
|
561
|
+
reader.skip(tag & 7);
|
|
379
562
|
}
|
|
380
563
|
return message;
|
|
381
564
|
},
|
|
382
565
|
fromJSON(object) {
|
|
383
566
|
return {
|
|
384
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
385
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
386
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
567
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
568
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
569
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
387
570
|
};
|
|
388
571
|
},
|
|
389
572
|
toJSON(message) {
|
|
390
573
|
const obj = {};
|
|
391
|
-
message.classId !==
|
|
392
|
-
|
|
393
|
-
|
|
574
|
+
if (message.classId !== "") {
|
|
575
|
+
obj.classId = message.classId;
|
|
576
|
+
}
|
|
577
|
+
if (message.id !== "") {
|
|
578
|
+
obj.id = message.id;
|
|
579
|
+
}
|
|
580
|
+
if (message.account !== "") {
|
|
581
|
+
obj.account = message.account;
|
|
582
|
+
}
|
|
394
583
|
return obj;
|
|
395
584
|
},
|
|
396
585
|
create(base) {
|
|
397
|
-
return exports.EventAddedToWhitelist.fromPartial(base
|
|
586
|
+
return exports.EventAddedToWhitelist.fromPartial(base ?? {});
|
|
398
587
|
},
|
|
399
588
|
fromPartial(object) {
|
|
400
|
-
var _a, _b, _c;
|
|
401
589
|
const message = createBaseEventAddedToWhitelist();
|
|
402
|
-
message.classId =
|
|
403
|
-
message.id =
|
|
404
|
-
message.account =
|
|
590
|
+
message.classId = object.classId ?? "";
|
|
591
|
+
message.id = object.id ?? "";
|
|
592
|
+
message.account = object.account ?? "";
|
|
405
593
|
return message;
|
|
406
594
|
},
|
|
407
595
|
};
|
|
@@ -409,7 +597,7 @@ function createBaseEventRemovedFromWhitelist() {
|
|
|
409
597
|
return { classId: "", id: "", account: "" };
|
|
410
598
|
}
|
|
411
599
|
exports.EventRemovedFromWhitelist = {
|
|
412
|
-
encode(message, writer =
|
|
600
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
413
601
|
if (message.classId !== "") {
|
|
414
602
|
writer.uint32(10).string(message.classId);
|
|
415
603
|
}
|
|
@@ -422,68 +610,208 @@ exports.EventRemovedFromWhitelist = {
|
|
|
422
610
|
return writer;
|
|
423
611
|
},
|
|
424
612
|
decode(input, length) {
|
|
425
|
-
const reader = input instanceof
|
|
613
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
426
614
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
427
615
|
const message = createBaseEventRemovedFromWhitelist();
|
|
428
616
|
while (reader.pos < end) {
|
|
429
617
|
const tag = reader.uint32();
|
|
430
618
|
switch (tag >>> 3) {
|
|
431
|
-
case 1:
|
|
432
|
-
if (tag
|
|
619
|
+
case 1: {
|
|
620
|
+
if (tag !== 10) {
|
|
433
621
|
break;
|
|
434
622
|
}
|
|
435
623
|
message.classId = reader.string();
|
|
436
624
|
continue;
|
|
437
|
-
|
|
438
|
-
|
|
625
|
+
}
|
|
626
|
+
case 2: {
|
|
627
|
+
if (tag !== 18) {
|
|
439
628
|
break;
|
|
440
629
|
}
|
|
441
630
|
message.id = reader.string();
|
|
442
631
|
continue;
|
|
443
|
-
|
|
444
|
-
|
|
632
|
+
}
|
|
633
|
+
case 3: {
|
|
634
|
+
if (tag !== 26) {
|
|
445
635
|
break;
|
|
446
636
|
}
|
|
447
637
|
message.account = reader.string();
|
|
448
638
|
continue;
|
|
639
|
+
}
|
|
449
640
|
}
|
|
450
|
-
if ((tag & 7)
|
|
641
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
451
642
|
break;
|
|
452
643
|
}
|
|
453
|
-
reader.
|
|
644
|
+
reader.skip(tag & 7);
|
|
454
645
|
}
|
|
455
646
|
return message;
|
|
456
647
|
},
|
|
457
648
|
fromJSON(object) {
|
|
458
649
|
return {
|
|
459
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
460
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
461
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
650
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
651
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
652
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
462
653
|
};
|
|
463
654
|
},
|
|
464
655
|
toJSON(message) {
|
|
465
656
|
const obj = {};
|
|
466
|
-
message.classId !==
|
|
467
|
-
|
|
468
|
-
|
|
657
|
+
if (message.classId !== "") {
|
|
658
|
+
obj.classId = message.classId;
|
|
659
|
+
}
|
|
660
|
+
if (message.id !== "") {
|
|
661
|
+
obj.id = message.id;
|
|
662
|
+
}
|
|
663
|
+
if (message.account !== "") {
|
|
664
|
+
obj.account = message.account;
|
|
665
|
+
}
|
|
469
666
|
return obj;
|
|
470
667
|
},
|
|
471
668
|
create(base) {
|
|
472
|
-
return exports.EventRemovedFromWhitelist.fromPartial(base
|
|
669
|
+
return exports.EventRemovedFromWhitelist.fromPartial(base ?? {});
|
|
473
670
|
},
|
|
474
671
|
fromPartial(object) {
|
|
475
|
-
var _a, _b, _c;
|
|
476
672
|
const message = createBaseEventRemovedFromWhitelist();
|
|
477
|
-
message.classId =
|
|
478
|
-
message.id =
|
|
479
|
-
message.account =
|
|
673
|
+
message.classId = object.classId ?? "";
|
|
674
|
+
message.id = object.id ?? "";
|
|
675
|
+
message.account = object.account ?? "";
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
};
|
|
679
|
+
function createBaseEventAddedToClassWhitelist() {
|
|
680
|
+
return { classId: "", account: "" };
|
|
681
|
+
}
|
|
682
|
+
exports.EventAddedToClassWhitelist = {
|
|
683
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
684
|
+
if (message.classId !== "") {
|
|
685
|
+
writer.uint32(10).string(message.classId);
|
|
686
|
+
}
|
|
687
|
+
if (message.account !== "") {
|
|
688
|
+
writer.uint32(18).string(message.account);
|
|
689
|
+
}
|
|
690
|
+
return writer;
|
|
691
|
+
},
|
|
692
|
+
decode(input, length) {
|
|
693
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
694
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
695
|
+
const message = createBaseEventAddedToClassWhitelist();
|
|
696
|
+
while (reader.pos < end) {
|
|
697
|
+
const tag = reader.uint32();
|
|
698
|
+
switch (tag >>> 3) {
|
|
699
|
+
case 1: {
|
|
700
|
+
if (tag !== 10) {
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
message.classId = reader.string();
|
|
704
|
+
continue;
|
|
705
|
+
}
|
|
706
|
+
case 2: {
|
|
707
|
+
if (tag !== 18) {
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
message.account = reader.string();
|
|
711
|
+
continue;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
reader.skip(tag & 7);
|
|
718
|
+
}
|
|
719
|
+
return message;
|
|
720
|
+
},
|
|
721
|
+
fromJSON(object) {
|
|
722
|
+
return {
|
|
723
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
724
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
725
|
+
};
|
|
726
|
+
},
|
|
727
|
+
toJSON(message) {
|
|
728
|
+
const obj = {};
|
|
729
|
+
if (message.classId !== "") {
|
|
730
|
+
obj.classId = message.classId;
|
|
731
|
+
}
|
|
732
|
+
if (message.account !== "") {
|
|
733
|
+
obj.account = message.account;
|
|
734
|
+
}
|
|
735
|
+
return obj;
|
|
736
|
+
},
|
|
737
|
+
create(base) {
|
|
738
|
+
return exports.EventAddedToClassWhitelist.fromPartial(base ?? {});
|
|
739
|
+
},
|
|
740
|
+
fromPartial(object) {
|
|
741
|
+
const message = createBaseEventAddedToClassWhitelist();
|
|
742
|
+
message.classId = object.classId ?? "";
|
|
743
|
+
message.account = object.account ?? "";
|
|
480
744
|
return message;
|
|
481
745
|
},
|
|
482
746
|
};
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
minimal_1.default.configure();
|
|
747
|
+
function createBaseEventRemovedFromClassWhitelist() {
|
|
748
|
+
return { classId: "", account: "" };
|
|
486
749
|
}
|
|
750
|
+
exports.EventRemovedFromClassWhitelist = {
|
|
751
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
752
|
+
if (message.classId !== "") {
|
|
753
|
+
writer.uint32(10).string(message.classId);
|
|
754
|
+
}
|
|
755
|
+
if (message.account !== "") {
|
|
756
|
+
writer.uint32(18).string(message.account);
|
|
757
|
+
}
|
|
758
|
+
return writer;
|
|
759
|
+
},
|
|
760
|
+
decode(input, length) {
|
|
761
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
762
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
763
|
+
const message = createBaseEventRemovedFromClassWhitelist();
|
|
764
|
+
while (reader.pos < end) {
|
|
765
|
+
const tag = reader.uint32();
|
|
766
|
+
switch (tag >>> 3) {
|
|
767
|
+
case 1: {
|
|
768
|
+
if (tag !== 10) {
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
message.classId = reader.string();
|
|
772
|
+
continue;
|
|
773
|
+
}
|
|
774
|
+
case 2: {
|
|
775
|
+
if (tag !== 18) {
|
|
776
|
+
break;
|
|
777
|
+
}
|
|
778
|
+
message.account = reader.string();
|
|
779
|
+
continue;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
783
|
+
break;
|
|
784
|
+
}
|
|
785
|
+
reader.skip(tag & 7);
|
|
786
|
+
}
|
|
787
|
+
return message;
|
|
788
|
+
},
|
|
789
|
+
fromJSON(object) {
|
|
790
|
+
return {
|
|
791
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
792
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
793
|
+
};
|
|
794
|
+
},
|
|
795
|
+
toJSON(message) {
|
|
796
|
+
const obj = {};
|
|
797
|
+
if (message.classId !== "") {
|
|
798
|
+
obj.classId = message.classId;
|
|
799
|
+
}
|
|
800
|
+
if (message.account !== "") {
|
|
801
|
+
obj.account = message.account;
|
|
802
|
+
}
|
|
803
|
+
return obj;
|
|
804
|
+
},
|
|
805
|
+
create(base) {
|
|
806
|
+
return exports.EventRemovedFromClassWhitelist.fromPartial(base ?? {});
|
|
807
|
+
},
|
|
808
|
+
fromPartial(object) {
|
|
809
|
+
const message = createBaseEventRemovedFromClassWhitelist();
|
|
810
|
+
message.classId = object.classId ?? "";
|
|
811
|
+
message.account = object.account ?? "";
|
|
812
|
+
return message;
|
|
813
|
+
},
|
|
814
|
+
};
|
|
487
815
|
function isSet(value) {
|
|
488
816
|
return value !== null && value !== undefined;
|
|
489
817
|
}
|