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