Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/metadata

Package Overview
Dependencies
Maintainers
5
Versions
430
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/metadata - npm Package Compare versions

Comparing version 0.0.0-20220413180329 to 0.0.0-20220418165517

44

dist/0xsequence-metadata.cjs.dev.js

@@ -30,3 +30,3 @@ 'use strict';

/* eslint-disable */
// sequence-metadata v0.4.0 376fc6f21f770a4d0457a039d13b6aca6d174e3f
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
// --

@@ -40,17 +40,6 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "376fc6f21f770a4d0457a039d13b6aca6d174e3f"; //
const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"; //
// Types
//
exports.ContractType = void 0;
(function (ContractType) {
ContractType["ERC20"] = "ERC20";
ContractType["ContractURI"] = "ContractURI";
ContractType["OpenSea"] = "OpenSea";
ContractType["ERC1155"] = "ERC1155";
ContractType["ERC721"] = "ERC721";
ContractType["UNKNOWN"] = "UNKNOWN";
})(exports.ContractType || (exports.ContractType = {}));
exports.SwapType = void 0;

@@ -64,9 +53,2 @@

exports.SortOrder = void 0;
(function (SortOrder) {
SortOrder["DESC"] = "DESC";
SortOrder["ASC"] = "ASC";
})(exports.SortOrder || (exports.SortOrder = {}));
//

@@ -131,24 +113,2 @@ // Client

