@0xsequence/metadata 2.2.15 → 2.3.1

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.
@@ -13,14 +13,14 @@ function _extends() {
13
13
  }
14
14
 
15
15
  /* eslint-disable */
16
- // sequence-metadata v0.4.0 9594f86f8681f364dd514a1bd7cae1c1dc77e3de
16
+ // sequence-metadata v0.4.0 7910b31b7ff3c61ec7cf9fe4021ac00e9f9eeea5
17
17
  // --
18
- // Code generated by webrpc-gen@v0.24.0 with typescript generator. DO NOT EDIT.
18
+ // Code generated by webrpc-gen@v0.25.2 with typescript generator. DO NOT EDIT.
19
19
  //
20
20
  // webrpc-gen -schema=metadata.ridl -target=typescript -client -out=./clients/metadata.gen.ts
21
21
 
22
22
  const WebrpcHeader = 'Webrpc';
23
- const WebrpcHeaderValue = 'webrpc@v0.24.0;gen-typescript@v0.16.3;sequence-metadata@v0.4.0';
23
+ const WebrpcHeaderValue = 'webrpc@v0.25.2;gen-typescript@v0.17.0;sequence-metadata@v0.4.0';
24
24
 
25
25
  // WebRPC description and code-gen version
26
26
  const WebRPCVersion = 'v1';
@@ -29,7 +29,7 @@ const WebRPCVersion = 'v1';
29
29
  const WebRPCSchemaVersion = 'v0.4.0';
30
30
 
31
31
  // Schema hash generated from your RIDL schema
32
- const WebRPCSchemaHash = '9594f86f8681f364dd514a1bd7cae1c1dc77e3de';
32
+ const WebRPCSchemaHash = '7910b31b7ff3c61ec7cf9fe4021ac00e9f9eeea5';
33
33
  function VersionFromHeader(headers) {
34
34
  const headerValue = headers.get(WebrpcHeader);
35
35
  if (!headerValue) {
@@ -91,12 +91,14 @@ let Source = /*#__PURE__*/function (Source) {
91
91
  Source["TOKEN_DIRECTORY_SEQUENCE_GITHUB"] = "TOKEN_DIRECTORY_SEQUENCE_GITHUB";
92
92
  Source["TOKEN_DIRECTORY_SEQUENCE_BUILDER"] = "TOKEN_DIRECTORY_SEQUENCE_BUILDER";
93
93
  Source["SEQUENCE_BUILDER"] = "SEQUENCE_BUILDER";
94
+ Source["SEQUENCE_BUILDER_DEPLOYED"] = "SEQUENCE_BUILDER_DEPLOYED";
94
95
  Source["SEQUENCE_BUILDER_COLLECTIONS"] = "SEQUENCE_BUILDER_COLLECTIONS";
96
+ Source["SEQUENCE_BUILDER_ADMIN"] = "SEQUENCE_BUILDER_ADMIN";
95
97
  return Source;
96
98
  }({});
97
99
  let ResourceStatus = /*#__PURE__*/function (ResourceStatus) {
98
100
  ResourceStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
99
- ResourceStatus["STALE"] = "STALE";
101
+ ResourceStatus["REFRESHING"] = "REFRESHING";
100
102
  ResourceStatus["AVAILABLE"] = "AVAILABLE";
101
103
  return ResourceStatus;
102
104
  }({});
@@ -117,7 +119,7 @@ let TaskStatus = /*#__PURE__*/function (TaskStatus) {
117
119
  TaskStatus["QUEUED"] = "QUEUED";
118
120
  TaskStatus["PAUSED"] = "PAUSED";
119
121
  TaskStatus["FAILED"] = "FAILED";
120
- TaskStatus["COMPLETED"] = "COMPLETED";
122
+ TaskStatus["DONE"] = "DONE";
121
123
  return TaskStatus;
122
124
  }({});
123
125
  //
@@ -193,24 +195,12 @@ class Metadata {
193
195
  });
194
196
  });
195
197
  };
