@0xsequence/metadata
Advanced tools
Comparing version 1.10.5 to 1.10.6
@@ -21,3 +21,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-metadata v0.4.0 16b30ae85e42fc4c25342f7c43e04d7070597f21 | ||
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d | ||
// -- | ||
@@ -35,3 +35,3 @@ // Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT. | ||
// Schema hash generated from your RIDL schema | ||
const WebRPCSchemaHash = '16b30ae85e42fc4c25342f7c43e04d7070597f21'; | ||
const WebRPCSchemaHash = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d'; | ||
@@ -621,15 +621,2 @@ // | ||
}; | ||
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => { | ||
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.createToken = (args, headers, signal) => { | ||
@@ -824,3 +811,3 @@ return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
page: _data.page, | ||
contracts: _data.contracts | ||
collections: _data.collections | ||
}; | ||
@@ -834,2 +821,29 @@ }); | ||
}; | ||
this.linkCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('LinkCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.listLinkedContracts = (args, headers, signal) => { | ||
return this.fetch(this.url('ListLinkedContracts'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
collections: _data.collections, | ||
page: _data.page | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.hostname = hostname; | ||
@@ -836,0 +850,0 @@ this.fetch = (input, init) => fetch(input, init); |
@@ -21,3 +21,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-metadata v0.4.0 16b30ae85e42fc4c25342f7c43e04d7070597f21 | ||
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d | ||
// -- | ||
@@ -35,3 +35,3 @@ // Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT. | ||
// Schema hash generated from your RIDL schema | ||
const WebRPCSchemaHash = '16b30ae85e42fc4c25342f7c43e04d7070597f21'; | ||
const WebRPCSchemaHash = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d'; | ||
@@ -621,15 +621,2 @@ // | ||
}; | ||
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => { | ||
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.createToken = (args, headers, signal) => { | ||
@@ -824,3 +811,3 @@ return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
page: _data.page, | ||
contracts: _data.contracts | ||
collections: _data.collections | ||
}; | ||
@@ -834,2 +821,29 @@ }); | ||
}; | ||
this.linkCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('LinkCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.listLinkedContracts = (args, headers, signal) => { | ||
return this.fetch(this.url('ListLinkedContracts'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
collections: _data.collections, | ||
page: _data.page | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.hostname = hostname; | ||
@@ -836,0 +850,0 @@ this.fetch = (input, init) => fetch(input, init); |
@@ -17,3 +17,3 @@ function _extends() { | ||
/* eslint-disable */ | ||
// sequence-metadata v0.4.0 16b30ae85e42fc4c25342f7c43e04d7070597f21 | ||
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d | ||
// -- | ||
@@ -31,3 +31,3 @@ // Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT. | ||
// Schema hash generated from your RIDL schema | ||
const WebRPCSchemaHash = '16b30ae85e42fc4c25342f7c43e04d7070597f21'; | ||
const WebRPCSchemaHash = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d'; | ||
@@ -617,15 +617,2 @@ // | ||
}; | ||
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => { | ||
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.createToken = (args, headers, signal) => { | ||
@@ -820,3 +807,3 @@ return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
page: _data.page, | ||
contracts: _data.contracts | ||
collections: _data.collections | ||
}; | ||
@@ -830,2 +817,29 @@ }); | ||
}; | ||
this.linkCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('LinkCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.listLinkedContracts = (args, headers, signal) => { | ||
return this.fetch(this.url('ListLinkedContracts'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
collections: _data.collections, | ||
page: _data.page | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.hostname = hostname; | ||
@@ -832,0 +846,0 @@ this.fetch = (input, init) => fetch(input, init); |
export declare const WebRPCVersion = "v1"; | ||
export declare const WebRPCSchemaVersion = "v0.4.0"; | ||
export declare const WebRPCSchemaHash = "16b30ae85e42fc4c25342f7c43e04d7070597f21"; | ||
export declare const WebRPCSchemaHash = "d5ad7dcea438ee205efb2a08dcfde61c2226625d"; | ||
export declare enum ContractType { | ||
@@ -523,3 +523,2 @@ UNKNOWN = "UNKNOWN", | ||
unpublishCollection(args: UnpublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UnpublishCollectionReturn>; | ||
addDeployedCollectionToTokenDirectory(args: AddDeployedCollectionToTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<AddDeployedCollectionToTokenDirectoryReturn>; | ||
createToken(args: CreateTokenArgs, headers?: object, signal?: AbortSignal): Promise<CreateTokenReturn>; | ||
@@ -586,13 +585,2 @@ getToken(args: GetTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenReturn>; | ||
} | ||
export interface AddDeployedCollectionToTokenDirectoryArgs { | ||
projectId?: number; | ||
collectionId: number; | ||
chainHandle: string; | ||
contractAddress: string; | ||
contractType: ContractType; | ||
featured: number; | ||
} | ||
export interface AddDeployedCollectionToTokenDirectoryReturn { | ||
ok: boolean; | ||
} | ||
export interface CreateTokenArgs { | ||
@@ -678,2 +666,4 @@ projectId?: number; | ||
listTokenDirectory(args: ListTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<ListTokenDirectoryReturn>; | ||
linkCollection(args: LinkCollectionArgs, headers?: object, signal?: AbortSignal): Promise<LinkCollectionReturn>; | ||
listLinkedContracts(args: ListLinkedContractsArgs, headers?: object, signal?: AbortSignal): Promise<ListLinkedContractsReturn>; | ||
} | ||
@@ -710,3 +700,5 @@ export interface AddContractsToTokenDirectoryArgs { | ||
export interface ListTokenDirectoryArgs { | ||
chainID?: string; | ||
chainID?: number; | ||
includeTestnets?: boolean; | ||
onlyFeatured?: boolean; | ||
page?: Page; | ||
@@ -716,4 +708,22 @@ } | ||
page: Page; | ||
contracts: Array<ContractInfo>; | ||
collections: Array<ContractInfo>; | ||
} | ||
export interface LinkCollectionArgs { | ||
projectId: number; | ||
chainID: number; | ||
contractAddress: string; | ||
collectionId?: number; | ||
} | ||
export interface LinkCollectionReturn { | ||
ok: boolean; | ||
} | ||
export interface ListLinkedContractsArgs { | ||
projectId: number; | ||
collectionId?: number; | ||
page?: Page; | ||
} | ||
export interface ListLinkedContractsReturn { | ||
collections: Array<ContractIndex>; | ||
page: Page; | ||
} | ||
export declare class Metadata implements Metadata { | ||
@@ -772,3 +782,2 @@ protected hostname: string; | ||
unpublishCollection: (args: UnpublishCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UnpublishCollectionReturn>; | ||
addDeployedCollectionToTokenDirectory: (args: AddDeployedCollectionToTokenDirectoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddDeployedCollectionToTokenDirectoryReturn>; | ||
createToken: (args: CreateTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<CreateTokenReturn>; | ||
@@ -795,2 +804,4 @@ getToken: (args: GetTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetTokenReturn>; | ||
listTokenDirectory: (args: ListTokenDirectoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListTokenDirectoryReturn>; | ||
linkCollection: (args: LinkCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<LinkCollectionReturn>; | ||
listLinkedContracts: (args: ListLinkedContractsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListLinkedContractsReturn>; | ||
} | ||
@@ -797,0 +808,0 @@ export declare class WebrpcError extends Error { |
{ | ||
"name": "@0xsequence/metadata", | ||
"version": "1.10.5", | ||
"version": "1.10.6", | ||
"description": "metadata sub-package for Sequence", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/metadata", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
250502
6802