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