New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/metadata

Package Overview
Dependencies
Maintainers
5
Versions
459
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.38.0 to 0.38.1

42

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

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

/* eslint-disable */
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
// sequence-metadata v0.4.0 3f6b0f4aa1a7b58488e9399c277fc17995d74f5a
// --

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

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

@@ -53,2 +62,9 @@

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

@@ -113,2 +129,24 @@ // 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) => {

@@ -115,0 +153,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 eaaa99d70565871556a53333df1c49d28c8be767
// sequence-metadata v0.4.0 3f6b0f4aa1a7b58488e9399c277fc17995d74f5a
// --

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

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

@@ -53,2 +62,9 @@

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

@@ -113,2 +129,24 @@ // 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) => {

@@ -115,0 +153,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 eaaa99d70565871556a53333df1c49d28c8be767
// sequence-metadata v0.4.0 3f6b0f4aa1a7b58488e9399c277fc17995d74f5a
// --

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

const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"; //
const WebRPCSchemaHash = "3f6b0f4aa1a7b58488e9399c277fc17995d74f5a"; //
// Types
//
let ContractType;
(function (ContractType) {
ContractType["UNKNOWN"] = "UNKNOWN";
ContractType["ERC20"] = "ERC20";
ContractType["ERC721"] = "ERC721";
ContractType["ERC1155"] = "ERC1155";
})(ContractType || (ContractType = {}));
let SwapType;

@@ -45,2 +54,9 @@

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

@@ -105,2 +121,24 @@ // 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) => {

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

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

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

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

@@ -27,2 +37,18 @@ webrpcVersion: string;

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

@@ -71,2 +97,10 @@ chainId: number;

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

@@ -78,2 +112,4 @@ 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>;

@@ -120,2 +156,22 @@ 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 {

@@ -182,2 +238,4 @@ 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>;

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

2

package.json
{
"name": "@0xsequence/metadata",
"version": "0.38.0",
"version": "0.38.1",
"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 eaaa99d70565871556a53333df1c49d28c8be767
// sequence-metadata v0.4.0 3f6b0f4aa1a7b58488e9399c277fc17995d74f5a
// --

@@ -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 = "eaaa99d70565871556a53333df1c49d28c8be767"
export const WebRPCSchemaHash = "3f6b0f4aa1a7b58488e9399c277fc17995d74f5a"

@@ -21,2 +21,9 @@

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

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

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

@@ -49,2 +61,17 @@ webrpcVersion: string

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

@@ -93,2 +120,12 @@ chainId: number

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

@@ -100,2 +137,4 @@ 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>

@@ -144,2 +183,24 @@ 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 {

@@ -276,2 +337,28 @@ 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> => {

@@ -278,0 +365,0 @@ return this.fetch(

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