@sparkdreamnft/sparkdreamjs 0.0.44 → 0.0.46
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/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/nested-amino.js +6 -4
- package/esm/sparkdream/artifact/v1/genesis.js +217 -3
- package/esm/sparkdream/artifact/v1/params.js +146 -2
- package/esm/sparkdream/artifact/v1/query.js +3767 -5
- package/esm/sparkdream/artifact/v1/query.lcd.js +173 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +195 -1
- package/esm/sparkdream/artifact/v1/tx.amino.js +324 -5
- package/esm/sparkdream/artifact/v1/tx.js +7498 -5
- package/esm/sparkdream/artifact/v1/tx.registry.js +704 -2
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +241 -1
- package/esm/sparkdream/artifact/v1/types.js +4312 -1120
- package/esm/sparkdream/blog/v1/tx.amino.js +21 -1
- package/esm/sparkdream/bundle.js +329 -291
- package/esm/sparkdream/client.js +5 -2
- package/esm/sparkdream/collect/v1/tx.amino.js +16 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +33 -1
- package/esm/sparkdream/commons/v1/tx.js +25 -1
- package/esm/sparkdream/federation/v1/tx.amino.js +51 -1
- package/esm/sparkdream/forum/v1/tx.amino.js +21 -1
- package/esm/sparkdream/guardian/v1/tx.amino.js +33 -3
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/name/v1/genesis.js +32 -2
- package/esm/sparkdream/rep/v1/genesis.js +74 -1
- package/esm/sparkdream/rep/v1/member.js +110 -1
- package/esm/sparkdream/rep/v1/migration.js +957 -0
- package/esm/sparkdream/rep/v1/params.js +193 -1
- package/esm/sparkdream/rep/v1/query.js +1060 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +48 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +65 -1
- package/esm/sparkdream/rep/v1/tx.amino.js +71 -1
- package/esm/sparkdream/rep/v1/tx.js +1886 -1
- package/esm/sparkdream/rep/v1/tx.registry.js +218 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +75 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/tx.amino.js +64 -2
- package/esm/sparkdream/season/v1/tx.js +33 -2
- package/esm/sparkdream/service/v1/operator.js +25 -1
- package/esm/sparkdream/service/v1/tx.amino.js +6 -1
- package/esm/sparkdream/service/v1/tx.js +163 -0
- package/esm/sparkdream/service/v1/tx.registry.js +20 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +11 -1
- package/esm/sparkdream/session/v1/grant.js +98 -6
- package/esm/sparkdream/session/v1/tx.amino.js +3 -0
- package/esm/sparkdream/session/v1/tx.js +53 -5
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/esm/sparkdream/shield/v1/genesis.js +32 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/query.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +414 -15
- package/esm/sparkdream/vault/module/v1/module.js +71 -0
- package/esm/sparkdream/vault/v1/genesis.js +104 -0
- package/esm/sparkdream/vault/v1/params.js +90 -0
- package/esm/sparkdream/vault/v1/query.js +1535 -0
- package/esm/sparkdream/vault/v1/query.lcd.js +100 -0
- package/esm/sparkdream/vault/v1/query.rpc.Query.js +111 -0
- package/esm/sparkdream/vault/v1/tx.amino.js +111 -0
- package/esm/sparkdream/vault/v1/tx.js +1393 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +159 -0
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +60 -0
- package/esm/sparkdream/vault/v1/vault.js +163 -0
- package/esm/sparkdream/vault/v1/vault_proposal.js +277 -0
- package/esm/sparkdream/vault/v1/vault_signer.js +85 -0
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/nested-amino.d.ts +3 -2
- package/nested-amino.js +6 -4
- package/package.json +1 -13
- package/sparkdream/artifact/v1/genesis.d.ts +37 -4
- package/sparkdream/artifact/v1/genesis.js +216 -2
- package/sparkdream/artifact/v1/params.d.ts +92 -0
- package/sparkdream/artifact/v1/params.js +146 -2
- package/sparkdream/artifact/v1/query.d.ts +2373 -168
- package/sparkdream/artifact/v1/query.js +3768 -5
- package/sparkdream/artifact/v1/query.lcd.d.ts +22 -1
- package/sparkdream/artifact/v1/query.lcd.js +173 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +98 -1
- package/sparkdream/artifact/v1/query.rpc.Query.js +194 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +200 -5
- package/sparkdream/artifact/v1/tx.amino.js +324 -5
- package/sparkdream/artifact/v1/tx.d.ts +5188 -930
- package/sparkdream/artifact/v1/tx.js +7499 -5
- package/sparkdream/artifact/v1/tx.registry.d.ts +469 -1
- package/sparkdream/artifact/v1/tx.registry.js +703 -1
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +136 -1
- package/sparkdream/artifact/v1/tx.rpc.msg.js +240 -0
- package/sparkdream/artifact/v1/types.d.ts +1797 -25
- package/sparkdream/artifact/v1/types.js +4322 -1121
- package/sparkdream/blog/v1/tx.amino.d.ts +21 -1
- package/sparkdream/blog/v1/tx.amino.js +20 -0
- package/sparkdream/bundle.d.ts +13721 -9493
- package/sparkdream/bundle.js +329 -291
- package/sparkdream/client.d.ts +394 -9
- package/sparkdream/client.js +5 -2
- package/sparkdream/collect/v1/tx.amino.d.ts +16 -1
- package/sparkdream/collect/v1/tx.amino.js +15 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +21 -1
- package/sparkdream/commons/v1/tx.amino.js +32 -0
- package/sparkdream/commons/v1/tx.d.ts +18 -0
- package/sparkdream/commons/v1/tx.js +25 -1
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -1
- package/sparkdream/federation/v1/tx.amino.js +52 -2
- package/sparkdream/forum/v1/tx.amino.d.ts +21 -1
- package/sparkdream/forum/v1/tx.amino.js +20 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +3 -3
- package/sparkdream/guardian/v1/tx.amino.js +36 -5
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/name/v1/genesis.d.ts +23 -1
- package/sparkdream/name/v1/genesis.js +31 -1
- package/sparkdream/rep/v1/genesis.d.ts +19 -0
- package/sparkdream/rep/v1/genesis.js +74 -1
- package/sparkdream/rep/v1/member.d.ts +92 -0
- package/sparkdream/rep/v1/member.js +110 -1
- package/sparkdream/rep/v1/migration.d.ts +587 -0
- package/sparkdream/rep/v1/migration.js +964 -0
- package/sparkdream/rep/v1/params.d.ts +190 -0
- package/sparkdream/rep/v1/params.js +193 -1
- package/sparkdream/rep/v1/query.d.ts +679 -0
- package/sparkdream/rep/v1/query.js +1061 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +8 -1
- package/sparkdream/rep/v1/query.lcd.js +48 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +32 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +64 -0
- package/sparkdream/rep/v1/tx.amino.d.ts +71 -1
- package/sparkdream/rep/v1/tx.amino.js +70 -0
- package/sparkdream/rep/v1/tx.d.ts +1278 -0
- package/sparkdream/rep/v1/tx.js +1887 -2
- package/sparkdream/rep/v1/tx.registry.d.ts +145 -1
- package/sparkdream/rep/v1/tx.registry.js +217 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +41 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +74 -0
- package/sparkdream/rpc.query.d.ts +42 -0
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/tx.amino.d.ts +2 -2
- package/sparkdream/season/v1/tx.amino.js +65 -3
- package/sparkdream/season/v1/tx.d.ts +19 -0
- package/sparkdream/season/v1/tx.js +33 -2
- package/sparkdream/service/v1/operator.d.ts +30 -0
- package/sparkdream/service/v1/operator.js +25 -1
- package/sparkdream/service/v1/tx.amino.d.ts +6 -1
- package/sparkdream/service/v1/tx.amino.js +5 -0
- package/sparkdream/service/v1/tx.d.ts +119 -0
- package/sparkdream/service/v1/tx.js +164 -1
- package/sparkdream/service/v1/tx.registry.d.ts +13 -1
- package/sparkdream/service/v1/tx.registry.js +19 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +10 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +10 -0
- package/sparkdream/session/v1/grant.d.ts +75 -7
- package/sparkdream/session/v1/grant.js +99 -7
- package/sparkdream/session/v1/tx.amino.js +3 -0
- package/sparkdream/session/v1/tx.d.ts +36 -4
- package/sparkdream/session/v1/tx.js +52 -4
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +2 -2
- package/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/sparkdream/shield/v1/genesis.d.ts +17 -1
- package/sparkdream/shield/v1/genesis.js +31 -1
- package/sparkdream/shield/v1/params.d.ts +16 -4
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/query.d.ts +8 -0
- package/sparkdream/shield/v1/query.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +36 -10
- package/sparkdream/shield/v1/types.d.ts +294 -13
- package/sparkdream/shield/v1/types.js +415 -16
- package/sparkdream/vault/module/v1/module.d.ts +54 -0
- package/sparkdream/vault/module/v1/module.js +74 -0
- package/sparkdream/vault/v1/genesis.d.ts +59 -0
- package/sparkdream/vault/v1/genesis.js +107 -0
- package/sparkdream/vault/v1/params.d.ts +68 -0
- package/sparkdream/vault/v1/params.js +93 -0
- package/sparkdream/vault/v1/query.d.ts +935 -0
- package/sparkdream/vault/v1/query.js +1538 -0
- package/sparkdream/vault/v1/query.lcd.d.ts +18 -0
- package/sparkdream/vault/v1/query.lcd.js +104 -0
- package/sparkdream/vault/v1/query.rpc.Query.d.ts +56 -0
- package/sparkdream/vault/v1/query.rpc.Query.js +116 -0
- package/sparkdream/vault/v1/tx.amino.d.ts +44 -0
- package/sparkdream/vault/v1/tx.amino.js +115 -0
- package/sparkdream/vault/v1/tx.d.ts +826 -0
- package/sparkdream/vault/v1/tx.js +1399 -0
- package/sparkdream/vault/v1/tx.registry.d.ts +109 -0
- package/sparkdream/vault/v1/tx.registry.js +163 -0
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +37 -0
- package/sparkdream/vault/v1/tx.rpc.msg.js +65 -0
- package/sparkdream/vault/v1/vault.d.ts +117 -0
- package/sparkdream/vault/v1/vault.js +166 -0
- package/sparkdream/vault/v1/vault_proposal.d.ts +158 -0
- package/sparkdream/vault/v1/vault_proposal.js +285 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +54 -0
- package/sparkdream/vault/v1/vault_signer.js +88 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
3
|
import { Params } from "./params";
|
|
4
|
-
import { Class, Token, TokenMetadata, Listing, PendingClassOwner, HideRecord } from "./types";
|
|
4
|
+
import { Class, Token, TokenMetadata, Listing, Auction, PendingClassOwner, HideRecord, MediaProposal, Edition, Balance, UnitListing, CraftRecipe, Rental, RentalOffer, TokenRef, HarbergerState, Offer } from "./types";
|
|
5
5
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
6
6
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
7
|
function createBaseQueryParamsRequest() {
|
|
@@ -216,7 +216,15 @@ function createBaseTokenView() {
|
|
|
216
216
|
token: Token.fromPartial({}),
|
|
217
217
|
withheld: false,
|
|
218
218
|
metadataHash: "",
|
|
219
|
-
classStatus: 0
|
|
219
|
+
classStatus: 0,
|
|
220
|
+
displayedMetadata: TokenMetadata.fromPartial({}),
|
|
221
|
+
displaySource: "",
|
|
222
|
+
renderError: "",
|
|
223
|
+
expired: false,
|
|
224
|
+
seed: "",
|
|
225
|
+
contentsHash: "",
|
|
226
|
+
user: "",
|
|
227
|
+
harbergerPrice: ""
|
|
220
228
|
};
|
|
221
229
|
}
|
|
222
230
|
/**
|
|
@@ -241,6 +249,30 @@ export const TokenView = {
|
|
|
241
249
|
if (message.classStatus !== 0) {
|
|
242
250
|
writer.uint32(32).int32(message.classStatus);
|
|
243
251
|
}
|
|
252
|
+
if (message.displayedMetadata !== undefined) {
|
|
253
|
+
TokenMetadata.encode(message.displayedMetadata, writer.uint32(42).fork()).ldelim();
|
|
254
|
+
}
|
|
255
|
+
if (message.displaySource !== "") {
|
|
256
|
+
writer.uint32(50).string(message.displaySource);
|
|
257
|
+
}
|
|
258
|
+
if (message.renderError !== "") {
|
|
259
|
+
writer.uint32(58).string(message.renderError);
|
|
260
|
+
}
|
|
261
|
+
if (message.expired === true) {
|
|
262
|
+
writer.uint32(64).bool(message.expired);
|
|
263
|
+
}
|
|
264
|
+
if (message.seed !== "") {
|
|
265
|
+
writer.uint32(74).string(message.seed);
|
|
266
|
+
}
|
|
267
|
+
if (message.contentsHash !== "") {
|
|
268
|
+
writer.uint32(82).string(message.contentsHash);
|
|
269
|
+
}
|
|
270
|
+
if (message.user !== "") {
|
|
271
|
+
writer.uint32(90).string(message.user);
|
|
272
|
+
}
|
|
273
|
+
if (message.harbergerPrice !== "") {
|
|
274
|
+
writer.uint32(98).string(message.harbergerPrice);
|
|
275
|
+
}
|
|
244
276
|
return writer;
|
|
245
277
|
},
|
|
246
278
|
decode(input, length) {
|
|
@@ -262,6 +294,30 @@ export const TokenView = {
|
|
|
262
294
|
case 4:
|
|
263
295
|
message.classStatus = reader.int32();
|
|
264
296
|
break;
|
|
297
|
+
case 5:
|
|
298
|
+
message.displayedMetadata = TokenMetadata.decode(reader, reader.uint32());
|
|
299
|
+
break;
|
|
300
|
+
case 6:
|
|
301
|
+
message.displaySource = reader.string();
|
|
302
|
+
break;
|
|
303
|
+
case 7:
|
|
304
|
+
message.renderError = reader.string();
|
|
305
|
+
break;
|
|
306
|
+
case 8:
|
|
307
|
+
message.expired = reader.bool();
|
|
308
|
+
break;
|
|
309
|
+
case 9:
|
|
310
|
+
message.seed = reader.string();
|
|
311
|
+
break;
|
|
312
|
+
case 10:
|
|
313
|
+
message.contentsHash = reader.string();
|
|
314
|
+
break;
|
|
315
|
+
case 11:
|
|
316
|
+
message.user = reader.string();
|
|
317
|
+
break;
|
|
318
|
+
case 12:
|
|
319
|
+
message.harbergerPrice = reader.string();
|
|
320
|
+
break;
|
|
265
321
|
default:
|
|
266
322
|
reader.skipType(tag & 7);
|
|
267
323
|
break;
|
|
@@ -275,6 +331,14 @@ export const TokenView = {
|
|
|
275
331
|
message.withheld = object.withheld ?? false;
|
|
276
332
|
message.metadataHash = object.metadataHash ?? "";
|
|
277
333
|
message.classStatus = object.classStatus ?? 0;
|
|
334
|
+
message.displayedMetadata = object.displayedMetadata !== undefined && object.displayedMetadata !== null ? TokenMetadata.fromPartial(object.displayedMetadata) : undefined;
|
|
335
|
+
message.displaySource = object.displaySource ?? "";
|
|
336
|
+
message.renderError = object.renderError ?? "";
|
|
337
|
+
message.expired = object.expired ?? false;
|
|
338
|
+
message.seed = object.seed ?? "";
|
|
339
|
+
message.contentsHash = object.contentsHash ?? "";
|
|
340
|
+
message.user = object.user ?? "";
|
|
341
|
+
message.harbergerPrice = object.harbergerPrice ?? "";
|
|
278
342
|
return message;
|
|
279
343
|
},
|
|
280
344
|
fromAmino(object) {
|
|
@@ -291,6 +355,30 @@ export const TokenView = {
|
|
|
291
355
|
if (object.class_status !== undefined && object.class_status !== null) {
|
|
292
356
|
message.classStatus = object.class_status;
|
|
293
357
|
}
|
|
358
|
+
if (object.displayed_metadata !== undefined && object.displayed_metadata !== null) {
|
|
359
|
+
message.displayedMetadata = TokenMetadata.fromAmino(object.displayed_metadata);
|
|
360
|
+
}
|
|
361
|
+
if (object.display_source !== undefined && object.display_source !== null) {
|
|
362
|
+
message.displaySource = object.display_source;
|
|
363
|
+
}
|
|
364
|
+
if (object.render_error !== undefined && object.render_error !== null) {
|
|
365
|
+
message.renderError = object.render_error;
|
|
366
|
+
}
|
|
367
|
+
if (object.expired !== undefined && object.expired !== null) {
|
|
368
|
+
message.expired = object.expired;
|
|
369
|
+
}
|
|
370
|
+
if (object.seed !== undefined && object.seed !== null) {
|
|
371
|
+
message.seed = object.seed;
|
|
372
|
+
}
|
|
373
|
+
if (object.contents_hash !== undefined && object.contents_hash !== null) {
|
|
374
|
+
message.contentsHash = object.contents_hash;
|
|
375
|
+
}
|
|
376
|
+
if (object.user !== undefined && object.user !== null) {
|
|
377
|
+
message.user = object.user;
|
|
378
|
+
}
|
|
379
|
+
if (object.harberger_price !== undefined && object.harberger_price !== null) {
|
|
380
|
+
message.harbergerPrice = object.harberger_price;
|
|
381
|
+
}
|
|
294
382
|
return message;
|
|
295
383
|
},
|
|
296
384
|
toAmino(message) {
|
|
@@ -299,6 +387,14 @@ export const TokenView = {
|
|
|
299
387
|
obj.withheld = message.withheld === false ? undefined : message.withheld;
|
|
300
388
|
obj.metadata_hash = message.metadataHash === "" ? undefined : message.metadataHash;
|
|
301
389
|
obj.class_status = message.classStatus === 0 ? undefined : message.classStatus;
|
|
390
|
+
obj.displayed_metadata = message.displayedMetadata ? TokenMetadata.toAmino(message.displayedMetadata) : undefined;
|
|
391
|
+
obj.display_source = message.displaySource === "" ? undefined : message.displaySource;
|
|
392
|
+
obj.render_error = message.renderError === "" ? undefined : message.renderError;
|
|
393
|
+
obj.expired = message.expired === false ? undefined : message.expired;
|
|
394
|
+
obj.seed = message.seed === "" ? undefined : message.seed;
|
|
395
|
+
obj.contents_hash = message.contentsHash === "" ? undefined : message.contentsHash;
|
|
396
|
+
obj.user = message.user === "" ? undefined : message.user;
|
|
397
|
+
obj.harberger_price = message.harbergerPrice === "" ? undefined : message.harbergerPrice;
|
|
302
398
|
return obj;
|
|
303
399
|
},
|
|
304
400
|
fromAminoMsg(object) {
|
|
@@ -328,7 +424,10 @@ function createBaseInboxItem() {
|
|
|
328
424
|
expiresAt: BigInt(0),
|
|
329
425
|
metadata: TokenMetadata.fromPartial({}),
|
|
330
426
|
metadataHash: "",
|
|
331
|
-
withheld: false
|
|
427
|
+
withheld: false,
|
|
428
|
+
unitClassId: BigInt(0),
|
|
429
|
+
editionId: BigInt(0),
|
|
430
|
+
amount: BigInt(0)
|
|
332
431
|
};
|
|
333
432
|
}
|
|
334
433
|
/**
|
|
@@ -370,6 +469,15 @@ export const InboxItem = {
|
|
|
370
469
|
if (message.withheld === true) {
|
|
371
470
|
writer.uint32(80).bool(message.withheld);
|
|
372
471
|
}
|
|
472
|
+
if (message.unitClassId !== BigInt(0)) {
|
|
473
|
+
writer.uint32(88).uint64(message.unitClassId);
|
|
474
|
+
}
|
|
475
|
+
if (message.editionId !== BigInt(0)) {
|
|
476
|
+
writer.uint32(96).uint64(message.editionId);
|
|
477
|
+
}
|
|
478
|
+
if (message.amount !== BigInt(0)) {
|
|
479
|
+
writer.uint32(104).uint64(message.amount);
|
|
480
|
+
}
|
|
373
481
|
return writer;
|
|
374
482
|
},
|
|
375
483
|
decode(input, length) {
|
|
@@ -409,6 +517,15 @@ export const InboxItem = {
|
|
|
409
517
|
case 10:
|
|
410
518
|
message.withheld = reader.bool();
|
|
411
519
|
break;
|
|
520
|
+
case 11:
|
|
521
|
+
message.unitClassId = reader.uint64();
|
|
522
|
+
break;
|
|
523
|
+
case 12:
|
|
524
|
+
message.editionId = reader.uint64();
|
|
525
|
+
break;
|
|
526
|
+
case 13:
|
|
527
|
+
message.amount = reader.uint64();
|
|
528
|
+
break;
|
|
412
529
|
default:
|
|
413
530
|
reader.skipType(tag & 7);
|
|
414
531
|
break;
|
|
@@ -428,6 +545,9 @@ export const InboxItem = {
|
|
|
428
545
|
message.metadata = object.metadata !== undefined && object.metadata !== null ? TokenMetadata.fromPartial(object.metadata) : undefined;
|
|
429
546
|
message.metadataHash = object.metadataHash ?? "";
|
|
430
547
|
message.withheld = object.withheld ?? false;
|
|
548
|
+
message.unitClassId = object.unitClassId !== undefined && object.unitClassId !== null ? BigInt(object.unitClassId.toString()) : BigInt(0);
|
|
549
|
+
message.editionId = object.editionId !== undefined && object.editionId !== null ? BigInt(object.editionId.toString()) : BigInt(0);
|
|
550
|
+
message.amount = object.amount !== undefined && object.amount !== null ? BigInt(object.amount.toString()) : BigInt(0);
|
|
431
551
|
return message;
|
|
432
552
|
},
|
|
433
553
|
fromAmino(object) {
|
|
@@ -462,6 +582,15 @@ export const InboxItem = {
|
|
|
462
582
|
if (object.withheld !== undefined && object.withheld !== null) {
|
|
463
583
|
message.withheld = object.withheld;
|
|
464
584
|
}
|
|
585
|
+
if (object.unit_class_id !== undefined && object.unit_class_id !== null) {
|
|
586
|
+
message.unitClassId = BigInt(object.unit_class_id);
|
|
587
|
+
}
|
|
588
|
+
if (object.edition_id !== undefined && object.edition_id !== null) {
|
|
589
|
+
message.editionId = BigInt(object.edition_id);
|
|
590
|
+
}
|
|
591
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
592
|
+
message.amount = BigInt(object.amount);
|
|
593
|
+
}
|
|
465
594
|
return message;
|
|
466
595
|
},
|
|
467
596
|
toAmino(message) {
|
|
@@ -476,6 +605,9 @@ export const InboxItem = {
|
|
|
476
605
|
obj.metadata = message.metadata ? TokenMetadata.toAmino(message.metadata) : undefined;
|
|
477
606
|
obj.metadata_hash = message.metadataHash === "" ? undefined : message.metadataHash;
|
|
478
607
|
obj.withheld = message.withheld === false ? undefined : message.withheld;
|
|
608
|
+
obj.unit_class_id = message.unitClassId !== BigInt(0) ? message.unitClassId?.toString() : undefined;
|
|
609
|
+
obj.edition_id = message.editionId !== BigInt(0) ? message.editionId?.toString() : undefined;
|
|
610
|
+
obj.amount = message.amount !== BigInt(0) ? message.amount?.toString() : undefined;
|
|
479
611
|
return obj;
|
|
480
612
|
},
|
|
481
613
|
fromAminoMsg(object) {
|
|
@@ -1034,7 +1166,8 @@ export const QueryTokenRequest = {
|
|
|
1034
1166
|
function createBaseQueryTokenResponse() {
|
|
1035
1167
|
return {
|
|
1036
1168
|
token: TokenView.fromPartial({}),
|
|
1037
|
-
listing: undefined
|
|
1169
|
+
listing: undefined,
|
|
1170
|
+
auction: undefined
|
|
1038
1171
|
};
|
|
1039
1172
|
}
|
|
1040
1173
|
/**
|
|
@@ -1052,6 +1185,9 @@ export const QueryTokenResponse = {
|
|
|
1052
1185
|
if (message.listing !== undefined) {
|
|
1053
1186
|
Listing.encode(message.listing, writer.uint32(18).fork()).ldelim();
|
|
1054
1187
|
}
|
|
1188
|
+
if (message.auction !== undefined) {
|
|
1189
|
+
Auction.encode(message.auction, writer.uint32(26).fork()).ldelim();
|
|
1190
|
+
}
|
|
1055
1191
|
return writer;
|
|
1056
1192
|
},
|
|
1057
1193
|
decode(input, length) {
|
|
@@ -1067,6 +1203,9 @@ export const QueryTokenResponse = {
|
|
|
1067
1203
|
case 2:
|
|
1068
1204
|
message.listing = Listing.decode(reader, reader.uint32());
|
|
1069
1205
|
break;
|
|
1206
|
+
case 3:
|
|
1207
|
+
message.auction = Auction.decode(reader, reader.uint32());
|
|
1208
|
+
break;
|
|
1070
1209
|
default:
|
|
1071
1210
|
reader.skipType(tag & 7);
|
|
1072
1211
|
break;
|
|
@@ -1078,6 +1217,7 @@ export const QueryTokenResponse = {
|
|
|
1078
1217
|
const message = createBaseQueryTokenResponse();
|
|
1079
1218
|
message.token = object.token !== undefined && object.token !== null ? TokenView.fromPartial(object.token) : undefined;
|
|
1080
1219
|
message.listing = object.listing !== undefined && object.listing !== null ? Listing.fromPartial(object.listing) : undefined;
|
|
1220
|
+
message.auction = object.auction !== undefined && object.auction !== null ? Auction.fromPartial(object.auction) : undefined;
|
|
1081
1221
|
return message;
|
|
1082
1222
|
},
|
|
1083
1223
|
fromAmino(object) {
|
|
@@ -1088,12 +1228,16 @@ export const QueryTokenResponse = {
|
|
|
1088
1228
|
if (object.listing !== undefined && object.listing !== null) {
|
|
1089
1229
|
message.listing = Listing.fromAmino(object.listing);
|
|
1090
1230
|
}
|
|
1231
|
+
if (object.auction !== undefined && object.auction !== null) {
|
|
1232
|
+
message.auction = Auction.fromAmino(object.auction);
|
|
1233
|
+
}
|
|
1091
1234
|
return message;
|
|
1092
1235
|
},
|
|
1093
1236
|
toAmino(message) {
|
|
1094
1237
|
const obj = {};
|
|
1095
1238
|
obj.token = message.token ? TokenView.toAmino(message.token) : undefined;
|
|
1096
1239
|
obj.listing = message.listing ? Listing.toAmino(message.listing) : undefined;
|
|
1240
|
+
obj.auction = message.auction ? Auction.toAmino(message.auction) : undefined;
|
|
1097
1241
|
return obj;
|
|
1098
1242
|
},
|
|
1099
1243
|
fromAminoMsg(object) {
|
|
@@ -3291,7 +3435,9 @@ function createBaseQueryPublicMintQuoteResponse() {
|
|
|
3291
3435
|
deposit: Coin.fromPartial({}),
|
|
3292
3436
|
remainingAllowance: BigInt(0),
|
|
3293
3437
|
available: false,
|
|
3294
|
-
reason: ""
|
|
3438
|
+
reason: "",
|
|
3439
|
+
unitPrice: Coin.fromPartial({}),
|
|
3440
|
+
maxUnitPrice: Coin.fromPartial({})
|
|
3295
3441
|
};
|
|
3296
3442
|
}
|
|
3297
3443
|
/**
|
|
@@ -3321,6 +3467,12 @@ export const QueryPublicMintQuoteResponse = {
|
|
|
3321
3467
|
if (message.reason !== "") {
|
|
3322
3468
|
writer.uint32(50).string(message.reason);
|
|
3323
3469
|
}
|
|
3470
|
+
if (message.unitPrice !== undefined) {
|
|
3471
|
+
Coin.encode(message.unitPrice, writer.uint32(58).fork()).ldelim();
|
|
3472
|
+
}
|
|
3473
|
+
if (message.maxUnitPrice !== undefined) {
|
|
3474
|
+
Coin.encode(message.maxUnitPrice, writer.uint32(66).fork()).ldelim();
|
|
3475
|
+
}
|
|
3324
3476
|
return writer;
|
|
3325
3477
|
},
|
|
3326
3478
|
decode(input, length) {
|
|
@@ -3348,6 +3500,12 @@ export const QueryPublicMintQuoteResponse = {
|
|
|
3348
3500
|
case 6:
|
|
3349
3501
|
message.reason = reader.string();
|
|
3350
3502
|
break;
|
|
3503
|
+
case 7:
|
|
3504
|
+
message.unitPrice = Coin.decode(reader, reader.uint32());
|
|
3505
|
+
break;
|
|
3506
|
+
case 8:
|
|
3507
|
+
message.maxUnitPrice = Coin.decode(reader, reader.uint32());
|
|
3508
|
+
break;
|
|
3351
3509
|
default:
|
|
3352
3510
|
reader.skipType(tag & 7);
|
|
3353
3511
|
break;
|
|
@@ -3363,6 +3521,8 @@ export const QueryPublicMintQuoteResponse = {
|
|
|
3363
3521
|
message.remainingAllowance = object.remainingAllowance !== undefined && object.remainingAllowance !== null ? BigInt(object.remainingAllowance.toString()) : BigInt(0);
|
|
3364
3522
|
message.available = object.available ?? false;
|
|
3365
3523
|
message.reason = object.reason ?? "";
|
|
3524
|
+
message.unitPrice = object.unitPrice !== undefined && object.unitPrice !== null ? Coin.fromPartial(object.unitPrice) : undefined;
|
|
3525
|
+
message.maxUnitPrice = object.maxUnitPrice !== undefined && object.maxUnitPrice !== null ? Coin.fromPartial(object.maxUnitPrice) : undefined;
|
|
3366
3526
|
return message;
|
|
3367
3527
|
},
|
|
3368
3528
|
fromAmino(object) {
|
|
@@ -3385,6 +3545,12 @@ export const QueryPublicMintQuoteResponse = {
|
|
|
3385
3545
|
if (object.reason !== undefined && object.reason !== null) {
|
|
3386
3546
|
message.reason = object.reason;
|
|
3387
3547
|
}
|
|
3548
|
+
if (object.unit_price !== undefined && object.unit_price !== null) {
|
|
3549
|
+
message.unitPrice = Coin.fromAmino(object.unit_price);
|
|
3550
|
+
}
|
|
3551
|
+
if (object.max_unit_price !== undefined && object.max_unit_price !== null) {
|
|
3552
|
+
message.maxUnitPrice = Coin.fromAmino(object.max_unit_price);
|
|
3553
|
+
}
|
|
3388
3554
|
return message;
|
|
3389
3555
|
},
|
|
3390
3556
|
toAmino(message) {
|
|
@@ -3395,6 +3561,8 @@ export const QueryPublicMintQuoteResponse = {
|
|
|
3395
3561
|
obj.remaining_allowance = message.remainingAllowance !== BigInt(0) ? message.remainingAllowance?.toString() : undefined;
|
|
3396
3562
|
obj.available = message.available === false ? undefined : message.available;
|
|
3397
3563
|
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
3564
|
+
obj.unit_price = message.unitPrice ? Coin.toAmino(message.unitPrice) : undefined;
|
|
3565
|
+
obj.max_unit_price = message.maxUnitPrice ? Coin.toAmino(message.maxUnitPrice) : undefined;
|
|
3398
3566
|
return obj;
|
|
3399
3567
|
},
|
|
3400
3568
|
fromAminoMsg(object) {
|
|
@@ -3413,3 +3581,3597 @@ export const QueryPublicMintQuoteResponse = {
|
|
|
3413
3581
|
};
|
|
3414
3582
|
}
|
|
3415
3583
|
};
|
|
3584
|
+
function createBaseQueryMediaProposalsRequest() {
|
|
3585
|
+
return {
|
|
3586
|
+
classId: BigInt(0),
|
|
3587
|
+
tokenId: BigInt(0)
|
|
3588
|
+
};
|
|
3589
|
+
}
|
|
3590
|
+
/**
|
|
3591
|
+
* QueryMediaProposalsRequest defines the QueryMediaProposalsRequest message.
|
|
3592
|
+
* @name QueryMediaProposalsRequest
|
|
3593
|
+
* @package sparkdream.artifact.v1
|
|
3594
|
+
* @see proto type: sparkdream.artifact.v1.QueryMediaProposalsRequest
|
|
3595
|
+
*/
|
|
3596
|
+
export const QueryMediaProposalsRequest = {
|
|
3597
|
+
typeUrl: "/sparkdream.artifact.v1.QueryMediaProposalsRequest",
|
|
3598
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3599
|
+
if (message.classId !== BigInt(0)) {
|
|
3600
|
+
writer.uint32(8).uint64(message.classId);
|
|
3601
|
+
}
|
|
3602
|
+
if (message.tokenId !== BigInt(0)) {
|
|
3603
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
3604
|
+
}
|
|
3605
|
+
return writer;
|
|
3606
|
+
},
|
|
3607
|
+
decode(input, length) {
|
|
3608
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3609
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3610
|
+
const message = createBaseQueryMediaProposalsRequest();
|
|
3611
|
+
while (reader.pos < end) {
|
|
3612
|
+
const tag = reader.uint32();
|
|
3613
|
+
switch (tag >>> 3) {
|
|
3614
|
+
case 1:
|
|
3615
|
+
message.classId = reader.uint64();
|
|
3616
|
+
break;
|
|
3617
|
+
case 2:
|
|
3618
|
+
message.tokenId = reader.uint64();
|
|
3619
|
+
break;
|
|
3620
|
+
default:
|
|
3621
|
+
reader.skipType(tag & 7);
|
|
3622
|
+
break;
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
return message;
|
|
3626
|
+
},
|
|
3627
|
+
fromPartial(object) {
|
|
3628
|
+
const message = createBaseQueryMediaProposalsRequest();
|
|
3629
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
3630
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
3631
|
+
return message;
|
|
3632
|
+
},
|
|
3633
|
+
fromAmino(object) {
|
|
3634
|
+
const message = createBaseQueryMediaProposalsRequest();
|
|
3635
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
3636
|
+
message.classId = BigInt(object.class_id);
|
|
3637
|
+
}
|
|
3638
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
3639
|
+
message.tokenId = BigInt(object.token_id);
|
|
3640
|
+
}
|
|
3641
|
+
return message;
|
|
3642
|
+
},
|
|
3643
|
+
toAmino(message) {
|
|
3644
|
+
const obj = {};
|
|
3645
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
3646
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
3647
|
+
return obj;
|
|
3648
|
+
},
|
|
3649
|
+
fromAminoMsg(object) {
|
|
3650
|
+
return QueryMediaProposalsRequest.fromAmino(object.value);
|
|
3651
|
+
},
|
|
3652
|
+
fromProtoMsg(message) {
|
|
3653
|
+
return QueryMediaProposalsRequest.decode(message.value);
|
|
3654
|
+
},
|
|
3655
|
+
toProto(message) {
|
|
3656
|
+
return QueryMediaProposalsRequest.encode(message).finish();
|
|
3657
|
+
},
|
|
3658
|
+
toProtoMsg(message) {
|
|
3659
|
+
return {
|
|
3660
|
+
typeUrl: "/sparkdream.artifact.v1.QueryMediaProposalsRequest",
|
|
3661
|
+
value: QueryMediaProposalsRequest.encode(message).finish()
|
|
3662
|
+
};
|
|
3663
|
+
}
|
|
3664
|
+
};
|
|
3665
|
+
function createBaseQueryMediaProposalsResponse() {
|
|
3666
|
+
return {
|
|
3667
|
+
proposals: []
|
|
3668
|
+
};
|
|
3669
|
+
}
|
|
3670
|
+
/**
|
|
3671
|
+
* QueryMediaProposalsResponse defines the QueryMediaProposalsResponse message.
|
|
3672
|
+
* @name QueryMediaProposalsResponse
|
|
3673
|
+
* @package sparkdream.artifact.v1
|
|
3674
|
+
* @see proto type: sparkdream.artifact.v1.QueryMediaProposalsResponse
|
|
3675
|
+
*/
|
|
3676
|
+
export const QueryMediaProposalsResponse = {
|
|
3677
|
+
typeUrl: "/sparkdream.artifact.v1.QueryMediaProposalsResponse",
|
|
3678
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3679
|
+
for (const v of message.proposals) {
|
|
3680
|
+
MediaProposal.encode(v, writer.uint32(10).fork()).ldelim();
|
|
3681
|
+
}
|
|
3682
|
+
return writer;
|
|
3683
|
+
},
|
|
3684
|
+
decode(input, length) {
|
|
3685
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3686
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3687
|
+
const message = createBaseQueryMediaProposalsResponse();
|
|
3688
|
+
while (reader.pos < end) {
|
|
3689
|
+
const tag = reader.uint32();
|
|
3690
|
+
switch (tag >>> 3) {
|
|
3691
|
+
case 1:
|
|
3692
|
+
message.proposals.push(MediaProposal.decode(reader, reader.uint32()));
|
|
3693
|
+
break;
|
|
3694
|
+
default:
|
|
3695
|
+
reader.skipType(tag & 7);
|
|
3696
|
+
break;
|
|
3697
|
+
}
|
|
3698
|
+
}
|
|
3699
|
+
return message;
|
|
3700
|
+
},
|
|
3701
|
+
fromPartial(object) {
|
|
3702
|
+
const message = createBaseQueryMediaProposalsResponse();
|
|
3703
|
+
message.proposals = object.proposals?.map(e => MediaProposal.fromPartial(e)) || [];
|
|
3704
|
+
return message;
|
|
3705
|
+
},
|
|
3706
|
+
fromAmino(object) {
|
|
3707
|
+
const message = createBaseQueryMediaProposalsResponse();
|
|
3708
|
+
message.proposals = object.proposals?.map(e => MediaProposal.fromAmino(e)) || [];
|
|
3709
|
+
return message;
|
|
3710
|
+
},
|
|
3711
|
+
toAmino(message) {
|
|
3712
|
+
const obj = {};
|
|
3713
|
+
if (message.proposals) {
|
|
3714
|
+
obj.proposals = message.proposals.map(e => e ? MediaProposal.toAmino(e) : undefined);
|
|
3715
|
+
}
|
|
3716
|
+
else {
|
|
3717
|
+
obj.proposals = message.proposals;
|
|
3718
|
+
}
|
|
3719
|
+
return obj;
|
|
3720
|
+
},
|
|
3721
|
+
fromAminoMsg(object) {
|
|
3722
|
+
return QueryMediaProposalsResponse.fromAmino(object.value);
|
|
3723
|
+
},
|
|
3724
|
+
fromProtoMsg(message) {
|
|
3725
|
+
return QueryMediaProposalsResponse.decode(message.value);
|
|
3726
|
+
},
|
|
3727
|
+
toProto(message) {
|
|
3728
|
+
return QueryMediaProposalsResponse.encode(message).finish();
|
|
3729
|
+
},
|
|
3730
|
+
toProtoMsg(message) {
|
|
3731
|
+
return {
|
|
3732
|
+
typeUrl: "/sparkdream.artifact.v1.QueryMediaProposalsResponse",
|
|
3733
|
+
value: QueryMediaProposalsResponse.encode(message).finish()
|
|
3734
|
+
};
|
|
3735
|
+
}
|
|
3736
|
+
};
|
|
3737
|
+
function createBaseEditionView() {
|
|
3738
|
+
return {
|
|
3739
|
+
edition: Edition.fromPartial({}),
|
|
3740
|
+
withheld: false,
|
|
3741
|
+
metadataHash: "",
|
|
3742
|
+
classStatus: 0
|
|
3743
|
+
};
|
|
3744
|
+
}
|
|
3745
|
+
/**
|
|
3746
|
+
* EditionView is an edition as served to clients. When withheld is true the
|
|
3747
|
+
* metadata and claim scope are blanked because the edition or its class is
|
|
3748
|
+
* hidden.
|
|
3749
|
+
* @name EditionView
|
|
3750
|
+
* @package sparkdream.artifact.v1
|
|
3751
|
+
* @see proto type: sparkdream.artifact.v1.EditionView
|
|
3752
|
+
*/
|
|
3753
|
+
export const EditionView = {
|
|
3754
|
+
typeUrl: "/sparkdream.artifact.v1.EditionView",
|
|
3755
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3756
|
+
if (message.edition !== undefined) {
|
|
3757
|
+
Edition.encode(message.edition, writer.uint32(10).fork()).ldelim();
|
|
3758
|
+
}
|
|
3759
|
+
if (message.withheld === true) {
|
|
3760
|
+
writer.uint32(16).bool(message.withheld);
|
|
3761
|
+
}
|
|
3762
|
+
if (message.metadataHash !== "") {
|
|
3763
|
+
writer.uint32(26).string(message.metadataHash);
|
|
3764
|
+
}
|
|
3765
|
+
if (message.classStatus !== 0) {
|
|
3766
|
+
writer.uint32(32).int32(message.classStatus);
|
|
3767
|
+
}
|
|
3768
|
+
return writer;
|
|
3769
|
+
},
|
|
3770
|
+
decode(input, length) {
|
|
3771
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3772
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3773
|
+
const message = createBaseEditionView();
|
|
3774
|
+
while (reader.pos < end) {
|
|
3775
|
+
const tag = reader.uint32();
|
|
3776
|
+
switch (tag >>> 3) {
|
|
3777
|
+
case 1:
|
|
3778
|
+
message.edition = Edition.decode(reader, reader.uint32());
|
|
3779
|
+
break;
|
|
3780
|
+
case 2:
|
|
3781
|
+
message.withheld = reader.bool();
|
|
3782
|
+
break;
|
|
3783
|
+
case 3:
|
|
3784
|
+
message.metadataHash = reader.string();
|
|
3785
|
+
break;
|
|
3786
|
+
case 4:
|
|
3787
|
+
message.classStatus = reader.int32();
|
|
3788
|
+
break;
|
|
3789
|
+
default:
|
|
3790
|
+
reader.skipType(tag & 7);
|
|
3791
|
+
break;
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
return message;
|
|
3795
|
+
},
|
|
3796
|
+
fromPartial(object) {
|
|
3797
|
+
const message = createBaseEditionView();
|
|
3798
|
+
message.edition = object.edition !== undefined && object.edition !== null ? Edition.fromPartial(object.edition) : undefined;
|
|
3799
|
+
message.withheld = object.withheld ?? false;
|
|
3800
|
+
message.metadataHash = object.metadataHash ?? "";
|
|
3801
|
+
message.classStatus = object.classStatus ?? 0;
|
|
3802
|
+
return message;
|
|
3803
|
+
},
|
|
3804
|
+
fromAmino(object) {
|
|
3805
|
+
const message = createBaseEditionView();
|
|
3806
|
+
if (object.edition !== undefined && object.edition !== null) {
|
|
3807
|
+
message.edition = Edition.fromAmino(object.edition);
|
|
3808
|
+
}
|
|
3809
|
+
if (object.withheld !== undefined && object.withheld !== null) {
|
|
3810
|
+
message.withheld = object.withheld;
|
|
3811
|
+
}
|
|
3812
|
+
if (object.metadata_hash !== undefined && object.metadata_hash !== null) {
|
|
3813
|
+
message.metadataHash = object.metadata_hash;
|
|
3814
|
+
}
|
|
3815
|
+
if (object.class_status !== undefined && object.class_status !== null) {
|
|
3816
|
+
message.classStatus = object.class_status;
|
|
3817
|
+
}
|
|
3818
|
+
return message;
|
|
3819
|
+
},
|
|
3820
|
+
toAmino(message) {
|
|
3821
|
+
const obj = {};
|
|
3822
|
+
obj.edition = message.edition ? Edition.toAmino(message.edition) : undefined;
|
|
3823
|
+
obj.withheld = message.withheld === false ? undefined : message.withheld;
|
|
3824
|
+
obj.metadata_hash = message.metadataHash === "" ? undefined : message.metadataHash;
|
|
3825
|
+
obj.class_status = message.classStatus === 0 ? undefined : message.classStatus;
|
|
3826
|
+
return obj;
|
|
3827
|
+
},
|
|
3828
|
+
fromAminoMsg(object) {
|
|
3829
|
+
return EditionView.fromAmino(object.value);
|
|
3830
|
+
},
|
|
3831
|
+
fromProtoMsg(message) {
|
|
3832
|
+
return EditionView.decode(message.value);
|
|
3833
|
+
},
|
|
3834
|
+
toProto(message) {
|
|
3835
|
+
return EditionView.encode(message).finish();
|
|
3836
|
+
},
|
|
3837
|
+
toProtoMsg(message) {
|
|
3838
|
+
return {
|
|
3839
|
+
typeUrl: "/sparkdream.artifact.v1.EditionView",
|
|
3840
|
+
value: EditionView.encode(message).finish()
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3843
|
+
};
|
|
3844
|
+
function createBaseBalanceView() {
|
|
3845
|
+
return {
|
|
3846
|
+
balance: Balance.fromPartial({}),
|
|
3847
|
+
claimable: ""
|
|
3848
|
+
};
|
|
3849
|
+
}
|
|
3850
|
+
/**
|
|
3851
|
+
* BalanceView is a balance with what its holder could claim now.
|
|
3852
|
+
* @name BalanceView
|
|
3853
|
+
* @package sparkdream.artifact.v1
|
|
3854
|
+
* @see proto type: sparkdream.artifact.v1.BalanceView
|
|
3855
|
+
*/
|
|
3856
|
+
export const BalanceView = {
|
|
3857
|
+
typeUrl: "/sparkdream.artifact.v1.BalanceView",
|
|
3858
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3859
|
+
if (message.balance !== undefined) {
|
|
3860
|
+
Balance.encode(message.balance, writer.uint32(10).fork()).ldelim();
|
|
3861
|
+
}
|
|
3862
|
+
if (message.claimable !== "") {
|
|
3863
|
+
writer.uint32(18).string(message.claimable);
|
|
3864
|
+
}
|
|
3865
|
+
return writer;
|
|
3866
|
+
},
|
|
3867
|
+
decode(input, length) {
|
|
3868
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3869
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3870
|
+
const message = createBaseBalanceView();
|
|
3871
|
+
while (reader.pos < end) {
|
|
3872
|
+
const tag = reader.uint32();
|
|
3873
|
+
switch (tag >>> 3) {
|
|
3874
|
+
case 1:
|
|
3875
|
+
message.balance = Balance.decode(reader, reader.uint32());
|
|
3876
|
+
break;
|
|
3877
|
+
case 2:
|
|
3878
|
+
message.claimable = reader.string();
|
|
3879
|
+
break;
|
|
3880
|
+
default:
|
|
3881
|
+
reader.skipType(tag & 7);
|
|
3882
|
+
break;
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
return message;
|
|
3886
|
+
},
|
|
3887
|
+
fromPartial(object) {
|
|
3888
|
+
const message = createBaseBalanceView();
|
|
3889
|
+
message.balance = object.balance !== undefined && object.balance !== null ? Balance.fromPartial(object.balance) : undefined;
|
|
3890
|
+
message.claimable = object.claimable ?? "";
|
|
3891
|
+
return message;
|
|
3892
|
+
},
|
|
3893
|
+
fromAmino(object) {
|
|
3894
|
+
const message = createBaseBalanceView();
|
|
3895
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
3896
|
+
message.balance = Balance.fromAmino(object.balance);
|
|
3897
|
+
}
|
|
3898
|
+
if (object.claimable !== undefined && object.claimable !== null) {
|
|
3899
|
+
message.claimable = object.claimable;
|
|
3900
|
+
}
|
|
3901
|
+
return message;
|
|
3902
|
+
},
|
|
3903
|
+
toAmino(message) {
|
|
3904
|
+
const obj = {};
|
|
3905
|
+
obj.balance = message.balance ? Balance.toAmino(message.balance) : undefined;
|
|
3906
|
+
obj.claimable = message.claimable === "" ? undefined : message.claimable;
|
|
3907
|
+
return obj;
|
|
3908
|
+
},
|
|
3909
|
+
fromAminoMsg(object) {
|
|
3910
|
+
return BalanceView.fromAmino(object.value);
|
|
3911
|
+
},
|
|
3912
|
+
fromProtoMsg(message) {
|
|
3913
|
+
return BalanceView.decode(message.value);
|
|
3914
|
+
},
|
|
3915
|
+
toProto(message) {
|
|
3916
|
+
return BalanceView.encode(message).finish();
|
|
3917
|
+
},
|
|
3918
|
+
toProtoMsg(message) {
|
|
3919
|
+
return {
|
|
3920
|
+
typeUrl: "/sparkdream.artifact.v1.BalanceView",
|
|
3921
|
+
value: BalanceView.encode(message).finish()
|
|
3922
|
+
};
|
|
3923
|
+
}
|
|
3924
|
+
};
|
|
3925
|
+
function createBaseQueryEditionRequest() {
|
|
3926
|
+
return {
|
|
3927
|
+
classId: BigInt(0),
|
|
3928
|
+
editionId: BigInt(0)
|
|
3929
|
+
};
|
|
3930
|
+
}
|
|
3931
|
+
/**
|
|
3932
|
+
* QueryEditionRequest defines the QueryEditionRequest message.
|
|
3933
|
+
* @name QueryEditionRequest
|
|
3934
|
+
* @package sparkdream.artifact.v1
|
|
3935
|
+
* @see proto type: sparkdream.artifact.v1.QueryEditionRequest
|
|
3936
|
+
*/
|
|
3937
|
+
export const QueryEditionRequest = {
|
|
3938
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionRequest",
|
|
3939
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3940
|
+
if (message.classId !== BigInt(0)) {
|
|
3941
|
+
writer.uint32(8).uint64(message.classId);
|
|
3942
|
+
}
|
|
3943
|
+
if (message.editionId !== BigInt(0)) {
|
|
3944
|
+
writer.uint32(16).uint64(message.editionId);
|
|
3945
|
+
}
|
|
3946
|
+
return writer;
|
|
3947
|
+
},
|
|
3948
|
+
decode(input, length) {
|
|
3949
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3950
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3951
|
+
const message = createBaseQueryEditionRequest();
|
|
3952
|
+
while (reader.pos < end) {
|
|
3953
|
+
const tag = reader.uint32();
|
|
3954
|
+
switch (tag >>> 3) {
|
|
3955
|
+
case 1:
|
|
3956
|
+
message.classId = reader.uint64();
|
|
3957
|
+
break;
|
|
3958
|
+
case 2:
|
|
3959
|
+
message.editionId = reader.uint64();
|
|
3960
|
+
break;
|
|
3961
|
+
default:
|
|
3962
|
+
reader.skipType(tag & 7);
|
|
3963
|
+
break;
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
return message;
|
|
3967
|
+
},
|
|
3968
|
+
fromPartial(object) {
|
|
3969
|
+
const message = createBaseQueryEditionRequest();
|
|
3970
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
3971
|
+
message.editionId = object.editionId !== undefined && object.editionId !== null ? BigInt(object.editionId.toString()) : BigInt(0);
|
|
3972
|
+
return message;
|
|
3973
|
+
},
|
|
3974
|
+
fromAmino(object) {
|
|
3975
|
+
const message = createBaseQueryEditionRequest();
|
|
3976
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
3977
|
+
message.classId = BigInt(object.class_id);
|
|
3978
|
+
}
|
|
3979
|
+
if (object.edition_id !== undefined && object.edition_id !== null) {
|
|
3980
|
+
message.editionId = BigInt(object.edition_id);
|
|
3981
|
+
}
|
|
3982
|
+
return message;
|
|
3983
|
+
},
|
|
3984
|
+
toAmino(message) {
|
|
3985
|
+
const obj = {};
|
|
3986
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
3987
|
+
obj.edition_id = message.editionId !== BigInt(0) ? message.editionId?.toString() : undefined;
|
|
3988
|
+
return obj;
|
|
3989
|
+
},
|
|
3990
|
+
fromAminoMsg(object) {
|
|
3991
|
+
return QueryEditionRequest.fromAmino(object.value);
|
|
3992
|
+
},
|
|
3993
|
+
fromProtoMsg(message) {
|
|
3994
|
+
return QueryEditionRequest.decode(message.value);
|
|
3995
|
+
},
|
|
3996
|
+
toProto(message) {
|
|
3997
|
+
return QueryEditionRequest.encode(message).finish();
|
|
3998
|
+
},
|
|
3999
|
+
toProtoMsg(message) {
|
|
4000
|
+
return {
|
|
4001
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionRequest",
|
|
4002
|
+
value: QueryEditionRequest.encode(message).finish()
|
|
4003
|
+
};
|
|
4004
|
+
}
|
|
4005
|
+
};
|
|
4006
|
+
function createBaseQueryEditionResponse() {
|
|
4007
|
+
return {
|
|
4008
|
+
edition: EditionView.fromPartial({})
|
|
4009
|
+
};
|
|
4010
|
+
}
|
|
4011
|
+
/**
|
|
4012
|
+
* QueryEditionResponse defines the QueryEditionResponse message.
|
|
4013
|
+
* @name QueryEditionResponse
|
|
4014
|
+
* @package sparkdream.artifact.v1
|
|
4015
|
+
* @see proto type: sparkdream.artifact.v1.QueryEditionResponse
|
|
4016
|
+
*/
|
|
4017
|
+
export const QueryEditionResponse = {
|
|
4018
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionResponse",
|
|
4019
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4020
|
+
if (message.edition !== undefined) {
|
|
4021
|
+
EditionView.encode(message.edition, writer.uint32(10).fork()).ldelim();
|
|
4022
|
+
}
|
|
4023
|
+
return writer;
|
|
4024
|
+
},
|
|
4025
|
+
decode(input, length) {
|
|
4026
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4027
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4028
|
+
const message = createBaseQueryEditionResponse();
|
|
4029
|
+
while (reader.pos < end) {
|
|
4030
|
+
const tag = reader.uint32();
|
|
4031
|
+
switch (tag >>> 3) {
|
|
4032
|
+
case 1:
|
|
4033
|
+
message.edition = EditionView.decode(reader, reader.uint32());
|
|
4034
|
+
break;
|
|
4035
|
+
default:
|
|
4036
|
+
reader.skipType(tag & 7);
|
|
4037
|
+
break;
|
|
4038
|
+
}
|
|
4039
|
+
}
|
|
4040
|
+
return message;
|
|
4041
|
+
},
|
|
4042
|
+
fromPartial(object) {
|
|
4043
|
+
const message = createBaseQueryEditionResponse();
|
|
4044
|
+
message.edition = object.edition !== undefined && object.edition !== null ? EditionView.fromPartial(object.edition) : undefined;
|
|
4045
|
+
return message;
|
|
4046
|
+
},
|
|
4047
|
+
fromAmino(object) {
|
|
4048
|
+
const message = createBaseQueryEditionResponse();
|
|
4049
|
+
if (object.edition !== undefined && object.edition !== null) {
|
|
4050
|
+
message.edition = EditionView.fromAmino(object.edition);
|
|
4051
|
+
}
|
|
4052
|
+
return message;
|
|
4053
|
+
},
|
|
4054
|
+
toAmino(message) {
|
|
4055
|
+
const obj = {};
|
|
4056
|
+
obj.edition = message.edition ? EditionView.toAmino(message.edition) : undefined;
|
|
4057
|
+
return obj;
|
|
4058
|
+
},
|
|
4059
|
+
fromAminoMsg(object) {
|
|
4060
|
+
return QueryEditionResponse.fromAmino(object.value);
|
|
4061
|
+
},
|
|
4062
|
+
fromProtoMsg(message) {
|
|
4063
|
+
return QueryEditionResponse.decode(message.value);
|
|
4064
|
+
},
|
|
4065
|
+
toProto(message) {
|
|
4066
|
+
return QueryEditionResponse.encode(message).finish();
|
|
4067
|
+
},
|
|
4068
|
+
toProtoMsg(message) {
|
|
4069
|
+
return {
|
|
4070
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionResponse",
|
|
4071
|
+
value: QueryEditionResponse.encode(message).finish()
|
|
4072
|
+
};
|
|
4073
|
+
}
|
|
4074
|
+
};
|
|
4075
|
+
function createBaseQueryEditionsRequest() {
|
|
4076
|
+
return {
|
|
4077
|
+
classId: BigInt(0),
|
|
4078
|
+
pagination: undefined
|
|
4079
|
+
};
|
|
4080
|
+
}
|
|
4081
|
+
/**
|
|
4082
|
+
* QueryEditionsRequest defines the QueryEditionsRequest message.
|
|
4083
|
+
* @name QueryEditionsRequest
|
|
4084
|
+
* @package sparkdream.artifact.v1
|
|
4085
|
+
* @see proto type: sparkdream.artifact.v1.QueryEditionsRequest
|
|
4086
|
+
*/
|
|
4087
|
+
export const QueryEditionsRequest = {
|
|
4088
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionsRequest",
|
|
4089
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4090
|
+
if (message.classId !== BigInt(0)) {
|
|
4091
|
+
writer.uint32(8).uint64(message.classId);
|
|
4092
|
+
}
|
|
4093
|
+
if (message.pagination !== undefined) {
|
|
4094
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4095
|
+
}
|
|
4096
|
+
return writer;
|
|
4097
|
+
},
|
|
4098
|
+
decode(input, length) {
|
|
4099
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4100
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4101
|
+
const message = createBaseQueryEditionsRequest();
|
|
4102
|
+
while (reader.pos < end) {
|
|
4103
|
+
const tag = reader.uint32();
|
|
4104
|
+
switch (tag >>> 3) {
|
|
4105
|
+
case 1:
|
|
4106
|
+
message.classId = reader.uint64();
|
|
4107
|
+
break;
|
|
4108
|
+
case 2:
|
|
4109
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
4110
|
+
break;
|
|
4111
|
+
default:
|
|
4112
|
+
reader.skipType(tag & 7);
|
|
4113
|
+
break;
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
return message;
|
|
4117
|
+
},
|
|
4118
|
+
fromPartial(object) {
|
|
4119
|
+
const message = createBaseQueryEditionsRequest();
|
|
4120
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
4121
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
4122
|
+
return message;
|
|
4123
|
+
},
|
|
4124
|
+
fromAmino(object) {
|
|
4125
|
+
const message = createBaseQueryEditionsRequest();
|
|
4126
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
4127
|
+
message.classId = BigInt(object.class_id);
|
|
4128
|
+
}
|
|
4129
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4130
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
4131
|
+
}
|
|
4132
|
+
return message;
|
|
4133
|
+
},
|
|
4134
|
+
toAmino(message) {
|
|
4135
|
+
const obj = {};
|
|
4136
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
4137
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
4138
|
+
return obj;
|
|
4139
|
+
},
|
|
4140
|
+
fromAminoMsg(object) {
|
|
4141
|
+
return QueryEditionsRequest.fromAmino(object.value);
|
|
4142
|
+
},
|
|
4143
|
+
fromProtoMsg(message) {
|
|
4144
|
+
return QueryEditionsRequest.decode(message.value);
|
|
4145
|
+
},
|
|
4146
|
+
toProto(message) {
|
|
4147
|
+
return QueryEditionsRequest.encode(message).finish();
|
|
4148
|
+
},
|
|
4149
|
+
toProtoMsg(message) {
|
|
4150
|
+
return {
|
|
4151
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionsRequest",
|
|
4152
|
+
value: QueryEditionsRequest.encode(message).finish()
|
|
4153
|
+
};
|
|
4154
|
+
}
|
|
4155
|
+
};
|
|
4156
|
+
function createBaseQueryEditionsResponse() {
|
|
4157
|
+
return {
|
|
4158
|
+
editions: [],
|
|
4159
|
+
pagination: undefined
|
|
4160
|
+
};
|
|
4161
|
+
}
|
|
4162
|
+
/**
|
|
4163
|
+
* QueryEditionsResponse defines the QueryEditionsResponse message.
|
|
4164
|
+
* @name QueryEditionsResponse
|
|
4165
|
+
* @package sparkdream.artifact.v1
|
|
4166
|
+
* @see proto type: sparkdream.artifact.v1.QueryEditionsResponse
|
|
4167
|
+
*/
|
|
4168
|
+
export const QueryEditionsResponse = {
|
|
4169
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionsResponse",
|
|
4170
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4171
|
+
for (const v of message.editions) {
|
|
4172
|
+
EditionView.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4173
|
+
}
|
|
4174
|
+
if (message.pagination !== undefined) {
|
|
4175
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4176
|
+
}
|
|
4177
|
+
return writer;
|
|
4178
|
+
},
|
|
4179
|
+
decode(input, length) {
|
|
4180
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4181
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4182
|
+
const message = createBaseQueryEditionsResponse();
|
|
4183
|
+
while (reader.pos < end) {
|
|
4184
|
+
const tag = reader.uint32();
|
|
4185
|
+
switch (tag >>> 3) {
|
|
4186
|
+
case 1:
|
|
4187
|
+
message.editions.push(EditionView.decode(reader, reader.uint32()));
|
|
4188
|
+
break;
|
|
4189
|
+
case 2:
|
|
4190
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
4191
|
+
break;
|
|
4192
|
+
default:
|
|
4193
|
+
reader.skipType(tag & 7);
|
|
4194
|
+
break;
|
|
4195
|
+
}
|
|
4196
|
+
}
|
|
4197
|
+
return message;
|
|
4198
|
+
},
|
|
4199
|
+
fromPartial(object) {
|
|
4200
|
+
const message = createBaseQueryEditionsResponse();
|
|
4201
|
+
message.editions = object.editions?.map(e => EditionView.fromPartial(e)) || [];
|
|
4202
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
4203
|
+
return message;
|
|
4204
|
+
},
|
|
4205
|
+
fromAmino(object) {
|
|
4206
|
+
const message = createBaseQueryEditionsResponse();
|
|
4207
|
+
message.editions = object.editions?.map(e => EditionView.fromAmino(e)) || [];
|
|
4208
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4209
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
4210
|
+
}
|
|
4211
|
+
return message;
|
|
4212
|
+
},
|
|
4213
|
+
toAmino(message) {
|
|
4214
|
+
const obj = {};
|
|
4215
|
+
if (message.editions) {
|
|
4216
|
+
obj.editions = message.editions.map(e => e ? EditionView.toAmino(e) : undefined);
|
|
4217
|
+
}
|
|
4218
|
+
else {
|
|
4219
|
+
obj.editions = message.editions;
|
|
4220
|
+
}
|
|
4221
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
4222
|
+
return obj;
|
|
4223
|
+
},
|
|
4224
|
+
fromAminoMsg(object) {
|
|
4225
|
+
return QueryEditionsResponse.fromAmino(object.value);
|
|
4226
|
+
},
|
|
4227
|
+
fromProtoMsg(message) {
|
|
4228
|
+
return QueryEditionsResponse.decode(message.value);
|
|
4229
|
+
},
|
|
4230
|
+
toProto(message) {
|
|
4231
|
+
return QueryEditionsResponse.encode(message).finish();
|
|
4232
|
+
},
|
|
4233
|
+
toProtoMsg(message) {
|
|
4234
|
+
return {
|
|
4235
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionsResponse",
|
|
4236
|
+
value: QueryEditionsResponse.encode(message).finish()
|
|
4237
|
+
};
|
|
4238
|
+
}
|
|
4239
|
+
};
|
|
4240
|
+
function createBaseQueryBalanceRequest() {
|
|
4241
|
+
return {
|
|
4242
|
+
classId: BigInt(0),
|
|
4243
|
+
editionId: BigInt(0),
|
|
4244
|
+
owner: ""
|
|
4245
|
+
};
|
|
4246
|
+
}
|
|
4247
|
+
/**
|
|
4248
|
+
* QueryBalanceRequest defines the QueryBalanceRequest message.
|
|
4249
|
+
* @name QueryBalanceRequest
|
|
4250
|
+
* @package sparkdream.artifact.v1
|
|
4251
|
+
* @see proto type: sparkdream.artifact.v1.QueryBalanceRequest
|
|
4252
|
+
*/
|
|
4253
|
+
export const QueryBalanceRequest = {
|
|
4254
|
+
typeUrl: "/sparkdream.artifact.v1.QueryBalanceRequest",
|
|
4255
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4256
|
+
if (message.classId !== BigInt(0)) {
|
|
4257
|
+
writer.uint32(8).uint64(message.classId);
|
|
4258
|
+
}
|
|
4259
|
+
if (message.editionId !== BigInt(0)) {
|
|
4260
|
+
writer.uint32(16).uint64(message.editionId);
|
|
4261
|
+
}
|
|
4262
|
+
if (message.owner !== "") {
|
|
4263
|
+
writer.uint32(26).string(message.owner);
|
|
4264
|
+
}
|
|
4265
|
+
return writer;
|
|
4266
|
+
},
|
|
4267
|
+
decode(input, length) {
|
|
4268
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4269
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4270
|
+
const message = createBaseQueryBalanceRequest();
|
|
4271
|
+
while (reader.pos < end) {
|
|
4272
|
+
const tag = reader.uint32();
|
|
4273
|
+
switch (tag >>> 3) {
|
|
4274
|
+
case 1:
|
|
4275
|
+
message.classId = reader.uint64();
|
|
4276
|
+
break;
|
|
4277
|
+
case 2:
|
|
4278
|
+
message.editionId = reader.uint64();
|
|
4279
|
+
break;
|
|
4280
|
+
case 3:
|
|
4281
|
+
message.owner = reader.string();
|
|
4282
|
+
break;
|
|
4283
|
+
default:
|
|
4284
|
+
reader.skipType(tag & 7);
|
|
4285
|
+
break;
|
|
4286
|
+
}
|
|
4287
|
+
}
|
|
4288
|
+
return message;
|
|
4289
|
+
},
|
|
4290
|
+
fromPartial(object) {
|
|
4291
|
+
const message = createBaseQueryBalanceRequest();
|
|
4292
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
4293
|
+
message.editionId = object.editionId !== undefined && object.editionId !== null ? BigInt(object.editionId.toString()) : BigInt(0);
|
|
4294
|
+
message.owner = object.owner ?? "";
|
|
4295
|
+
return message;
|
|
4296
|
+
},
|
|
4297
|
+
fromAmino(object) {
|
|
4298
|
+
const message = createBaseQueryBalanceRequest();
|
|
4299
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
4300
|
+
message.classId = BigInt(object.class_id);
|
|
4301
|
+
}
|
|
4302
|
+
if (object.edition_id !== undefined && object.edition_id !== null) {
|
|
4303
|
+
message.editionId = BigInt(object.edition_id);
|
|
4304
|
+
}
|
|
4305
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
4306
|
+
message.owner = object.owner;
|
|
4307
|
+
}
|
|
4308
|
+
return message;
|
|
4309
|
+
},
|
|
4310
|
+
toAmino(message) {
|
|
4311
|
+
const obj = {};
|
|
4312
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
4313
|
+
obj.edition_id = message.editionId !== BigInt(0) ? message.editionId?.toString() : undefined;
|
|
4314
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
4315
|
+
return obj;
|
|
4316
|
+
},
|
|
4317
|
+
fromAminoMsg(object) {
|
|
4318
|
+
return QueryBalanceRequest.fromAmino(object.value);
|
|
4319
|
+
},
|
|
4320
|
+
fromProtoMsg(message) {
|
|
4321
|
+
return QueryBalanceRequest.decode(message.value);
|
|
4322
|
+
},
|
|
4323
|
+
toProto(message) {
|
|
4324
|
+
return QueryBalanceRequest.encode(message).finish();
|
|
4325
|
+
},
|
|
4326
|
+
toProtoMsg(message) {
|
|
4327
|
+
return {
|
|
4328
|
+
typeUrl: "/sparkdream.artifact.v1.QueryBalanceRequest",
|
|
4329
|
+
value: QueryBalanceRequest.encode(message).finish()
|
|
4330
|
+
};
|
|
4331
|
+
}
|
|
4332
|
+
};
|
|
4333
|
+
function createBaseQueryBalanceResponse() {
|
|
4334
|
+
return {
|
|
4335
|
+
balance: BalanceView.fromPartial({})
|
|
4336
|
+
};
|
|
4337
|
+
}
|
|
4338
|
+
/**
|
|
4339
|
+
* QueryBalanceResponse defines the QueryBalanceResponse message.
|
|
4340
|
+
* @name QueryBalanceResponse
|
|
4341
|
+
* @package sparkdream.artifact.v1
|
|
4342
|
+
* @see proto type: sparkdream.artifact.v1.QueryBalanceResponse
|
|
4343
|
+
*/
|
|
4344
|
+
export const QueryBalanceResponse = {
|
|
4345
|
+
typeUrl: "/sparkdream.artifact.v1.QueryBalanceResponse",
|
|
4346
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4347
|
+
if (message.balance !== undefined) {
|
|
4348
|
+
BalanceView.encode(message.balance, writer.uint32(10).fork()).ldelim();
|
|
4349
|
+
}
|
|
4350
|
+
return writer;
|
|
4351
|
+
},
|
|
4352
|
+
decode(input, length) {
|
|
4353
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4354
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4355
|
+
const message = createBaseQueryBalanceResponse();
|
|
4356
|
+
while (reader.pos < end) {
|
|
4357
|
+
const tag = reader.uint32();
|
|
4358
|
+
switch (tag >>> 3) {
|
|
4359
|
+
case 1:
|
|
4360
|
+
message.balance = BalanceView.decode(reader, reader.uint32());
|
|
4361
|
+
break;
|
|
4362
|
+
default:
|
|
4363
|
+
reader.skipType(tag & 7);
|
|
4364
|
+
break;
|
|
4365
|
+
}
|
|
4366
|
+
}
|
|
4367
|
+
return message;
|
|
4368
|
+
},
|
|
4369
|
+
fromPartial(object) {
|
|
4370
|
+
const message = createBaseQueryBalanceResponse();
|
|
4371
|
+
message.balance = object.balance !== undefined && object.balance !== null ? BalanceView.fromPartial(object.balance) : undefined;
|
|
4372
|
+
return message;
|
|
4373
|
+
},
|
|
4374
|
+
fromAmino(object) {
|
|
4375
|
+
const message = createBaseQueryBalanceResponse();
|
|
4376
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
4377
|
+
message.balance = BalanceView.fromAmino(object.balance);
|
|
4378
|
+
}
|
|
4379
|
+
return message;
|
|
4380
|
+
},
|
|
4381
|
+
toAmino(message) {
|
|
4382
|
+
const obj = {};
|
|
4383
|
+
obj.balance = message.balance ? BalanceView.toAmino(message.balance) : undefined;
|
|
4384
|
+
return obj;
|
|
4385
|
+
},
|
|
4386
|
+
fromAminoMsg(object) {
|
|
4387
|
+
return QueryBalanceResponse.fromAmino(object.value);
|
|
4388
|
+
},
|
|
4389
|
+
fromProtoMsg(message) {
|
|
4390
|
+
return QueryBalanceResponse.decode(message.value);
|
|
4391
|
+
},
|
|
4392
|
+
toProto(message) {
|
|
4393
|
+
return QueryBalanceResponse.encode(message).finish();
|
|
4394
|
+
},
|
|
4395
|
+
toProtoMsg(message) {
|
|
4396
|
+
return {
|
|
4397
|
+
typeUrl: "/sparkdream.artifact.v1.QueryBalanceResponse",
|
|
4398
|
+
value: QueryBalanceResponse.encode(message).finish()
|
|
4399
|
+
};
|
|
4400
|
+
}
|
|
4401
|
+
};
|
|
4402
|
+
function createBaseQueryBalancesByOwnerRequest() {
|
|
4403
|
+
return {
|
|
4404
|
+
owner: "",
|
|
4405
|
+
pagination: undefined
|
|
4406
|
+
};
|
|
4407
|
+
}
|
|
4408
|
+
/**
|
|
4409
|
+
* QueryBalancesByOwnerRequest defines the QueryBalancesByOwnerRequest message.
|
|
4410
|
+
* @name QueryBalancesByOwnerRequest
|
|
4411
|
+
* @package sparkdream.artifact.v1
|
|
4412
|
+
* @see proto type: sparkdream.artifact.v1.QueryBalancesByOwnerRequest
|
|
4413
|
+
*/
|
|
4414
|
+
export const QueryBalancesByOwnerRequest = {
|
|
4415
|
+
typeUrl: "/sparkdream.artifact.v1.QueryBalancesByOwnerRequest",
|
|
4416
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4417
|
+
if (message.owner !== "") {
|
|
4418
|
+
writer.uint32(10).string(message.owner);
|
|
4419
|
+
}
|
|
4420
|
+
if (message.pagination !== undefined) {
|
|
4421
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4422
|
+
}
|
|
4423
|
+
return writer;
|
|
4424
|
+
},
|
|
4425
|
+
decode(input, length) {
|
|
4426
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4427
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4428
|
+
const message = createBaseQueryBalancesByOwnerRequest();
|
|
4429
|
+
while (reader.pos < end) {
|
|
4430
|
+
const tag = reader.uint32();
|
|
4431
|
+
switch (tag >>> 3) {
|
|
4432
|
+
case 1:
|
|
4433
|
+
message.owner = reader.string();
|
|
4434
|
+
break;
|
|
4435
|
+
case 2:
|
|
4436
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
4437
|
+
break;
|
|
4438
|
+
default:
|
|
4439
|
+
reader.skipType(tag & 7);
|
|
4440
|
+
break;
|
|
4441
|
+
}
|
|
4442
|
+
}
|
|
4443
|
+
return message;
|
|
4444
|
+
},
|
|
4445
|
+
fromPartial(object) {
|
|
4446
|
+
const message = createBaseQueryBalancesByOwnerRequest();
|
|
4447
|
+
message.owner = object.owner ?? "";
|
|
4448
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
4449
|
+
return message;
|
|
4450
|
+
},
|
|
4451
|
+
fromAmino(object) {
|
|
4452
|
+
const message = createBaseQueryBalancesByOwnerRequest();
|
|
4453
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
4454
|
+
message.owner = object.owner;
|
|
4455
|
+
}
|
|
4456
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4457
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
4458
|
+
}
|
|
4459
|
+
return message;
|
|
4460
|
+
},
|
|
4461
|
+
toAmino(message) {
|
|
4462
|
+
const obj = {};
|
|
4463
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
4464
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
4465
|
+
return obj;
|
|
4466
|
+
},
|
|
4467
|
+
fromAminoMsg(object) {
|
|
4468
|
+
return QueryBalancesByOwnerRequest.fromAmino(object.value);
|
|
4469
|
+
},
|
|
4470
|
+
fromProtoMsg(message) {
|
|
4471
|
+
return QueryBalancesByOwnerRequest.decode(message.value);
|
|
4472
|
+
},
|
|
4473
|
+
toProto(message) {
|
|
4474
|
+
return QueryBalancesByOwnerRequest.encode(message).finish();
|
|
4475
|
+
},
|
|
4476
|
+
toProtoMsg(message) {
|
|
4477
|
+
return {
|
|
4478
|
+
typeUrl: "/sparkdream.artifact.v1.QueryBalancesByOwnerRequest",
|
|
4479
|
+
value: QueryBalancesByOwnerRequest.encode(message).finish()
|
|
4480
|
+
};
|
|
4481
|
+
}
|
|
4482
|
+
};
|
|
4483
|
+
function createBaseQueryBalancesByOwnerResponse() {
|
|
4484
|
+
return {
|
|
4485
|
+
balances: [],
|
|
4486
|
+
pagination: undefined
|
|
4487
|
+
};
|
|
4488
|
+
}
|
|
4489
|
+
/**
|
|
4490
|
+
* QueryBalancesByOwnerResponse defines the QueryBalancesByOwnerResponse message.
|
|
4491
|
+
* @name QueryBalancesByOwnerResponse
|
|
4492
|
+
* @package sparkdream.artifact.v1
|
|
4493
|
+
* @see proto type: sparkdream.artifact.v1.QueryBalancesByOwnerResponse
|
|
4494
|
+
*/
|
|
4495
|
+
export const QueryBalancesByOwnerResponse = {
|
|
4496
|
+
typeUrl: "/sparkdream.artifact.v1.QueryBalancesByOwnerResponse",
|
|
4497
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4498
|
+
for (const v of message.balances) {
|
|
4499
|
+
BalanceView.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4500
|
+
}
|
|
4501
|
+
if (message.pagination !== undefined) {
|
|
4502
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4503
|
+
}
|
|
4504
|
+
return writer;
|
|
4505
|
+
},
|
|
4506
|
+
decode(input, length) {
|
|
4507
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4508
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4509
|
+
const message = createBaseQueryBalancesByOwnerResponse();
|
|
4510
|
+
while (reader.pos < end) {
|
|
4511
|
+
const tag = reader.uint32();
|
|
4512
|
+
switch (tag >>> 3) {
|
|
4513
|
+
case 1:
|
|
4514
|
+
message.balances.push(BalanceView.decode(reader, reader.uint32()));
|
|
4515
|
+
break;
|
|
4516
|
+
case 2:
|
|
4517
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
4518
|
+
break;
|
|
4519
|
+
default:
|
|
4520
|
+
reader.skipType(tag & 7);
|
|
4521
|
+
break;
|
|
4522
|
+
}
|
|
4523
|
+
}
|
|
4524
|
+
return message;
|
|
4525
|
+
},
|
|
4526
|
+
fromPartial(object) {
|
|
4527
|
+
const message = createBaseQueryBalancesByOwnerResponse();
|
|
4528
|
+
message.balances = object.balances?.map(e => BalanceView.fromPartial(e)) || [];
|
|
4529
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
4530
|
+
return message;
|
|
4531
|
+
},
|
|
4532
|
+
fromAmino(object) {
|
|
4533
|
+
const message = createBaseQueryBalancesByOwnerResponse();
|
|
4534
|
+
message.balances = object.balances?.map(e => BalanceView.fromAmino(e)) || [];
|
|
4535
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4536
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
4537
|
+
}
|
|
4538
|
+
return message;
|
|
4539
|
+
},
|
|
4540
|
+
toAmino(message) {
|
|
4541
|
+
const obj = {};
|
|
4542
|
+
if (message.balances) {
|
|
4543
|
+
obj.balances = message.balances.map(e => e ? BalanceView.toAmino(e) : undefined);
|
|
4544
|
+
}
|
|
4545
|
+
else {
|
|
4546
|
+
obj.balances = message.balances;
|
|
4547
|
+
}
|
|
4548
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
4549
|
+
return obj;
|
|
4550
|
+
},
|
|
4551
|
+
fromAminoMsg(object) {
|
|
4552
|
+
return QueryBalancesByOwnerResponse.fromAmino(object.value);
|
|
4553
|
+
},
|
|
4554
|
+
fromProtoMsg(message) {
|
|
4555
|
+
return QueryBalancesByOwnerResponse.decode(message.value);
|
|
4556
|
+
},
|
|
4557
|
+
toProto(message) {
|
|
4558
|
+
return QueryBalancesByOwnerResponse.encode(message).finish();
|
|
4559
|
+
},
|
|
4560
|
+
toProtoMsg(message) {
|
|
4561
|
+
return {
|
|
4562
|
+
typeUrl: "/sparkdream.artifact.v1.QueryBalancesByOwnerResponse",
|
|
4563
|
+
value: QueryBalancesByOwnerResponse.encode(message).finish()
|
|
4564
|
+
};
|
|
4565
|
+
}
|
|
4566
|
+
};
|
|
4567
|
+
function createBaseQueryEditionHoldersRequest() {
|
|
4568
|
+
return {
|
|
4569
|
+
classId: BigInt(0),
|
|
4570
|
+
editionId: BigInt(0),
|
|
4571
|
+
pagination: undefined
|
|
4572
|
+
};
|
|
4573
|
+
}
|
|
4574
|
+
/**
|
|
4575
|
+
* QueryEditionHoldersRequest defines the QueryEditionHoldersRequest message.
|
|
4576
|
+
* @name QueryEditionHoldersRequest
|
|
4577
|
+
* @package sparkdream.artifact.v1
|
|
4578
|
+
* @see proto type: sparkdream.artifact.v1.QueryEditionHoldersRequest
|
|
4579
|
+
*/
|
|
4580
|
+
export const QueryEditionHoldersRequest = {
|
|
4581
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionHoldersRequest",
|
|
4582
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4583
|
+
if (message.classId !== BigInt(0)) {
|
|
4584
|
+
writer.uint32(8).uint64(message.classId);
|
|
4585
|
+
}
|
|
4586
|
+
if (message.editionId !== BigInt(0)) {
|
|
4587
|
+
writer.uint32(16).uint64(message.editionId);
|
|
4588
|
+
}
|
|
4589
|
+
if (message.pagination !== undefined) {
|
|
4590
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
4591
|
+
}
|
|
4592
|
+
return writer;
|
|
4593
|
+
},
|
|
4594
|
+
decode(input, length) {
|
|
4595
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4596
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4597
|
+
const message = createBaseQueryEditionHoldersRequest();
|
|
4598
|
+
while (reader.pos < end) {
|
|
4599
|
+
const tag = reader.uint32();
|
|
4600
|
+
switch (tag >>> 3) {
|
|
4601
|
+
case 1:
|
|
4602
|
+
message.classId = reader.uint64();
|
|
4603
|
+
break;
|
|
4604
|
+
case 2:
|
|
4605
|
+
message.editionId = reader.uint64();
|
|
4606
|
+
break;
|
|
4607
|
+
case 3:
|
|
4608
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
4609
|
+
break;
|
|
4610
|
+
default:
|
|
4611
|
+
reader.skipType(tag & 7);
|
|
4612
|
+
break;
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
return message;
|
|
4616
|
+
},
|
|
4617
|
+
fromPartial(object) {
|
|
4618
|
+
const message = createBaseQueryEditionHoldersRequest();
|
|
4619
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
4620
|
+
message.editionId = object.editionId !== undefined && object.editionId !== null ? BigInt(object.editionId.toString()) : BigInt(0);
|
|
4621
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
4622
|
+
return message;
|
|
4623
|
+
},
|
|
4624
|
+
fromAmino(object) {
|
|
4625
|
+
const message = createBaseQueryEditionHoldersRequest();
|
|
4626
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
4627
|
+
message.classId = BigInt(object.class_id);
|
|
4628
|
+
}
|
|
4629
|
+
if (object.edition_id !== undefined && object.edition_id !== null) {
|
|
4630
|
+
message.editionId = BigInt(object.edition_id);
|
|
4631
|
+
}
|
|
4632
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4633
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
4634
|
+
}
|
|
4635
|
+
return message;
|
|
4636
|
+
},
|
|
4637
|
+
toAmino(message) {
|
|
4638
|
+
const obj = {};
|
|
4639
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
4640
|
+
obj.edition_id = message.editionId !== BigInt(0) ? message.editionId?.toString() : undefined;
|
|
4641
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
4642
|
+
return obj;
|
|
4643
|
+
},
|
|
4644
|
+
fromAminoMsg(object) {
|
|
4645
|
+
return QueryEditionHoldersRequest.fromAmino(object.value);
|
|
4646
|
+
},
|
|
4647
|
+
fromProtoMsg(message) {
|
|
4648
|
+
return QueryEditionHoldersRequest.decode(message.value);
|
|
4649
|
+
},
|
|
4650
|
+
toProto(message) {
|
|
4651
|
+
return QueryEditionHoldersRequest.encode(message).finish();
|
|
4652
|
+
},
|
|
4653
|
+
toProtoMsg(message) {
|
|
4654
|
+
return {
|
|
4655
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionHoldersRequest",
|
|
4656
|
+
value: QueryEditionHoldersRequest.encode(message).finish()
|
|
4657
|
+
};
|
|
4658
|
+
}
|
|
4659
|
+
};
|
|
4660
|
+
function createBaseQueryEditionHoldersResponse() {
|
|
4661
|
+
return {
|
|
4662
|
+
balances: [],
|
|
4663
|
+
pagination: undefined
|
|
4664
|
+
};
|
|
4665
|
+
}
|
|
4666
|
+
/**
|
|
4667
|
+
* QueryEditionHoldersResponse defines the QueryEditionHoldersResponse message.
|
|
4668
|
+
* @name QueryEditionHoldersResponse
|
|
4669
|
+
* @package sparkdream.artifact.v1
|
|
4670
|
+
* @see proto type: sparkdream.artifact.v1.QueryEditionHoldersResponse
|
|
4671
|
+
*/
|
|
4672
|
+
export const QueryEditionHoldersResponse = {
|
|
4673
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionHoldersResponse",
|
|
4674
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4675
|
+
for (const v of message.balances) {
|
|
4676
|
+
BalanceView.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4677
|
+
}
|
|
4678
|
+
if (message.pagination !== undefined) {
|
|
4679
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4680
|
+
}
|
|
4681
|
+
return writer;
|
|
4682
|
+
},
|
|
4683
|
+
decode(input, length) {
|
|
4684
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4685
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4686
|
+
const message = createBaseQueryEditionHoldersResponse();
|
|
4687
|
+
while (reader.pos < end) {
|
|
4688
|
+
const tag = reader.uint32();
|
|
4689
|
+
switch (tag >>> 3) {
|
|
4690
|
+
case 1:
|
|
4691
|
+
message.balances.push(BalanceView.decode(reader, reader.uint32()));
|
|
4692
|
+
break;
|
|
4693
|
+
case 2:
|
|
4694
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
4695
|
+
break;
|
|
4696
|
+
default:
|
|
4697
|
+
reader.skipType(tag & 7);
|
|
4698
|
+
break;
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
return message;
|
|
4702
|
+
},
|
|
4703
|
+
fromPartial(object) {
|
|
4704
|
+
const message = createBaseQueryEditionHoldersResponse();
|
|
4705
|
+
message.balances = object.balances?.map(e => BalanceView.fromPartial(e)) || [];
|
|
4706
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
4707
|
+
return message;
|
|
4708
|
+
},
|
|
4709
|
+
fromAmino(object) {
|
|
4710
|
+
const message = createBaseQueryEditionHoldersResponse();
|
|
4711
|
+
message.balances = object.balances?.map(e => BalanceView.fromAmino(e)) || [];
|
|
4712
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4713
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
4714
|
+
}
|
|
4715
|
+
return message;
|
|
4716
|
+
},
|
|
4717
|
+
toAmino(message) {
|
|
4718
|
+
const obj = {};
|
|
4719
|
+
if (message.balances) {
|
|
4720
|
+
obj.balances = message.balances.map(e => e ? BalanceView.toAmino(e) : undefined);
|
|
4721
|
+
}
|
|
4722
|
+
else {
|
|
4723
|
+
obj.balances = message.balances;
|
|
4724
|
+
}
|
|
4725
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
4726
|
+
return obj;
|
|
4727
|
+
},
|
|
4728
|
+
fromAminoMsg(object) {
|
|
4729
|
+
return QueryEditionHoldersResponse.fromAmino(object.value);
|
|
4730
|
+
},
|
|
4731
|
+
fromProtoMsg(message) {
|
|
4732
|
+
return QueryEditionHoldersResponse.decode(message.value);
|
|
4733
|
+
},
|
|
4734
|
+
toProto(message) {
|
|
4735
|
+
return QueryEditionHoldersResponse.encode(message).finish();
|
|
4736
|
+
},
|
|
4737
|
+
toProtoMsg(message) {
|
|
4738
|
+
return {
|
|
4739
|
+
typeUrl: "/sparkdream.artifact.v1.QueryEditionHoldersResponse",
|
|
4740
|
+
value: QueryEditionHoldersResponse.encode(message).finish()
|
|
4741
|
+
};
|
|
4742
|
+
}
|
|
4743
|
+
};
|
|
4744
|
+
function createBaseQueryUnitListingRequest() {
|
|
4745
|
+
return {
|
|
4746
|
+
listingId: BigInt(0)
|
|
4747
|
+
};
|
|
4748
|
+
}
|
|
4749
|
+
/**
|
|
4750
|
+
* QueryUnitListingRequest defines the QueryUnitListingRequest message.
|
|
4751
|
+
* @name QueryUnitListingRequest
|
|
4752
|
+
* @package sparkdream.artifact.v1
|
|
4753
|
+
* @see proto type: sparkdream.artifact.v1.QueryUnitListingRequest
|
|
4754
|
+
*/
|
|
4755
|
+
export const QueryUnitListingRequest = {
|
|
4756
|
+
typeUrl: "/sparkdream.artifact.v1.QueryUnitListingRequest",
|
|
4757
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4758
|
+
if (message.listingId !== BigInt(0)) {
|
|
4759
|
+
writer.uint32(8).uint64(message.listingId);
|
|
4760
|
+
}
|
|
4761
|
+
return writer;
|
|
4762
|
+
},
|
|
4763
|
+
decode(input, length) {
|
|
4764
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4765
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4766
|
+
const message = createBaseQueryUnitListingRequest();
|
|
4767
|
+
while (reader.pos < end) {
|
|
4768
|
+
const tag = reader.uint32();
|
|
4769
|
+
switch (tag >>> 3) {
|
|
4770
|
+
case 1:
|
|
4771
|
+
message.listingId = reader.uint64();
|
|
4772
|
+
break;
|
|
4773
|
+
default:
|
|
4774
|
+
reader.skipType(tag & 7);
|
|
4775
|
+
break;
|
|
4776
|
+
}
|
|
4777
|
+
}
|
|
4778
|
+
return message;
|
|
4779
|
+
},
|
|
4780
|
+
fromPartial(object) {
|
|
4781
|
+
const message = createBaseQueryUnitListingRequest();
|
|
4782
|
+
message.listingId = object.listingId !== undefined && object.listingId !== null ? BigInt(object.listingId.toString()) : BigInt(0);
|
|
4783
|
+
return message;
|
|
4784
|
+
},
|
|
4785
|
+
fromAmino(object) {
|
|
4786
|
+
const message = createBaseQueryUnitListingRequest();
|
|
4787
|
+
if (object.listing_id !== undefined && object.listing_id !== null) {
|
|
4788
|
+
message.listingId = BigInt(object.listing_id);
|
|
4789
|
+
}
|
|
4790
|
+
return message;
|
|
4791
|
+
},
|
|
4792
|
+
toAmino(message) {
|
|
4793
|
+
const obj = {};
|
|
4794
|
+
obj.listing_id = message.listingId !== BigInt(0) ? message.listingId?.toString() : undefined;
|
|
4795
|
+
return obj;
|
|
4796
|
+
},
|
|
4797
|
+
fromAminoMsg(object) {
|
|
4798
|
+
return QueryUnitListingRequest.fromAmino(object.value);
|
|
4799
|
+
},
|
|
4800
|
+
fromProtoMsg(message) {
|
|
4801
|
+
return QueryUnitListingRequest.decode(message.value);
|
|
4802
|
+
},
|
|
4803
|
+
toProto(message) {
|
|
4804
|
+
return QueryUnitListingRequest.encode(message).finish();
|
|
4805
|
+
},
|
|
4806
|
+
toProtoMsg(message) {
|
|
4807
|
+
return {
|
|
4808
|
+
typeUrl: "/sparkdream.artifact.v1.QueryUnitListingRequest",
|
|
4809
|
+
value: QueryUnitListingRequest.encode(message).finish()
|
|
4810
|
+
};
|
|
4811
|
+
}
|
|
4812
|
+
};
|
|
4813
|
+
function createBaseQueryUnitListingResponse() {
|
|
4814
|
+
return {
|
|
4815
|
+
listing: UnitListing.fromPartial({})
|
|
4816
|
+
};
|
|
4817
|
+
}
|
|
4818
|
+
/**
|
|
4819
|
+
* QueryUnitListingResponse defines the QueryUnitListingResponse message.
|
|
4820
|
+
* @name QueryUnitListingResponse
|
|
4821
|
+
* @package sparkdream.artifact.v1
|
|
4822
|
+
* @see proto type: sparkdream.artifact.v1.QueryUnitListingResponse
|
|
4823
|
+
*/
|
|
4824
|
+
export const QueryUnitListingResponse = {
|
|
4825
|
+
typeUrl: "/sparkdream.artifact.v1.QueryUnitListingResponse",
|
|
4826
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4827
|
+
if (message.listing !== undefined) {
|
|
4828
|
+
UnitListing.encode(message.listing, writer.uint32(10).fork()).ldelim();
|
|
4829
|
+
}
|
|
4830
|
+
return writer;
|
|
4831
|
+
},
|
|
4832
|
+
decode(input, length) {
|
|
4833
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4834
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4835
|
+
const message = createBaseQueryUnitListingResponse();
|
|
4836
|
+
while (reader.pos < end) {
|
|
4837
|
+
const tag = reader.uint32();
|
|
4838
|
+
switch (tag >>> 3) {
|
|
4839
|
+
case 1:
|
|
4840
|
+
message.listing = UnitListing.decode(reader, reader.uint32());
|
|
4841
|
+
break;
|
|
4842
|
+
default:
|
|
4843
|
+
reader.skipType(tag & 7);
|
|
4844
|
+
break;
|
|
4845
|
+
}
|
|
4846
|
+
}
|
|
4847
|
+
return message;
|
|
4848
|
+
},
|
|
4849
|
+
fromPartial(object) {
|
|
4850
|
+
const message = createBaseQueryUnitListingResponse();
|
|
4851
|
+
message.listing = object.listing !== undefined && object.listing !== null ? UnitListing.fromPartial(object.listing) : undefined;
|
|
4852
|
+
return message;
|
|
4853
|
+
},
|
|
4854
|
+
fromAmino(object) {
|
|
4855
|
+
const message = createBaseQueryUnitListingResponse();
|
|
4856
|
+
if (object.listing !== undefined && object.listing !== null) {
|
|
4857
|
+
message.listing = UnitListing.fromAmino(object.listing);
|
|
4858
|
+
}
|
|
4859
|
+
return message;
|
|
4860
|
+
},
|
|
4861
|
+
toAmino(message) {
|
|
4862
|
+
const obj = {};
|
|
4863
|
+
obj.listing = message.listing ? UnitListing.toAmino(message.listing) : undefined;
|
|
4864
|
+
return obj;
|
|
4865
|
+
},
|
|
4866
|
+
fromAminoMsg(object) {
|
|
4867
|
+
return QueryUnitListingResponse.fromAmino(object.value);
|
|
4868
|
+
},
|
|
4869
|
+
fromProtoMsg(message) {
|
|
4870
|
+
return QueryUnitListingResponse.decode(message.value);
|
|
4871
|
+
},
|
|
4872
|
+
toProto(message) {
|
|
4873
|
+
return QueryUnitListingResponse.encode(message).finish();
|
|
4874
|
+
},
|
|
4875
|
+
toProtoMsg(message) {
|
|
4876
|
+
return {
|
|
4877
|
+
typeUrl: "/sparkdream.artifact.v1.QueryUnitListingResponse",
|
|
4878
|
+
value: QueryUnitListingResponse.encode(message).finish()
|
|
4879
|
+
};
|
|
4880
|
+
}
|
|
4881
|
+
};
|
|
4882
|
+
function createBaseQueryUnitListingsRequest() {
|
|
4883
|
+
return {
|
|
4884
|
+
classId: BigInt(0),
|
|
4885
|
+
editionId: BigInt(0),
|
|
4886
|
+
pagination: undefined
|
|
4887
|
+
};
|
|
4888
|
+
}
|
|
4889
|
+
/**
|
|
4890
|
+
* QueryUnitListingsRequest defines the QueryUnitListingsRequest message.
|
|
4891
|
+
* @name QueryUnitListingsRequest
|
|
4892
|
+
* @package sparkdream.artifact.v1
|
|
4893
|
+
* @see proto type: sparkdream.artifact.v1.QueryUnitListingsRequest
|
|
4894
|
+
*/
|
|
4895
|
+
export const QueryUnitListingsRequest = {
|
|
4896
|
+
typeUrl: "/sparkdream.artifact.v1.QueryUnitListingsRequest",
|
|
4897
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4898
|
+
if (message.classId !== BigInt(0)) {
|
|
4899
|
+
writer.uint32(8).uint64(message.classId);
|
|
4900
|
+
}
|
|
4901
|
+
if (message.editionId !== BigInt(0)) {
|
|
4902
|
+
writer.uint32(16).uint64(message.editionId);
|
|
4903
|
+
}
|
|
4904
|
+
if (message.pagination !== undefined) {
|
|
4905
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
4906
|
+
}
|
|
4907
|
+
return writer;
|
|
4908
|
+
},
|
|
4909
|
+
decode(input, length) {
|
|
4910
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4911
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4912
|
+
const message = createBaseQueryUnitListingsRequest();
|
|
4913
|
+
while (reader.pos < end) {
|
|
4914
|
+
const tag = reader.uint32();
|
|
4915
|
+
switch (tag >>> 3) {
|
|
4916
|
+
case 1:
|
|
4917
|
+
message.classId = reader.uint64();
|
|
4918
|
+
break;
|
|
4919
|
+
case 2:
|
|
4920
|
+
message.editionId = reader.uint64();
|
|
4921
|
+
break;
|
|
4922
|
+
case 3:
|
|
4923
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
4924
|
+
break;
|
|
4925
|
+
default:
|
|
4926
|
+
reader.skipType(tag & 7);
|
|
4927
|
+
break;
|
|
4928
|
+
}
|
|
4929
|
+
}
|
|
4930
|
+
return message;
|
|
4931
|
+
},
|
|
4932
|
+
fromPartial(object) {
|
|
4933
|
+
const message = createBaseQueryUnitListingsRequest();
|
|
4934
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
4935
|
+
message.editionId = object.editionId !== undefined && object.editionId !== null ? BigInt(object.editionId.toString()) : BigInt(0);
|
|
4936
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
4937
|
+
return message;
|
|
4938
|
+
},
|
|
4939
|
+
fromAmino(object) {
|
|
4940
|
+
const message = createBaseQueryUnitListingsRequest();
|
|
4941
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
4942
|
+
message.classId = BigInt(object.class_id);
|
|
4943
|
+
}
|
|
4944
|
+
if (object.edition_id !== undefined && object.edition_id !== null) {
|
|
4945
|
+
message.editionId = BigInt(object.edition_id);
|
|
4946
|
+
}
|
|
4947
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
4948
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
4949
|
+
}
|
|
4950
|
+
return message;
|
|
4951
|
+
},
|
|
4952
|
+
toAmino(message) {
|
|
4953
|
+
const obj = {};
|
|
4954
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
4955
|
+
obj.edition_id = message.editionId !== BigInt(0) ? message.editionId?.toString() : undefined;
|
|
4956
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
4957
|
+
return obj;
|
|
4958
|
+
},
|
|
4959
|
+
fromAminoMsg(object) {
|
|
4960
|
+
return QueryUnitListingsRequest.fromAmino(object.value);
|
|
4961
|
+
},
|
|
4962
|
+
fromProtoMsg(message) {
|
|
4963
|
+
return QueryUnitListingsRequest.decode(message.value);
|
|
4964
|
+
},
|
|
4965
|
+
toProto(message) {
|
|
4966
|
+
return QueryUnitListingsRequest.encode(message).finish();
|
|
4967
|
+
},
|
|
4968
|
+
toProtoMsg(message) {
|
|
4969
|
+
return {
|
|
4970
|
+
typeUrl: "/sparkdream.artifact.v1.QueryUnitListingsRequest",
|
|
4971
|
+
value: QueryUnitListingsRequest.encode(message).finish()
|
|
4972
|
+
};
|
|
4973
|
+
}
|
|
4974
|
+
};
|
|
4975
|
+
function createBaseQueryUnitListingsResponse() {
|
|
4976
|
+
return {
|
|
4977
|
+
listings: [],
|
|
4978
|
+
pagination: undefined
|
|
4979
|
+
};
|
|
4980
|
+
}
|
|
4981
|
+
/**
|
|
4982
|
+
* QueryUnitListingsResponse defines the QueryUnitListingsResponse message.
|
|
4983
|
+
* @name QueryUnitListingsResponse
|
|
4984
|
+
* @package sparkdream.artifact.v1
|
|
4985
|
+
* @see proto type: sparkdream.artifact.v1.QueryUnitListingsResponse
|
|
4986
|
+
*/
|
|
4987
|
+
export const QueryUnitListingsResponse = {
|
|
4988
|
+
typeUrl: "/sparkdream.artifact.v1.QueryUnitListingsResponse",
|
|
4989
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
4990
|
+
for (const v of message.listings) {
|
|
4991
|
+
UnitListing.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4992
|
+
}
|
|
4993
|
+
if (message.pagination !== undefined) {
|
|
4994
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
4995
|
+
}
|
|
4996
|
+
return writer;
|
|
4997
|
+
},
|
|
4998
|
+
decode(input, length) {
|
|
4999
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5000
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5001
|
+
const message = createBaseQueryUnitListingsResponse();
|
|
5002
|
+
while (reader.pos < end) {
|
|
5003
|
+
const tag = reader.uint32();
|
|
5004
|
+
switch (tag >>> 3) {
|
|
5005
|
+
case 1:
|
|
5006
|
+
message.listings.push(UnitListing.decode(reader, reader.uint32()));
|
|
5007
|
+
break;
|
|
5008
|
+
case 2:
|
|
5009
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
5010
|
+
break;
|
|
5011
|
+
default:
|
|
5012
|
+
reader.skipType(tag & 7);
|
|
5013
|
+
break;
|
|
5014
|
+
}
|
|
5015
|
+
}
|
|
5016
|
+
return message;
|
|
5017
|
+
},
|
|
5018
|
+
fromPartial(object) {
|
|
5019
|
+
const message = createBaseQueryUnitListingsResponse();
|
|
5020
|
+
message.listings = object.listings?.map(e => UnitListing.fromPartial(e)) || [];
|
|
5021
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
5022
|
+
return message;
|
|
5023
|
+
},
|
|
5024
|
+
fromAmino(object) {
|
|
5025
|
+
const message = createBaseQueryUnitListingsResponse();
|
|
5026
|
+
message.listings = object.listings?.map(e => UnitListing.fromAmino(e)) || [];
|
|
5027
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
5028
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
5029
|
+
}
|
|
5030
|
+
return message;
|
|
5031
|
+
},
|
|
5032
|
+
toAmino(message) {
|
|
5033
|
+
const obj = {};
|
|
5034
|
+
if (message.listings) {
|
|
5035
|
+
obj.listings = message.listings.map(e => e ? UnitListing.toAmino(e) : undefined);
|
|
5036
|
+
}
|
|
5037
|
+
else {
|
|
5038
|
+
obj.listings = message.listings;
|
|
5039
|
+
}
|
|
5040
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
5041
|
+
return obj;
|
|
5042
|
+
},
|
|
5043
|
+
fromAminoMsg(object) {
|
|
5044
|
+
return QueryUnitListingsResponse.fromAmino(object.value);
|
|
5045
|
+
},
|
|
5046
|
+
fromProtoMsg(message) {
|
|
5047
|
+
return QueryUnitListingsResponse.decode(message.value);
|
|
5048
|
+
},
|
|
5049
|
+
toProto(message) {
|
|
5050
|
+
return QueryUnitListingsResponse.encode(message).finish();
|
|
5051
|
+
},
|
|
5052
|
+
toProtoMsg(message) {
|
|
5053
|
+
return {
|
|
5054
|
+
typeUrl: "/sparkdream.artifact.v1.QueryUnitListingsResponse",
|
|
5055
|
+
value: QueryUnitListingsResponse.encode(message).finish()
|
|
5056
|
+
};
|
|
5057
|
+
}
|
|
5058
|
+
};
|
|
5059
|
+
function createBaseQueryCraftRecipesRequest() {
|
|
5060
|
+
return {
|
|
5061
|
+
classId: BigInt(0)
|
|
5062
|
+
};
|
|
5063
|
+
}
|
|
5064
|
+
/**
|
|
5065
|
+
* QueryCraftRecipesRequest defines the QueryCraftRecipesRequest message.
|
|
5066
|
+
* @name QueryCraftRecipesRequest
|
|
5067
|
+
* @package sparkdream.artifact.v1
|
|
5068
|
+
* @see proto type: sparkdream.artifact.v1.QueryCraftRecipesRequest
|
|
5069
|
+
*/
|
|
5070
|
+
export const QueryCraftRecipesRequest = {
|
|
5071
|
+
typeUrl: "/sparkdream.artifact.v1.QueryCraftRecipesRequest",
|
|
5072
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5073
|
+
if (message.classId !== BigInt(0)) {
|
|
5074
|
+
writer.uint32(8).uint64(message.classId);
|
|
5075
|
+
}
|
|
5076
|
+
return writer;
|
|
5077
|
+
},
|
|
5078
|
+
decode(input, length) {
|
|
5079
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5080
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5081
|
+
const message = createBaseQueryCraftRecipesRequest();
|
|
5082
|
+
while (reader.pos < end) {
|
|
5083
|
+
const tag = reader.uint32();
|
|
5084
|
+
switch (tag >>> 3) {
|
|
5085
|
+
case 1:
|
|
5086
|
+
message.classId = reader.uint64();
|
|
5087
|
+
break;
|
|
5088
|
+
default:
|
|
5089
|
+
reader.skipType(tag & 7);
|
|
5090
|
+
break;
|
|
5091
|
+
}
|
|
5092
|
+
}
|
|
5093
|
+
return message;
|
|
5094
|
+
},
|
|
5095
|
+
fromPartial(object) {
|
|
5096
|
+
const message = createBaseQueryCraftRecipesRequest();
|
|
5097
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
5098
|
+
return message;
|
|
5099
|
+
},
|
|
5100
|
+
fromAmino(object) {
|
|
5101
|
+
const message = createBaseQueryCraftRecipesRequest();
|
|
5102
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
5103
|
+
message.classId = BigInt(object.class_id);
|
|
5104
|
+
}
|
|
5105
|
+
return message;
|
|
5106
|
+
},
|
|
5107
|
+
toAmino(message) {
|
|
5108
|
+
const obj = {};
|
|
5109
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
5110
|
+
return obj;
|
|
5111
|
+
},
|
|
5112
|
+
fromAminoMsg(object) {
|
|
5113
|
+
return QueryCraftRecipesRequest.fromAmino(object.value);
|
|
5114
|
+
},
|
|
5115
|
+
fromProtoMsg(message) {
|
|
5116
|
+
return QueryCraftRecipesRequest.decode(message.value);
|
|
5117
|
+
},
|
|
5118
|
+
toProto(message) {
|
|
5119
|
+
return QueryCraftRecipesRequest.encode(message).finish();
|
|
5120
|
+
},
|
|
5121
|
+
toProtoMsg(message) {
|
|
5122
|
+
return {
|
|
5123
|
+
typeUrl: "/sparkdream.artifact.v1.QueryCraftRecipesRequest",
|
|
5124
|
+
value: QueryCraftRecipesRequest.encode(message).finish()
|
|
5125
|
+
};
|
|
5126
|
+
}
|
|
5127
|
+
};
|
|
5128
|
+
function createBaseQueryCraftRecipesResponse() {
|
|
5129
|
+
return {
|
|
5130
|
+
recipes: [],
|
|
5131
|
+
locked: false
|
|
5132
|
+
};
|
|
5133
|
+
}
|
|
5134
|
+
/**
|
|
5135
|
+
* QueryCraftRecipesResponse defines the QueryCraftRecipesResponse message.
|
|
5136
|
+
* @name QueryCraftRecipesResponse
|
|
5137
|
+
* @package sparkdream.artifact.v1
|
|
5138
|
+
* @see proto type: sparkdream.artifact.v1.QueryCraftRecipesResponse
|
|
5139
|
+
*/
|
|
5140
|
+
export const QueryCraftRecipesResponse = {
|
|
5141
|
+
typeUrl: "/sparkdream.artifact.v1.QueryCraftRecipesResponse",
|
|
5142
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5143
|
+
for (const v of message.recipes) {
|
|
5144
|
+
CraftRecipe.encode(v, writer.uint32(10).fork()).ldelim();
|
|
5145
|
+
}
|
|
5146
|
+
if (message.locked === true) {
|
|
5147
|
+
writer.uint32(16).bool(message.locked);
|
|
5148
|
+
}
|
|
5149
|
+
return writer;
|
|
5150
|
+
},
|
|
5151
|
+
decode(input, length) {
|
|
5152
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5153
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5154
|
+
const message = createBaseQueryCraftRecipesResponse();
|
|
5155
|
+
while (reader.pos < end) {
|
|
5156
|
+
const tag = reader.uint32();
|
|
5157
|
+
switch (tag >>> 3) {
|
|
5158
|
+
case 1:
|
|
5159
|
+
message.recipes.push(CraftRecipe.decode(reader, reader.uint32()));
|
|
5160
|
+
break;
|
|
5161
|
+
case 2:
|
|
5162
|
+
message.locked = reader.bool();
|
|
5163
|
+
break;
|
|
5164
|
+
default:
|
|
5165
|
+
reader.skipType(tag & 7);
|
|
5166
|
+
break;
|
|
5167
|
+
}
|
|
5168
|
+
}
|
|
5169
|
+
return message;
|
|
5170
|
+
},
|
|
5171
|
+
fromPartial(object) {
|
|
5172
|
+
const message = createBaseQueryCraftRecipesResponse();
|
|
5173
|
+
message.recipes = object.recipes?.map(e => CraftRecipe.fromPartial(e)) || [];
|
|
5174
|
+
message.locked = object.locked ?? false;
|
|
5175
|
+
return message;
|
|
5176
|
+
},
|
|
5177
|
+
fromAmino(object) {
|
|
5178
|
+
const message = createBaseQueryCraftRecipesResponse();
|
|
5179
|
+
message.recipes = object.recipes?.map(e => CraftRecipe.fromAmino(e)) || [];
|
|
5180
|
+
if (object.locked !== undefined && object.locked !== null) {
|
|
5181
|
+
message.locked = object.locked;
|
|
5182
|
+
}
|
|
5183
|
+
return message;
|
|
5184
|
+
},
|
|
5185
|
+
toAmino(message) {
|
|
5186
|
+
const obj = {};
|
|
5187
|
+
if (message.recipes) {
|
|
5188
|
+
obj.recipes = message.recipes.map(e => e ? CraftRecipe.toAmino(e) : undefined);
|
|
5189
|
+
}
|
|
5190
|
+
else {
|
|
5191
|
+
obj.recipes = message.recipes;
|
|
5192
|
+
}
|
|
5193
|
+
obj.locked = message.locked === false ? undefined : message.locked;
|
|
5194
|
+
return obj;
|
|
5195
|
+
},
|
|
5196
|
+
fromAminoMsg(object) {
|
|
5197
|
+
return QueryCraftRecipesResponse.fromAmino(object.value);
|
|
5198
|
+
},
|
|
5199
|
+
fromProtoMsg(message) {
|
|
5200
|
+
return QueryCraftRecipesResponse.decode(message.value);
|
|
5201
|
+
},
|
|
5202
|
+
toProto(message) {
|
|
5203
|
+
return QueryCraftRecipesResponse.encode(message).finish();
|
|
5204
|
+
},
|
|
5205
|
+
toProtoMsg(message) {
|
|
5206
|
+
return {
|
|
5207
|
+
typeUrl: "/sparkdream.artifact.v1.QueryCraftRecipesResponse",
|
|
5208
|
+
value: QueryCraftRecipesResponse.encode(message).finish()
|
|
5209
|
+
};
|
|
5210
|
+
}
|
|
5211
|
+
};
|
|
5212
|
+
function createBaseQueryRentalRequest() {
|
|
5213
|
+
return {
|
|
5214
|
+
classId: BigInt(0),
|
|
5215
|
+
tokenId: BigInt(0)
|
|
5216
|
+
};
|
|
5217
|
+
}
|
|
5218
|
+
/**
|
|
5219
|
+
* QueryRentalRequest defines the QueryRentalRequest message.
|
|
5220
|
+
* @name QueryRentalRequest
|
|
5221
|
+
* @package sparkdream.artifact.v1
|
|
5222
|
+
* @see proto type: sparkdream.artifact.v1.QueryRentalRequest
|
|
5223
|
+
*/
|
|
5224
|
+
export const QueryRentalRequest = {
|
|
5225
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalRequest",
|
|
5226
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5227
|
+
if (message.classId !== BigInt(0)) {
|
|
5228
|
+
writer.uint32(8).uint64(message.classId);
|
|
5229
|
+
}
|
|
5230
|
+
if (message.tokenId !== BigInt(0)) {
|
|
5231
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
5232
|
+
}
|
|
5233
|
+
return writer;
|
|
5234
|
+
},
|
|
5235
|
+
decode(input, length) {
|
|
5236
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5237
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5238
|
+
const message = createBaseQueryRentalRequest();
|
|
5239
|
+
while (reader.pos < end) {
|
|
5240
|
+
const tag = reader.uint32();
|
|
5241
|
+
switch (tag >>> 3) {
|
|
5242
|
+
case 1:
|
|
5243
|
+
message.classId = reader.uint64();
|
|
5244
|
+
break;
|
|
5245
|
+
case 2:
|
|
5246
|
+
message.tokenId = reader.uint64();
|
|
5247
|
+
break;
|
|
5248
|
+
default:
|
|
5249
|
+
reader.skipType(tag & 7);
|
|
5250
|
+
break;
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5253
|
+
return message;
|
|
5254
|
+
},
|
|
5255
|
+
fromPartial(object) {
|
|
5256
|
+
const message = createBaseQueryRentalRequest();
|
|
5257
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
5258
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
5259
|
+
return message;
|
|
5260
|
+
},
|
|
5261
|
+
fromAmino(object) {
|
|
5262
|
+
const message = createBaseQueryRentalRequest();
|
|
5263
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
5264
|
+
message.classId = BigInt(object.class_id);
|
|
5265
|
+
}
|
|
5266
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
5267
|
+
message.tokenId = BigInt(object.token_id);
|
|
5268
|
+
}
|
|
5269
|
+
return message;
|
|
5270
|
+
},
|
|
5271
|
+
toAmino(message) {
|
|
5272
|
+
const obj = {};
|
|
5273
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
5274
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
5275
|
+
return obj;
|
|
5276
|
+
},
|
|
5277
|
+
fromAminoMsg(object) {
|
|
5278
|
+
return QueryRentalRequest.fromAmino(object.value);
|
|
5279
|
+
},
|
|
5280
|
+
fromProtoMsg(message) {
|
|
5281
|
+
return QueryRentalRequest.decode(message.value);
|
|
5282
|
+
},
|
|
5283
|
+
toProto(message) {
|
|
5284
|
+
return QueryRentalRequest.encode(message).finish();
|
|
5285
|
+
},
|
|
5286
|
+
toProtoMsg(message) {
|
|
5287
|
+
return {
|
|
5288
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalRequest",
|
|
5289
|
+
value: QueryRentalRequest.encode(message).finish()
|
|
5290
|
+
};
|
|
5291
|
+
}
|
|
5292
|
+
};
|
|
5293
|
+
function createBaseQueryRentalResponse() {
|
|
5294
|
+
return {
|
|
5295
|
+
rental: Rental.fromPartial({})
|
|
5296
|
+
};
|
|
5297
|
+
}
|
|
5298
|
+
/**
|
|
5299
|
+
* QueryRentalResponse defines the QueryRentalResponse message.
|
|
5300
|
+
* @name QueryRentalResponse
|
|
5301
|
+
* @package sparkdream.artifact.v1
|
|
5302
|
+
* @see proto type: sparkdream.artifact.v1.QueryRentalResponse
|
|
5303
|
+
*/
|
|
5304
|
+
export const QueryRentalResponse = {
|
|
5305
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalResponse",
|
|
5306
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5307
|
+
if (message.rental !== undefined) {
|
|
5308
|
+
Rental.encode(message.rental, writer.uint32(10).fork()).ldelim();
|
|
5309
|
+
}
|
|
5310
|
+
return writer;
|
|
5311
|
+
},
|
|
5312
|
+
decode(input, length) {
|
|
5313
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5314
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5315
|
+
const message = createBaseQueryRentalResponse();
|
|
5316
|
+
while (reader.pos < end) {
|
|
5317
|
+
const tag = reader.uint32();
|
|
5318
|
+
switch (tag >>> 3) {
|
|
5319
|
+
case 1:
|
|
5320
|
+
message.rental = Rental.decode(reader, reader.uint32());
|
|
5321
|
+
break;
|
|
5322
|
+
default:
|
|
5323
|
+
reader.skipType(tag & 7);
|
|
5324
|
+
break;
|
|
5325
|
+
}
|
|
5326
|
+
}
|
|
5327
|
+
return message;
|
|
5328
|
+
},
|
|
5329
|
+
fromPartial(object) {
|
|
5330
|
+
const message = createBaseQueryRentalResponse();
|
|
5331
|
+
message.rental = object.rental !== undefined && object.rental !== null ? Rental.fromPartial(object.rental) : undefined;
|
|
5332
|
+
return message;
|
|
5333
|
+
},
|
|
5334
|
+
fromAmino(object) {
|
|
5335
|
+
const message = createBaseQueryRentalResponse();
|
|
5336
|
+
if (object.rental !== undefined && object.rental !== null) {
|
|
5337
|
+
message.rental = Rental.fromAmino(object.rental);
|
|
5338
|
+
}
|
|
5339
|
+
return message;
|
|
5340
|
+
},
|
|
5341
|
+
toAmino(message) {
|
|
5342
|
+
const obj = {};
|
|
5343
|
+
obj.rental = message.rental ? Rental.toAmino(message.rental) : undefined;
|
|
5344
|
+
return obj;
|
|
5345
|
+
},
|
|
5346
|
+
fromAminoMsg(object) {
|
|
5347
|
+
return QueryRentalResponse.fromAmino(object.value);
|
|
5348
|
+
},
|
|
5349
|
+
fromProtoMsg(message) {
|
|
5350
|
+
return QueryRentalResponse.decode(message.value);
|
|
5351
|
+
},
|
|
5352
|
+
toProto(message) {
|
|
5353
|
+
return QueryRentalResponse.encode(message).finish();
|
|
5354
|
+
},
|
|
5355
|
+
toProtoMsg(message) {
|
|
5356
|
+
return {
|
|
5357
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalResponse",
|
|
5358
|
+
value: QueryRentalResponse.encode(message).finish()
|
|
5359
|
+
};
|
|
5360
|
+
}
|
|
5361
|
+
};
|
|
5362
|
+
function createBaseQueryRentalOfferRequest() {
|
|
5363
|
+
return {
|
|
5364
|
+
classId: BigInt(0),
|
|
5365
|
+
tokenId: BigInt(0)
|
|
5366
|
+
};
|
|
5367
|
+
}
|
|
5368
|
+
/**
|
|
5369
|
+
* QueryRentalOfferRequest defines the QueryRentalOfferRequest message.
|
|
5370
|
+
* @name QueryRentalOfferRequest
|
|
5371
|
+
* @package sparkdream.artifact.v1
|
|
5372
|
+
* @see proto type: sparkdream.artifact.v1.QueryRentalOfferRequest
|
|
5373
|
+
*/
|
|
5374
|
+
export const QueryRentalOfferRequest = {
|
|
5375
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalOfferRequest",
|
|
5376
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5377
|
+
if (message.classId !== BigInt(0)) {
|
|
5378
|
+
writer.uint32(8).uint64(message.classId);
|
|
5379
|
+
}
|
|
5380
|
+
if (message.tokenId !== BigInt(0)) {
|
|
5381
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
5382
|
+
}
|
|
5383
|
+
return writer;
|
|
5384
|
+
},
|
|
5385
|
+
decode(input, length) {
|
|
5386
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5387
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5388
|
+
const message = createBaseQueryRentalOfferRequest();
|
|
5389
|
+
while (reader.pos < end) {
|
|
5390
|
+
const tag = reader.uint32();
|
|
5391
|
+
switch (tag >>> 3) {
|
|
5392
|
+
case 1:
|
|
5393
|
+
message.classId = reader.uint64();
|
|
5394
|
+
break;
|
|
5395
|
+
case 2:
|
|
5396
|
+
message.tokenId = reader.uint64();
|
|
5397
|
+
break;
|
|
5398
|
+
default:
|
|
5399
|
+
reader.skipType(tag & 7);
|
|
5400
|
+
break;
|
|
5401
|
+
}
|
|
5402
|
+
}
|
|
5403
|
+
return message;
|
|
5404
|
+
},
|
|
5405
|
+
fromPartial(object) {
|
|
5406
|
+
const message = createBaseQueryRentalOfferRequest();
|
|
5407
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
5408
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
5409
|
+
return message;
|
|
5410
|
+
},
|
|
5411
|
+
fromAmino(object) {
|
|
5412
|
+
const message = createBaseQueryRentalOfferRequest();
|
|
5413
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
5414
|
+
message.classId = BigInt(object.class_id);
|
|
5415
|
+
}
|
|
5416
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
5417
|
+
message.tokenId = BigInt(object.token_id);
|
|
5418
|
+
}
|
|
5419
|
+
return message;
|
|
5420
|
+
},
|
|
5421
|
+
toAmino(message) {
|
|
5422
|
+
const obj = {};
|
|
5423
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
5424
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
5425
|
+
return obj;
|
|
5426
|
+
},
|
|
5427
|
+
fromAminoMsg(object) {
|
|
5428
|
+
return QueryRentalOfferRequest.fromAmino(object.value);
|
|
5429
|
+
},
|
|
5430
|
+
fromProtoMsg(message) {
|
|
5431
|
+
return QueryRentalOfferRequest.decode(message.value);
|
|
5432
|
+
},
|
|
5433
|
+
toProto(message) {
|
|
5434
|
+
return QueryRentalOfferRequest.encode(message).finish();
|
|
5435
|
+
},
|
|
5436
|
+
toProtoMsg(message) {
|
|
5437
|
+
return {
|
|
5438
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalOfferRequest",
|
|
5439
|
+
value: QueryRentalOfferRequest.encode(message).finish()
|
|
5440
|
+
};
|
|
5441
|
+
}
|
|
5442
|
+
};
|
|
5443
|
+
function createBaseQueryRentalOfferResponse() {
|
|
5444
|
+
return {
|
|
5445
|
+
offer: RentalOffer.fromPartial({})
|
|
5446
|
+
};
|
|
5447
|
+
}
|
|
5448
|
+
/**
|
|
5449
|
+
* QueryRentalOfferResponse defines the QueryRentalOfferResponse message.
|
|
5450
|
+
* @name QueryRentalOfferResponse
|
|
5451
|
+
* @package sparkdream.artifact.v1
|
|
5452
|
+
* @see proto type: sparkdream.artifact.v1.QueryRentalOfferResponse
|
|
5453
|
+
*/
|
|
5454
|
+
export const QueryRentalOfferResponse = {
|
|
5455
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalOfferResponse",
|
|
5456
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5457
|
+
if (message.offer !== undefined) {
|
|
5458
|
+
RentalOffer.encode(message.offer, writer.uint32(10).fork()).ldelim();
|
|
5459
|
+
}
|
|
5460
|
+
return writer;
|
|
5461
|
+
},
|
|
5462
|
+
decode(input, length) {
|
|
5463
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5464
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5465
|
+
const message = createBaseQueryRentalOfferResponse();
|
|
5466
|
+
while (reader.pos < end) {
|
|
5467
|
+
const tag = reader.uint32();
|
|
5468
|
+
switch (tag >>> 3) {
|
|
5469
|
+
case 1:
|
|
5470
|
+
message.offer = RentalOffer.decode(reader, reader.uint32());
|
|
5471
|
+
break;
|
|
5472
|
+
default:
|
|
5473
|
+
reader.skipType(tag & 7);
|
|
5474
|
+
break;
|
|
5475
|
+
}
|
|
5476
|
+
}
|
|
5477
|
+
return message;
|
|
5478
|
+
},
|
|
5479
|
+
fromPartial(object) {
|
|
5480
|
+
const message = createBaseQueryRentalOfferResponse();
|
|
5481
|
+
message.offer = object.offer !== undefined && object.offer !== null ? RentalOffer.fromPartial(object.offer) : undefined;
|
|
5482
|
+
return message;
|
|
5483
|
+
},
|
|
5484
|
+
fromAmino(object) {
|
|
5485
|
+
const message = createBaseQueryRentalOfferResponse();
|
|
5486
|
+
if (object.offer !== undefined && object.offer !== null) {
|
|
5487
|
+
message.offer = RentalOffer.fromAmino(object.offer);
|
|
5488
|
+
}
|
|
5489
|
+
return message;
|
|
5490
|
+
},
|
|
5491
|
+
toAmino(message) {
|
|
5492
|
+
const obj = {};
|
|
5493
|
+
obj.offer = message.offer ? RentalOffer.toAmino(message.offer) : undefined;
|
|
5494
|
+
return obj;
|
|
5495
|
+
},
|
|
5496
|
+
fromAminoMsg(object) {
|
|
5497
|
+
return QueryRentalOfferResponse.fromAmino(object.value);
|
|
5498
|
+
},
|
|
5499
|
+
fromProtoMsg(message) {
|
|
5500
|
+
return QueryRentalOfferResponse.decode(message.value);
|
|
5501
|
+
},
|
|
5502
|
+
toProto(message) {
|
|
5503
|
+
return QueryRentalOfferResponse.encode(message).finish();
|
|
5504
|
+
},
|
|
5505
|
+
toProtoMsg(message) {
|
|
5506
|
+
return {
|
|
5507
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalOfferResponse",
|
|
5508
|
+
value: QueryRentalOfferResponse.encode(message).finish()
|
|
5509
|
+
};
|
|
5510
|
+
}
|
|
5511
|
+
};
|
|
5512
|
+
function createBaseQueryRentalsByUserRequest() {
|
|
5513
|
+
return {
|
|
5514
|
+
user: "",
|
|
5515
|
+
pagination: undefined
|
|
5516
|
+
};
|
|
5517
|
+
}
|
|
5518
|
+
/**
|
|
5519
|
+
* QueryRentalsByUserRequest defines the QueryRentalsByUserRequest message.
|
|
5520
|
+
* @name QueryRentalsByUserRequest
|
|
5521
|
+
* @package sparkdream.artifact.v1
|
|
5522
|
+
* @see proto type: sparkdream.artifact.v1.QueryRentalsByUserRequest
|
|
5523
|
+
*/
|
|
5524
|
+
export const QueryRentalsByUserRequest = {
|
|
5525
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalsByUserRequest",
|
|
5526
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5527
|
+
if (message.user !== "") {
|
|
5528
|
+
writer.uint32(10).string(message.user);
|
|
5529
|
+
}
|
|
5530
|
+
if (message.pagination !== undefined) {
|
|
5531
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
5532
|
+
}
|
|
5533
|
+
return writer;
|
|
5534
|
+
},
|
|
5535
|
+
decode(input, length) {
|
|
5536
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5537
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5538
|
+
const message = createBaseQueryRentalsByUserRequest();
|
|
5539
|
+
while (reader.pos < end) {
|
|
5540
|
+
const tag = reader.uint32();
|
|
5541
|
+
switch (tag >>> 3) {
|
|
5542
|
+
case 1:
|
|
5543
|
+
message.user = reader.string();
|
|
5544
|
+
break;
|
|
5545
|
+
case 2:
|
|
5546
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
5547
|
+
break;
|
|
5548
|
+
default:
|
|
5549
|
+
reader.skipType(tag & 7);
|
|
5550
|
+
break;
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5553
|
+
return message;
|
|
5554
|
+
},
|
|
5555
|
+
fromPartial(object) {
|
|
5556
|
+
const message = createBaseQueryRentalsByUserRequest();
|
|
5557
|
+
message.user = object.user ?? "";
|
|
5558
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
5559
|
+
return message;
|
|
5560
|
+
},
|
|
5561
|
+
fromAmino(object) {
|
|
5562
|
+
const message = createBaseQueryRentalsByUserRequest();
|
|
5563
|
+
if (object.user !== undefined && object.user !== null) {
|
|
5564
|
+
message.user = object.user;
|
|
5565
|
+
}
|
|
5566
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
5567
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
5568
|
+
}
|
|
5569
|
+
return message;
|
|
5570
|
+
},
|
|
5571
|
+
toAmino(message) {
|
|
5572
|
+
const obj = {};
|
|
5573
|
+
obj.user = message.user === "" ? undefined : message.user;
|
|
5574
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
5575
|
+
return obj;
|
|
5576
|
+
},
|
|
5577
|
+
fromAminoMsg(object) {
|
|
5578
|
+
return QueryRentalsByUserRequest.fromAmino(object.value);
|
|
5579
|
+
},
|
|
5580
|
+
fromProtoMsg(message) {
|
|
5581
|
+
return QueryRentalsByUserRequest.decode(message.value);
|
|
5582
|
+
},
|
|
5583
|
+
toProto(message) {
|
|
5584
|
+
return QueryRentalsByUserRequest.encode(message).finish();
|
|
5585
|
+
},
|
|
5586
|
+
toProtoMsg(message) {
|
|
5587
|
+
return {
|
|
5588
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalsByUserRequest",
|
|
5589
|
+
value: QueryRentalsByUserRequest.encode(message).finish()
|
|
5590
|
+
};
|
|
5591
|
+
}
|
|
5592
|
+
};
|
|
5593
|
+
function createBaseQueryRentalsByUserResponse() {
|
|
5594
|
+
return {
|
|
5595
|
+
rentals: [],
|
|
5596
|
+
pagination: undefined
|
|
5597
|
+
};
|
|
5598
|
+
}
|
|
5599
|
+
/**
|
|
5600
|
+
* QueryRentalsByUserResponse defines the QueryRentalsByUserResponse message.
|
|
5601
|
+
* @name QueryRentalsByUserResponse
|
|
5602
|
+
* @package sparkdream.artifact.v1
|
|
5603
|
+
* @see proto type: sparkdream.artifact.v1.QueryRentalsByUserResponse
|
|
5604
|
+
*/
|
|
5605
|
+
export const QueryRentalsByUserResponse = {
|
|
5606
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalsByUserResponse",
|
|
5607
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5608
|
+
for (const v of message.rentals) {
|
|
5609
|
+
Rental.encode(v, writer.uint32(10).fork()).ldelim();
|
|
5610
|
+
}
|
|
5611
|
+
if (message.pagination !== undefined) {
|
|
5612
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
5613
|
+
}
|
|
5614
|
+
return writer;
|
|
5615
|
+
},
|
|
5616
|
+
decode(input, length) {
|
|
5617
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5618
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5619
|
+
const message = createBaseQueryRentalsByUserResponse();
|
|
5620
|
+
while (reader.pos < end) {
|
|
5621
|
+
const tag = reader.uint32();
|
|
5622
|
+
switch (tag >>> 3) {
|
|
5623
|
+
case 1:
|
|
5624
|
+
message.rentals.push(Rental.decode(reader, reader.uint32()));
|
|
5625
|
+
break;
|
|
5626
|
+
case 2:
|
|
5627
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
5628
|
+
break;
|
|
5629
|
+
default:
|
|
5630
|
+
reader.skipType(tag & 7);
|
|
5631
|
+
break;
|
|
5632
|
+
}
|
|
5633
|
+
}
|
|
5634
|
+
return message;
|
|
5635
|
+
},
|
|
5636
|
+
fromPartial(object) {
|
|
5637
|
+
const message = createBaseQueryRentalsByUserResponse();
|
|
5638
|
+
message.rentals = object.rentals?.map(e => Rental.fromPartial(e)) || [];
|
|
5639
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
5640
|
+
return message;
|
|
5641
|
+
},
|
|
5642
|
+
fromAmino(object) {
|
|
5643
|
+
const message = createBaseQueryRentalsByUserResponse();
|
|
5644
|
+
message.rentals = object.rentals?.map(e => Rental.fromAmino(e)) || [];
|
|
5645
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
5646
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
5647
|
+
}
|
|
5648
|
+
return message;
|
|
5649
|
+
},
|
|
5650
|
+
toAmino(message) {
|
|
5651
|
+
const obj = {};
|
|
5652
|
+
if (message.rentals) {
|
|
5653
|
+
obj.rentals = message.rentals.map(e => e ? Rental.toAmino(e) : undefined);
|
|
5654
|
+
}
|
|
5655
|
+
else {
|
|
5656
|
+
obj.rentals = message.rentals;
|
|
5657
|
+
}
|
|
5658
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
5659
|
+
return obj;
|
|
5660
|
+
},
|
|
5661
|
+
fromAminoMsg(object) {
|
|
5662
|
+
return QueryRentalsByUserResponse.fromAmino(object.value);
|
|
5663
|
+
},
|
|
5664
|
+
fromProtoMsg(message) {
|
|
5665
|
+
return QueryRentalsByUserResponse.decode(message.value);
|
|
5666
|
+
},
|
|
5667
|
+
toProto(message) {
|
|
5668
|
+
return QueryRentalsByUserResponse.encode(message).finish();
|
|
5669
|
+
},
|
|
5670
|
+
toProtoMsg(message) {
|
|
5671
|
+
return {
|
|
5672
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalsByUserResponse",
|
|
5673
|
+
value: QueryRentalsByUserResponse.encode(message).finish()
|
|
5674
|
+
};
|
|
5675
|
+
}
|
|
5676
|
+
};
|
|
5677
|
+
function createBaseQueryChildrenRequest() {
|
|
5678
|
+
return {
|
|
5679
|
+
classId: BigInt(0),
|
|
5680
|
+
tokenId: BigInt(0)
|
|
5681
|
+
};
|
|
5682
|
+
}
|
|
5683
|
+
/**
|
|
5684
|
+
* QueryChildrenRequest defines the QueryChildrenRequest message.
|
|
5685
|
+
* @name QueryChildrenRequest
|
|
5686
|
+
* @package sparkdream.artifact.v1
|
|
5687
|
+
* @see proto type: sparkdream.artifact.v1.QueryChildrenRequest
|
|
5688
|
+
*/
|
|
5689
|
+
export const QueryChildrenRequest = {
|
|
5690
|
+
typeUrl: "/sparkdream.artifact.v1.QueryChildrenRequest",
|
|
5691
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5692
|
+
if (message.classId !== BigInt(0)) {
|
|
5693
|
+
writer.uint32(8).uint64(message.classId);
|
|
5694
|
+
}
|
|
5695
|
+
if (message.tokenId !== BigInt(0)) {
|
|
5696
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
5697
|
+
}
|
|
5698
|
+
return writer;
|
|
5699
|
+
},
|
|
5700
|
+
decode(input, length) {
|
|
5701
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5702
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5703
|
+
const message = createBaseQueryChildrenRequest();
|
|
5704
|
+
while (reader.pos < end) {
|
|
5705
|
+
const tag = reader.uint32();
|
|
5706
|
+
switch (tag >>> 3) {
|
|
5707
|
+
case 1:
|
|
5708
|
+
message.classId = reader.uint64();
|
|
5709
|
+
break;
|
|
5710
|
+
case 2:
|
|
5711
|
+
message.tokenId = reader.uint64();
|
|
5712
|
+
break;
|
|
5713
|
+
default:
|
|
5714
|
+
reader.skipType(tag & 7);
|
|
5715
|
+
break;
|
|
5716
|
+
}
|
|
5717
|
+
}
|
|
5718
|
+
return message;
|
|
5719
|
+
},
|
|
5720
|
+
fromPartial(object) {
|
|
5721
|
+
const message = createBaseQueryChildrenRequest();
|
|
5722
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
5723
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
5724
|
+
return message;
|
|
5725
|
+
},
|
|
5726
|
+
fromAmino(object) {
|
|
5727
|
+
const message = createBaseQueryChildrenRequest();
|
|
5728
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
5729
|
+
message.classId = BigInt(object.class_id);
|
|
5730
|
+
}
|
|
5731
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
5732
|
+
message.tokenId = BigInt(object.token_id);
|
|
5733
|
+
}
|
|
5734
|
+
return message;
|
|
5735
|
+
},
|
|
5736
|
+
toAmino(message) {
|
|
5737
|
+
const obj = {};
|
|
5738
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
5739
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
5740
|
+
return obj;
|
|
5741
|
+
},
|
|
5742
|
+
fromAminoMsg(object) {
|
|
5743
|
+
return QueryChildrenRequest.fromAmino(object.value);
|
|
5744
|
+
},
|
|
5745
|
+
fromProtoMsg(message) {
|
|
5746
|
+
return QueryChildrenRequest.decode(message.value);
|
|
5747
|
+
},
|
|
5748
|
+
toProto(message) {
|
|
5749
|
+
return QueryChildrenRequest.encode(message).finish();
|
|
5750
|
+
},
|
|
5751
|
+
toProtoMsg(message) {
|
|
5752
|
+
return {
|
|
5753
|
+
typeUrl: "/sparkdream.artifact.v1.QueryChildrenRequest",
|
|
5754
|
+
value: QueryChildrenRequest.encode(message).finish()
|
|
5755
|
+
};
|
|
5756
|
+
}
|
|
5757
|
+
};
|
|
5758
|
+
function createBaseQueryChildrenResponse() {
|
|
5759
|
+
return {
|
|
5760
|
+
children: [],
|
|
5761
|
+
contentsHash: "",
|
|
5762
|
+
descendants: 0
|
|
5763
|
+
};
|
|
5764
|
+
}
|
|
5765
|
+
/**
|
|
5766
|
+
* QueryChildrenResponse defines the QueryChildrenResponse message.
|
|
5767
|
+
* @name QueryChildrenResponse
|
|
5768
|
+
* @package sparkdream.artifact.v1
|
|
5769
|
+
* @see proto type: sparkdream.artifact.v1.QueryChildrenResponse
|
|
5770
|
+
*/
|
|
5771
|
+
export const QueryChildrenResponse = {
|
|
5772
|
+
typeUrl: "/sparkdream.artifact.v1.QueryChildrenResponse",
|
|
5773
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5774
|
+
for (const v of message.children) {
|
|
5775
|
+
TokenRef.encode(v, writer.uint32(10).fork()).ldelim();
|
|
5776
|
+
}
|
|
5777
|
+
if (message.contentsHash !== "") {
|
|
5778
|
+
writer.uint32(18).string(message.contentsHash);
|
|
5779
|
+
}
|
|
5780
|
+
if (message.descendants !== 0) {
|
|
5781
|
+
writer.uint32(24).uint32(message.descendants);
|
|
5782
|
+
}
|
|
5783
|
+
return writer;
|
|
5784
|
+
},
|
|
5785
|
+
decode(input, length) {
|
|
5786
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5787
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5788
|
+
const message = createBaseQueryChildrenResponse();
|
|
5789
|
+
while (reader.pos < end) {
|
|
5790
|
+
const tag = reader.uint32();
|
|
5791
|
+
switch (tag >>> 3) {
|
|
5792
|
+
case 1:
|
|
5793
|
+
message.children.push(TokenRef.decode(reader, reader.uint32()));
|
|
5794
|
+
break;
|
|
5795
|
+
case 2:
|
|
5796
|
+
message.contentsHash = reader.string();
|
|
5797
|
+
break;
|
|
5798
|
+
case 3:
|
|
5799
|
+
message.descendants = reader.uint32();
|
|
5800
|
+
break;
|
|
5801
|
+
default:
|
|
5802
|
+
reader.skipType(tag & 7);
|
|
5803
|
+
break;
|
|
5804
|
+
}
|
|
5805
|
+
}
|
|
5806
|
+
return message;
|
|
5807
|
+
},
|
|
5808
|
+
fromPartial(object) {
|
|
5809
|
+
const message = createBaseQueryChildrenResponse();
|
|
5810
|
+
message.children = object.children?.map(e => TokenRef.fromPartial(e)) || [];
|
|
5811
|
+
message.contentsHash = object.contentsHash ?? "";
|
|
5812
|
+
message.descendants = object.descendants ?? 0;
|
|
5813
|
+
return message;
|
|
5814
|
+
},
|
|
5815
|
+
fromAmino(object) {
|
|
5816
|
+
const message = createBaseQueryChildrenResponse();
|
|
5817
|
+
message.children = object.children?.map(e => TokenRef.fromAmino(e)) || [];
|
|
5818
|
+
if (object.contents_hash !== undefined && object.contents_hash !== null) {
|
|
5819
|
+
message.contentsHash = object.contents_hash;
|
|
5820
|
+
}
|
|
5821
|
+
if (object.descendants !== undefined && object.descendants !== null) {
|
|
5822
|
+
message.descendants = object.descendants;
|
|
5823
|
+
}
|
|
5824
|
+
return message;
|
|
5825
|
+
},
|
|
5826
|
+
toAmino(message) {
|
|
5827
|
+
const obj = {};
|
|
5828
|
+
if (message.children) {
|
|
5829
|
+
obj.children = message.children.map(e => e ? TokenRef.toAmino(e) : undefined);
|
|
5830
|
+
}
|
|
5831
|
+
else {
|
|
5832
|
+
obj.children = message.children;
|
|
5833
|
+
}
|
|
5834
|
+
obj.contents_hash = message.contentsHash === "" ? undefined : message.contentsHash;
|
|
5835
|
+
obj.descendants = message.descendants === 0 ? undefined : message.descendants;
|
|
5836
|
+
return obj;
|
|
5837
|
+
},
|
|
5838
|
+
fromAminoMsg(object) {
|
|
5839
|
+
return QueryChildrenResponse.fromAmino(object.value);
|
|
5840
|
+
},
|
|
5841
|
+
fromProtoMsg(message) {
|
|
5842
|
+
return QueryChildrenResponse.decode(message.value);
|
|
5843
|
+
},
|
|
5844
|
+
toProto(message) {
|
|
5845
|
+
return QueryChildrenResponse.encode(message).finish();
|
|
5846
|
+
},
|
|
5847
|
+
toProtoMsg(message) {
|
|
5848
|
+
return {
|
|
5849
|
+
typeUrl: "/sparkdream.artifact.v1.QueryChildrenResponse",
|
|
5850
|
+
value: QueryChildrenResponse.encode(message).finish()
|
|
5851
|
+
};
|
|
5852
|
+
}
|
|
5853
|
+
};
|
|
5854
|
+
function createBaseQueryHarbergerQuoteRequest() {
|
|
5855
|
+
return {
|
|
5856
|
+
classId: BigInt(0),
|
|
5857
|
+
tokenId: BigInt(0)
|
|
5858
|
+
};
|
|
5859
|
+
}
|
|
5860
|
+
/**
|
|
5861
|
+
* QueryHarbergerQuoteRequest defines the QueryHarbergerQuoteRequest message.
|
|
5862
|
+
* @name QueryHarbergerQuoteRequest
|
|
5863
|
+
* @package sparkdream.artifact.v1
|
|
5864
|
+
* @see proto type: sparkdream.artifact.v1.QueryHarbergerQuoteRequest
|
|
5865
|
+
*/
|
|
5866
|
+
export const QueryHarbergerQuoteRequest = {
|
|
5867
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHarbergerQuoteRequest",
|
|
5868
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5869
|
+
if (message.classId !== BigInt(0)) {
|
|
5870
|
+
writer.uint32(8).uint64(message.classId);
|
|
5871
|
+
}
|
|
5872
|
+
if (message.tokenId !== BigInt(0)) {
|
|
5873
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
5874
|
+
}
|
|
5875
|
+
return writer;
|
|
5876
|
+
},
|
|
5877
|
+
decode(input, length) {
|
|
5878
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5879
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5880
|
+
const message = createBaseQueryHarbergerQuoteRequest();
|
|
5881
|
+
while (reader.pos < end) {
|
|
5882
|
+
const tag = reader.uint32();
|
|
5883
|
+
switch (tag >>> 3) {
|
|
5884
|
+
case 1:
|
|
5885
|
+
message.classId = reader.uint64();
|
|
5886
|
+
break;
|
|
5887
|
+
case 2:
|
|
5888
|
+
message.tokenId = reader.uint64();
|
|
5889
|
+
break;
|
|
5890
|
+
default:
|
|
5891
|
+
reader.skipType(tag & 7);
|
|
5892
|
+
break;
|
|
5893
|
+
}
|
|
5894
|
+
}
|
|
5895
|
+
return message;
|
|
5896
|
+
},
|
|
5897
|
+
fromPartial(object) {
|
|
5898
|
+
const message = createBaseQueryHarbergerQuoteRequest();
|
|
5899
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
5900
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
5901
|
+
return message;
|
|
5902
|
+
},
|
|
5903
|
+
fromAmino(object) {
|
|
5904
|
+
const message = createBaseQueryHarbergerQuoteRequest();
|
|
5905
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
5906
|
+
message.classId = BigInt(object.class_id);
|
|
5907
|
+
}
|
|
5908
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
5909
|
+
message.tokenId = BigInt(object.token_id);
|
|
5910
|
+
}
|
|
5911
|
+
return message;
|
|
5912
|
+
},
|
|
5913
|
+
toAmino(message) {
|
|
5914
|
+
const obj = {};
|
|
5915
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
5916
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
5917
|
+
return obj;
|
|
5918
|
+
},
|
|
5919
|
+
fromAminoMsg(object) {
|
|
5920
|
+
return QueryHarbergerQuoteRequest.fromAmino(object.value);
|
|
5921
|
+
},
|
|
5922
|
+
fromProtoMsg(message) {
|
|
5923
|
+
return QueryHarbergerQuoteRequest.decode(message.value);
|
|
5924
|
+
},
|
|
5925
|
+
toProto(message) {
|
|
5926
|
+
return QueryHarbergerQuoteRequest.encode(message).finish();
|
|
5927
|
+
},
|
|
5928
|
+
toProtoMsg(message) {
|
|
5929
|
+
return {
|
|
5930
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHarbergerQuoteRequest",
|
|
5931
|
+
value: QueryHarbergerQuoteRequest.encode(message).finish()
|
|
5932
|
+
};
|
|
5933
|
+
}
|
|
5934
|
+
};
|
|
5935
|
+
function createBaseQueryHarbergerQuoteResponse() {
|
|
5936
|
+
return {
|
|
5937
|
+
state: HarbergerState.fromPartial({}),
|
|
5938
|
+
currentPrice: "",
|
|
5939
|
+
taxPerPeriod: "",
|
|
5940
|
+
foreclosed: false,
|
|
5941
|
+
forSale: false
|
|
5942
|
+
};
|
|
5943
|
+
}
|
|
5944
|
+
/**
|
|
5945
|
+
* QueryHarbergerQuoteResponse defines the QueryHarbergerQuoteResponse message.
|
|
5946
|
+
* @name QueryHarbergerQuoteResponse
|
|
5947
|
+
* @package sparkdream.artifact.v1
|
|
5948
|
+
* @see proto type: sparkdream.artifact.v1.QueryHarbergerQuoteResponse
|
|
5949
|
+
*/
|
|
5950
|
+
export const QueryHarbergerQuoteResponse = {
|
|
5951
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHarbergerQuoteResponse",
|
|
5952
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5953
|
+
if (message.state !== undefined) {
|
|
5954
|
+
HarbergerState.encode(message.state, writer.uint32(10).fork()).ldelim();
|
|
5955
|
+
}
|
|
5956
|
+
if (message.currentPrice !== "") {
|
|
5957
|
+
writer.uint32(18).string(message.currentPrice);
|
|
5958
|
+
}
|
|
5959
|
+
if (message.taxPerPeriod !== "") {
|
|
5960
|
+
writer.uint32(26).string(message.taxPerPeriod);
|
|
5961
|
+
}
|
|
5962
|
+
if (message.foreclosed === true) {
|
|
5963
|
+
writer.uint32(32).bool(message.foreclosed);
|
|
5964
|
+
}
|
|
5965
|
+
if (message.forSale === true) {
|
|
5966
|
+
writer.uint32(40).bool(message.forSale);
|
|
5967
|
+
}
|
|
5968
|
+
return writer;
|
|
5969
|
+
},
|
|
5970
|
+
decode(input, length) {
|
|
5971
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5972
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5973
|
+
const message = createBaseQueryHarbergerQuoteResponse();
|
|
5974
|
+
while (reader.pos < end) {
|
|
5975
|
+
const tag = reader.uint32();
|
|
5976
|
+
switch (tag >>> 3) {
|
|
5977
|
+
case 1:
|
|
5978
|
+
message.state = HarbergerState.decode(reader, reader.uint32());
|
|
5979
|
+
break;
|
|
5980
|
+
case 2:
|
|
5981
|
+
message.currentPrice = reader.string();
|
|
5982
|
+
break;
|
|
5983
|
+
case 3:
|
|
5984
|
+
message.taxPerPeriod = reader.string();
|
|
5985
|
+
break;
|
|
5986
|
+
case 4:
|
|
5987
|
+
message.foreclosed = reader.bool();
|
|
5988
|
+
break;
|
|
5989
|
+
case 5:
|
|
5990
|
+
message.forSale = reader.bool();
|
|
5991
|
+
break;
|
|
5992
|
+
default:
|
|
5993
|
+
reader.skipType(tag & 7);
|
|
5994
|
+
break;
|
|
5995
|
+
}
|
|
5996
|
+
}
|
|
5997
|
+
return message;
|
|
5998
|
+
},
|
|
5999
|
+
fromPartial(object) {
|
|
6000
|
+
const message = createBaseQueryHarbergerQuoteResponse();
|
|
6001
|
+
message.state = object.state !== undefined && object.state !== null ? HarbergerState.fromPartial(object.state) : undefined;
|
|
6002
|
+
message.currentPrice = object.currentPrice ?? "";
|
|
6003
|
+
message.taxPerPeriod = object.taxPerPeriod ?? "";
|
|
6004
|
+
message.foreclosed = object.foreclosed ?? false;
|
|
6005
|
+
message.forSale = object.forSale ?? false;
|
|
6006
|
+
return message;
|
|
6007
|
+
},
|
|
6008
|
+
fromAmino(object) {
|
|
6009
|
+
const message = createBaseQueryHarbergerQuoteResponse();
|
|
6010
|
+
if (object.state !== undefined && object.state !== null) {
|
|
6011
|
+
message.state = HarbergerState.fromAmino(object.state);
|
|
6012
|
+
}
|
|
6013
|
+
if (object.current_price !== undefined && object.current_price !== null) {
|
|
6014
|
+
message.currentPrice = object.current_price;
|
|
6015
|
+
}
|
|
6016
|
+
if (object.tax_per_period !== undefined && object.tax_per_period !== null) {
|
|
6017
|
+
message.taxPerPeriod = object.tax_per_period;
|
|
6018
|
+
}
|
|
6019
|
+
if (object.foreclosed !== undefined && object.foreclosed !== null) {
|
|
6020
|
+
message.foreclosed = object.foreclosed;
|
|
6021
|
+
}
|
|
6022
|
+
if (object.for_sale !== undefined && object.for_sale !== null) {
|
|
6023
|
+
message.forSale = object.for_sale;
|
|
6024
|
+
}
|
|
6025
|
+
return message;
|
|
6026
|
+
},
|
|
6027
|
+
toAmino(message) {
|
|
6028
|
+
const obj = {};
|
|
6029
|
+
obj.state = message.state ? HarbergerState.toAmino(message.state) : undefined;
|
|
6030
|
+
obj.current_price = message.currentPrice === "" ? undefined : message.currentPrice;
|
|
6031
|
+
obj.tax_per_period = message.taxPerPeriod === "" ? undefined : message.taxPerPeriod;
|
|
6032
|
+
obj.foreclosed = message.foreclosed === false ? undefined : message.foreclosed;
|
|
6033
|
+
obj.for_sale = message.forSale === false ? undefined : message.forSale;
|
|
6034
|
+
return obj;
|
|
6035
|
+
},
|
|
6036
|
+
fromAminoMsg(object) {
|
|
6037
|
+
return QueryHarbergerQuoteResponse.fromAmino(object.value);
|
|
6038
|
+
},
|
|
6039
|
+
fromProtoMsg(message) {
|
|
6040
|
+
return QueryHarbergerQuoteResponse.decode(message.value);
|
|
6041
|
+
},
|
|
6042
|
+
toProto(message) {
|
|
6043
|
+
return QueryHarbergerQuoteResponse.encode(message).finish();
|
|
6044
|
+
},
|
|
6045
|
+
toProtoMsg(message) {
|
|
6046
|
+
return {
|
|
6047
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHarbergerQuoteResponse",
|
|
6048
|
+
value: QueryHarbergerQuoteResponse.encode(message).finish()
|
|
6049
|
+
};
|
|
6050
|
+
}
|
|
6051
|
+
};
|
|
6052
|
+
function createBaseQueryOfferRequest() {
|
|
6053
|
+
return {
|
|
6054
|
+
offerId: BigInt(0)
|
|
6055
|
+
};
|
|
6056
|
+
}
|
|
6057
|
+
/**
|
|
6058
|
+
* QueryOfferRequest defines the QueryOfferRequest message.
|
|
6059
|
+
* @name QueryOfferRequest
|
|
6060
|
+
* @package sparkdream.artifact.v1
|
|
6061
|
+
* @see proto type: sparkdream.artifact.v1.QueryOfferRequest
|
|
6062
|
+
*/
|
|
6063
|
+
export const QueryOfferRequest = {
|
|
6064
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOfferRequest",
|
|
6065
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6066
|
+
if (message.offerId !== BigInt(0)) {
|
|
6067
|
+
writer.uint32(8).uint64(message.offerId);
|
|
6068
|
+
}
|
|
6069
|
+
return writer;
|
|
6070
|
+
},
|
|
6071
|
+
decode(input, length) {
|
|
6072
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6073
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6074
|
+
const message = createBaseQueryOfferRequest();
|
|
6075
|
+
while (reader.pos < end) {
|
|
6076
|
+
const tag = reader.uint32();
|
|
6077
|
+
switch (tag >>> 3) {
|
|
6078
|
+
case 1:
|
|
6079
|
+
message.offerId = reader.uint64();
|
|
6080
|
+
break;
|
|
6081
|
+
default:
|
|
6082
|
+
reader.skipType(tag & 7);
|
|
6083
|
+
break;
|
|
6084
|
+
}
|
|
6085
|
+
}
|
|
6086
|
+
return message;
|
|
6087
|
+
},
|
|
6088
|
+
fromPartial(object) {
|
|
6089
|
+
const message = createBaseQueryOfferRequest();
|
|
6090
|
+
message.offerId = object.offerId !== undefined && object.offerId !== null ? BigInt(object.offerId.toString()) : BigInt(0);
|
|
6091
|
+
return message;
|
|
6092
|
+
},
|
|
6093
|
+
fromAmino(object) {
|
|
6094
|
+
const message = createBaseQueryOfferRequest();
|
|
6095
|
+
if (object.offer_id !== undefined && object.offer_id !== null) {
|
|
6096
|
+
message.offerId = BigInt(object.offer_id);
|
|
6097
|
+
}
|
|
6098
|
+
return message;
|
|
6099
|
+
},
|
|
6100
|
+
toAmino(message) {
|
|
6101
|
+
const obj = {};
|
|
6102
|
+
obj.offer_id = message.offerId !== BigInt(0) ? message.offerId?.toString() : undefined;
|
|
6103
|
+
return obj;
|
|
6104
|
+
},
|
|
6105
|
+
fromAminoMsg(object) {
|
|
6106
|
+
return QueryOfferRequest.fromAmino(object.value);
|
|
6107
|
+
},
|
|
6108
|
+
fromProtoMsg(message) {
|
|
6109
|
+
return QueryOfferRequest.decode(message.value);
|
|
6110
|
+
},
|
|
6111
|
+
toProto(message) {
|
|
6112
|
+
return QueryOfferRequest.encode(message).finish();
|
|
6113
|
+
},
|
|
6114
|
+
toProtoMsg(message) {
|
|
6115
|
+
return {
|
|
6116
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOfferRequest",
|
|
6117
|
+
value: QueryOfferRequest.encode(message).finish()
|
|
6118
|
+
};
|
|
6119
|
+
}
|
|
6120
|
+
};
|
|
6121
|
+
function createBaseQueryOfferResponse() {
|
|
6122
|
+
return {
|
|
6123
|
+
offer: Offer.fromPartial({})
|
|
6124
|
+
};
|
|
6125
|
+
}
|
|
6126
|
+
/**
|
|
6127
|
+
* QueryOfferResponse defines the QueryOfferResponse message.
|
|
6128
|
+
* @name QueryOfferResponse
|
|
6129
|
+
* @package sparkdream.artifact.v1
|
|
6130
|
+
* @see proto type: sparkdream.artifact.v1.QueryOfferResponse
|
|
6131
|
+
*/
|
|
6132
|
+
export const QueryOfferResponse = {
|
|
6133
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOfferResponse",
|
|
6134
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6135
|
+
if (message.offer !== undefined) {
|
|
6136
|
+
Offer.encode(message.offer, writer.uint32(10).fork()).ldelim();
|
|
6137
|
+
}
|
|
6138
|
+
return writer;
|
|
6139
|
+
},
|
|
6140
|
+
decode(input, length) {
|
|
6141
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6142
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6143
|
+
const message = createBaseQueryOfferResponse();
|
|
6144
|
+
while (reader.pos < end) {
|
|
6145
|
+
const tag = reader.uint32();
|
|
6146
|
+
switch (tag >>> 3) {
|
|
6147
|
+
case 1:
|
|
6148
|
+
message.offer = Offer.decode(reader, reader.uint32());
|
|
6149
|
+
break;
|
|
6150
|
+
default:
|
|
6151
|
+
reader.skipType(tag & 7);
|
|
6152
|
+
break;
|
|
6153
|
+
}
|
|
6154
|
+
}
|
|
6155
|
+
return message;
|
|
6156
|
+
},
|
|
6157
|
+
fromPartial(object) {
|
|
6158
|
+
const message = createBaseQueryOfferResponse();
|
|
6159
|
+
message.offer = object.offer !== undefined && object.offer !== null ? Offer.fromPartial(object.offer) : undefined;
|
|
6160
|
+
return message;
|
|
6161
|
+
},
|
|
6162
|
+
fromAmino(object) {
|
|
6163
|
+
const message = createBaseQueryOfferResponse();
|
|
6164
|
+
if (object.offer !== undefined && object.offer !== null) {
|
|
6165
|
+
message.offer = Offer.fromAmino(object.offer);
|
|
6166
|
+
}
|
|
6167
|
+
return message;
|
|
6168
|
+
},
|
|
6169
|
+
toAmino(message) {
|
|
6170
|
+
const obj = {};
|
|
6171
|
+
obj.offer = message.offer ? Offer.toAmino(message.offer) : undefined;
|
|
6172
|
+
return obj;
|
|
6173
|
+
},
|
|
6174
|
+
fromAminoMsg(object) {
|
|
6175
|
+
return QueryOfferResponse.fromAmino(object.value);
|
|
6176
|
+
},
|
|
6177
|
+
fromProtoMsg(message) {
|
|
6178
|
+
return QueryOfferResponse.decode(message.value);
|
|
6179
|
+
},
|
|
6180
|
+
toProto(message) {
|
|
6181
|
+
return QueryOfferResponse.encode(message).finish();
|
|
6182
|
+
},
|
|
6183
|
+
toProtoMsg(message) {
|
|
6184
|
+
return {
|
|
6185
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOfferResponse",
|
|
6186
|
+
value: QueryOfferResponse.encode(message).finish()
|
|
6187
|
+
};
|
|
6188
|
+
}
|
|
6189
|
+
};
|
|
6190
|
+
function createBaseQueryOffersRequest() {
|
|
6191
|
+
return {
|
|
6192
|
+
classId: BigInt(0),
|
|
6193
|
+
tokenId: BigInt(0),
|
|
6194
|
+
pagination: undefined
|
|
6195
|
+
};
|
|
6196
|
+
}
|
|
6197
|
+
/**
|
|
6198
|
+
* QueryOffersRequest lists the open offers on a token, or (token_id 0) the
|
|
6199
|
+
* collection offers on a class.
|
|
6200
|
+
* @name QueryOffersRequest
|
|
6201
|
+
* @package sparkdream.artifact.v1
|
|
6202
|
+
* @see proto type: sparkdream.artifact.v1.QueryOffersRequest
|
|
6203
|
+
*/
|
|
6204
|
+
export const QueryOffersRequest = {
|
|
6205
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOffersRequest",
|
|
6206
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6207
|
+
if (message.classId !== BigInt(0)) {
|
|
6208
|
+
writer.uint32(8).uint64(message.classId);
|
|
6209
|
+
}
|
|
6210
|
+
if (message.tokenId !== BigInt(0)) {
|
|
6211
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
6212
|
+
}
|
|
6213
|
+
if (message.pagination !== undefined) {
|
|
6214
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
6215
|
+
}
|
|
6216
|
+
return writer;
|
|
6217
|
+
},
|
|
6218
|
+
decode(input, length) {
|
|
6219
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6221
|
+
const message = createBaseQueryOffersRequest();
|
|
6222
|
+
while (reader.pos < end) {
|
|
6223
|
+
const tag = reader.uint32();
|
|
6224
|
+
switch (tag >>> 3) {
|
|
6225
|
+
case 1:
|
|
6226
|
+
message.classId = reader.uint64();
|
|
6227
|
+
break;
|
|
6228
|
+
case 2:
|
|
6229
|
+
message.tokenId = reader.uint64();
|
|
6230
|
+
break;
|
|
6231
|
+
case 3:
|
|
6232
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
6233
|
+
break;
|
|
6234
|
+
default:
|
|
6235
|
+
reader.skipType(tag & 7);
|
|
6236
|
+
break;
|
|
6237
|
+
}
|
|
6238
|
+
}
|
|
6239
|
+
return message;
|
|
6240
|
+
},
|
|
6241
|
+
fromPartial(object) {
|
|
6242
|
+
const message = createBaseQueryOffersRequest();
|
|
6243
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
6244
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
6245
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
6246
|
+
return message;
|
|
6247
|
+
},
|
|
6248
|
+
fromAmino(object) {
|
|
6249
|
+
const message = createBaseQueryOffersRequest();
|
|
6250
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
6251
|
+
message.classId = BigInt(object.class_id);
|
|
6252
|
+
}
|
|
6253
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
6254
|
+
message.tokenId = BigInt(object.token_id);
|
|
6255
|
+
}
|
|
6256
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
6257
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
6258
|
+
}
|
|
6259
|
+
return message;
|
|
6260
|
+
},
|
|
6261
|
+
toAmino(message) {
|
|
6262
|
+
const obj = {};
|
|
6263
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
6264
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
6265
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
6266
|
+
return obj;
|
|
6267
|
+
},
|
|
6268
|
+
fromAminoMsg(object) {
|
|
6269
|
+
return QueryOffersRequest.fromAmino(object.value);
|
|
6270
|
+
},
|
|
6271
|
+
fromProtoMsg(message) {
|
|
6272
|
+
return QueryOffersRequest.decode(message.value);
|
|
6273
|
+
},
|
|
6274
|
+
toProto(message) {
|
|
6275
|
+
return QueryOffersRequest.encode(message).finish();
|
|
6276
|
+
},
|
|
6277
|
+
toProtoMsg(message) {
|
|
6278
|
+
return {
|
|
6279
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOffersRequest",
|
|
6280
|
+
value: QueryOffersRequest.encode(message).finish()
|
|
6281
|
+
};
|
|
6282
|
+
}
|
|
6283
|
+
};
|
|
6284
|
+
function createBaseQueryOffersResponse() {
|
|
6285
|
+
return {
|
|
6286
|
+
offers: [],
|
|
6287
|
+
pagination: undefined
|
|
6288
|
+
};
|
|
6289
|
+
}
|
|
6290
|
+
/**
|
|
6291
|
+
* QueryOffersResponse defines the QueryOffersResponse message.
|
|
6292
|
+
* @name QueryOffersResponse
|
|
6293
|
+
* @package sparkdream.artifact.v1
|
|
6294
|
+
* @see proto type: sparkdream.artifact.v1.QueryOffersResponse
|
|
6295
|
+
*/
|
|
6296
|
+
export const QueryOffersResponse = {
|
|
6297
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOffersResponse",
|
|
6298
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6299
|
+
for (const v of message.offers) {
|
|
6300
|
+
Offer.encode(v, writer.uint32(10).fork()).ldelim();
|
|
6301
|
+
}
|
|
6302
|
+
if (message.pagination !== undefined) {
|
|
6303
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
6304
|
+
}
|
|
6305
|
+
return writer;
|
|
6306
|
+
},
|
|
6307
|
+
decode(input, length) {
|
|
6308
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6309
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6310
|
+
const message = createBaseQueryOffersResponse();
|
|
6311
|
+
while (reader.pos < end) {
|
|
6312
|
+
const tag = reader.uint32();
|
|
6313
|
+
switch (tag >>> 3) {
|
|
6314
|
+
case 1:
|
|
6315
|
+
message.offers.push(Offer.decode(reader, reader.uint32()));
|
|
6316
|
+
break;
|
|
6317
|
+
case 2:
|
|
6318
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
6319
|
+
break;
|
|
6320
|
+
default:
|
|
6321
|
+
reader.skipType(tag & 7);
|
|
6322
|
+
break;
|
|
6323
|
+
}
|
|
6324
|
+
}
|
|
6325
|
+
return message;
|
|
6326
|
+
},
|
|
6327
|
+
fromPartial(object) {
|
|
6328
|
+
const message = createBaseQueryOffersResponse();
|
|
6329
|
+
message.offers = object.offers?.map(e => Offer.fromPartial(e)) || [];
|
|
6330
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
6331
|
+
return message;
|
|
6332
|
+
},
|
|
6333
|
+
fromAmino(object) {
|
|
6334
|
+
const message = createBaseQueryOffersResponse();
|
|
6335
|
+
message.offers = object.offers?.map(e => Offer.fromAmino(e)) || [];
|
|
6336
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
6337
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
6338
|
+
}
|
|
6339
|
+
return message;
|
|
6340
|
+
},
|
|
6341
|
+
toAmino(message) {
|
|
6342
|
+
const obj = {};
|
|
6343
|
+
if (message.offers) {
|
|
6344
|
+
obj.offers = message.offers.map(e => e ? Offer.toAmino(e) : undefined);
|
|
6345
|
+
}
|
|
6346
|
+
else {
|
|
6347
|
+
obj.offers = message.offers;
|
|
6348
|
+
}
|
|
6349
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
6350
|
+
return obj;
|
|
6351
|
+
},
|
|
6352
|
+
fromAminoMsg(object) {
|
|
6353
|
+
return QueryOffersResponse.fromAmino(object.value);
|
|
6354
|
+
},
|
|
6355
|
+
fromProtoMsg(message) {
|
|
6356
|
+
return QueryOffersResponse.decode(message.value);
|
|
6357
|
+
},
|
|
6358
|
+
toProto(message) {
|
|
6359
|
+
return QueryOffersResponse.encode(message).finish();
|
|
6360
|
+
},
|
|
6361
|
+
toProtoMsg(message) {
|
|
6362
|
+
return {
|
|
6363
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOffersResponse",
|
|
6364
|
+
value: QueryOffersResponse.encode(message).finish()
|
|
6365
|
+
};
|
|
6366
|
+
}
|
|
6367
|
+
};
|
|
6368
|
+
function createBaseQueryOffersByBidderRequest() {
|
|
6369
|
+
return {
|
|
6370
|
+
bidder: "",
|
|
6371
|
+
pagination: undefined
|
|
6372
|
+
};
|
|
6373
|
+
}
|
|
6374
|
+
/**
|
|
6375
|
+
* QueryOffersByBidderRequest defines the QueryOffersByBidderRequest message.
|
|
6376
|
+
* @name QueryOffersByBidderRequest
|
|
6377
|
+
* @package sparkdream.artifact.v1
|
|
6378
|
+
* @see proto type: sparkdream.artifact.v1.QueryOffersByBidderRequest
|
|
6379
|
+
*/
|
|
6380
|
+
export const QueryOffersByBidderRequest = {
|
|
6381
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOffersByBidderRequest",
|
|
6382
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6383
|
+
if (message.bidder !== "") {
|
|
6384
|
+
writer.uint32(10).string(message.bidder);
|
|
6385
|
+
}
|
|
6386
|
+
if (message.pagination !== undefined) {
|
|
6387
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
6388
|
+
}
|
|
6389
|
+
return writer;
|
|
6390
|
+
},
|
|
6391
|
+
decode(input, length) {
|
|
6392
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6393
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6394
|
+
const message = createBaseQueryOffersByBidderRequest();
|
|
6395
|
+
while (reader.pos < end) {
|
|
6396
|
+
const tag = reader.uint32();
|
|
6397
|
+
switch (tag >>> 3) {
|
|
6398
|
+
case 1:
|
|
6399
|
+
message.bidder = reader.string();
|
|
6400
|
+
break;
|
|
6401
|
+
case 2:
|
|
6402
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
6403
|
+
break;
|
|
6404
|
+
default:
|
|
6405
|
+
reader.skipType(tag & 7);
|
|
6406
|
+
break;
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
6409
|
+
return message;
|
|
6410
|
+
},
|
|
6411
|
+
fromPartial(object) {
|
|
6412
|
+
const message = createBaseQueryOffersByBidderRequest();
|
|
6413
|
+
message.bidder = object.bidder ?? "";
|
|
6414
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
6415
|
+
return message;
|
|
6416
|
+
},
|
|
6417
|
+
fromAmino(object) {
|
|
6418
|
+
const message = createBaseQueryOffersByBidderRequest();
|
|
6419
|
+
if (object.bidder !== undefined && object.bidder !== null) {
|
|
6420
|
+
message.bidder = object.bidder;
|
|
6421
|
+
}
|
|
6422
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
6423
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
6424
|
+
}
|
|
6425
|
+
return message;
|
|
6426
|
+
},
|
|
6427
|
+
toAmino(message) {
|
|
6428
|
+
const obj = {};
|
|
6429
|
+
obj.bidder = message.bidder === "" ? undefined : message.bidder;
|
|
6430
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
6431
|
+
return obj;
|
|
6432
|
+
},
|
|
6433
|
+
fromAminoMsg(object) {
|
|
6434
|
+
return QueryOffersByBidderRequest.fromAmino(object.value);
|
|
6435
|
+
},
|
|
6436
|
+
fromProtoMsg(message) {
|
|
6437
|
+
return QueryOffersByBidderRequest.decode(message.value);
|
|
6438
|
+
},
|
|
6439
|
+
toProto(message) {
|
|
6440
|
+
return QueryOffersByBidderRequest.encode(message).finish();
|
|
6441
|
+
},
|
|
6442
|
+
toProtoMsg(message) {
|
|
6443
|
+
return {
|
|
6444
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOffersByBidderRequest",
|
|
6445
|
+
value: QueryOffersByBidderRequest.encode(message).finish()
|
|
6446
|
+
};
|
|
6447
|
+
}
|
|
6448
|
+
};
|
|
6449
|
+
function createBaseQueryOffersByBidderResponse() {
|
|
6450
|
+
return {
|
|
6451
|
+
offers: [],
|
|
6452
|
+
pagination: undefined
|
|
6453
|
+
};
|
|
6454
|
+
}
|
|
6455
|
+
/**
|
|
6456
|
+
* QueryOffersByBidderResponse defines the QueryOffersByBidderResponse message.
|
|
6457
|
+
* @name QueryOffersByBidderResponse
|
|
6458
|
+
* @package sparkdream.artifact.v1
|
|
6459
|
+
* @see proto type: sparkdream.artifact.v1.QueryOffersByBidderResponse
|
|
6460
|
+
*/
|
|
6461
|
+
export const QueryOffersByBidderResponse = {
|
|
6462
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOffersByBidderResponse",
|
|
6463
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6464
|
+
for (const v of message.offers) {
|
|
6465
|
+
Offer.encode(v, writer.uint32(10).fork()).ldelim();
|
|
6466
|
+
}
|
|
6467
|
+
if (message.pagination !== undefined) {
|
|
6468
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
6469
|
+
}
|
|
6470
|
+
return writer;
|
|
6471
|
+
},
|
|
6472
|
+
decode(input, length) {
|
|
6473
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6474
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6475
|
+
const message = createBaseQueryOffersByBidderResponse();
|
|
6476
|
+
while (reader.pos < end) {
|
|
6477
|
+
const tag = reader.uint32();
|
|
6478
|
+
switch (tag >>> 3) {
|
|
6479
|
+
case 1:
|
|
6480
|
+
message.offers.push(Offer.decode(reader, reader.uint32()));
|
|
6481
|
+
break;
|
|
6482
|
+
case 2:
|
|
6483
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
6484
|
+
break;
|
|
6485
|
+
default:
|
|
6486
|
+
reader.skipType(tag & 7);
|
|
6487
|
+
break;
|
|
6488
|
+
}
|
|
6489
|
+
}
|
|
6490
|
+
return message;
|
|
6491
|
+
},
|
|
6492
|
+
fromPartial(object) {
|
|
6493
|
+
const message = createBaseQueryOffersByBidderResponse();
|
|
6494
|
+
message.offers = object.offers?.map(e => Offer.fromPartial(e)) || [];
|
|
6495
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
6496
|
+
return message;
|
|
6497
|
+
},
|
|
6498
|
+
fromAmino(object) {
|
|
6499
|
+
const message = createBaseQueryOffersByBidderResponse();
|
|
6500
|
+
message.offers = object.offers?.map(e => Offer.fromAmino(e)) || [];
|
|
6501
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
6502
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
6503
|
+
}
|
|
6504
|
+
return message;
|
|
6505
|
+
},
|
|
6506
|
+
toAmino(message) {
|
|
6507
|
+
const obj = {};
|
|
6508
|
+
if (message.offers) {
|
|
6509
|
+
obj.offers = message.offers.map(e => e ? Offer.toAmino(e) : undefined);
|
|
6510
|
+
}
|
|
6511
|
+
else {
|
|
6512
|
+
obj.offers = message.offers;
|
|
6513
|
+
}
|
|
6514
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
6515
|
+
return obj;
|
|
6516
|
+
},
|
|
6517
|
+
fromAminoMsg(object) {
|
|
6518
|
+
return QueryOffersByBidderResponse.fromAmino(object.value);
|
|
6519
|
+
},
|
|
6520
|
+
fromProtoMsg(message) {
|
|
6521
|
+
return QueryOffersByBidderResponse.decode(message.value);
|
|
6522
|
+
},
|
|
6523
|
+
toProto(message) {
|
|
6524
|
+
return QueryOffersByBidderResponse.encode(message).finish();
|
|
6525
|
+
},
|
|
6526
|
+
toProtoMsg(message) {
|
|
6527
|
+
return {
|
|
6528
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOffersByBidderResponse",
|
|
6529
|
+
value: QueryOffersByBidderResponse.encode(message).finish()
|
|
6530
|
+
};
|
|
6531
|
+
}
|
|
6532
|
+
};
|
|
6533
|
+
function createBaseQueryAuctionRequest() {
|
|
6534
|
+
return {
|
|
6535
|
+
auctionId: BigInt(0)
|
|
6536
|
+
};
|
|
6537
|
+
}
|
|
6538
|
+
/**
|
|
6539
|
+
* QueryAuctionRequest defines the QueryAuctionRequest message.
|
|
6540
|
+
* @name QueryAuctionRequest
|
|
6541
|
+
* @package sparkdream.artifact.v1
|
|
6542
|
+
* @see proto type: sparkdream.artifact.v1.QueryAuctionRequest
|
|
6543
|
+
*/
|
|
6544
|
+
export const QueryAuctionRequest = {
|
|
6545
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionRequest",
|
|
6546
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6547
|
+
if (message.auctionId !== BigInt(0)) {
|
|
6548
|
+
writer.uint32(8).uint64(message.auctionId);
|
|
6549
|
+
}
|
|
6550
|
+
return writer;
|
|
6551
|
+
},
|
|
6552
|
+
decode(input, length) {
|
|
6553
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6554
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6555
|
+
const message = createBaseQueryAuctionRequest();
|
|
6556
|
+
while (reader.pos < end) {
|
|
6557
|
+
const tag = reader.uint32();
|
|
6558
|
+
switch (tag >>> 3) {
|
|
6559
|
+
case 1:
|
|
6560
|
+
message.auctionId = reader.uint64();
|
|
6561
|
+
break;
|
|
6562
|
+
default:
|
|
6563
|
+
reader.skipType(tag & 7);
|
|
6564
|
+
break;
|
|
6565
|
+
}
|
|
6566
|
+
}
|
|
6567
|
+
return message;
|
|
6568
|
+
},
|
|
6569
|
+
fromPartial(object) {
|
|
6570
|
+
const message = createBaseQueryAuctionRequest();
|
|
6571
|
+
message.auctionId = object.auctionId !== undefined && object.auctionId !== null ? BigInt(object.auctionId.toString()) : BigInt(0);
|
|
6572
|
+
return message;
|
|
6573
|
+
},
|
|
6574
|
+
fromAmino(object) {
|
|
6575
|
+
const message = createBaseQueryAuctionRequest();
|
|
6576
|
+
if (object.auction_id !== undefined && object.auction_id !== null) {
|
|
6577
|
+
message.auctionId = BigInt(object.auction_id);
|
|
6578
|
+
}
|
|
6579
|
+
return message;
|
|
6580
|
+
},
|
|
6581
|
+
toAmino(message) {
|
|
6582
|
+
const obj = {};
|
|
6583
|
+
obj.auction_id = message.auctionId !== BigInt(0) ? message.auctionId?.toString() : undefined;
|
|
6584
|
+
return obj;
|
|
6585
|
+
},
|
|
6586
|
+
fromAminoMsg(object) {
|
|
6587
|
+
return QueryAuctionRequest.fromAmino(object.value);
|
|
6588
|
+
},
|
|
6589
|
+
fromProtoMsg(message) {
|
|
6590
|
+
return QueryAuctionRequest.decode(message.value);
|
|
6591
|
+
},
|
|
6592
|
+
toProto(message) {
|
|
6593
|
+
return QueryAuctionRequest.encode(message).finish();
|
|
6594
|
+
},
|
|
6595
|
+
toProtoMsg(message) {
|
|
6596
|
+
return {
|
|
6597
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionRequest",
|
|
6598
|
+
value: QueryAuctionRequest.encode(message).finish()
|
|
6599
|
+
};
|
|
6600
|
+
}
|
|
6601
|
+
};
|
|
6602
|
+
function createBaseQueryAuctionResponse() {
|
|
6603
|
+
return {
|
|
6604
|
+
auction: Auction.fromPartial({}),
|
|
6605
|
+
minNextBid: ""
|
|
6606
|
+
};
|
|
6607
|
+
}
|
|
6608
|
+
/**
|
|
6609
|
+
* QueryAuctionResponse defines the QueryAuctionResponse message.
|
|
6610
|
+
* @name QueryAuctionResponse
|
|
6611
|
+
* @package sparkdream.artifact.v1
|
|
6612
|
+
* @see proto type: sparkdream.artifact.v1.QueryAuctionResponse
|
|
6613
|
+
*/
|
|
6614
|
+
export const QueryAuctionResponse = {
|
|
6615
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionResponse",
|
|
6616
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6617
|
+
if (message.auction !== undefined) {
|
|
6618
|
+
Auction.encode(message.auction, writer.uint32(10).fork()).ldelim();
|
|
6619
|
+
}
|
|
6620
|
+
if (message.minNextBid !== "") {
|
|
6621
|
+
writer.uint32(18).string(message.minNextBid);
|
|
6622
|
+
}
|
|
6623
|
+
return writer;
|
|
6624
|
+
},
|
|
6625
|
+
decode(input, length) {
|
|
6626
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6627
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6628
|
+
const message = createBaseQueryAuctionResponse();
|
|
6629
|
+
while (reader.pos < end) {
|
|
6630
|
+
const tag = reader.uint32();
|
|
6631
|
+
switch (tag >>> 3) {
|
|
6632
|
+
case 1:
|
|
6633
|
+
message.auction = Auction.decode(reader, reader.uint32());
|
|
6634
|
+
break;
|
|
6635
|
+
case 2:
|
|
6636
|
+
message.minNextBid = reader.string();
|
|
6637
|
+
break;
|
|
6638
|
+
default:
|
|
6639
|
+
reader.skipType(tag & 7);
|
|
6640
|
+
break;
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6643
|
+
return message;
|
|
6644
|
+
},
|
|
6645
|
+
fromPartial(object) {
|
|
6646
|
+
const message = createBaseQueryAuctionResponse();
|
|
6647
|
+
message.auction = object.auction !== undefined && object.auction !== null ? Auction.fromPartial(object.auction) : undefined;
|
|
6648
|
+
message.minNextBid = object.minNextBid ?? "";
|
|
6649
|
+
return message;
|
|
6650
|
+
},
|
|
6651
|
+
fromAmino(object) {
|
|
6652
|
+
const message = createBaseQueryAuctionResponse();
|
|
6653
|
+
if (object.auction !== undefined && object.auction !== null) {
|
|
6654
|
+
message.auction = Auction.fromAmino(object.auction);
|
|
6655
|
+
}
|
|
6656
|
+
if (object.min_next_bid !== undefined && object.min_next_bid !== null) {
|
|
6657
|
+
message.minNextBid = object.min_next_bid;
|
|
6658
|
+
}
|
|
6659
|
+
return message;
|
|
6660
|
+
},
|
|
6661
|
+
toAmino(message) {
|
|
6662
|
+
const obj = {};
|
|
6663
|
+
obj.auction = message.auction ? Auction.toAmino(message.auction) : undefined;
|
|
6664
|
+
obj.min_next_bid = message.minNextBid === "" ? undefined : message.minNextBid;
|
|
6665
|
+
return obj;
|
|
6666
|
+
},
|
|
6667
|
+
fromAminoMsg(object) {
|
|
6668
|
+
return QueryAuctionResponse.fromAmino(object.value);
|
|
6669
|
+
},
|
|
6670
|
+
fromProtoMsg(message) {
|
|
6671
|
+
return QueryAuctionResponse.decode(message.value);
|
|
6672
|
+
},
|
|
6673
|
+
toProto(message) {
|
|
6674
|
+
return QueryAuctionResponse.encode(message).finish();
|
|
6675
|
+
},
|
|
6676
|
+
toProtoMsg(message) {
|
|
6677
|
+
return {
|
|
6678
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionResponse",
|
|
6679
|
+
value: QueryAuctionResponse.encode(message).finish()
|
|
6680
|
+
};
|
|
6681
|
+
}
|
|
6682
|
+
};
|
|
6683
|
+
function createBaseQueryAuctionsRequest() {
|
|
6684
|
+
return {
|
|
6685
|
+
classId: BigInt(0),
|
|
6686
|
+
pagination: undefined
|
|
6687
|
+
};
|
|
6688
|
+
}
|
|
6689
|
+
/**
|
|
6690
|
+
* QueryAuctionsRequest lists open auctions (class_id 0 = every class).
|
|
6691
|
+
* @name QueryAuctionsRequest
|
|
6692
|
+
* @package sparkdream.artifact.v1
|
|
6693
|
+
* @see proto type: sparkdream.artifact.v1.QueryAuctionsRequest
|
|
6694
|
+
*/
|
|
6695
|
+
export const QueryAuctionsRequest = {
|
|
6696
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionsRequest",
|
|
6697
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6698
|
+
if (message.classId !== BigInt(0)) {
|
|
6699
|
+
writer.uint32(8).uint64(message.classId);
|
|
6700
|
+
}
|
|
6701
|
+
if (message.pagination !== undefined) {
|
|
6702
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
6703
|
+
}
|
|
6704
|
+
return writer;
|
|
6705
|
+
},
|
|
6706
|
+
decode(input, length) {
|
|
6707
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6708
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6709
|
+
const message = createBaseQueryAuctionsRequest();
|
|
6710
|
+
while (reader.pos < end) {
|
|
6711
|
+
const tag = reader.uint32();
|
|
6712
|
+
switch (tag >>> 3) {
|
|
6713
|
+
case 1:
|
|
6714
|
+
message.classId = reader.uint64();
|
|
6715
|
+
break;
|
|
6716
|
+
case 2:
|
|
6717
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
6718
|
+
break;
|
|
6719
|
+
default:
|
|
6720
|
+
reader.skipType(tag & 7);
|
|
6721
|
+
break;
|
|
6722
|
+
}
|
|
6723
|
+
}
|
|
6724
|
+
return message;
|
|
6725
|
+
},
|
|
6726
|
+
fromPartial(object) {
|
|
6727
|
+
const message = createBaseQueryAuctionsRequest();
|
|
6728
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
6729
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
6730
|
+
return message;
|
|
6731
|
+
},
|
|
6732
|
+
fromAmino(object) {
|
|
6733
|
+
const message = createBaseQueryAuctionsRequest();
|
|
6734
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
6735
|
+
message.classId = BigInt(object.class_id);
|
|
6736
|
+
}
|
|
6737
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
6738
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
6739
|
+
}
|
|
6740
|
+
return message;
|
|
6741
|
+
},
|
|
6742
|
+
toAmino(message) {
|
|
6743
|
+
const obj = {};
|
|
6744
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
6745
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
6746
|
+
return obj;
|
|
6747
|
+
},
|
|
6748
|
+
fromAminoMsg(object) {
|
|
6749
|
+
return QueryAuctionsRequest.fromAmino(object.value);
|
|
6750
|
+
},
|
|
6751
|
+
fromProtoMsg(message) {
|
|
6752
|
+
return QueryAuctionsRequest.decode(message.value);
|
|
6753
|
+
},
|
|
6754
|
+
toProto(message) {
|
|
6755
|
+
return QueryAuctionsRequest.encode(message).finish();
|
|
6756
|
+
},
|
|
6757
|
+
toProtoMsg(message) {
|
|
6758
|
+
return {
|
|
6759
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionsRequest",
|
|
6760
|
+
value: QueryAuctionsRequest.encode(message).finish()
|
|
6761
|
+
};
|
|
6762
|
+
}
|
|
6763
|
+
};
|
|
6764
|
+
function createBaseQueryAuctionsResponse() {
|
|
6765
|
+
return {
|
|
6766
|
+
auctions: [],
|
|
6767
|
+
pagination: undefined
|
|
6768
|
+
};
|
|
6769
|
+
}
|
|
6770
|
+
/**
|
|
6771
|
+
* QueryAuctionsResponse defines the QueryAuctionsResponse message.
|
|
6772
|
+
* @name QueryAuctionsResponse
|
|
6773
|
+
* @package sparkdream.artifact.v1
|
|
6774
|
+
* @see proto type: sparkdream.artifact.v1.QueryAuctionsResponse
|
|
6775
|
+
*/
|
|
6776
|
+
export const QueryAuctionsResponse = {
|
|
6777
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionsResponse",
|
|
6778
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6779
|
+
for (const v of message.auctions) {
|
|
6780
|
+
Auction.encode(v, writer.uint32(10).fork()).ldelim();
|
|
6781
|
+
}
|
|
6782
|
+
if (message.pagination !== undefined) {
|
|
6783
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
6784
|
+
}
|
|
6785
|
+
return writer;
|
|
6786
|
+
},
|
|
6787
|
+
decode(input, length) {
|
|
6788
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6789
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6790
|
+
const message = createBaseQueryAuctionsResponse();
|
|
6791
|
+
while (reader.pos < end) {
|
|
6792
|
+
const tag = reader.uint32();
|
|
6793
|
+
switch (tag >>> 3) {
|
|
6794
|
+
case 1:
|
|
6795
|
+
message.auctions.push(Auction.decode(reader, reader.uint32()));
|
|
6796
|
+
break;
|
|
6797
|
+
case 2:
|
|
6798
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
6799
|
+
break;
|
|
6800
|
+
default:
|
|
6801
|
+
reader.skipType(tag & 7);
|
|
6802
|
+
break;
|
|
6803
|
+
}
|
|
6804
|
+
}
|
|
6805
|
+
return message;
|
|
6806
|
+
},
|
|
6807
|
+
fromPartial(object) {
|
|
6808
|
+
const message = createBaseQueryAuctionsResponse();
|
|
6809
|
+
message.auctions = object.auctions?.map(e => Auction.fromPartial(e)) || [];
|
|
6810
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
6811
|
+
return message;
|
|
6812
|
+
},
|
|
6813
|
+
fromAmino(object) {
|
|
6814
|
+
const message = createBaseQueryAuctionsResponse();
|
|
6815
|
+
message.auctions = object.auctions?.map(e => Auction.fromAmino(e)) || [];
|
|
6816
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
6817
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
6818
|
+
}
|
|
6819
|
+
return message;
|
|
6820
|
+
},
|
|
6821
|
+
toAmino(message) {
|
|
6822
|
+
const obj = {};
|
|
6823
|
+
if (message.auctions) {
|
|
6824
|
+
obj.auctions = message.auctions.map(e => e ? Auction.toAmino(e) : undefined);
|
|
6825
|
+
}
|
|
6826
|
+
else {
|
|
6827
|
+
obj.auctions = message.auctions;
|
|
6828
|
+
}
|
|
6829
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
6830
|
+
return obj;
|
|
6831
|
+
},
|
|
6832
|
+
fromAminoMsg(object) {
|
|
6833
|
+
return QueryAuctionsResponse.fromAmino(object.value);
|
|
6834
|
+
},
|
|
6835
|
+
fromProtoMsg(message) {
|
|
6836
|
+
return QueryAuctionsResponse.decode(message.value);
|
|
6837
|
+
},
|
|
6838
|
+
toProto(message) {
|
|
6839
|
+
return QueryAuctionsResponse.encode(message).finish();
|
|
6840
|
+
},
|
|
6841
|
+
toProtoMsg(message) {
|
|
6842
|
+
return {
|
|
6843
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionsResponse",
|
|
6844
|
+
value: QueryAuctionsResponse.encode(message).finish()
|
|
6845
|
+
};
|
|
6846
|
+
}
|
|
6847
|
+
};
|
|
6848
|
+
function createBaseQueryAuctionsBySellerRequest() {
|
|
6849
|
+
return {
|
|
6850
|
+
seller: "",
|
|
6851
|
+
pagination: undefined
|
|
6852
|
+
};
|
|
6853
|
+
}
|
|
6854
|
+
/**
|
|
6855
|
+
* QueryAuctionsBySellerRequest defines the QueryAuctionsBySellerRequest message.
|
|
6856
|
+
* @name QueryAuctionsBySellerRequest
|
|
6857
|
+
* @package sparkdream.artifact.v1
|
|
6858
|
+
* @see proto type: sparkdream.artifact.v1.QueryAuctionsBySellerRequest
|
|
6859
|
+
*/
|
|
6860
|
+
export const QueryAuctionsBySellerRequest = {
|
|
6861
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionsBySellerRequest",
|
|
6862
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6863
|
+
if (message.seller !== "") {
|
|
6864
|
+
writer.uint32(10).string(message.seller);
|
|
6865
|
+
}
|
|
6866
|
+
if (message.pagination !== undefined) {
|
|
6867
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
6868
|
+
}
|
|
6869
|
+
return writer;
|
|
6870
|
+
},
|
|
6871
|
+
decode(input, length) {
|
|
6872
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6873
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6874
|
+
const message = createBaseQueryAuctionsBySellerRequest();
|
|
6875
|
+
while (reader.pos < end) {
|
|
6876
|
+
const tag = reader.uint32();
|
|
6877
|
+
switch (tag >>> 3) {
|
|
6878
|
+
case 1:
|
|
6879
|
+
message.seller = reader.string();
|
|
6880
|
+
break;
|
|
6881
|
+
case 2:
|
|
6882
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
6883
|
+
break;
|
|
6884
|
+
default:
|
|
6885
|
+
reader.skipType(tag & 7);
|
|
6886
|
+
break;
|
|
6887
|
+
}
|
|
6888
|
+
}
|
|
6889
|
+
return message;
|
|
6890
|
+
},
|
|
6891
|
+
fromPartial(object) {
|
|
6892
|
+
const message = createBaseQueryAuctionsBySellerRequest();
|
|
6893
|
+
message.seller = object.seller ?? "";
|
|
6894
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
6895
|
+
return message;
|
|
6896
|
+
},
|
|
6897
|
+
fromAmino(object) {
|
|
6898
|
+
const message = createBaseQueryAuctionsBySellerRequest();
|
|
6899
|
+
if (object.seller !== undefined && object.seller !== null) {
|
|
6900
|
+
message.seller = object.seller;
|
|
6901
|
+
}
|
|
6902
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
6903
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
6904
|
+
}
|
|
6905
|
+
return message;
|
|
6906
|
+
},
|
|
6907
|
+
toAmino(message) {
|
|
6908
|
+
const obj = {};
|
|
6909
|
+
obj.seller = message.seller === "" ? undefined : message.seller;
|
|
6910
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
6911
|
+
return obj;
|
|
6912
|
+
},
|
|
6913
|
+
fromAminoMsg(object) {
|
|
6914
|
+
return QueryAuctionsBySellerRequest.fromAmino(object.value);
|
|
6915
|
+
},
|
|
6916
|
+
fromProtoMsg(message) {
|
|
6917
|
+
return QueryAuctionsBySellerRequest.decode(message.value);
|
|
6918
|
+
},
|
|
6919
|
+
toProto(message) {
|
|
6920
|
+
return QueryAuctionsBySellerRequest.encode(message).finish();
|
|
6921
|
+
},
|
|
6922
|
+
toProtoMsg(message) {
|
|
6923
|
+
return {
|
|
6924
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionsBySellerRequest",
|
|
6925
|
+
value: QueryAuctionsBySellerRequest.encode(message).finish()
|
|
6926
|
+
};
|
|
6927
|
+
}
|
|
6928
|
+
};
|
|
6929
|
+
function createBaseQueryAuctionsBySellerResponse() {
|
|
6930
|
+
return {
|
|
6931
|
+
auctions: [],
|
|
6932
|
+
pagination: undefined
|
|
6933
|
+
};
|
|
6934
|
+
}
|
|
6935
|
+
/**
|
|
6936
|
+
* QueryAuctionsBySellerResponse defines the QueryAuctionsBySellerResponse message.
|
|
6937
|
+
* @name QueryAuctionsBySellerResponse
|
|
6938
|
+
* @package sparkdream.artifact.v1
|
|
6939
|
+
* @see proto type: sparkdream.artifact.v1.QueryAuctionsBySellerResponse
|
|
6940
|
+
*/
|
|
6941
|
+
export const QueryAuctionsBySellerResponse = {
|
|
6942
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionsBySellerResponse",
|
|
6943
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
6944
|
+
for (const v of message.auctions) {
|
|
6945
|
+
Auction.encode(v, writer.uint32(10).fork()).ldelim();
|
|
6946
|
+
}
|
|
6947
|
+
if (message.pagination !== undefined) {
|
|
6948
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
6949
|
+
}
|
|
6950
|
+
return writer;
|
|
6951
|
+
},
|
|
6952
|
+
decode(input, length) {
|
|
6953
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6954
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6955
|
+
const message = createBaseQueryAuctionsBySellerResponse();
|
|
6956
|
+
while (reader.pos < end) {
|
|
6957
|
+
const tag = reader.uint32();
|
|
6958
|
+
switch (tag >>> 3) {
|
|
6959
|
+
case 1:
|
|
6960
|
+
message.auctions.push(Auction.decode(reader, reader.uint32()));
|
|
6961
|
+
break;
|
|
6962
|
+
case 2:
|
|
6963
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
6964
|
+
break;
|
|
6965
|
+
default:
|
|
6966
|
+
reader.skipType(tag & 7);
|
|
6967
|
+
break;
|
|
6968
|
+
}
|
|
6969
|
+
}
|
|
6970
|
+
return message;
|
|
6971
|
+
},
|
|
6972
|
+
fromPartial(object) {
|
|
6973
|
+
const message = createBaseQueryAuctionsBySellerResponse();
|
|
6974
|
+
message.auctions = object.auctions?.map(e => Auction.fromPartial(e)) || [];
|
|
6975
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
6976
|
+
return message;
|
|
6977
|
+
},
|
|
6978
|
+
fromAmino(object) {
|
|
6979
|
+
const message = createBaseQueryAuctionsBySellerResponse();
|
|
6980
|
+
message.auctions = object.auctions?.map(e => Auction.fromAmino(e)) || [];
|
|
6981
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
6982
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
6983
|
+
}
|
|
6984
|
+
return message;
|
|
6985
|
+
},
|
|
6986
|
+
toAmino(message) {
|
|
6987
|
+
const obj = {};
|
|
6988
|
+
if (message.auctions) {
|
|
6989
|
+
obj.auctions = message.auctions.map(e => e ? Auction.toAmino(e) : undefined);
|
|
6990
|
+
}
|
|
6991
|
+
else {
|
|
6992
|
+
obj.auctions = message.auctions;
|
|
6993
|
+
}
|
|
6994
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
6995
|
+
return obj;
|
|
6996
|
+
},
|
|
6997
|
+
fromAminoMsg(object) {
|
|
6998
|
+
return QueryAuctionsBySellerResponse.fromAmino(object.value);
|
|
6999
|
+
},
|
|
7000
|
+
fromProtoMsg(message) {
|
|
7001
|
+
return QueryAuctionsBySellerResponse.decode(message.value);
|
|
7002
|
+
},
|
|
7003
|
+
toProto(message) {
|
|
7004
|
+
return QueryAuctionsBySellerResponse.encode(message).finish();
|
|
7005
|
+
},
|
|
7006
|
+
toProtoMsg(message) {
|
|
7007
|
+
return {
|
|
7008
|
+
typeUrl: "/sparkdream.artifact.v1.QueryAuctionsBySellerResponse",
|
|
7009
|
+
value: QueryAuctionsBySellerResponse.encode(message).finish()
|
|
7010
|
+
};
|
|
7011
|
+
}
|
|
7012
|
+
};
|
|
7013
|
+
function createBaseQueryRentalOffersRequest() {
|
|
7014
|
+
return {
|
|
7015
|
+
user: "",
|
|
7016
|
+
pagination: undefined
|
|
7017
|
+
};
|
|
7018
|
+
}
|
|
7019
|
+
/**
|
|
7020
|
+
* QueryRentalOffersRequest defines the QueryRentalOffersRequest message.
|
|
7021
|
+
* @name QueryRentalOffersRequest
|
|
7022
|
+
* @package sparkdream.artifact.v1
|
|
7023
|
+
* @see proto type: sparkdream.artifact.v1.QueryRentalOffersRequest
|
|
7024
|
+
*/
|
|
7025
|
+
export const QueryRentalOffersRequest = {
|
|
7026
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalOffersRequest",
|
|
7027
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
7028
|
+
if (message.user !== "") {
|
|
7029
|
+
writer.uint32(10).string(message.user);
|
|
7030
|
+
}
|
|
7031
|
+
if (message.pagination !== undefined) {
|
|
7032
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
7033
|
+
}
|
|
7034
|
+
return writer;
|
|
7035
|
+
},
|
|
7036
|
+
decode(input, length) {
|
|
7037
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7038
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7039
|
+
const message = createBaseQueryRentalOffersRequest();
|
|
7040
|
+
while (reader.pos < end) {
|
|
7041
|
+
const tag = reader.uint32();
|
|
7042
|
+
switch (tag >>> 3) {
|
|
7043
|
+
case 1:
|
|
7044
|
+
message.user = reader.string();
|
|
7045
|
+
break;
|
|
7046
|
+
case 2:
|
|
7047
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
7048
|
+
break;
|
|
7049
|
+
default:
|
|
7050
|
+
reader.skipType(tag & 7);
|
|
7051
|
+
break;
|
|
7052
|
+
}
|
|
7053
|
+
}
|
|
7054
|
+
return message;
|
|
7055
|
+
},
|
|
7056
|
+
fromPartial(object) {
|
|
7057
|
+
const message = createBaseQueryRentalOffersRequest();
|
|
7058
|
+
message.user = object.user ?? "";
|
|
7059
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
7060
|
+
return message;
|
|
7061
|
+
},
|
|
7062
|
+
fromAmino(object) {
|
|
7063
|
+
const message = createBaseQueryRentalOffersRequest();
|
|
7064
|
+
if (object.user !== undefined && object.user !== null) {
|
|
7065
|
+
message.user = object.user;
|
|
7066
|
+
}
|
|
7067
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
7068
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
7069
|
+
}
|
|
7070
|
+
return message;
|
|
7071
|
+
},
|
|
7072
|
+
toAmino(message) {
|
|
7073
|
+
const obj = {};
|
|
7074
|
+
obj.user = message.user === "" ? undefined : message.user;
|
|
7075
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
7076
|
+
return obj;
|
|
7077
|
+
},
|
|
7078
|
+
fromAminoMsg(object) {
|
|
7079
|
+
return QueryRentalOffersRequest.fromAmino(object.value);
|
|
7080
|
+
},
|
|
7081
|
+
fromProtoMsg(message) {
|
|
7082
|
+
return QueryRentalOffersRequest.decode(message.value);
|
|
7083
|
+
},
|
|
7084
|
+
toProto(message) {
|
|
7085
|
+
return QueryRentalOffersRequest.encode(message).finish();
|
|
7086
|
+
},
|
|
7087
|
+
toProtoMsg(message) {
|
|
7088
|
+
return {
|
|
7089
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalOffersRequest",
|
|
7090
|
+
value: QueryRentalOffersRequest.encode(message).finish()
|
|
7091
|
+
};
|
|
7092
|
+
}
|
|
7093
|
+
};
|
|
7094
|
+
function createBaseQueryRentalOffersResponse() {
|
|
7095
|
+
return {
|
|
7096
|
+
offers: [],
|
|
7097
|
+
pagination: undefined
|
|
7098
|
+
};
|
|
7099
|
+
}
|
|
7100
|
+
/**
|
|
7101
|
+
* QueryRentalOffersResponse defines the QueryRentalOffersResponse message.
|
|
7102
|
+
* @name QueryRentalOffersResponse
|
|
7103
|
+
* @package sparkdream.artifact.v1
|
|
7104
|
+
* @see proto type: sparkdream.artifact.v1.QueryRentalOffersResponse
|
|
7105
|
+
*/
|
|
7106
|
+
export const QueryRentalOffersResponse = {
|
|
7107
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalOffersResponse",
|
|
7108
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
7109
|
+
for (const v of message.offers) {
|
|
7110
|
+
RentalOffer.encode(v, writer.uint32(10).fork()).ldelim();
|
|
7111
|
+
}
|
|
7112
|
+
if (message.pagination !== undefined) {
|
|
7113
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
7114
|
+
}
|
|
7115
|
+
return writer;
|
|
7116
|
+
},
|
|
7117
|
+
decode(input, length) {
|
|
7118
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7119
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7120
|
+
const message = createBaseQueryRentalOffersResponse();
|
|
7121
|
+
while (reader.pos < end) {
|
|
7122
|
+
const tag = reader.uint32();
|
|
7123
|
+
switch (tag >>> 3) {
|
|
7124
|
+
case 1:
|
|
7125
|
+
message.offers.push(RentalOffer.decode(reader, reader.uint32()));
|
|
7126
|
+
break;
|
|
7127
|
+
case 2:
|
|
7128
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
7129
|
+
break;
|
|
7130
|
+
default:
|
|
7131
|
+
reader.skipType(tag & 7);
|
|
7132
|
+
break;
|
|
7133
|
+
}
|
|
7134
|
+
}
|
|
7135
|
+
return message;
|
|
7136
|
+
},
|
|
7137
|
+
fromPartial(object) {
|
|
7138
|
+
const message = createBaseQueryRentalOffersResponse();
|
|
7139
|
+
message.offers = object.offers?.map(e => RentalOffer.fromPartial(e)) || [];
|
|
7140
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
7141
|
+
return message;
|
|
7142
|
+
},
|
|
7143
|
+
fromAmino(object) {
|
|
7144
|
+
const message = createBaseQueryRentalOffersResponse();
|
|
7145
|
+
message.offers = object.offers?.map(e => RentalOffer.fromAmino(e)) || [];
|
|
7146
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
7147
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
7148
|
+
}
|
|
7149
|
+
return message;
|
|
7150
|
+
},
|
|
7151
|
+
toAmino(message) {
|
|
7152
|
+
const obj = {};
|
|
7153
|
+
if (message.offers) {
|
|
7154
|
+
obj.offers = message.offers.map(e => e ? RentalOffer.toAmino(e) : undefined);
|
|
7155
|
+
}
|
|
7156
|
+
else {
|
|
7157
|
+
obj.offers = message.offers;
|
|
7158
|
+
}
|
|
7159
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
7160
|
+
return obj;
|
|
7161
|
+
},
|
|
7162
|
+
fromAminoMsg(object) {
|
|
7163
|
+
return QueryRentalOffersResponse.fromAmino(object.value);
|
|
7164
|
+
},
|
|
7165
|
+
fromProtoMsg(message) {
|
|
7166
|
+
return QueryRentalOffersResponse.decode(message.value);
|
|
7167
|
+
},
|
|
7168
|
+
toProto(message) {
|
|
7169
|
+
return QueryRentalOffersResponse.encode(message).finish();
|
|
7170
|
+
},
|
|
7171
|
+
toProtoMsg(message) {
|
|
7172
|
+
return {
|
|
7173
|
+
typeUrl: "/sparkdream.artifact.v1.QueryRentalOffersResponse",
|
|
7174
|
+
value: QueryRentalOffersResponse.encode(message).finish()
|
|
7175
|
+
};
|
|
7176
|
+
}
|
|
7177
|
+
};
|