196
- this.refreshTokenMetadata = (args, headers, signal) => {
197
- return this.fetch(this.url('RefreshTokenMetadata'), createHTTPRequest(args, headers, signal)).then(res => {
198
- return buildResponse(res).then(_data => {
199
- return {
200
- taskId: _data.taskId
201
- };
202
- });
203
- }, error => {
204
- throw WebrpcRequestFailedError.new({
205
- cause: `fetch(): ${error.message || ''}`
206
- });
207
- });
208
- };
209
- this.enqueueTokensForRefresh = (args, headers, signal) => {
210
- return this.fetch(this.url('EnqueueTokensForRefresh'), createHTTPRequest(args, headers, signal)).then(res => {
198
+ this.getContractInfo = (args, headers, signal) => {
199
+ return this.fetch(this.url('GetContractInfo'), createHTTPRequest(args, headers, signal)).then(res => {
211
200
  return buildResponse(res).then(_data => {
212
201
  return {
213
- taskId: _data.taskId
202
+ contractInfo: _data.contractInfo,
203
+ taskID: _data.taskID
214
204
  };
215
205
  });
216
206
  }, error => {
@@ -219,11 +209,12 @@ class Metadata {
219
209
  });
220
210
  });
221
211
  };
222
- this.getTokenRefreshStatus = (args, headers, signal) => {
223
- return this.fetch(this.url('GetTokenRefreshStatus'), createHTTPRequest(args, headers, signal)).then(res => {
212
+ this.getContractInfoBatch = (args, headers, signal) => {
213
+ return this.fetch(this.url('GetContractInfoBatch'), createHTTPRequest(args, headers, signal)).then(res => {
224
214
  return buildResponse(res).then(_data => {
225
215
  return {
226
- status: _data.status
216
+ contractInfoMap: _data.contractInfoMap,
217
+ taskID: _data.taskID
227
218
  };
228
219
  });
229
220
  }, error => {
@@ -232,13 +223,11 @@ class Metadata {
232
223
  });
233
224
  });
234
225
  };
235
- this.getTokenRefreshResult = (args, headers, signal) => {
236
- return this.fetch(this.url('GetTokenRefreshResult'), createHTTPRequest(args, headers, signal)).then(res => {
226
+ this.findContractInfo = (args, headers, signal) => {
227
+ return this.fetch(this.url('FindContractInfo'), createHTTPRequest(args, headers, signal)).then(res => {
237
228
  return buildResponse(res).then(_data => {
238
229
  return {
239
- status: _data.status,
240
- tokens: _data.tokens,
241
- failureReasons: _data.failureReasons
230
+ contractInfoList: _data.contractInfoList
242
231
  };
243
232
  });
244
233
  }, error => {
@@ -247,11 +236,11 @@ class Metadata {
247
236
  });
248
237
  });
249
238
  };
250
- this.cancelRefreshJob = (args, headers, signal) => {
251
- return this.fetch(this.url('CancelRefreshJob'), createHTTPRequest(args, headers, signal)).then(res => {
239
+ this.findContractInfoBatch = (args, headers, signal) => {
240
+ return this.fetch(this.url('FindContractInfoBatch'), createHTTPRequest(args, headers, signal)).then(res => {
252
241
  return buildResponse(res).then(_data => {
253
242
  return {
254
- ok: _data.ok
243
+ contractInfoByChain: _data.contractInfoByChain
255
244
  };
256
245
  });
257
246
  }, error => {
@@ -263,7 +252,9 @@ class Metadata {
263
252
  this.refreshContractInfo = (args, headers, signal) => {
264
253
  return this.fetch(this.url('RefreshContractInfo'), createHTTPRequest(args, headers, signal)).then(res => {
265
254
  return buildResponse(res).then(_data => {
266
- return {};
255
+ return {
256
+ taskID: _data.taskID
257
+ };
267
258
  });
268
259
  }, error => {
269
260
  throw WebrpcRequestFailedError.new({
@@ -271,8 +262,8 @@ class Metadata {
271
262
  });
272
263
  });
273
264
  };
274
- this.refreshContractTokens = (args, headers, signal) => {
275
- return this.fetch(this.url('RefreshContractTokens'), createHTTPRequest(args, headers, signal)).then(res => {
265
+ this.refreshContractInfoBatch = (args, headers, signal) => {
266
+ return this.fetch(this.url('RefreshContractInfoBatch'), createHTTPRequest(args, headers, signal)).then(res => {
276
267
  return buildResponse(res).then(_data => {
277
268
  return {
278
269
  taskID: _data.taskID
@@ -284,12 +275,12 @@ class Metadata {
284
275
  });
285
276
  });
286
277
  };
287
- this.refreshAllContractTokens = (args, headers, signal) => {
288
- return this.fetch(this.url('RefreshAllContractTokens'), createHTTPRequest(args, headers, signal)).then(res => {
278
+ this.searchContractsByQuery = (args, headers, signal) => {
279
+ return this.fetch(this.url('SearchContractsByQuery'), createHTTPRequest(args, headers, signal)).then(res => {
289
280
  return buildResponse(res).then(_data => {
290
281
  return {
291
- taskID: _data.taskID,
292
- retryAfter: _data.retryAfter
282
+ contractInfo: _data.contractInfo,
283
+ nextPage: _data.nextPage
293
284
  };
294
285
  });
295
286
  }, error => {
@@ -298,12 +289,11 @@ class Metadata {
298
289
  });
299
290
  });
300
291
  };
301
- this.getTokenMetadata = (args, headers, signal) => {
302
- return this.fetch(this.url('GetTokenMetadata'), createHTTPRequest(args, headers, signal)).then(res => {
292
+ this.searchContractInfo = (args, headers, signal) => {
293
+ return this.fetch(this.url('SearchContractInfo'), createHTTPRequest(args, headers, signal)).then(res => {
303
294
  return buildResponse(res).then(_data => {
304
295
  return {
305
- tokenMetadata: _data.tokenMetadata,
306
- taskID: _data.taskID
296
+ contractInfoList: _data.contractInfoList
307
297
  };
308
298
  });
309
299
  }, error => {
@@ -312,12 +302,11 @@ class Metadata {
312
302
  });
313
303
  });
314
304
  };
315
- this.getTokenMetadataBatch = (args, headers, signal) => {
316
- return this.fetch(this.url('GetTokenMetadataBatch'), createHTTPRequest(args, headers, signal)).then(res => {
305
+ this.searchContractInfoBatch = (args, headers, signal) => {
306
+ return this.fetch(this.url('SearchContractInfoBatch'), createHTTPRequest(args, headers, signal)).then(res => {
317
307
  return buildResponse(res).then(_data => {
318
308
  return {
319
- contractTokenMetadata: _data.contractTokenMetadata,
320
- taskID: _data.taskID
309
+ contractInfoByChain: _data.contractInfoByChain
321
310
  };
322
311
  });
323
312
  }, error => {
@@ -326,12 +315,12 @@ class Metadata {
326
315
  });
327
316
  });
328
317
  };
329
- this.searchTokenMetadata = (args, headers, signal) => {
330
- return this.fetch(this.url('SearchTokenMetadata'), createHTTPRequest(args, headers, signal)).then(res => {
318
+ this.searchContracts = (args, headers, signal) => {
319
+ return this.fetch(this.url('SearchContracts'), createHTTPRequest(args, headers, signal)).then(res => {
331
320
  return buildResponse(res).then(_data => {
332
321
  return {
333
- page: _data.page,
334
- tokenMetadata: _data.tokenMetadata
322
+ contractInfo: _data.contractInfo,
323
+ nextPage: _data.nextPage
335
324
  };
336
325
  });
337
326
  }, error => {
@@ -340,12 +329,12 @@ class Metadata {
340
329
  });
341
330
  });
342
331
  };
343
- this.searchTokenIDs = (args, headers, signal) => {
344
- return this.fetch(this.url('SearchTokenIDs'), createHTTPRequest(args, headers, signal)).then(res => {
332
+ this.searchMetadata = (args, headers, signal) => {
333
+ return this.fetch(this.url('SearchMetadata'), createHTTPRequest(args, headers, signal)).then(res => {
345
334
  return buildResponse(res).then(_data => {
346
335
  return {
347
- page: _data.page,
348
- tokenIds: _data.tokenIds
336
+ tokenMetadata: _data.tokenMetadata,
337
+ contractInfo: _data.contractInfo
349
338
  };
350
339
  });
351
340
  }, error => {
@@ -354,11 +343,12 @@ class Metadata {
354
343
  });
355
344
  });
356
345
  };
357
- this.tokenCollectionFilters = (args, headers, signal) => {
358
- return this.fetch(this.url('TokenCollectionFilters'), createHTTPRequest(args, headers, signal)).then(res => {
346
+ this.getTokenMetadata = (args, headers, signal) => {
347
+ return this.fetch(this.url('GetTokenMetadata'), createHTTPRequest(args, headers, signal)).then(res => {
359
348
  return buildResponse(res).then(_data => {
360
349
  return {
361
- filters: _data.filters
350
+ tokenMetadata: _data.tokenMetadata,
351
+ taskID: _data.taskID
362
352
  };
363
353
  });
364
354
  }, error => {
@@ -367,11 +357,11 @@ class Metadata {
367
357
  });
368
358
  });
369
359
  };
370
- this.getContractInfo = (args, headers, signal) => {
371
- return this.fetch(this.url('GetContractInfo'), createHTTPRequest(args, headers, signal)).then(res => {
360
+ this.getTokenMetadataBatch = (args, headers, signal) => {
361
+ return this.fetch(this.url('GetTokenMetadataBatch'), createHTTPRequest(args, headers, signal)).then(res => {
372
362
  return buildResponse(res).then(_data => {
373
363
  return {
374
- contractInfo: _data.contractInfo,
364
+ contractTokenMetadata: _data.contractTokenMetadata,
375
365
  taskID: _data.taskID
376
366
  };
377
367
  });
@@ -381,11 +371,10 @@ class Metadata {
381
371
  });
382
372
  });
383
373
  };
384
- this.getContractInfoBatch = (args, headers, signal) => {
385
- return this.fetch(this.url('GetContractInfoBatch'), createHTTPRequest(args, headers, signal)).then(res => {
374
+ this.refreshTokenMetadata = (args, headers, signal) => {
375
+ return this.fetch(this.url('RefreshTokenMetadata'), createHTTPRequest(args, headers, signal)).then(res => {
386
376
  return buildResponse(res).then(_data => {
387
377
  return {
388
- contractInfoMap: _data.contractInfoMap,
389
378
  taskID: _data.taskID
390
379
  };
391
380
  });
@@ -395,11 +384,12 @@ class Metadata {
395
384
  });
396
385
  });
397
386
  };
398
- this.searchContractInfo = (args, headers, signal) => {
399
- return this.fetch(this.url('SearchContractInfo'), createHTTPRequest(args, headers, signal)).then(res => {
387
+ this.searchTokenMetadataByQuery = (args, headers, signal) => {
388
+ return this.fetch(this.url('SearchTokenMetadataByQuery'), createHTTPRequest(args, headers, signal)).then(res => {
400
389
  return buildResponse(res).then(_data => {
401
390
  return {
402
- contractInfoList: _data.contractInfoList
391
+ tokenMetadata: _data.tokenMetadata,
392
+ nextPage: _data.nextPage
403
393
  };
404
394
  });
405
395
  }, error => {
@@ -408,11 +398,12 @@ class Metadata {
408
398
  });
409
399
  });
410
400
  };
411
- this.searchContractInfoBatch = (args, headers, signal) => {
412
- return this.fetch(this.url('SearchContractInfoBatch'), createHTTPRequest(args, headers, signal)).then(res => {
401
+ this.searchTokenMetadata = (args, headers, signal) => {
402
+ return this.fetch(this.url('SearchTokenMetadata'), createHTTPRequest(args, headers, signal)).then(res => {
413
403
  return buildResponse(res).then(_data => {
414
404
  return {
415
- contractInfoByChain: _data.contractInfoByChain
405
+ page: _data.page,
406
+ tokenMetadata: _data.tokenMetadata
416
407
  };
417
408
  });
418
409
  }, error => {
@@ -421,12 +412,12 @@ class Metadata {
421
412
  });
422
413
  });
423
414
  };
424
- this.searchMetadata = (args, headers, signal) => {
425
- return this.fetch(this.url('SearchMetadata'), createHTTPRequest(args, headers, signal)).then(res => {
415
+ this.searchTokenMetadataTokenIDs = (args, headers, signal) => {
416
+ return this.fetch(this.url('SearchTokenMetadataTokenIDs'), createHTTPRequest(args, headers, signal)).then(res => {
426
417
  return buildResponse(res).then(_data => {
427
418
  return {
428
- tokenMetadata: _data.tokenMetadata,
429
- contractInfo: _data.contractInfo
419
+ page: _data.page,
420
+ tokenIDs: _data.tokenIDs
430
421
  };
431
422
  });
432
423
  }, error => {
@@ -435,12 +426,11 @@ class Metadata {
435
426
  });
436
427
  });
437
428
  };
438
- this.searchTokens = (args, headers, signal) => {
439
- return this.fetch(this.url('SearchTokens'), createHTTPRequest(args, headers, signal)).then(res => {
429
+ this.getTokenMetadataPropertyFilters = (args, headers, signal) => {
430
+ return this.fetch(this.url('GetTokenMetadataPropertyFilters'), createHTTPRequest(args, headers, signal)).then(res => {
440
431
  return buildResponse(res).then(_data => {
441
432
  return {
442
- tokenMetadata: _data.tokenMetadata,
443
- nextPage: _data.nextPage
433
+ filters: _data.filters
444
434
  };
445
435
  });
446
436
  }, error => {
@@ -449,12 +439,12 @@ class Metadata {
449
439
  });
450
440
  });
451
441
  };
452
- this.searchContracts = (args, headers, signal) => {
453
- return this.fetch(this.url('SearchContracts'), createHTTPRequest(args, headers, signal)).then(res => {
442
+ this.refreshAllContractTokens = (args, headers, signal) => {
443
+ return this.fetch(this.url('RefreshAllContractTokens'), createHTTPRequest(args, headers, signal)).then(res => {
454
444
  return buildResponse(res).then(_data => {
455
445
  return {
456
- contractInfo: _data.contractInfo,
457
- nextPage: _data.nextPage
446
+ taskID: _data.taskID,
447
+ retryAfter: _data.retryAfter
458
448
  };
459
449
  });
460
450
  }, error => {
@@ -463,11 +453,12 @@ class Metadata {
463
453
  });
464
454
  });
465
455
  };
466
- this.getNiftyswapTokenQuantity = (args, headers, signal) => {
467
- return this.fetch(this.url('GetNiftyswapTokenQuantity'), createHTTPRequest(args, headers, signal)).then(res => {
456
+ this.searchTokens = (args, headers, signal) => {
457
+ return this.fetch(this.url('SearchTokens'), createHTTPRequest(args, headers, signal)).then(res => {
468
458
  return buildResponse(res).then(_data => {
469
459
  return {
470
- quantity: _data.quantity
460
+ tokenMetadata: _data.tokenMetadata,
461
+ nextPage: _data.nextPage
471
462
  };
472
463
  });
473
464
  }, error => {
@@ -476,11 +467,11 @@ class Metadata {
476
467
  });
477
468
  });
478
469
  };
479
- this.getNiftyswapUnitPrices = (args, headers, signal) => {
480
- return this.fetch(this.url('GetNiftyswapUnitPrices'), createHTTPRequest(args, headers, signal)).then(res => {
470
+ this.tokenCollectionFilters = (args, headers, signal) => {
471
+ return this.fetch(this.url('TokenCollectionFilters'), createHTTPRequest(args, headers, signal)).then(res => {
481
472
  return buildResponse(res).then(_data => {
482
473
  return {
483
- prices: _data.prices
474
+ filters: _data.filters
484
475
  };
485
476
  });
486
477
  }, error => {
@@ -489,11 +480,11 @@ class Metadata {
489
480
  });
490
481
  });
491
482
  };
492
- this.getNiftyswapUnitPricesWithQuantities = (args, headers, signal) => {
493
- return this.fetch(this.url('GetNiftyswapUnitPricesWithQuantities'), createHTTPRequest(args, headers, signal)).then(res => {
483
+ this.getTokenRefreshStatus = (args, headers, signal) => {
484
+ return this.fetch(this.url('GetTokenRefreshStatus'), createHTTPRequest(args, headers, signal)).then(res => {
494
485
  return buildResponse(res).then(_data => {
495
486
  return {
496
- prices: _data.prices
487
+ status: _data.status
497
488
  };
498
489
  });
499
490
  }, error => {
@@ -502,11 +493,12 @@ class Metadata {
502
493
  });
503
494
  });
504
495
  };
505
- this.addContractToMintMonitor = (args, headers, signal) => {
506
- return this.fetch(this.url('AddContractToMintMonitor'), createHTTPRequest(args, headers, signal)).then(res => {
496
+ this.searchTokenIDs = (args, headers, signal) => {
497
+ return this.fetch(this.url('SearchTokenIDs'), createHTTPRequest(args, headers, signal)).then(res => {
507
498
  return buildResponse(res).then(_data => {
508
499
  return {
509
- ok: _data.ok
500
+ page: _data.page,
501
+ tokenIds: _data.tokenIds
510
502
  };
511
503
  });
512
504
  }, error => {
@@ -515,11 +507,12 @@ class Metadata {
515
507
  });
516
508
  });
517
509
  };
518
- this.removeContractFromMintMonitor = (args, headers, signal) => {
519
- return this.fetch(this.url('RemoveContractFromMintMonitor'), createHTTPRequest(args, headers, signal)).then(res => {
510
+ this.getTokenDirectory = (args, headers, signal) => {
511
+ return this.fetch(this.url('GetTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
520
512
  return buildResponse(res).then(_data => {
521
513
  return {
522
- ok: _data.ok
514
+ collections: _data.collections,
515
+ page: _data.page
523
516
  };
524
517
  });
525
518
  }, error => {
@@ -528,11 +521,12 @@ class Metadata {
528
521
  });
529
522
  });
530
523
  };
531
- this.mintMonitorJobStatus = (args, headers, signal) => {
532
- return this.fetch(this.url('MintMonitorJobStatus'), createHTTPRequest(args, headers, signal)).then(res => {
524
+ this.searchTokenDirectory = (args, headers, signal) => {
525
+ return this.fetch(this.url('SearchTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
533
526
  return buildResponse(res).then(_data => {
534
527
  return {
535
- task: _data.task
528
+ collections: _data.collections,
529
+ page: _data.page
536
530
  };
537
531
  });
538
532
  }, error => {
@@ -541,11 +535,12 @@ class Metadata {
541
535
  });
542
536
  });
543
537
  };
544
- this.mintMonitorTriggerJob = (args, headers, signal) => {
545
- return this.fetch(this.url('MintMonitorTriggerJob'), createHTTPRequest(args, headers, signal)).then(res => {
538
+ this.getTokenDirectoryNetworks = (args, headers, signal) => {
539
+ return this.fetch(this.url('GetTokenDirectoryNetworks'), createHTTPRequest(args, headers, signal)).then(res => {
546
540
  return buildResponse(res).then(_data => {
547
541
  return {
548
- ok: _data.ok
542
+ chainIDs: _data.chainIDs,
543
+ networks: _data.networks
549
544
  };
550
545
  });
551
546
  }, error => {
@@ -554,11 +549,11 @@ class Metadata {
554
549
  });
555
550
  });
556
551
  };
557
- this.syncContractTokens = (args, headers, signal) => {
558
- return this.fetch(this.url('SyncContractTokens'), createHTTPRequest(args, headers, signal)).then(res => {
552
+ this.directoryGetNetworks = (args, headers, signal) => {
553
+ return this.fetch(this.url('DirectoryGetNetworks'), createHTTPRequest(args, headers, signal)).then(res => {
559
554
  return buildResponse(res).then(_data => {
560
555
  return {
561
- taskID: _data.taskID
556
+ networks: _data.networks
562
557
  };
563
558
  });
564
559
  }, error => {
@@ -567,11 +562,12 @@ class Metadata {
567
562
  });
568
563
  });
569
564
  };
570
- this.abortContractSync = (args, headers, signal) => {
571
- return this.fetch(this.url('AbortContractSync'), createHTTPRequest(args, headers, signal)).then(res => {
565
+ this.directoryGetCollections = (args, headers, signal) => {
566
+ return this.fetch(this.url('DirectoryGetCollections'), createHTTPRequest(args, headers, signal)).then(res => {
572
567
  return buildResponse(res).then(_data => {
573
568
  return {
574
- ok: _data.ok
569
+ collections: _data.collections,
570
+ page: _data.page
575
571
  };
576
572
  });
577
573
  }, error => {
@@ -580,12 +576,12 @@ class Metadata {
580
576
  });
581
577
  });
582
578
  };
583
- this.contractSyncJobStatus = (args, headers, signal) => {
584
- return this.fetch(this.url('ContractSyncJobStatus'), createHTTPRequest(args, headers, signal)).then(res => {
579
+ this.directorySearchCollections = (args, headers, signal) => {
580
+ return this.fetch(this.url('DirectorySearchCollections'), createHTTPRequest(args, headers, signal)).then(res => {
585
581
  return buildResponse(res).then(_data => {
586
582
  return {
587
- refreshTask: _data.refreshTask,
588
- syncTask: _data.syncTask
583
+ collections: _data.collections,
584
+ page: _data.page
589
585
  };
590
586
  });
591
587
  }, error => {
@@ -594,11 +590,11 @@ class Metadata {
594
590
  });
595
591
  });
596
592
  };
597
- this.directoryGetNetworks = (args, headers, signal) => {
598
- return this.fetch(this.url('DirectoryGetNetworks'), createHTTPRequest(args, headers, signal)).then(res => {
593
+ this.getNiftyswapTokenQuantity = (args, headers, signal) => {
594
+ return this.fetch(this.url('GetNiftyswapTokenQuantity'), createHTTPRequest(args, headers, signal)).then(res => {
599
595
  return buildResponse(res).then(_data => {
600
596
  return {
601
- networks: _data.networks
597
+ quantity: _data.quantity
602
598
  };
603
599
  });
604
600
  }, error => {
@@ -607,12 +603,11 @@ class Metadata {
607
603
  });
608
604
  });
609
605
  };
610
- this.directoryGetCollections = (args, headers, signal) => {
611
- return this.fetch(this.url('DirectoryGetCollections'), createHTTPRequest(args, headers, signal)).then(res => {
606
+ this.getNiftyswapUnitPrices = (args, headers, signal) => {
607
+ return this.fetch(this.url('GetNiftyswapUnitPrices'), createHTTPRequest(args, headers, signal)).then(res => {
612
608
  return buildResponse(res).then(_data => {
613
609
  return {
614
- collections: _data.collections,
615
- page: _data.page
610
+ prices: _data.prices
616
611
  };
617
612
  });
618
613
  }, error => {
@@ -621,12 +616,11 @@ class Metadata {
621
616
  });
622
617
  });
623
618
  };
624
- this.directorySearchCollections = (args, headers, signal) => {
625
- return this.fetch(this.url('DirectorySearchCollections'), createHTTPRequest(args, headers, signal)).then(res => {
619
+ this.getNiftyswapUnitPricesWithQuantities = (args, headers, signal) => {
620
+ return this.fetch(this.url('GetNiftyswapUnitPricesWithQuantities'), createHTTPRequest(args, headers, signal)).then(res => {
626
621
  return buildResponse(res).then(_data => {
627
622
  return {
628
- collections: _data.collections,
629
- page: _data.page
623
+ prices: _data.prices
630
624
  };
631
625
  });
632
626
  }, error => {
@@ -938,6 +932,66 @@ class Admin {
938
932
  this.hostname = void 0;
939
933
  this.fetch = void 0;
940
934
  this.path = '/rpc/Admin/';
935
+ this.getContractInfoOverrides = (args, headers, signal) => {
936
+ return this.fetch(this.url('GetContractInfoOverrides'), createHTTPRequest(args, headers, signal)).then(res => {
937
+ return buildResponse(res).then(_data => {
938
+ return {
939
+ contractInfoOverrides: _data.contractInfoOverrides,
940
+ page: _data.page
941
+ };
942
+ });
943
+ }, error => {
944
+ throw WebrpcRequestFailedError.new({
945
+ cause: `fetch(): ${error.message || ''}`
946
+ });
947
+ });
948
+ };
949
+ this.addContractInfoOverride = (args, headers, signal) => {
950
+ return this.fetch(this.url('AddContractInfoOverride'), createHTTPRequest(args, headers, signal)).then(res => {
951
+ return buildResponse(res).then(_data => {
952
+ return {};
953
+ });
954
+ }, error => {
955
+ throw WebrpcRequestFailedError.new({
956
+ cause: `fetch(): ${error.message || ''}`
957
+ });
958
+ });
959
+ };
960
+ this.updateContractInfoOverride = (args, headers, signal) => {
961
+ return this.fetch(this.url('UpdateContractInfoOverride'), createHTTPRequest(args, headers, signal)).then(res => {
962
+ return buildResponse(res).then(_data => {
963
+ return {};
964
+ });
965
+ }, error => {
966
+ throw WebrpcRequestFailedError.new({
967
+ cause: `fetch(): ${error.message || ''}`
968
+ });
969
+ });
970
+ };
971
+ this.removeContractInfoOverride = (args, headers, signal) => {
972
+ return this.fetch(this.url('RemoveContractInfoOverride'), createHTTPRequest(args, headers, signal)).then(res => {
973
+ return buildResponse(res).then(_data => {
974
+ return {};
975
+ });
976
+ }, error => {
977
+ throw WebrpcRequestFailedError.new({
978
+ cause: `fetch(): ${error.message || ''}`
979
+ });
980
+ });
981
+ };
982
+ this.refreshTokenDirectory = (headers, signal) => {
983
+ return this.fetch(this.url('RefreshTokenDirectory'), createHTTPRequest({}, headers, signal)).then(res => {
984
+ return buildResponse(res).then(_data => {
985
+ return {
986
+ taskID: _data.taskID
987
+ };
988
+ });
989
+ }, error => {
990
+ throw WebrpcRequestFailedError.new({
991
+ cause: `fetch(): ${error.message || ''}`
992
+ });
993
+ });
994
+ };
941
995
  this.addContractsToTokenDirectory = (args, headers, signal) => {
942
996
  return this.fetch(this.url('AddContractsToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
943
997
  return buildResponse(res).then(_data => {
@@ -1186,6 +1240,12 @@ class GeoblockedError extends WebrpcError {
1186
1240
  Object.setPrototypeOf(this, GeoblockedError.prototype);
1187
1241
  }
1188
1242
  }
1243
+ class TaskFailedError extends WebrpcError {
1244
+ constructor(name = 'TaskFailed', code = 1007, message = `Task failed`, status = 0, cause) {
1245
+ super(name, code, message, status, cause);
1246
+ Object.setPrototypeOf(this, TaskFailedError.prototype);
1247
+ }
1248
+ }
1189
1249
  class TimeoutError extends WebrpcError {
1190
1250
  constructor(name = 'Timeout', code = 2000, message = `Request timed out`, status = 0, cause) {
1191
1251
  super(name, code, message, status, cause);
@@ -1265,6 +1325,7 @@ let errors = /*#__PURE__*/function (errors) {
1265
1325
  errors["RequestConflict"] = "RequestConflict";
1266
1326
  errors["Fail"] = "Fail";
1267
1327
  errors["Geoblocked"] = "Geoblocked";
1328
+ errors["TaskFailed"] = "TaskFailed";
1268
1329
  errors["Timeout"] = "Timeout";
1269
1330
  errors["InvalidArgument"] = "InvalidArgument";
1270
1331
  errors["RequiredArgument"] = "RequiredArgument";
@@ -1296,6 +1357,7 @@ let WebrpcErrorCodes = /*#__PURE__*/function (WebrpcErrorCodes) {
1296
1357
  WebrpcErrorCodes[WebrpcErrorCodes["RequestConflict"] = 1004] = "RequestConflict";
1297
1358
  WebrpcErrorCodes[WebrpcErrorCodes["Fail"] = 1005] = "Fail";
1298
1359
  WebrpcErrorCodes[WebrpcErrorCodes["Geoblocked"] = 1006] = "Geoblocked";
1360
+ WebrpcErrorCodes[WebrpcErrorCodes["TaskFailed"] = 1007] = "TaskFailed";
1299
1361
  WebrpcErrorCodes[WebrpcErrorCodes["Timeout"] = 2000] = "Timeout";
1300
1362
  WebrpcErrorCodes[WebrpcErrorCodes["InvalidArgument"] = 2001] = "InvalidArgument";
1301
1363
  WebrpcErrorCodes[WebrpcErrorCodes["RequiredArgument"] = 2002] = "RequiredArgument";
@@ -1327,6 +1389,7 @@ const webrpcErrorByCode = {
1327
1389
  [1004]: RequestConflictError,
1328
1390
  [1005]: FailError,
1329
1391
  [1006]: GeoblockedError,
1392
+ [1007]: TaskFailedError,
1330
1393
  [2000]: TimeoutError,
1331
1394
  [2001]: InvalidArgumentError,
1332
1395
  [2002]: RequiredArgumentError,
@@ -1411,6 +1474,7 @@ exports.SequenceMetadata = SequenceMetadata;
1411
1474
  exports.SessionExpiredError = SessionExpiredError;
1412
1475
  exports.Source = Source;
1413
1476
  exports.SwapType = SwapType;
1477
+ exports.TaskFailedError = TaskFailedError;
1414
1478
  exports.TaskStatus = TaskStatus;
1415
1479
  exports.TimeoutError = TimeoutError;
1416
1480
  exports.TokenDirectoryDisabledError = TokenDirectoryDisabledError;