@0xsequence/metadata 1.9.29 → 1.9.31
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.
|
@@ -18,7 +18,7 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-metadata v0.4.0
|
|
21
|
+
// sequence-metadata v0.4.0 594e38ba9f35eba08aac88087660d5f424b6dbda
|
|
22
22
|
// --
|
|
23
23
|
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
@@ -31,7 +31,7 @@ const WebRPCVersion = 'v1';
|
|
|
31
31
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = '
|
|
34
|
+
const WebRPCSchemaHash = '594e38ba9f35eba08aac88087660d5f424b6dbda';
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
@@ -312,6 +312,72 @@ class Metadata {
|
|
|
312
312
|
});
|
|
313
313
|
});
|
|
314
314
|
};
|
|
315
|
+
this.addContractsToTokenDirectory = (args, headers, signal) => {
|
|
316
|
+
return this.fetch(this.url('AddContractsToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
317
|
+
return buildResponse(res).then(_data => {
|
|
318
|
+
return {
|
|
319
|
+
ok: _data.ok
|
|
320
|
+
};
|
|
321
|
+
});
|
|
322
|
+
}, error => {
|
|
323
|
+
throw WebrpcRequestFailedError.new({
|
|
324
|
+
cause: `fetch(): ${error.message || ''}`
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
this.removeContractsFromTokenDirectory = (args, headers, signal) => {
|
|
329
|
+
return this.fetch(this.url('RemoveContractsFromTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
330
|
+
return buildResponse(res).then(_data => {
|
|
331
|
+
return {
|
|
332
|
+
ok: _data.ok
|
|
333
|
+
};
|
|
334
|
+
});
|
|
335
|
+
}, error => {
|
|
336
|
+
throw WebrpcRequestFailedError.new({
|
|
337
|
+
cause: `fetch(): ${error.message || ''}`
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
this.modifyFeatureIndex = (args, headers, signal) => {
|
|
342
|
+
return this.fetch(this.url('ModifyFeatureIndex'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
343
|
+
return buildResponse(res).then(_data => {
|
|
344
|
+
return {
|
|
345
|
+
ok: _data.ok
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
}, error => {
|
|
349
|
+
throw WebrpcRequestFailedError.new({
|
|
350
|
+
cause: `fetch(): ${error.message || ''}`
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
this.getFeatureIndex = (args, headers, signal) => {
|
|
355
|
+
return this.fetch(this.url('GetFeatureIndex'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
356
|
+
return buildResponse(res).then(_data => {
|
|
357
|
+
return {
|
|
358
|
+
featured: _data.featured
|
|
359
|
+
};
|
|
360
|
+
});
|
|
361
|
+
}, error => {
|
|
362
|
+
throw WebrpcRequestFailedError.new({
|
|
363
|
+
cause: `fetch(): ${error.message || ''}`
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
this.listTokenDirectory = (args, headers, signal) => {
|
|
368
|
+
return this.fetch(this.url('ListTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
369
|
+
return buildResponse(res).then(_data => {
|
|
370
|
+
return {
|
|
371
|
+
page: _data.page,
|
|
372
|
+
contracts: _data.contracts
|
|
373
|
+
};
|
|
374
|
+
});
|
|
375
|
+
}, error => {
|
|
376
|
+
throw WebrpcRequestFailedError.new({
|
|
377
|
+
cause: `fetch(): ${error.message || ''}`
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
};
|
|
315
381
|
this.getNiftyswapTokenQuantity = (args, headers, signal) => {
|
|
316
382
|
return this.fetch(this.url('GetNiftyswapTokenQuantity'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
317
383
|
return buildResponse(res).then(_data => {
|
|
@@ -507,6 +573,19 @@ class Collections {
|
|
|
507
573
|
});
|
|
508
574
|
});
|
|
509
575
|
};
|
|
576
|
+
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => {
|
|
577
|
+
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
578
|
+
return buildResponse(res).then(_data => {
|
|
579
|
+
return {
|
|
580
|
+
ok: _data.ok
|
|
581
|
+
};
|
|
582
|
+
});
|
|
583
|
+
}, error => {
|
|
584
|
+
throw WebrpcRequestFailedError.new({
|
|
585
|
+
cause: `fetch(): ${error.message || ''}`
|
|
586
|
+
});
|
|
587
|
+
});
|
|
588
|
+
};
|
|
510
589
|
this.createToken = (args, headers, signal) => {
|
|
511
590
|
return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
512
591
|
return buildResponse(res).then(_data => {
|
|
@@ -18,7 +18,7 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-metadata v0.4.0
|
|
21
|
+
// sequence-metadata v0.4.0 594e38ba9f35eba08aac88087660d5f424b6dbda
|
|
22
22
|
// --
|
|
23
23
|
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
@@ -31,7 +31,7 @@ const WebRPCVersion = 'v1';
|
|
|
31
31
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = '
|
|
34
|
+
const WebRPCSchemaHash = '594e38ba9f35eba08aac88087660d5f424b6dbda';
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
@@ -312,6 +312,72 @@ class Metadata {
|
|
|
312
312
|
});
|
|
313
313
|
});
|
|
314
314
|
};
|
|
315
|
+
this.addContractsToTokenDirectory = (args, headers, signal) => {
|
|
316
|
+
return this.fetch(this.url('AddContractsToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
317
|
+
return buildResponse(res).then(_data => {
|
|
318
|
+
return {
|
|
319
|
+
ok: _data.ok
|
|
320
|
+
};
|
|
321
|
+
});
|
|
322
|
+
}, error => {
|
|
323
|
+
throw WebrpcRequestFailedError.new({
|
|
324
|
+
cause: `fetch(): ${error.message || ''}`
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
this.removeContractsFromTokenDirectory = (args, headers, signal) => {
|
|
329
|
+
return this.fetch(this.url('RemoveContractsFromTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
330
|
+
return buildResponse(res).then(_data => {
|
|
331
|
+
return {
|
|
332
|
+
ok: _data.ok
|
|
333
|
+
};
|
|
334
|
+
});
|
|
335
|
+
}, error => {
|
|
336
|
+
throw WebrpcRequestFailedError.new({
|
|
337
|
+
cause: `fetch(): ${error.message || ''}`
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
this.modifyFeatureIndex = (args, headers, signal) => {
|
|
342
|
+
return this.fetch(this.url('ModifyFeatureIndex'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
343
|
+
return buildResponse(res).then(_data => {
|
|
344
|
+
return {
|
|
345
|
+
ok: _data.ok
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
}, error => {
|
|
349
|
+
throw WebrpcRequestFailedError.new({
|
|
350
|
+
cause: `fetch(): ${error.message || ''}`
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
this.getFeatureIndex = (args, headers, signal) => {
|
|
355
|
+
return this.fetch(this.url('GetFeatureIndex'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
356
|
+
return buildResponse(res).then(_data => {
|
|
357
|
+
return {
|
|
358
|
+
featured: _data.featured
|
|
359
|
+
};
|
|
360
|
+
});
|
|
361
|
+
}, error => {
|
|
362
|
+
throw WebrpcRequestFailedError.new({
|
|
363
|
+
cause: `fetch(): ${error.message || ''}`
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
this.listTokenDirectory = (args, headers, signal) => {
|
|
368
|
+
return this.fetch(this.url('ListTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
369
|
+
return buildResponse(res).then(_data => {
|
|
370
|
+
return {
|
|
371
|
+
page: _data.page,
|
|
372
|
+
contracts: _data.contracts
|
|
373
|
+
};
|
|
374
|
+
});
|
|
375
|
+
}, error => {
|
|
376
|
+
throw WebrpcRequestFailedError.new({
|
|
377
|
+
cause: `fetch(): ${error.message || ''}`
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
};
|
|
315
381
|
this.getNiftyswapTokenQuantity = (args, headers, signal) => {
|
|
316
382
|
return this.fetch(this.url('GetNiftyswapTokenQuantity'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
317
383
|
return buildResponse(res).then(_data => {
|
|
@@ -507,6 +573,19 @@ class Collections {
|
|
|
507
573
|
});
|
|
508
574
|
});
|
|
509
575
|
};
|
|
576
|
+
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => {
|
|
577
|
+
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
578
|
+
return buildResponse(res).then(_data => {
|
|
579
|
+
return {
|
|
580
|
+
ok: _data.ok
|
|
581
|
+
};
|
|
582
|
+
});
|
|
583
|
+
}, error => {
|
|
584
|
+
throw WebrpcRequestFailedError.new({
|
|
585
|
+
cause: `fetch(): ${error.message || ''}`
|
|
586
|
+
});
|
|
587
|
+
});
|
|
588
|
+
};
|
|
510
589
|
this.createToken = (args, headers, signal) => {
|
|
511
590
|
return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
512
591
|
return buildResponse(res).then(_data => {
|
|
@@ -14,7 +14,7 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* eslint-disable */
|
|
17
|
-
// sequence-metadata v0.4.0
|
|
17
|
+
// sequence-metadata v0.4.0 594e38ba9f35eba08aac88087660d5f424b6dbda
|
|
18
18
|
// --
|
|
19
19
|
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
|
|
20
20
|
//
|
|
@@ -27,7 +27,7 @@ const WebRPCVersion = 'v1';
|
|
|
27
27
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
28
28
|
|
|
29
29
|
// Schema hash generated from your RIDL schema
|
|
30
|
-
const WebRPCSchemaHash = '
|
|
30
|
+
const WebRPCSchemaHash = '594e38ba9f35eba08aac88087660d5f424b6dbda';
|
|
31
31
|
|
|
32
32
|
//
|
|
33
33
|
// Types
|
|
@@ -308,6 +308,72 @@ class Metadata {
|
|
|
308
308
|
});
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
|
+
this.addContractsToTokenDirectory = (args, headers, signal) => {
|
|
312
|
+
return this.fetch(this.url('AddContractsToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
313
|
+
return buildResponse(res).then(_data => {
|
|
314
|
+
return {
|
|
315
|
+
ok: _data.ok
|
|
316
|
+
};
|
|
317
|
+
});
|
|
318
|
+
}, error => {
|
|
319
|
+
throw WebrpcRequestFailedError.new({
|
|
320
|
+
cause: `fetch(): ${error.message || ''}`
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
this.removeContractsFromTokenDirectory = (args, headers, signal) => {
|
|
325
|
+
return this.fetch(this.url('RemoveContractsFromTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
326
|
+
return buildResponse(res).then(_data => {
|
|
327
|
+
return {
|
|
328
|
+
ok: _data.ok
|
|
329
|
+
};
|
|
330
|
+
});
|
|
331
|
+
}, error => {
|
|
332
|
+
throw WebrpcRequestFailedError.new({
|
|
333
|
+
cause: `fetch(): ${error.message || ''}`
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
this.modifyFeatureIndex = (args, headers, signal) => {
|
|
338
|
+
return this.fetch(this.url('ModifyFeatureIndex'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
339
|
+
return buildResponse(res).then(_data => {
|
|
340
|
+
return {
|
|
341
|
+
ok: _data.ok
|
|
342
|
+
};
|
|
343
|
+
});
|
|
344
|
+
}, error => {
|
|
345
|
+
throw WebrpcRequestFailedError.new({
|
|
346
|
+
cause: `fetch(): ${error.message || ''}`
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
this.getFeatureIndex = (args, headers, signal) => {
|
|
351
|
+
return this.fetch(this.url('GetFeatureIndex'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
352
|
+
return buildResponse(res).then(_data => {
|
|
353
|
+
return {
|
|
354
|
+
featured: _data.featured
|
|
355
|
+
};
|
|
356
|
+
});
|
|
357
|
+
}, error => {
|
|
358
|
+
throw WebrpcRequestFailedError.new({
|
|
359
|
+
cause: `fetch(): ${error.message || ''}`
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
this.listTokenDirectory = (args, headers, signal) => {
|
|
364
|
+
return this.fetch(this.url('ListTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
365
|
+
return buildResponse(res).then(_data => {
|
|
366
|
+
return {
|
|
367
|
+
page: _data.page,
|
|
368
|
+
contracts: _data.contracts
|
|
369
|
+
};
|
|
370
|
+
});
|
|
371
|
+
}, error => {
|
|
372
|
+
throw WebrpcRequestFailedError.new({
|
|
373
|
+
cause: `fetch(): ${error.message || ''}`
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
};
|
|
311
377
|
this.getNiftyswapTokenQuantity = (args, headers, signal) => {
|
|
312
378
|
return this.fetch(this.url('GetNiftyswapTokenQuantity'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
313
379
|
return buildResponse(res).then(_data => {
|
|
@@ -503,6 +569,19 @@ class Collections {
|
|
|
503
569
|
});
|
|
504
570
|
});
|
|
505
571
|
};
|
|
572
|
+
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => {
|
|
573
|
+
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
574
|
+
return buildResponse(res).then(_data => {
|
|
575
|
+
return {
|
|
576
|
+
ok: _data.ok
|
|
577
|
+
};
|
|
578
|
+
});
|
|
579
|
+
}, error => {
|
|
580
|
+
throw WebrpcRequestFailedError.new({
|
|
581
|
+
cause: `fetch(): ${error.message || ''}`
|
|
582
|
+
});
|
|
583
|
+
});
|
|
584
|
+
};
|
|
506
585
|
this.createToken = (args, headers, signal) => {
|
|
507
586
|
return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
508
587
|
return buildResponse(res).then(_data => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "594e38ba9f35eba08aac88087660d5f424b6dbda";
|
|
4
4
|
export declare enum ContractType {
|
|
5
5
|
UNKNOWN = "UNKNOWN",
|
|
6
6
|
ERC20 = "ERC20",
|
|
@@ -91,6 +91,7 @@ export interface ContractInfoExtensions {
|
|
|
91
91
|
blacklist: boolean;
|
|
92
92
|
verified: boolean;
|
|
93
93
|
verifiedBy: string;
|
|
94
|
+
featured: boolean;
|
|
94
95
|
}
|
|
95
96
|
export interface TokenMetadata {
|
|
96
97
|
tokenId: string;
|
|
@@ -225,6 +226,11 @@ export interface Metadata {
|
|
|
225
226
|
searchContractInfo(args: SearchContractInfoArgs, headers?: object, signal?: AbortSignal): Promise<SearchContractInfoReturn>;
|
|
226
227
|
searchContractInfoBatch(args: SearchContractInfoBatchArgs, headers?: object, signal?: AbortSignal): Promise<SearchContractInfoBatchReturn>;
|
|
227
228
|
searchMetadata(args: SearchMetadataArgs, headers?: object, signal?: AbortSignal): Promise<SearchMetadataReturn>;
|
|
229
|
+
addContractsToTokenDirectory(args: AddContractsToTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<AddContractsToTokenDirectoryReturn>;
|
|
230
|
+
removeContractsFromTokenDirectory(args: RemoveContractsFromTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<RemoveContractsFromTokenDirectoryReturn>;
|
|
231
|
+
modifyFeatureIndex(args: ModifyFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<ModifyFeatureIndexReturn>;
|
|
232
|
+
getFeatureIndex(args: GetFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<GetFeatureIndexReturn>;
|
|
233
|
+
listTokenDirectory(args: ListTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<ListTokenDirectoryReturn>;
|
|
228
234
|
getNiftyswapTokenQuantity(args: GetNiftyswapTokenQuantityArgs, headers?: object, signal?: AbortSignal): Promise<GetNiftyswapTokenQuantityReturn>;
|
|
229
235
|
getNiftyswapUnitPrices(args: GetNiftyswapUnitPricesArgs, headers?: object, signal?: AbortSignal): Promise<GetNiftyswapUnitPricesReturn>;
|
|
230
236
|
getNiftyswapUnitPricesWithQuantities(args: GetNiftyswapUnitPricesWithQuantitiesArgs, headers?: object, signal?: AbortSignal): Promise<GetNiftyswapUnitPricesWithQuantitiesReturn>;
|
|
@@ -376,6 +382,42 @@ export interface SearchMetadataReturn {
|
|
|
376
382
|
tokenMetadata: Array<TokenMetadata>;
|
|
377
383
|
contractInfo: Array<ContractInfo>;
|
|
378
384
|
}
|
|
385
|
+
export interface AddContractsToTokenDirectoryArgs {
|
|
386
|
+
contracts: Array<ContractInfo>;
|
|
387
|
+
}
|
|
388
|
+
export interface AddContractsToTokenDirectoryReturn {
|
|
389
|
+
ok: boolean;
|
|
390
|
+
}
|
|
391
|
+
export interface RemoveContractsFromTokenDirectoryArgs {
|
|
392
|
+
chainHandle: string;
|
|
393
|
+
contracts: Array<string>;
|
|
394
|
+
}
|
|
395
|
+
export interface RemoveContractsFromTokenDirectoryReturn {
|
|
396
|
+
ok: boolean;
|
|
397
|
+
}
|
|
398
|
+
export interface ModifyFeatureIndexArgs {
|
|
399
|
+
chainHandle: string;
|
|
400
|
+
contractAddress: string;
|
|
401
|
+
featured: number;
|
|
402
|
+
}
|
|
403
|
+
export interface ModifyFeatureIndexReturn {
|
|
404
|
+
ok: boolean;
|
|
405
|
+
}
|
|
406
|
+
export interface GetFeatureIndexArgs {
|
|
407
|
+
chainHandle: string;
|
|
408
|
+
contractAddress: string;
|
|
409
|
+
}
|
|
410
|
+
export interface GetFeatureIndexReturn {
|
|
411
|
+
featured: number;
|
|
412
|
+
}
|
|
413
|
+
export interface ListTokenDirectoryArgs {
|
|
414
|
+
chainID?: string;
|
|
415
|
+
page?: Page;
|
|
416
|
+
}
|
|
417
|
+
export interface ListTokenDirectoryReturn {
|
|
418
|
+
page: Page;
|
|
419
|
+
contracts: Array<ContractInfo>;
|
|
420
|
+
}
|
|
379
421
|
export interface GetNiftyswapTokenQuantityArgs {
|
|
380
422
|
chainID: string;
|
|
381
423
|
contractAddress: string;
|
|
@@ -444,6 +486,7 @@ export interface Collections {
|
|
|
444
486
|
deleteCollection(args: DeleteCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCollectionReturn>;
|
|
445
487
|
publishCollection(args: PublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<PublishCollectionReturn>;
|
|
446
488
|
unpublishCollection(args: UnpublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UnpublishCollectionReturn>;
|
|
489
|
+
addDeployedCollectionToTokenDirectory(args: AddDeployedCollectionToTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<AddDeployedCollectionToTokenDirectoryReturn>;
|
|
447
490
|
createToken(args: CreateTokenArgs, headers?: object, signal?: AbortSignal): Promise<CreateTokenReturn>;
|
|
448
491
|
getToken(args: GetTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenReturn>;
|
|
449
492
|
listTokens(args: ListTokensArgs, headers?: object, signal?: AbortSignal): Promise<ListTokensReturn>;
|
|
@@ -505,6 +548,16 @@ export interface UnpublishCollectionArgs {
|
|
|
505
548
|
export interface UnpublishCollectionReturn {
|
|
506
549
|
collection: Collection;
|
|
507
550
|
}
|
|
551
|
+
export interface AddDeployedCollectionToTokenDirectoryArgs {
|
|
552
|
+
projectId?: number;
|
|
553
|
+
collectionId: number;
|
|
554
|
+
chainHandle: string;
|
|
555
|
+
contractAddress: string;
|
|
556
|
+
contractType: ContractType;
|
|
557
|
+
}
|
|
558
|
+
export interface AddDeployedCollectionToTokenDirectoryReturn {
|
|
559
|
+
ok: boolean;
|
|
560
|
+
}
|
|
508
561
|
export interface CreateTokenArgs {
|
|
509
562
|
projectId?: number;
|
|
510
563
|
collectionId: number;
|
|
@@ -603,6 +656,11 @@ export declare class Metadata implements Metadata {
|
|
|
603
656
|
searchContractInfo: (args: SearchContractInfoArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SearchContractInfoReturn>;
|
|
604
657
|
searchContractInfoBatch: (args: SearchContractInfoBatchArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SearchContractInfoBatchReturn>;
|
|
605
658
|
searchMetadata: (args: SearchMetadataArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SearchMetadataReturn>;
|
|
659
|
+
addContractsToTokenDirectory: (args: AddContractsToTokenDirectoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddContractsToTokenDirectoryReturn>;
|
|
660
|
+
removeContractsFromTokenDirectory: (args: RemoveContractsFromTokenDirectoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<RemoveContractsFromTokenDirectoryReturn>;
|
|
661
|
+
modifyFeatureIndex: (args: ModifyFeatureIndexArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ModifyFeatureIndexReturn>;
|
|
662
|
+
getFeatureIndex: (args: GetFeatureIndexArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetFeatureIndexReturn>;
|
|
663
|
+
listTokenDirectory: (args: ListTokenDirectoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListTokenDirectoryReturn>;
|
|
606
664
|
getNiftyswapTokenQuantity: (args: GetNiftyswapTokenQuantityArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetNiftyswapTokenQuantityReturn>;
|
|
607
665
|
getNiftyswapUnitPrices: (args: GetNiftyswapUnitPricesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetNiftyswapUnitPricesReturn>;
|
|
608
666
|
getNiftyswapUnitPricesWithQuantities: (args: GetNiftyswapUnitPricesWithQuantitiesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetNiftyswapUnitPricesWithQuantitiesReturn>;
|
|
@@ -624,6 +682,7 @@ export declare class Collections implements Collections {
|
|
|
624
682
|
deleteCollection: (args: DeleteCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteCollectionReturn>;
|
|
625
683
|
publishCollection: (args: PublishCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<PublishCollectionReturn>;
|
|
626
684
|
unpublishCollection: (args: UnpublishCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UnpublishCollectionReturn>;
|
|
685
|
+
addDeployedCollectionToTokenDirectory: (args: AddDeployedCollectionToTokenDirectoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddDeployedCollectionToTokenDirectoryReturn>;
|
|
627
686
|
createToken: (args: CreateTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<CreateTokenReturn>;
|
|
628
687
|
getToken: (args: GetTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetTokenReturn>;
|
|
629
688
|
listTokens: (args: ListTokensArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListTokensReturn>;
|
package/package.json
CHANGED
package/src/metadata.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-metadata v0.4.0
|
|
2
|
+
// sequence-metadata v0.4.0 594e38ba9f35eba08aac88087660d5f424b6dbda
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -12,7 +12,7 @@ export const WebRPCVersion = 'v1'
|
|
|
12
12
|
export const WebRPCSchemaVersion = 'v0.4.0'
|
|
13
13
|
|
|
14
14
|
// Schema hash generated from your RIDL schema
|
|
15
|
-
export const WebRPCSchemaHash = '
|
|
15
|
+
export const WebRPCSchemaHash = '594e38ba9f35eba08aac88087660d5f424b6dbda'
|
|
16
16
|
|
|
17
17
|
//
|
|
18
18
|
// Types
|
|
@@ -113,6 +113,7 @@ export interface ContractInfoExtensions {
|
|
|
113
113
|
blacklist: boolean
|
|
114
114
|
verified: boolean
|
|
115
115
|
verifiedBy: string
|
|
116
|
+
featured: boolean
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
export interface TokenMetadata {
|
|
@@ -285,6 +286,19 @@ export interface Metadata {
|
|
|
285
286
|
signal?: AbortSignal
|
|
286
287
|
): Promise<SearchContractInfoBatchReturn>
|
|
287
288
|
searchMetadata(args: SearchMetadataArgs, headers?: object, signal?: AbortSignal): Promise<SearchMetadataReturn>
|
|
289
|
+
addContractsToTokenDirectory(
|
|
290
|
+
args: AddContractsToTokenDirectoryArgs,
|
|
291
|
+
headers?: object,
|
|
292
|
+
signal?: AbortSignal
|
|
293
|
+
): Promise<AddContractsToTokenDirectoryReturn>
|
|
294
|
+
removeContractsFromTokenDirectory(
|
|
295
|
+
args: RemoveContractsFromTokenDirectoryArgs,
|
|
296
|
+
headers?: object,
|
|
297
|
+
signal?: AbortSignal
|
|
298
|
+
): Promise<RemoveContractsFromTokenDirectoryReturn>
|
|
299
|
+
modifyFeatureIndex(args: ModifyFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<ModifyFeatureIndexReturn>
|
|
300
|
+
getFeatureIndex(args: GetFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<GetFeatureIndexReturn>
|
|
301
|
+
listTokenDirectory(args: ListTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<ListTokenDirectoryReturn>
|
|
288
302
|
getNiftyswapTokenQuantity(
|
|
289
303
|
args: GetNiftyswapTokenQuantityArgs,
|
|
290
304
|
headers?: object,
|
|
@@ -468,6 +482,47 @@ export interface SearchMetadataReturn {
|
|
|
468
482
|
tokenMetadata: Array<TokenMetadata>
|
|
469
483
|
contractInfo: Array<ContractInfo>
|
|
470
484
|
}
|
|
485
|
+
export interface AddContractsToTokenDirectoryArgs {
|
|
486
|
+
contracts: Array<ContractInfo>
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export interface AddContractsToTokenDirectoryReturn {
|
|
490
|
+
ok: boolean
|
|
491
|
+
}
|
|
492
|
+
export interface RemoveContractsFromTokenDirectoryArgs {
|
|
493
|
+
chainHandle: string
|
|
494
|
+
contracts: Array<string>
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export interface RemoveContractsFromTokenDirectoryReturn {
|
|
498
|
+
ok: boolean
|
|
499
|
+
}
|
|
500
|
+
export interface ModifyFeatureIndexArgs {
|
|
501
|
+
chainHandle: string
|
|
502
|
+
contractAddress: string
|
|
503
|
+
featured: number
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export interface ModifyFeatureIndexReturn {
|
|
507
|
+
ok: boolean
|
|
508
|
+
}
|
|
509
|
+
export interface GetFeatureIndexArgs {
|
|
510
|
+
chainHandle: string
|
|
511
|
+
contractAddress: string
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export interface GetFeatureIndexReturn {
|
|
515
|
+
featured: number
|
|
516
|
+
}
|
|
517
|
+
export interface ListTokenDirectoryArgs {
|
|
518
|
+
chainID?: string
|
|
519
|
+
page?: Page
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export interface ListTokenDirectoryReturn {
|
|
523
|
+
page: Page
|
|
524
|
+
contracts: Array<ContractInfo>
|
|
525
|
+
}
|
|
471
526
|
export interface GetNiftyswapTokenQuantityArgs {
|
|
472
527
|
chainID: string
|
|
473
528
|
contractAddress: string
|
|
@@ -538,6 +593,11 @@ export interface Collections {
|
|
|
538
593
|
deleteCollection(args: DeleteCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCollectionReturn>
|
|
539
594
|
publishCollection(args: PublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<PublishCollectionReturn>
|
|
540
595
|
unpublishCollection(args: UnpublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UnpublishCollectionReturn>
|
|
596
|
+
addDeployedCollectionToTokenDirectory(
|
|
597
|
+
args: AddDeployedCollectionToTokenDirectoryArgs,
|
|
598
|
+
headers?: object,
|
|
599
|
+
signal?: AbortSignal
|
|
600
|
+
): Promise<AddDeployedCollectionToTokenDirectoryReturn>
|
|
541
601
|
createToken(args: CreateTokenArgs, headers?: object, signal?: AbortSignal): Promise<CreateTokenReturn>
|
|
542
602
|
getToken(args: GetTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenReturn>
|
|
543
603
|
listTokens(args: ListTokensArgs, headers?: object, signal?: AbortSignal): Promise<ListTokensReturn>
|
|
@@ -607,6 +667,17 @@ export interface UnpublishCollectionArgs {
|
|
|
607
667
|
export interface UnpublishCollectionReturn {
|
|
608
668
|
collection: Collection
|
|
609
669
|
}
|
|
670
|
+
export interface AddDeployedCollectionToTokenDirectoryArgs {
|
|
671
|
+
projectId?: number
|
|
672
|
+
collectionId: number
|
|
673
|
+
chainHandle: string
|
|
674
|
+
contractAddress: string
|
|
675
|
+
contractType: ContractType
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export interface AddDeployedCollectionToTokenDirectoryReturn {
|
|
679
|
+
ok: boolean
|
|
680
|
+
}
|
|
610
681
|
export interface CreateTokenArgs {
|
|
611
682
|
projectId?: number
|
|
612
683
|
collectionId: number
|
|
@@ -1023,6 +1094,98 @@ export class Metadata implements Metadata {
|
|
|
1023
1094
|
)
|
|
1024
1095
|
}
|
|
1025
1096
|
|
|
1097
|
+
addContractsToTokenDirectory = (
|
|
1098
|
+
args: AddContractsToTokenDirectoryArgs,
|
|
1099
|
+
headers?: object,
|
|
1100
|
+
signal?: AbortSignal
|
|
1101
|
+
): Promise<AddContractsToTokenDirectoryReturn> => {
|
|
1102
|
+
return this.fetch(this.url('AddContractsToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(
|
|
1103
|
+
res => {
|
|
1104
|
+
return buildResponse(res).then(_data => {
|
|
1105
|
+
return {
|
|
1106
|
+
ok: <boolean>_data.ok
|
|
1107
|
+
}
|
|
1108
|
+
})
|
|
1109
|
+
},
|
|
1110
|
+
error => {
|
|
1111
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1112
|
+
}
|
|
1113
|
+
)
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
removeContractsFromTokenDirectory = (
|
|
1117
|
+
args: RemoveContractsFromTokenDirectoryArgs,
|
|
1118
|
+
headers?: object,
|
|
1119
|
+
signal?: AbortSignal
|
|
1120
|
+
): Promise<RemoveContractsFromTokenDirectoryReturn> => {
|
|
1121
|
+
return this.fetch(this.url('RemoveContractsFromTokenDirectory'), createHTTPRequest(args, headers, signal)).then(
|
|
1122
|
+
res => {
|
|
1123
|
+
return buildResponse(res).then(_data => {
|
|
1124
|
+
return {
|
|
1125
|
+
ok: <boolean>_data.ok
|
|
1126
|
+
}
|
|
1127
|
+
})
|
|
1128
|
+
},
|
|
1129
|
+
error => {
|
|
1130
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1131
|
+
}
|
|
1132
|
+
)
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
modifyFeatureIndex = (
|
|
1136
|
+
args: ModifyFeatureIndexArgs,
|
|
1137
|
+
headers?: object,
|
|
1138
|
+
signal?: AbortSignal
|
|
1139
|
+
): Promise<ModifyFeatureIndexReturn> => {
|
|
1140
|
+
return this.fetch(this.url('ModifyFeatureIndex'), createHTTPRequest(args, headers, signal)).then(
|
|
1141
|
+
res => {
|
|
1142
|
+
return buildResponse(res).then(_data => {
|
|
1143
|
+
return {
|
|
1144
|
+
ok: <boolean>_data.ok
|
|
1145
|
+
}
|
|
1146
|
+
})
|
|
1147
|
+
},
|
|
1148
|
+
error => {
|
|
1149
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1150
|
+
}
|
|
1151
|
+
)
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
getFeatureIndex = (args: GetFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<GetFeatureIndexReturn> => {
|
|
1155
|
+
return this.fetch(this.url('GetFeatureIndex'), createHTTPRequest(args, headers, signal)).then(
|
|
1156
|
+
res => {
|
|
1157
|
+
return buildResponse(res).then(_data => {
|
|
1158
|
+
return {
|
|
1159
|
+
featured: <number>_data.featured
|
|
1160
|
+
}
|
|
1161
|
+
})
|
|
1162
|
+
},
|
|
1163
|
+
error => {
|
|
1164
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1165
|
+
}
|
|
1166
|
+
)
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
listTokenDirectory = (
|
|
1170
|
+
args: ListTokenDirectoryArgs,
|
|
1171
|
+
headers?: object,
|
|
1172
|
+
signal?: AbortSignal
|
|
1173
|
+
): Promise<ListTokenDirectoryReturn> => {
|
|
1174
|
+
return this.fetch(this.url('ListTokenDirectory'), createHTTPRequest(args, headers, signal)).then(
|
|
1175
|
+
res => {
|
|
1176
|
+
return buildResponse(res).then(_data => {
|
|
1177
|
+
return {
|
|
1178
|
+
page: <Page>_data.page,
|
|
1179
|
+
contracts: <Array<ContractInfo>>_data.contracts
|
|
1180
|
+
}
|
|
1181
|
+
})
|
|
1182
|
+
},
|
|
1183
|
+
error => {
|
|
1184
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1185
|
+
}
|
|
1186
|
+
)
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1026
1189
|
getNiftyswapTokenQuantity = (
|
|
1027
1190
|
args: GetNiftyswapTokenQuantityArgs,
|
|
1028
1191
|
headers?: object,
|
|
@@ -1280,6 +1443,25 @@ export class Collections implements Collections {
|
|
|
1280
1443
|
)
|
|
1281
1444
|
}
|
|
1282
1445
|
|
|
1446
|
+
addDeployedCollectionToTokenDirectory = (
|
|
1447
|
+
args: AddDeployedCollectionToTokenDirectoryArgs,
|
|
1448
|
+
headers?: object,
|
|
1449
|
+
signal?: AbortSignal
|
|
1450
|
+
): Promise<AddDeployedCollectionToTokenDirectoryReturn> => {
|
|
1451
|
+
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(
|
|
1452
|
+
res => {
|
|
1453
|
+
return buildResponse(res).then(_data => {
|
|
1454
|
+
return {
|
|
1455
|
+
ok: <boolean>_data.ok
|
|
1456
|
+
}
|
|
1457
|
+
})
|
|
1458
|
+
},
|
|
1459
|
+
error => {
|
|
1460
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1461
|
+
}
|
|
1462
|
+
)
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1283
1465
|
createToken = (args: CreateTokenArgs, headers?: object, signal?: AbortSignal): Promise<CreateTokenReturn> => {
|
|
1284
1466
|
return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(
|
|
1285
1467
|
res => {
|