@0xsequence/metadata
Advanced tools
Comparing version 1.10.9 to 1.10.10
@@ -21,3 +21,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d | ||
// sequence-metadata v0.4.0 7c434e9c7faba707ea4d030621fb145e47531281 | ||
// -- | ||
@@ -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 = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d'; | ||
const WebRPCSchemaHash = '7c434e9c7faba707ea4d030621fb145e47531281'; | ||
@@ -621,2 +621,68 @@ // | ||
}; | ||
this.createContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('CreateContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollection: _data.contractCollection | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('GetContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollection: _data.contractCollection | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.listContractCollections = (args, headers, signal) => { | ||
return this.fetch(this.url('ListContractCollections'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollections: _data.contractCollections, | ||
page: _data.page | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.updateContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('UpdateContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.deleteContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('DeleteContractCollection'), 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,29 +886,2 @@ return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
}; | ||
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; | ||
@@ -849,0 +888,0 @@ this.fetch = (input, init) => fetch(input, init); |
@@ -21,3 +21,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d | ||
// sequence-metadata v0.4.0 7c434e9c7faba707ea4d030621fb145e47531281 | ||
// -- | ||
@@ -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 = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d'; | ||
const WebRPCSchemaHash = '7c434e9c7faba707ea4d030621fb145e47531281'; | ||
@@ -621,2 +621,68 @@ // | ||
}; | ||
this.createContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('CreateContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollection: _data.contractCollection | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('GetContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollection: _data.contractCollection | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.listContractCollections = (args, headers, signal) => { | ||
return this.fetch(this.url('ListContractCollections'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollections: _data.contractCollections, | ||
page: _data.page | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.updateContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('UpdateContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.deleteContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('DeleteContractCollection'), 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,29 +886,2 @@ return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
}; | ||
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; | ||
@@ -849,0 +888,0 @@ this.fetch = (input, init) => fetch(input, init); |
@@ -17,3 +17,3 @@ function _extends() { | ||
/* eslint-disable */ | ||
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d | ||
// sequence-metadata v0.4.0 7c434e9c7faba707ea4d030621fb145e47531281 | ||
// -- | ||
@@ -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 = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d'; | ||
const WebRPCSchemaHash = '7c434e9c7faba707ea4d030621fb145e47531281'; | ||
@@ -617,2 +617,68 @@ // | ||
}; | ||
this.createContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('CreateContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollection: _data.contractCollection | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('GetContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollection: _data.contractCollection | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.listContractCollections = (args, headers, signal) => { | ||
return this.fetch(this.url('ListContractCollections'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
contractCollections: _data.contractCollections, | ||
page: _data.page | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.updateContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('UpdateContractCollection'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.deleteContractCollection = (args, headers, signal) => { | ||
return this.fetch(this.url('DeleteContractCollection'), 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) => { | ||
@@ -816,29 +882,2 @@ return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
}; | ||
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; | ||
@@ -845,0 +884,0 @@ this.fetch = (input, init) => fetch(input, init); |
export declare const WebRPCVersion = "v1"; | ||
export declare const WebRPCSchemaVersion = "v0.4.0"; | ||
export declare const WebRPCSchemaHash = "d5ad7dcea438ee205efb2a08dcfde61c2226625d"; | ||
export declare const WebRPCSchemaHash = "7c434e9c7faba707ea4d030621fb145e47531281"; | ||
export declare enum ContractType { | ||
@@ -46,3 +46,2 @@ UNKNOWN = "UNKNOWN", | ||
export interface ContractIndex { | ||
collectionId?: number; | ||
chainId: number; | ||
@@ -157,2 +156,8 @@ address: string; | ||
} | ||
export interface ContractCollection { | ||
id: number; | ||
chainId: number; | ||
contractAddress: string; | ||
collectionId: number; | ||
} | ||
export interface Asset { | ||
@@ -526,2 +531,7 @@ id: number; | ||
unpublishCollection(args: UnpublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UnpublishCollectionReturn>; | ||
createContractCollection(args: CreateContractCollectionArgs, headers?: object, signal?: AbortSignal): Promise<CreateContractCollectionReturn>; | ||
getContractCollection(args: GetContractCollectionArgs, headers?: object, signal?: AbortSignal): Promise<GetContractCollectionReturn>; | ||
listContractCollections(args: ListContractCollectionsArgs, headers?: object, signal?: AbortSignal): Promise<ListContractCollectionsReturn>; | ||
updateContractCollection(args: UpdateContractCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UpdateContractCollectionReturn>; | ||
deleteContractCollection(args: DeleteContractCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteContractCollectionReturn>; | ||
createToken(args: CreateTokenArgs, headers?: object, signal?: AbortSignal): Promise<CreateTokenReturn>; | ||
@@ -588,2 +598,41 @@ getToken(args: GetTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenReturn>; | ||
} | ||
export interface CreateContractCollectionArgs { | ||
projectId: number; | ||
contractCollection: ContractCollection; | ||
} | ||
export interface CreateContractCollectionReturn { | ||
contractCollection: ContractCollection; | ||
} | ||
export interface GetContractCollectionArgs { | ||
projectId: number; | ||
chainId: number; | ||
contractAddress: string; | ||
} | ||
export interface GetContractCollectionReturn { | ||
contractCollection: ContractCollection; | ||
} | ||
export interface ListContractCollectionsArgs { | ||
projectId: number; | ||
collectionId?: number; | ||
page?: Page; | ||
} | ||
export interface ListContractCollectionsReturn { | ||
contractCollections: Array<ContractCollection>; | ||
page: Page; | ||
} | ||
export interface UpdateContractCollectionArgs { | ||
projectId: number; | ||
contractCollection: ContractCollection; | ||
} | ||
export interface UpdateContractCollectionReturn { | ||
ok: boolean; | ||
} | ||
export interface DeleteContractCollectionArgs { | ||
projectId: number; | ||
chainId: number; | ||
contractAddress: string; | ||
} | ||
export interface DeleteContractCollectionReturn { | ||
ok: boolean; | ||
} | ||
export interface CreateTokenArgs { | ||
@@ -669,4 +718,2 @@ 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>; | ||
} | ||
@@ -712,20 +759,2 @@ export interface AddContractsToTokenDirectoryArgs { | ||
} | ||
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 { | ||
@@ -784,2 +813,7 @@ protected hostname: string; | ||
unpublishCollection: (args: UnpublishCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UnpublishCollectionReturn>; | ||
createContractCollection: (args: CreateContractCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<CreateContractCollectionReturn>; | ||
getContractCollection: (args: GetContractCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetContractCollectionReturn>; | ||
listContractCollections: (args: ListContractCollectionsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListContractCollectionsReturn>; | ||
updateContractCollection: (args: UpdateContractCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateContractCollectionReturn>; | ||
deleteContractCollection: (args: DeleteContractCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteContractCollectionReturn>; | ||
createToken: (args: CreateTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<CreateTokenReturn>; | ||
@@ -806,4 +840,2 @@ 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>; | ||
} | ||
@@ -810,0 +842,0 @@ export declare class WebrpcError extends Error { |
{ | ||
"name": "@0xsequence/metadata", | ||
"version": "1.10.9", | ||
"version": "1.10.10", | ||
"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
259716
7060