this.searchTokenMetadata = (args, headers) => {
return this.fetch(this.url('SearchTokenMetadata'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
tokenMetadata: _data.tokenMetadata
};
});
});
};
this.searchTokenIDs = (args, headers) => {
return this.fetch(this.url('SearchTokenIDs'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
tokenIds: _data.tokenIds
};
});
});
};
this.getContractInfo = (args, headers) => {

@@ -155,0 +115,0 @@ return this.fetch(this.url('GetContractInfo'), createHTTPRequest(args, headers)).then(res => {

@@ -30,3 +30,3 @@ 'use strict';

/* eslint-disable */
// sequence-metadata v0.4.0 376fc6f21f770a4d0457a039d13b6aca6d174e3f
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
// --

@@ -40,17 +40,6 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "376fc6f21f770a4d0457a039d13b6aca6d174e3f"; //
const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"; //
// Types
//
exports.ContractType = void 0;
(function (ContractType) {
ContractType["ERC20"] = "ERC20";
ContractType["ContractURI"] = "ContractURI";
ContractType["OpenSea"] = "OpenSea";
ContractType["ERC1155"] = "ERC1155";
ContractType["ERC721"] = "ERC721";
ContractType["UNKNOWN"] = "UNKNOWN";
})(exports.ContractType || (exports.ContractType = {}));
exports.SwapType = void 0;

@@ -64,9 +53,2 @@

exports.SortOrder = void 0;
(function (SortOrder) {
SortOrder["DESC"] = "DESC";
SortOrder["ASC"] = "ASC";
})(exports.SortOrder || (exports.SortOrder = {}));
//

@@ -131,24 +113,2 @@ // Client

this.searchTokenMetadata = (args, headers) => {
return this.fetch(this.url('SearchTokenMetadata'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
tokenMetadata: _data.tokenMetadata
};
});
});
};
this.searchTokenIDs = (args, headers) => {
return this.fetch(this.url('SearchTokenIDs'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
tokenIds: _data.tokenIds
};
});
});
};
this.getContractInfo = (args, headers) => {

@@ -155,0 +115,0 @@ return this.fetch(this.url('GetContractInfo'), createHTTPRequest(args, headers)).then(res => {

@@ -22,3 +22,3 @@ import fetch from 'cross-fetch';

/* eslint-disable */
// sequence-metadata v0.4.0 376fc6f21f770a4d0457a039d13b6aca6d174e3f
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
// --

@@ -32,17 +32,6 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "376fc6f21f770a4d0457a039d13b6aca6d174e3f"; //
const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"; //
// Types
//
let ContractType;
(function (ContractType) {
ContractType["ERC20"] = "ERC20";
ContractType["ContractURI"] = "ContractURI";
ContractType["OpenSea"] = "OpenSea";
ContractType["ERC1155"] = "ERC1155";
ContractType["ERC721"] = "ERC721";
ContractType["UNKNOWN"] = "UNKNOWN";
})(ContractType || (ContractType = {}));
let SwapType;

@@ -56,9 +45,2 @@

let SortOrder;
(function (SortOrder) {
SortOrder["DESC"] = "DESC";
SortOrder["ASC"] = "ASC";
})(SortOrder || (SortOrder = {}));
//

@@ -123,24 +105,2 @@ // Client

this.searchTokenMetadata = (args, headers) => {
return this.fetch(this.url('SearchTokenMetadata'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
tokenMetadata: _data.tokenMetadata
};
});
});
};
this.searchTokenIDs = (args, headers) => {
return this.fetch(this.url('SearchTokenIDs'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
tokenIds: _data.tokenIds
};
});
});
};
this.getContractInfo = (args, headers) => {

@@ -255,2 +215,2 @@ return this.fetch(this.url('GetContractInfo'), createHTTPRequest(args, headers)).then(res => {

export { ContractType, Metadata, SequenceMetadataClient, SortOrder, SwapType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
export { Metadata, SequenceMetadataClient, SwapType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
export declare const WebRPCVersion = "v1";
export declare const WebRPCSchemaVersion = "v0.4.0";
export declare const WebRPCSchemaHash = "376fc6f21f770a4d0457a039d13b6aca6d174e3f";
export declare enum ContractType {
ERC20 = "ERC20",
ContractURI = "ContractURI",
OpenSea = "OpenSea",
ERC1155 = "ERC1155",
ERC721 = "ERC721",
UNKNOWN = "UNKNOWN"
}
export declare const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767";
export declare enum SwapType {

@@ -17,6 +9,2 @@ UNKNOWN = "UNKNOWN",

}
export declare enum SortOrder {
DESC = "DESC",
ASC = "ASC"
}
export interface Version {

@@ -39,10 +27,2 @@ webrpcVersion: string;

}
export interface ContractIndex {
chainId: string;
address: string;
type: ContractType;
metadata: {
[key: string]: any;
};
}
export interface ContractInfo {

@@ -66,10 +46,2 @@ chainId: number;

}
export interface TokenIndex {
chainId: string;
contractAddress: string;
tokenId: string;
metadata: {
[key: string]: any;
};
}
export interface TokenMetadata {

@@ -100,10 +72,2 @@ tokenId: string;

}
export interface Page {
pageSize?: number;
page?: number;
}
export interface SortBy {
column: string;
order: SortOrder;
}
export interface Metadata {

@@ -115,4 +79,2 @@ ping(headers?: object): Promise<PingReturn>;

getTokenMetadataBatch(args: GetTokenMetadataBatchArgs, headers?: object): Promise<GetTokenMetadataBatchReturn>;
searchTokenMetadata(args: SearchTokenMetadataArgs, headers?: object): Promise<SearchTokenMetadataReturn>;
searchTokenIDs(args: SearchTokenIDsArgs, headers?: object): Promise<SearchTokenIDsReturn>;
getContractInfo(args: GetContractInfoArgs, headers?: object): Promise<GetContractInfoReturn>;

@@ -159,22 +121,2 @@ getContractInfoBatch(args: GetContractInfoBatchArgs, headers?: object): Promise<GetContractInfoBatchReturn>;

}
export interface SearchTokenMetadataArgs {
chainID: string;
contractAddress: string;
filter: string;
page?: Page;
}
export interface SearchTokenMetadataReturn {
page: Page;
tokenMetadata: Array<TokenMetadata>;
}
export interface SearchTokenIDsArgs {
chainID: string;
contractAddress: string;
filter: string;
page?: Page;
}
export interface SearchTokenIDsReturn {
page: Page;
tokenIds: Array<string>;
}
export interface GetContractInfoArgs {

@@ -241,4 +183,2 @@ chainID: string;

getTokenMetadataBatch: (args: GetTokenMetadataBatchArgs, headers?: object | undefined) => Promise<GetTokenMetadataBatchReturn>;
searchTokenMetadata: (args: SearchTokenMetadataArgs, headers?: object | undefined) => Promise<SearchTokenMetadataReturn>;
searchTokenIDs: (args: SearchTokenIDsArgs, headers?: object | undefined) => Promise<SearchTokenIDsReturn>;
getContractInfo: (args: GetContractInfoArgs, headers?: object | undefined) => Promise<GetContractInfoReturn>;

@@ -245,0 +185,0 @@ getContractInfoBatch: (args: GetContractInfoBatchArgs, headers?: object | undefined) => Promise<GetContractInfoBatchReturn>;

2

package.json
{
"name": "@0xsequence/metadata",
"version": "0.0.0-20220413180329",
"version": "0.0.0-20220418165517",
"description": "metadata sub-package for Sequence",

@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/metadata",

/* eslint-disable */
// sequence-metadata v0.4.0 376fc6f21f770a4d0457a039d13b6aca6d174e3f
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
// --

@@ -14,3 +14,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = "376fc6f21f770a4d0457a039d13b6aca6d174e3f"
export const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"

@@ -21,11 +21,2 @@

//
export enum ContractType {
ERC20 = 'ERC20',
ContractURI = 'ContractURI',
OpenSea = 'OpenSea',
ERC1155 = 'ERC1155',
ERC721 = 'ERC721',
UNKNOWN = 'UNKNOWN'
}
export enum SwapType {

@@ -37,7 +28,2 @@ UNKNOWN = 'UNKNOWN',

export enum SortOrder {
DESC = 'DESC',
ASC = 'ASC'
}
export interface Version {

@@ -63,9 +49,2 @@ webrpcVersion: string

export interface ContractIndex {
chainId: string
address: string
type: ContractType
metadata: {[key: string]: any}
}
export interface ContractInfo {

@@ -91,10 +70,2 @@ chainId: number

export interface TokenIndex {
chainId: string
contractAddress: string
tokenId: string
metadata: {[key: string]: any}
}
export interface TokenMetadata {

@@ -123,12 +94,2 @@ tokenId: string

export interface Page {
pageSize?: number
page?: number
}
export interface SortBy {
column: string
order: SortOrder
}
export interface Metadata {

@@ -140,4 +101,2 @@ ping(headers?: object): Promise<PingReturn>

getTokenMetadataBatch(args: GetTokenMetadataBatchArgs, headers?: object): Promise<GetTokenMetadataBatchReturn>
searchTokenMetadata(args: SearchTokenMetadataArgs, headers?: object): Promise<SearchTokenMetadataReturn>
searchTokenIDs(args: SearchTokenIDsArgs, headers?: object): Promise<SearchTokenIDsReturn>
getContractInfo(args: GetContractInfoArgs, headers?: object): Promise<GetContractInfoReturn>

@@ -186,24 +145,2 @@ getContractInfoBatch(args: GetContractInfoBatchArgs, headers?: object): Promise<GetContractInfoBatchReturn>

}
export interface SearchTokenMetadataArgs {
chainID: string
contractAddress: string
filter: string
page?: Page
}
export interface SearchTokenMetadataReturn {
page: Page
tokenMetadata: Array<TokenMetadata>
}
export interface SearchTokenIDsArgs {
chainID: string
contractAddress: string
filter: string
page?: Page
}
export interface SearchTokenIDsReturn {
page: Page
tokenIds: Array<string>
}
export interface GetContractInfoArgs {

@@ -340,28 +277,2 @@ chainID: string

searchTokenMetadata = (args: SearchTokenMetadataArgs, headers?: object): Promise<SearchTokenMetadataReturn> => {
return this.fetch(
this.url('SearchTokenMetadata'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
tokenMetadata: <Array<TokenMetadata>>(_data.tokenMetadata)
}
})
})
}
searchTokenIDs = (args: SearchTokenIDsArgs, headers?: object): Promise<SearchTokenIDsReturn> => {
return this.fetch(
this.url('SearchTokenIDs'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
tokenIds: <Array<string>>(_data.tokenIds)
}
})
})
}
getContractInfo = (args: GetContractInfoArgs, headers?: object): Promise<GetContractInfoReturn> => {

@@ -471,2 +382,2 @@ return this.fetch(

export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>
export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc