decentralcardgame-cardchain-client-ts 0.0.26-rc1 → 0.0.26
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/DecentralCardGame.cardchain.cardchain/module.js +364 -338
- package/DecentralCardGame.cardchain.cardchain/module.ts +530 -495
- package/DecentralCardGame.cardchain.cardchain/registry.js +66 -64
- package/DecentralCardGame.cardchain.cardchain/registry.ts +66 -64
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -17
- package/DecentralCardGame.cardchain.cardchain/rest.ts +138 -94
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.js +287 -106
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.ts +326 -107
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.js +38 -14
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.ts +45 -17
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.js +104 -47
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.ts +122 -50
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.js +92 -74
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.ts +109 -66
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.js +25 -17
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.ts +29 -20
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.js +107 -51
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.ts +130 -50
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.js +29 -10
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.ts +32 -10
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.js +17 -8
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.ts +21 -11
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.js +178 -57
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.ts +205 -60
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.js +666 -446
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.ts +764 -459
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.js +17 -14
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.ts +24 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.js +45 -16
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.ts +53 -19
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.js +31 -12
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.ts +37 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.js +138 -62
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.ts +173 -67
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.js +31 -12
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.ts +37 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.js +1609 -1024
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.ts +1821 -1153
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.js +207 -98
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.ts +261 -96
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.js +178 -108
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.ts +200 -123
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +1 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +86 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +90 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +219 -114
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +265 -120
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +186 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +210 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +91 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +113 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +3 -1
- package/DecentralCardGame.cardchain.cardchain/types.ts +4 -0
- package/DecentralCardGame.cardchain.featureflag/rest.ts +6 -6
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.js +86 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.ts +114 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.js +164 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.ts +205 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.js +40 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.ts +62 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.js +100 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.ts +130 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.js +325 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.ts +424 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.js +9 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.ts +21 -0
- package/client.js +3 -9
- package/client.ts +154 -167
- package/cosmos.auth.v1beta1/rest.ts +21 -21
- package/cosmos.authz.v1beta1/module.js +17 -17
- package/cosmos.authz.v1beta1/module.ts +25 -25
- package/cosmos.authz.v1beta1/registry.js +4 -4
- package/cosmos.authz.v1beta1/registry.ts +4 -4
- package/cosmos.authz.v1beta1/rest.ts +75 -75
- package/cosmos.bank.v1beta1/rest.ts +9 -9
- package/cosmos.distribution.v1beta1/module.js +27 -27
- package/cosmos.distribution.v1beta1/module.ts +42 -42
- package/cosmos.distribution.v1beta1/registry.js +4 -4
- package/cosmos.distribution.v1beta1/registry.ts +4 -4
- package/cosmos.distribution.v1beta1/rest.ts +20 -20
- package/cosmos.gov.v1/module.js +24 -24
- package/cosmos.gov.v1/module.ts +36 -36
- package/cosmos.gov.v1/registry.js +4 -4
- package/cosmos.gov.v1/registry.ts +4 -4
- package/cosmos.gov.v1/rest.ts +90 -90
- package/cosmos.gov.v1beta1/module.js +27 -27
- package/cosmos.gov.v1beta1/module.ts +42 -42
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +152 -152
- package/cosmos.group.v1/module.js +108 -108
- package/cosmos.group.v1/module.ts +164 -164
- package/cosmos.group.v1/registry.js +18 -18
- package/cosmos.group.v1/registry.ts +18 -18
- package/cosmos.group.v1/rest.js +5 -5
- package/cosmos.group.v1/rest.ts +214 -214
- package/cosmos.mint.v1beta1/rest.ts +13 -13
- package/cosmos.nft.v1beta1/rest.ts +132 -132
- package/cosmos.slashing.v1beta1/rest.ts +19 -19
- package/cosmos.staking.v1beta1/module.js +39 -39
- package/cosmos.staking.v1beta1/module.ts +59 -59
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.ts +95 -95
- package/cosmos.upgrade.v1beta1/module.js +16 -16
- package/cosmos.upgrade.v1beta1/module.ts +24 -24
- package/cosmos.upgrade.v1beta1/registry.js +2 -2
- package/cosmos.upgrade.v1beta1/registry.ts +2 -2
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +10 -10
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +13 -13
- package/ibc.applications.transfer.v1/rest.ts +3 -3
- package/ibc.core.channel.v1/rest.ts +44 -44
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Coin } from "../../cosmos/base/v1beta1/coin";
|
|
4
5
|
export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
|
|
5
6
|
export var CStatus;
|
|
6
7
|
(function (CStatus) {
|
|
@@ -56,6 +57,8 @@ function createBaseSet() {
|
|
|
56
57
|
artworkId: 0,
|
|
57
58
|
status: 0,
|
|
58
59
|
timeStamp: 0,
|
|
60
|
+
contributorsDistribution: [],
|
|
61
|
+
Rarities: [],
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
export const Set = {
|
|
@@ -89,6 +92,12 @@ export const Set = {
|
|
|
89
92
|
if (message.timeStamp !== 0) {
|
|
90
93
|
writer.uint32(72).int64(message.timeStamp);
|
|
91
94
|
}
|
|
95
|
+
for (const v of message.contributorsDistribution) {
|
|
96
|
+
AddrWithQuantity.encode(v, writer.uint32(82).fork()).ldelim();
|
|
97
|
+
}
|
|
98
|
+
for (const v of message.Rarities) {
|
|
99
|
+
InnerRarities.encode(v, writer.uint32(90).fork()).ldelim();
|
|
100
|
+
}
|
|
92
101
|
return writer;
|
|
93
102
|
},
|
|
94
103
|
decode(input, length) {
|
|
@@ -133,6 +142,12 @@ export const Set = {
|
|
|
133
142
|
case 9:
|
|
134
143
|
message.timeStamp = longToNumber(reader.int64());
|
|
135
144
|
break;
|
|
145
|
+
case 10:
|
|
146
|
+
message.contributorsDistribution.push(AddrWithQuantity.decode(reader, reader.uint32()));
|
|
147
|
+
break;
|
|
148
|
+
case 11:
|
|
149
|
+
message.Rarities.push(InnerRarities.decode(reader, reader.uint32()));
|
|
150
|
+
break;
|
|
136
151
|
default:
|
|
137
152
|
reader.skipType(tag & 7);
|
|
138
153
|
break;
|
|
@@ -151,6 +166,10 @@ export const Set = {
|
|
|
151
166
|
artworkId: isSet(object.artworkId) ? Number(object.artworkId) : 0,
|
|
152
167
|
status: isSet(object.status) ? cStatusFromJSON(object.status) : 0,
|
|
153
168
|
timeStamp: isSet(object.timeStamp) ? Number(object.timeStamp) : 0,
|
|
169
|
+
contributorsDistribution: Array.isArray(object?.contributorsDistribution)
|
|
170
|
+
? object.contributorsDistribution.map((e) => AddrWithQuantity.fromJSON(e))
|
|
171
|
+
: [],
|
|
172
|
+
Rarities: Array.isArray(object?.Rarities) ? object.Rarities.map((e) => InnerRarities.fromJSON(e)) : [],
|
|
154
173
|
};
|
|
155
174
|
},
|
|
156
175
|
toJSON(message) {
|
|
@@ -174,6 +193,18 @@ export const Set = {
|
|
|
174
193
|
message.artworkId !== undefined && (obj.artworkId = Math.round(message.artworkId));
|
|
175
194
|
message.status !== undefined && (obj.status = cStatusToJSON(message.status));
|
|
176
195
|
message.timeStamp !== undefined && (obj.timeStamp = Math.round(message.timeStamp));
|
|
196
|
+
if (message.contributorsDistribution) {
|
|
197
|
+
obj.contributorsDistribution = message.contributorsDistribution.map((e) => e ? AddrWithQuantity.toJSON(e) : undefined);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
obj.contributorsDistribution = [];
|
|
201
|
+
}
|
|
202
|
+
if (message.Rarities) {
|
|
203
|
+
obj.Rarities = message.Rarities.map((e) => e ? InnerRarities.toJSON(e) : undefined);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
obj.Rarities = [];
|
|
207
|
+
}
|
|
177
208
|
return obj;
|
|
178
209
|
},
|
|
179
210
|
fromPartial(object) {
|
|
@@ -187,6 +218,65 @@ export const Set = {
|
|
|
187
218
|
message.artworkId = object.artworkId ?? 0;
|
|
188
219
|
message.status = object.status ?? 0;
|
|
189
220
|
message.timeStamp = object.timeStamp ?? 0;
|
|
221
|
+
message.contributorsDistribution = object.contributorsDistribution?.map((e) => AddrWithQuantity.fromPartial(e))
|
|
222
|
+
|| [];
|
|
223
|
+
message.Rarities = object.Rarities?.map((e) => InnerRarities.fromPartial(e)) || [];
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
function createBaseInnerRarities() {
|
|
228
|
+
return { R: [] };
|
|
229
|
+
}
|
|
230
|
+
export const InnerRarities = {
|
|
231
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
232
|
+
writer.uint32(10).fork();
|
|
233
|
+
for (const v of message.R) {
|
|
234
|
+
writer.uint64(v);
|
|
235
|
+
}
|
|
236
|
+
writer.ldelim();
|
|
237
|
+
return writer;
|
|
238
|
+
},
|
|
239
|
+
decode(input, length) {
|
|
240
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
241
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
242
|
+
const message = createBaseInnerRarities();
|
|
243
|
+
while (reader.pos < end) {
|
|
244
|
+
const tag = reader.uint32();
|
|
245
|
+
switch (tag >>> 3) {
|
|
246
|
+
case 1:
|
|
247
|
+
if ((tag & 7) === 2) {
|
|
248
|
+
const end2 = reader.uint32() + reader.pos;
|
|
249
|
+
while (reader.pos < end2) {
|
|
250
|
+
message.R.push(longToNumber(reader.uint64()));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
message.R.push(longToNumber(reader.uint64()));
|
|
255
|
+
}
|
|
256
|
+
break;
|
|
257
|
+
default:
|
|
258
|
+
reader.skipType(tag & 7);
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return message;
|
|
263
|
+
},
|
|
264
|
+
fromJSON(object) {
|
|
265
|
+
return { R: Array.isArray(object?.R) ? object.R.map((e) => Number(e)) : [] };
|
|
266
|
+
},
|
|
267
|
+
toJSON(message) {
|
|
268
|
+
const obj = {};
|
|
269
|
+
if (message.R) {
|
|
270
|
+
obj.R = message.R.map((e) => Math.round(e));
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
obj.R = [];
|
|
274
|
+
}
|
|
275
|
+
return obj;
|
|
276
|
+
},
|
|
277
|
+
fromPartial(object) {
|
|
278
|
+
const message = createBaseInnerRarities();
|
|
279
|
+
message.R = object.R?.map((e) => e) || [];
|
|
190
280
|
return message;
|
|
191
281
|
},
|
|
192
282
|
};
|
|
@@ -201,6 +291,8 @@ function createBaseOutpSet() {
|
|
|
201
291
|
artwork: "",
|
|
202
292
|
status: 0,
|
|
203
293
|
timeStamp: 0,
|
|
294
|
+
contributorsDistribution: [],
|
|
295
|
+
Rarities: [],
|
|
204
296
|
};
|
|
205
297
|
}
|
|
206
298
|
export const OutpSet = {
|
|
@@ -234,6 +326,12 @@ export const OutpSet = {
|
|
|
234
326
|
if (message.timeStamp !== 0) {
|
|
235
327
|
writer.uint32(72).int64(message.timeStamp);
|
|
236
328
|
}
|
|
329
|
+
for (const v of message.contributorsDistribution) {
|
|
330
|
+
AddrWithQuantity.encode(v, writer.uint32(82).fork()).ldelim();
|
|
331
|
+
}
|
|
332
|
+
for (const v of message.Rarities) {
|
|
333
|
+
InnerRarities.encode(v, writer.uint32(90).fork()).ldelim();
|
|
334
|
+
}
|
|
237
335
|
return writer;
|
|
238
336
|
},
|
|
239
337
|
decode(input, length) {
|
|
@@ -278,6 +376,12 @@ export const OutpSet = {
|
|
|
278
376
|
case 9:
|
|
279
377
|
message.timeStamp = longToNumber(reader.int64());
|
|
280
378
|
break;
|
|
379
|
+
case 10:
|
|
380
|
+
message.contributorsDistribution.push(AddrWithQuantity.decode(reader, reader.uint32()));
|
|
381
|
+
break;
|
|
382
|
+
case 11:
|
|
383
|
+
message.Rarities.push(InnerRarities.decode(reader, reader.uint32()));
|
|
384
|
+
break;
|
|
281
385
|
default:
|
|
282
386
|
reader.skipType(tag & 7);
|
|
283
387
|
break;
|
|
@@ -296,6 +400,10 @@ export const OutpSet = {
|
|
|
296
400
|
artwork: isSet(object.artwork) ? String(object.artwork) : "",
|
|
297
401
|
status: isSet(object.status) ? cStatusFromJSON(object.status) : 0,
|
|
298
402
|
timeStamp: isSet(object.timeStamp) ? Number(object.timeStamp) : 0,
|
|
403
|
+
contributorsDistribution: Array.isArray(object?.contributorsDistribution)
|
|
404
|
+
? object.contributorsDistribution.map((e) => AddrWithQuantity.fromJSON(e))
|
|
405
|
+
: [],
|
|
406
|
+
Rarities: Array.isArray(object?.Rarities) ? object.Rarities.map((e) => InnerRarities.fromJSON(e)) : [],
|
|
299
407
|
};
|
|
300
408
|
},
|
|
301
409
|
toJSON(message) {
|
|
@@ -319,6 +427,18 @@ export const OutpSet = {
|
|
|
319
427
|
message.artwork !== undefined && (obj.artwork = message.artwork);
|
|
320
428
|
message.status !== undefined && (obj.status = cStatusToJSON(message.status));
|
|
321
429
|
message.timeStamp !== undefined && (obj.timeStamp = Math.round(message.timeStamp));
|
|
430
|
+
if (message.contributorsDistribution) {
|
|
431
|
+
obj.contributorsDistribution = message.contributorsDistribution.map((e) => e ? AddrWithQuantity.toJSON(e) : undefined);
|
|
432
|
+
}
|
|
433
|
+
else {
|
|
434
|
+
obj.contributorsDistribution = [];
|
|
435
|
+
}
|
|
436
|
+
if (message.Rarities) {
|
|
437
|
+
obj.Rarities = message.Rarities.map((e) => e ? InnerRarities.toJSON(e) : undefined);
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
obj.Rarities = [];
|
|
441
|
+
}
|
|
322
442
|
return obj;
|
|
323
443
|
},
|
|
324
444
|
fromPartial(object) {
|
|
@@ -332,6 +452,72 @@ export const OutpSet = {
|
|
|
332
452
|
message.artwork = object.artwork ?? "";
|
|
333
453
|
message.status = object.status ?? 0;
|
|
334
454
|
message.timeStamp = object.timeStamp ?? 0;
|
|
455
|
+
message.contributorsDistribution = object.contributorsDistribution?.map((e) => AddrWithQuantity.fromPartial(e))
|
|
456
|
+
|| [];
|
|
457
|
+
message.Rarities = object.Rarities?.map((e) => InnerRarities.fromPartial(e)) || [];
|
|
458
|
+
return message;
|
|
459
|
+
},
|
|
460
|
+
};
|
|
461
|
+
function createBaseAddrWithQuantity() {
|
|
462
|
+
return { addr: "", q: 0, payment: undefined };
|
|
463
|
+
}
|
|
464
|
+
export const AddrWithQuantity = {
|
|
465
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
466
|
+
if (message.addr !== "") {
|
|
467
|
+
writer.uint32(10).string(message.addr);
|
|
468
|
+
}
|
|
469
|
+
if (message.q !== 0) {
|
|
470
|
+
writer.uint32(16).uint32(message.q);
|
|
471
|
+
}
|
|
472
|
+
if (message.payment !== undefined) {
|
|
473
|
+
Coin.encode(message.payment, writer.uint32(26).fork()).ldelim();
|
|
474
|
+
}
|
|
475
|
+
return writer;
|
|
476
|
+
},
|
|
477
|
+
decode(input, length) {
|
|
478
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
479
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
480
|
+
const message = createBaseAddrWithQuantity();
|
|
481
|
+
while (reader.pos < end) {
|
|
482
|
+
const tag = reader.uint32();
|
|
483
|
+
switch (tag >>> 3) {
|
|
484
|
+
case 1:
|
|
485
|
+
message.addr = reader.string();
|
|
486
|
+
break;
|
|
487
|
+
case 2:
|
|
488
|
+
message.q = reader.uint32();
|
|
489
|
+
break;
|
|
490
|
+
case 3:
|
|
491
|
+
message.payment = Coin.decode(reader, reader.uint32());
|
|
492
|
+
break;
|
|
493
|
+
default:
|
|
494
|
+
reader.skipType(tag & 7);
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
return message;
|
|
499
|
+
},
|
|
500
|
+
fromJSON(object) {
|
|
501
|
+
return {
|
|
502
|
+
addr: isSet(object.addr) ? String(object.addr) : "",
|
|
503
|
+
q: isSet(object.q) ? Number(object.q) : 0,
|
|
504
|
+
payment: isSet(object.payment) ? Coin.fromJSON(object.payment) : undefined,
|
|
505
|
+
};
|
|
506
|
+
},
|
|
507
|
+
toJSON(message) {
|
|
508
|
+
const obj = {};
|
|
509
|
+
message.addr !== undefined && (obj.addr = message.addr);
|
|
510
|
+
message.q !== undefined && (obj.q = Math.round(message.q));
|
|
511
|
+
message.payment !== undefined && (obj.payment = message.payment ? Coin.toJSON(message.payment) : undefined);
|
|
512
|
+
return obj;
|
|
513
|
+
},
|
|
514
|
+
fromPartial(object) {
|
|
515
|
+
const message = createBaseAddrWithQuantity();
|
|
516
|
+
message.addr = object.addr ?? "";
|
|
517
|
+
message.q = object.q ?? 0;
|
|
518
|
+
message.payment = (object.payment !== undefined && object.payment !== null)
|
|
519
|
+
? Coin.fromPartial(object.payment)
|
|
520
|
+
: undefined;
|
|
335
521
|
return message;
|
|
336
522
|
},
|
|
337
523
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Coin } from "../../cosmos/base/v1beta1/coin";
|
|
4
5
|
|
|
5
6
|
export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
|
|
6
7
|
|
|
@@ -59,6 +60,12 @@ export interface Set {
|
|
|
59
60
|
artworkId: number;
|
|
60
61
|
status: CStatus;
|
|
61
62
|
timeStamp: number;
|
|
63
|
+
contributorsDistribution: AddrWithQuantity[];
|
|
64
|
+
Rarities: InnerRarities[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface InnerRarities {
|
|
68
|
+
R: number[];
|
|
62
69
|
}
|
|
63
70
|
|
|
64
71
|
export interface OutpSet {
|
|
@@ -71,6 +78,14 @@ export interface OutpSet {
|
|
|
71
78
|
artwork: string;
|
|
72
79
|
status: CStatus;
|
|
73
80
|
timeStamp: number;
|
|
81
|
+
contributorsDistribution: AddrWithQuantity[];
|
|
82
|
+
Rarities: InnerRarities[];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface AddrWithQuantity {
|
|
86
|
+
addr: string;
|
|
87
|
+
q: number;
|
|
88
|
+
payment: Coin | undefined;
|
|
74
89
|
}
|
|
75
90
|
|
|
76
91
|
function createBaseSet(): Set {
|
|
@@ -84,6 +99,8 @@ function createBaseSet(): Set {
|
|
|
84
99
|
artworkId: 0,
|
|
85
100
|
status: 0,
|
|
86
101
|
timeStamp: 0,
|
|
102
|
+
contributorsDistribution: [],
|
|
103
|
+
Rarities: [],
|
|
87
104
|
};
|
|
88
105
|
}
|
|
89
106
|
|
|
@@ -118,6 +135,12 @@ export const Set = {
|
|
|
118
135
|
if (message.timeStamp !== 0) {
|
|
119
136
|
writer.uint32(72).int64(message.timeStamp);
|
|
120
137
|
}
|
|
138
|
+
for (const v of message.contributorsDistribution) {
|
|
139
|
+
AddrWithQuantity.encode(v!, writer.uint32(82).fork()).ldelim();
|
|
140
|
+
}
|
|
141
|
+
for (const v of message.Rarities) {
|
|
142
|
+
InnerRarities.encode(v!, writer.uint32(90).fork()).ldelim();
|
|
143
|
+
}
|
|
121
144
|
return writer;
|
|
122
145
|
},
|
|
123
146
|
|
|
@@ -162,6 +185,12 @@ export const Set = {
|
|
|
162
185
|
case 9:
|
|
163
186
|
message.timeStamp = longToNumber(reader.int64() as Long);
|
|
164
187
|
break;
|
|
188
|
+
case 10:
|
|
189
|
+
message.contributorsDistribution.push(AddrWithQuantity.decode(reader, reader.uint32()));
|
|
190
|
+
break;
|
|
191
|
+
case 11:
|
|
192
|
+
message.Rarities.push(InnerRarities.decode(reader, reader.uint32()));
|
|
193
|
+
break;
|
|
165
194
|
default:
|
|
166
195
|
reader.skipType(tag & 7);
|
|
167
196
|
break;
|
|
@@ -181,6 +210,10 @@ export const Set = {
|
|
|
181
210
|
artworkId: isSet(object.artworkId) ? Number(object.artworkId) : 0,
|
|
182
211
|
status: isSet(object.status) ? cStatusFromJSON(object.status) : 0,
|
|
183
212
|
timeStamp: isSet(object.timeStamp) ? Number(object.timeStamp) : 0,
|
|
213
|
+
contributorsDistribution: Array.isArray(object?.contributorsDistribution)
|
|
214
|
+
? object.contributorsDistribution.map((e: any) => AddrWithQuantity.fromJSON(e))
|
|
215
|
+
: [],
|
|
216
|
+
Rarities: Array.isArray(object?.Rarities) ? object.Rarities.map((e: any) => InnerRarities.fromJSON(e)) : [],
|
|
184
217
|
};
|
|
185
218
|
},
|
|
186
219
|
|
|
@@ -203,6 +236,18 @@ export const Set = {
|
|
|
203
236
|
message.artworkId !== undefined && (obj.artworkId = Math.round(message.artworkId));
|
|
204
237
|
message.status !== undefined && (obj.status = cStatusToJSON(message.status));
|
|
205
238
|
message.timeStamp !== undefined && (obj.timeStamp = Math.round(message.timeStamp));
|
|
239
|
+
if (message.contributorsDistribution) {
|
|
240
|
+
obj.contributorsDistribution = message.contributorsDistribution.map((e) =>
|
|
241
|
+
e ? AddrWithQuantity.toJSON(e) : undefined
|
|
242
|
+
);
|
|
243
|
+
} else {
|
|
244
|
+
obj.contributorsDistribution = [];
|
|
245
|
+
}
|
|
246
|
+
if (message.Rarities) {
|
|
247
|
+
obj.Rarities = message.Rarities.map((e) => e ? InnerRarities.toJSON(e) : undefined);
|
|
248
|
+
} else {
|
|
249
|
+
obj.Rarities = [];
|
|
250
|
+
}
|
|
206
251
|
return obj;
|
|
207
252
|
},
|
|
208
253
|
|
|
@@ -217,6 +262,69 @@ export const Set = {
|
|
|
217
262
|
message.artworkId = object.artworkId ?? 0;
|
|
218
263
|
message.status = object.status ?? 0;
|
|
219
264
|
message.timeStamp = object.timeStamp ?? 0;
|
|
265
|
+
message.contributorsDistribution = object.contributorsDistribution?.map((e) => AddrWithQuantity.fromPartial(e))
|
|
266
|
+
|| [];
|
|
267
|
+
message.Rarities = object.Rarities?.map((e) => InnerRarities.fromPartial(e)) || [];
|
|
268
|
+
return message;
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
function createBaseInnerRarities(): InnerRarities {
|
|
273
|
+
return { R: [] };
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export const InnerRarities = {
|
|
277
|
+
encode(message: InnerRarities, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
278
|
+
writer.uint32(10).fork();
|
|
279
|
+
for (const v of message.R) {
|
|
280
|
+
writer.uint64(v);
|
|
281
|
+
}
|
|
282
|
+
writer.ldelim();
|
|
283
|
+
return writer;
|
|
284
|
+
},
|
|
285
|
+
|
|
286
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InnerRarities {
|
|
287
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
288
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
289
|
+
const message = createBaseInnerRarities();
|
|
290
|
+
while (reader.pos < end) {
|
|
291
|
+
const tag = reader.uint32();
|
|
292
|
+
switch (tag >>> 3) {
|
|
293
|
+
case 1:
|
|
294
|
+
if ((tag & 7) === 2) {
|
|
295
|
+
const end2 = reader.uint32() + reader.pos;
|
|
296
|
+
while (reader.pos < end2) {
|
|
297
|
+
message.R.push(longToNumber(reader.uint64() as Long));
|
|
298
|
+
}
|
|
299
|
+
} else {
|
|
300
|
+
message.R.push(longToNumber(reader.uint64() as Long));
|
|
301
|
+
}
|
|
302
|
+
break;
|
|
303
|
+
default:
|
|
304
|
+
reader.skipType(tag & 7);
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return message;
|
|
309
|
+
},
|
|
310
|
+
|
|
311
|
+
fromJSON(object: any): InnerRarities {
|
|
312
|
+
return { R: Array.isArray(object?.R) ? object.R.map((e: any) => Number(e)) : [] };
|
|
313
|
+
},
|
|
314
|
+
|
|
315
|
+
toJSON(message: InnerRarities): unknown {
|
|
316
|
+
const obj: any = {};
|
|
317
|
+
if (message.R) {
|
|
318
|
+
obj.R = message.R.map((e) => Math.round(e));
|
|
319
|
+
} else {
|
|
320
|
+
obj.R = [];
|
|
321
|
+
}
|
|
322
|
+
return obj;
|
|
323
|
+
},
|
|
324
|
+
|
|
325
|
+
fromPartial<I extends Exact<DeepPartial<InnerRarities>, I>>(object: I): InnerRarities {
|
|
326
|
+
const message = createBaseInnerRarities();
|
|
327
|
+
message.R = object.R?.map((e) => e) || [];
|
|
220
328
|
return message;
|
|
221
329
|
},
|
|
222
330
|
};
|
|
@@ -232,6 +340,8 @@ function createBaseOutpSet(): OutpSet {
|
|
|
232
340
|
artwork: "",
|
|
233
341
|
status: 0,
|
|
234
342
|
timeStamp: 0,
|
|
343
|
+
contributorsDistribution: [],
|
|
344
|
+
Rarities: [],
|
|
235
345
|
};
|
|
236
346
|
}
|
|
237
347
|
|
|
@@ -266,6 +376,12 @@ export const OutpSet = {
|
|
|
266
376
|
if (message.timeStamp !== 0) {
|
|
267
377
|
writer.uint32(72).int64(message.timeStamp);
|
|
268
378
|
}
|
|
379
|
+
for (const v of message.contributorsDistribution) {
|
|
380
|
+
AddrWithQuantity.encode(v!, writer.uint32(82).fork()).ldelim();
|
|
381
|
+
}
|
|
382
|
+
for (const v of message.Rarities) {
|
|
383
|
+
InnerRarities.encode(v!, writer.uint32(90).fork()).ldelim();
|
|
384
|
+
}
|
|
269
385
|
return writer;
|
|
270
386
|
},
|
|
271
387
|
|
|
@@ -310,6 +426,12 @@ export const OutpSet = {
|
|
|
310
426
|
case 9:
|
|
311
427
|
message.timeStamp = longToNumber(reader.int64() as Long);
|
|
312
428
|
break;
|
|
429
|
+
case 10:
|
|
430
|
+
message.contributorsDistribution.push(AddrWithQuantity.decode(reader, reader.uint32()));
|
|
431
|
+
break;
|
|
432
|
+
case 11:
|
|
433
|
+
message.Rarities.push(InnerRarities.decode(reader, reader.uint32()));
|
|
434
|
+
break;
|
|
313
435
|
default:
|
|
314
436
|
reader.skipType(tag & 7);
|
|
315
437
|
break;
|
|
@@ -329,6 +451,10 @@ export const OutpSet = {
|
|
|
329
451
|
artwork: isSet(object.artwork) ? String(object.artwork) : "",
|
|
330
452
|
status: isSet(object.status) ? cStatusFromJSON(object.status) : 0,
|
|
331
453
|
timeStamp: isSet(object.timeStamp) ? Number(object.timeStamp) : 0,
|
|
454
|
+
contributorsDistribution: Array.isArray(object?.contributorsDistribution)
|
|
455
|
+
? object.contributorsDistribution.map((e: any) => AddrWithQuantity.fromJSON(e))
|
|
456
|
+
: [],
|
|
457
|
+
Rarities: Array.isArray(object?.Rarities) ? object.Rarities.map((e: any) => InnerRarities.fromJSON(e)) : [],
|
|
332
458
|
};
|
|
333
459
|
},
|
|
334
460
|
|
|
@@ -351,6 +477,18 @@ export const OutpSet = {
|
|
|
351
477
|
message.artwork !== undefined && (obj.artwork = message.artwork);
|
|
352
478
|
message.status !== undefined && (obj.status = cStatusToJSON(message.status));
|
|
353
479
|
message.timeStamp !== undefined && (obj.timeStamp = Math.round(message.timeStamp));
|
|
480
|
+
if (message.contributorsDistribution) {
|
|
481
|
+
obj.contributorsDistribution = message.contributorsDistribution.map((e) =>
|
|
482
|
+
e ? AddrWithQuantity.toJSON(e) : undefined
|
|
483
|
+
);
|
|
484
|
+
} else {
|
|
485
|
+
obj.contributorsDistribution = [];
|
|
486
|
+
}
|
|
487
|
+
if (message.Rarities) {
|
|
488
|
+
obj.Rarities = message.Rarities.map((e) => e ? InnerRarities.toJSON(e) : undefined);
|
|
489
|
+
} else {
|
|
490
|
+
obj.Rarities = [];
|
|
491
|
+
}
|
|
354
492
|
return obj;
|
|
355
493
|
},
|
|
356
494
|
|
|
@@ -365,6 +503,78 @@ export const OutpSet = {
|
|
|
365
503
|
message.artwork = object.artwork ?? "";
|
|
366
504
|
message.status = object.status ?? 0;
|
|
367
505
|
message.timeStamp = object.timeStamp ?? 0;
|
|
506
|
+
message.contributorsDistribution = object.contributorsDistribution?.map((e) => AddrWithQuantity.fromPartial(e))
|
|
507
|
+
|| [];
|
|
508
|
+
message.Rarities = object.Rarities?.map((e) => InnerRarities.fromPartial(e)) || [];
|
|
509
|
+
return message;
|
|
510
|
+
},
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
function createBaseAddrWithQuantity(): AddrWithQuantity {
|
|
514
|
+
return { addr: "", q: 0, payment: undefined };
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export const AddrWithQuantity = {
|
|
518
|
+
encode(message: AddrWithQuantity, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
519
|
+
if (message.addr !== "") {
|
|
520
|
+
writer.uint32(10).string(message.addr);
|
|
521
|
+
}
|
|
522
|
+
if (message.q !== 0) {
|
|
523
|
+
writer.uint32(16).uint32(message.q);
|
|
524
|
+
}
|
|
525
|
+
if (message.payment !== undefined) {
|
|
526
|
+
Coin.encode(message.payment, writer.uint32(26).fork()).ldelim();
|
|
527
|
+
}
|
|
528
|
+
return writer;
|
|
529
|
+
},
|
|
530
|
+
|
|
531
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddrWithQuantity {
|
|
532
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
533
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
534
|
+
const message = createBaseAddrWithQuantity();
|
|
535
|
+
while (reader.pos < end) {
|
|
536
|
+
const tag = reader.uint32();
|
|
537
|
+
switch (tag >>> 3) {
|
|
538
|
+
case 1:
|
|
539
|
+
message.addr = reader.string();
|
|
540
|
+
break;
|
|
541
|
+
case 2:
|
|
542
|
+
message.q = reader.uint32();
|
|
543
|
+
break;
|
|
544
|
+
case 3:
|
|
545
|
+
message.payment = Coin.decode(reader, reader.uint32());
|
|
546
|
+
break;
|
|
547
|
+
default:
|
|
548
|
+
reader.skipType(tag & 7);
|
|
549
|
+
break;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
return message;
|
|
553
|
+
},
|
|
554
|
+
|
|
555
|
+
fromJSON(object: any): AddrWithQuantity {
|
|
556
|
+
return {
|
|
557
|
+
addr: isSet(object.addr) ? String(object.addr) : "",
|
|
558
|
+
q: isSet(object.q) ? Number(object.q) : 0,
|
|
559
|
+
payment: isSet(object.payment) ? Coin.fromJSON(object.payment) : undefined,
|
|
560
|
+
};
|
|
561
|
+
},
|
|
562
|
+
|
|
563
|
+
toJSON(message: AddrWithQuantity): unknown {
|
|
564
|
+
const obj: any = {};
|
|
565
|
+
message.addr !== undefined && (obj.addr = message.addr);
|
|
566
|
+
message.q !== undefined && (obj.q = Math.round(message.q));
|
|
567
|
+
message.payment !== undefined && (obj.payment = message.payment ? Coin.toJSON(message.payment) : undefined);
|
|
568
|
+
return obj;
|
|
569
|
+
},
|
|
570
|
+
|
|
571
|
+
fromPartial<I extends Exact<DeepPartial<AddrWithQuantity>, I>>(object: I): AddrWithQuantity {
|
|
572
|
+
const message = createBaseAddrWithQuantity();
|
|
573
|
+
message.addr = object.addr ?? "";
|
|
574
|
+
message.q = object.q ?? 0;
|
|
575
|
+
message.payment = (object.payment !== undefined && object.payment !== null)
|
|
576
|
+
? Coin.fromPartial(object.payment)
|
|
577
|
+
: undefined;
|
|
368
578
|
return message;
|
|
369
579
|
},
|
|
370
580
|
};
|
|
@@ -3885,6 +3885,91 @@ export const MsgSetSetNameResponse = {
|
|
|
3885
3885
|
return message;
|
|
3886
3886
|
},
|
|
3887
3887
|
};
|
|
3888
|
+
function createBaseMsgChangeAlias() {
|
|
3889
|
+
return { creator: "", alias: "" };
|
|
3890
|
+
}
|
|
3891
|
+
export const MsgChangeAlias = {
|
|
3892
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3893
|
+
if (message.creator !== "") {
|
|
3894
|
+
writer.uint32(10).string(message.creator);
|
|
3895
|
+
}
|
|
3896
|
+
if (message.alias !== "") {
|
|
3897
|
+
writer.uint32(18).string(message.alias);
|
|
3898
|
+
}
|
|
3899
|
+
return writer;
|
|
3900
|
+
},
|
|
3901
|
+
decode(input, length) {
|
|
3902
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3903
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3904
|
+
const message = createBaseMsgChangeAlias();
|
|
3905
|
+
while (reader.pos < end) {
|
|
3906
|
+
const tag = reader.uint32();
|
|
3907
|
+
switch (tag >>> 3) {
|
|
3908
|
+
case 1:
|
|
3909
|
+
message.creator = reader.string();
|
|
3910
|
+
break;
|
|
3911
|
+
case 2:
|
|
3912
|
+
message.alias = reader.string();
|
|
3913
|
+
break;
|
|
3914
|
+
default:
|
|
3915
|
+
reader.skipType(tag & 7);
|
|
3916
|
+
break;
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
return message;
|
|
3920
|
+
},
|
|
3921
|
+
fromJSON(object) {
|
|
3922
|
+
return {
|
|
3923
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
3924
|
+
alias: isSet(object.alias) ? String(object.alias) : "",
|
|
3925
|
+
};
|
|
3926
|
+
},
|
|
3927
|
+
toJSON(message) {
|
|
3928
|
+
const obj = {};
|
|
3929
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
3930
|
+
message.alias !== undefined && (obj.alias = message.alias);
|
|
3931
|
+
return obj;
|
|
3932
|
+
},
|
|
3933
|
+
fromPartial(object) {
|
|
3934
|
+
const message = createBaseMsgChangeAlias();
|
|
3935
|
+
message.creator = object.creator ?? "";
|
|
3936
|
+
message.alias = object.alias ?? "";
|
|
3937
|
+
return message;
|
|
3938
|
+
},
|
|
3939
|
+
};
|
|
3940
|
+
function createBaseMsgChangeAliasResponse() {
|
|
3941
|
+
return {};
|
|
3942
|
+
}
|
|
3943
|
+
export const MsgChangeAliasResponse = {
|
|
3944
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
3945
|
+
return writer;
|
|
3946
|
+
},
|
|
3947
|
+
decode(input, length) {
|
|
3948
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3949
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3950
|
+
const message = createBaseMsgChangeAliasResponse();
|
|
3951
|
+
while (reader.pos < end) {
|
|
3952
|
+
const tag = reader.uint32();
|
|
3953
|
+
switch (tag >>> 3) {
|
|
3954
|
+
default:
|
|
3955
|
+
reader.skipType(tag & 7);
|
|
3956
|
+
break;
|
|
3957
|
+
}
|
|
3958
|
+
}
|
|
3959
|
+
return message;
|
|
3960
|
+
},
|
|
3961
|
+
fromJSON(_) {
|
|
3962
|
+
return {};
|
|
3963
|
+
},
|
|
3964
|
+
toJSON(_) {
|
|
3965
|
+
const obj = {};
|
|
3966
|
+
return obj;
|
|
3967
|
+
},
|
|
3968
|
+
fromPartial(_) {
|
|
3969
|
+
const message = createBaseMsgChangeAliasResponse();
|
|
3970
|
+
return message;
|
|
3971
|
+
},
|
|
3972
|
+
};
|
|
3888
3973
|
export class MsgClientImpl {
|
|
3889
3974
|
constructor(rpc) {
|
|
3890
3975
|
this.rpc = rpc;
|
|
@@ -3928,6 +4013,7 @@ export class MsgClientImpl {
|
|
|
3928
4013
|
this.MultiVoteCard = this.MultiVoteCard.bind(this);
|
|
3929
4014
|
this.OpenMatch = this.OpenMatch.bind(this);
|
|
3930
4015
|
this.SetSetName = this.SetSetName.bind(this);
|
|
4016
|
+
this.ChangeAlias = this.ChangeAlias.bind(this);
|
|
3931
4017
|
}
|
|
3932
4018
|
Createuser(request) {
|
|
3933
4019
|
const data = MsgCreateuser.encode(request).finish();
|
|
@@ -4129,6 +4215,11 @@ export class MsgClientImpl {
|
|
|
4129
4215
|
const promise = this.rpc.request("DecentralCardGame.cardchain.cardchain.Msg", "SetSetName", data);
|
|
4130
4216
|
return promise.then((data) => MsgSetSetNameResponse.decode(new _m0.Reader(data)));
|
|
4131
4217
|
}
|
|
4218
|
+
ChangeAlias(request) {
|
|
4219
|
+
const data = MsgChangeAlias.encode(request).finish();
|
|
4220
|
+
const promise = this.rpc.request("DecentralCardGame.cardchain.cardchain.Msg", "ChangeAlias", data);
|
|
4221
|
+
return promise.then((data) => MsgChangeAliasResponse.decode(new _m0.Reader(data)));
|
|
4222
|
+
}
|
|
4132
4223
|
}
|
|
4133
4224
|
var globalThis = (() => {
|
|
4134
4225
|
if (typeof globalThis !== "undefined") {
|