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

@0xsequence/indexer

Package Overview
Dependencies
Maintainers
7
Versions
455
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/indexer - npm Package Compare versions

Comparing version 0.0.0-20240408185635 to 0.0.0-20240427232558

34

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

@@ -21,5 +21,5 @@ 'use strict';

/* eslint-disable */
// sequence-indexer v0.4.0 b53b368f85445da25796f8cc90459c61425c13f4
// sequence-indexer v0.4.0 83530970d81179658f6546c87fc4352280dbd287
// --
// Code generated by webrpc-gen@v0.12.x-dev with typescript@v0.10.0 generator. DO NOT EDIT.
// Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
//

@@ -35,3 +35,3 @@ // webrpc-gen -schema=indexer.ridl -target=typescript@v0.10.0 -client -out=./clients/indexer.gen.ts

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = 'b53b368f85445da25796f8cc90459c61425c13f4';
const WebRPCSchemaHash = '83530970d81179658f6546c87fc4352280dbd287';

@@ -44,2 +44,3 @@ //

ContractType["UNKNOWN"] = "UNKNOWN";
ContractType["NATIVE"] = "NATIVE";
ContractType["ERC20"] = "ERC20";

@@ -52,2 +53,3 @@ ContractType["ERC721"] = "ERC721";

ContractType["ERC1155_BRIDGE"] = "ERC1155_BRIDGE";
ContractType["SEQ_MARKETPLACE"] = "SEQ_MARKETPLACE";
return ContractType;

@@ -68,2 +70,8 @@ }({});

}({});
let OrderStatus = /*#__PURE__*/function (OrderStatus) {
OrderStatus["OPEN"] = "OPEN";
OrderStatus["CLOSED"] = "CLOSED";
OrderStatus["CANCELLED"] = "CANCELLED";
return OrderStatus;
}({});
let TxnTransferType = /*#__PURE__*/function (TxnTransferType) {

@@ -210,2 +218,21 @@ TxnTransferType["UNKNOWN"] = "UNKNOWN";

};
this.getOrderbookOrders = (args, headers) => {
return this.fetch(this.url('GetOrderbookOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.getTopOrders = (args, headers) => {
return this.fetch(this.url('GetTopOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
orders: _data.orders
};
});
});
};
this.fetchTransactionReceiptWithFilter = (args, headers) => {

@@ -332,2 +359,3 @@ return this.fetch(this.url('FetchTransactionReceiptWithFilter'), createHTTPRequest(args, headers)).then(res => {

exports.Indexer = Indexer;
exports.OrderStatus = OrderStatus;
exports.SequenceIndexer = SequenceIndexer;

@@ -334,0 +362,0 @@ exports.SortOrder = SortOrder;

@@ -21,5 +21,5 @@ 'use strict';

/* eslint-disable */
// sequence-indexer v0.4.0 b53b368f85445da25796f8cc90459c61425c13f4
// sequence-indexer v0.4.0 83530970d81179658f6546c87fc4352280dbd287
// --
// Code generated by webrpc-gen@v0.12.x-dev with typescript@v0.10.0 generator. DO NOT EDIT.
// Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
//

@@ -35,3 +35,3 @@ // webrpc-gen -schema=indexer.ridl -target=typescript@v0.10.0 -client -out=./clients/indexer.gen.ts

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = 'b53b368f85445da25796f8cc90459c61425c13f4';
const WebRPCSchemaHash = '83530970d81179658f6546c87fc4352280dbd287';

@@ -44,2 +44,3 @@ //

ContractType["UNKNOWN"] = "UNKNOWN";
ContractType["NATIVE"] = "NATIVE";
ContractType["ERC20"] = "ERC20";

@@ -52,2 +53,3 @@ ContractType["ERC721"] = "ERC721";

ContractType["ERC1155_BRIDGE"] = "ERC1155_BRIDGE";
ContractType["SEQ_MARKETPLACE"] = "SEQ_MARKETPLACE";
return ContractType;

@@ -68,2 +70,8 @@ }({});

}({});
let OrderStatus = /*#__PURE__*/function (OrderStatus) {
OrderStatus["OPEN"] = "OPEN";
OrderStatus["CLOSED"] = "CLOSED";
OrderStatus["CANCELLED"] = "CANCELLED";
return OrderStatus;
}({});
let TxnTransferType = /*#__PURE__*/function (TxnTransferType) {

@@ -210,2 +218,21 @@ TxnTransferType["UNKNOWN"] = "UNKNOWN";

};
this.getOrderbookOrders = (args, headers) => {
return this.fetch(this.url('GetOrderbookOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.getTopOrders = (args, headers) => {
return this.fetch(this.url('GetTopOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
orders: _data.orders
};
});
});
};
this.fetchTransactionReceiptWithFilter = (args, headers) => {

@@ -332,2 +359,3 @@ return this.fetch(this.url('FetchTransactionReceiptWithFilter'), createHTTPRequest(args, headers)).then(res => {

exports.Indexer = Indexer;
exports.OrderStatus = OrderStatus;
exports.SequenceIndexer = SequenceIndexer;

@@ -334,0 +362,0 @@ exports.SortOrder = SortOrder;

@@ -17,5 +17,5 @@ function _extends() {

/* eslint-disable */
// sequence-indexer v0.4.0 b53b368f85445da25796f8cc90459c61425c13f4
// sequence-indexer v0.4.0 83530970d81179658f6546c87fc4352280dbd287
// --
// Code generated by webrpc-gen@v0.12.x-dev with typescript@v0.10.0 generator. DO NOT EDIT.
// Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
//

@@ -31,3 +31,3 @@ // webrpc-gen -schema=indexer.ridl -target=typescript@v0.10.0 -client -out=./clients/indexer.gen.ts

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = 'b53b368f85445da25796f8cc90459c61425c13f4';
const WebRPCSchemaHash = '83530970d81179658f6546c87fc4352280dbd287';

@@ -40,2 +40,3 @@ //

ContractType["UNKNOWN"] = "UNKNOWN";
ContractType["NATIVE"] = "NATIVE";
ContractType["ERC20"] = "ERC20";

@@ -48,2 +49,3 @@ ContractType["ERC721"] = "ERC721";

ContractType["ERC1155_BRIDGE"] = "ERC1155_BRIDGE";
ContractType["SEQ_MARKETPLACE"] = "SEQ_MARKETPLACE";
return ContractType;

@@ -64,2 +66,8 @@ }({});

}({});
let OrderStatus = /*#__PURE__*/function (OrderStatus) {
OrderStatus["OPEN"] = "OPEN";
OrderStatus["CLOSED"] = "CLOSED";
OrderStatus["CANCELLED"] = "CANCELLED";
return OrderStatus;
}({});
let TxnTransferType = /*#__PURE__*/function (TxnTransferType) {

@@ -206,2 +214,21 @@ TxnTransferType["UNKNOWN"] = "UNKNOWN";

};
this.getOrderbookOrders = (args, headers) => {
return this.fetch(this.url('GetOrderbookOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.getTopOrders = (args, headers) => {
return this.fetch(this.url('GetTopOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
orders: _data.orders
};
});
});
};
this.fetchTransactionReceiptWithFilter = (args, headers) => {

@@ -324,2 +351,2 @@ return this.fetch(this.url('FetchTransactionReceiptWithFilter'), createHTTPRequest(args, headers)).then(res => {

export { ContractType, EventLogDataType, EventLogType, Indexer, SequenceIndexer, SortOrder, TransactionStatus, TransactionType, TxnTransferType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
export { ContractType, EventLogDataType, EventLogType, Indexer, OrderStatus, SequenceIndexer, SortOrder, TransactionStatus, TransactionType, TxnTransferType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
export declare const WebRPCVersion = "v1";
export declare const WebRPCSchemaVersion = "v0.4.0";
export declare const WebRPCSchemaHash = "b53b368f85445da25796f8cc90459c61425c13f4";
export declare const WebRPCSchemaHash = "83530970d81179658f6546c87fc4352280dbd287";
export interface ContractInfo {

@@ -50,2 +50,3 @@ chainId: number;

UNKNOWN = "UNKNOWN",
NATIVE = "NATIVE",
ERC20 = "ERC20",

@@ -57,3 +58,4 @@ ERC721 = "ERC721",

ERC721_BRIDGE = "ERC721_BRIDGE",
ERC1155_BRIDGE = "ERC1155_BRIDGE"
ERC1155_BRIDGE = "ERC1155_BRIDGE",
SEQ_MARKETPLACE = "SEQ_MARKETPLACE"
}

@@ -71,2 +73,7 @@ export declare enum EventLogType {

}
export declare enum OrderStatus {
OPEN = "OPEN",
CLOSED = "CLOSED",
CANCELLED = "CANCELLED"
}
export declare enum TxnTransferType {

@@ -107,2 +114,12 @@ UNKNOWN = "UNKNOWN",

}
export interface WALWriterRuntimeStatus {
healthOK: boolean;
startTime: string;
uptime: number;
ver: string;
branch: string;
commitHash: string;
chainID: number;
percentWALWritten: number;
}
export interface RuntimeChecks {

@@ -116,6 +133,10 @@ running: boolean;

lastBlockNumWithState: number;
bloomStatus: BloomStatus;
bond: Bond;
diskUsage: string;
}
export interface Bond {
pebble: PebbleMetrics;
estimatedDiskUsagePerTable: any;
estimatedDiskUsageTotal: string;
}

@@ -129,2 +150,7 @@ export interface PebbleMetrics {

}
export interface BloomStatus {
enabled: boolean;
initialized: boolean;
bloomInitElapsedTime: string;
}
export interface EtherBalance {

@@ -176,2 +202,23 @@ accountAddress: string;

}
export interface OrderbookOrder {
orderId: string;
tokenContract: string;
tokenId: string;
isListing: boolean;
quantity: string;
quantityRemaining: string;
currencyAddress: string;
pricePerToken: string;
expiry: string;
orderStatus: OrderStatus;
createdBy: string;
createdAt: number;
orderbookContractAddress: string;
}
export interface OrderbookOrderFilter {
isListing?: boolean;
userAddress?: string;
tokenIds: Array<string>;
excludeUserAddress?: string;
}
export interface TokenHistory {

@@ -289,2 +336,3 @@ blockNumber: number;

verifiedOnly?: boolean;
unverifiedOnly?: boolean;
includeContracts?: Array<string>;

@@ -305,2 +353,4 @@ }

fetchTransactionReceipt(args: FetchTransactionReceiptArgs, headers?: object): Promise<FetchTransactionReceiptReturn>;
getOrderbookOrders(args: GetOrderbookOrdersArgs, headers?: object): Promise<GetOrderbookOrdersReturn>;
getTopOrders(args: GetTopOrdersArgs, headers?: object): Promise<GetTopOrdersReturn>;
fetchTransactionReceiptWithFilter(args: FetchTransactionReceiptWithFilterArgs, headers?: object): Promise<FetchTransactionReceiptWithFilterReturn>;

@@ -345,2 +395,3 @@ getAllWebhookListeners(args: GetAllWebhookListenersArgs, headers?: object): Promise<GetAllWebhookListenersReturn>;

metadataOptions?: MetadataOptions;
includeCollectionTokens?: boolean;
page?: Page;

@@ -409,2 +460,27 @@ }

}
export interface GetOrderbookOrdersArgs {
page?: Page;
orderbookContractAddress: string;
collectionAddress: string;
currencyAddresses: Array<string>;
filters: Array<OrderbookOrderFilter>;
orderStatuses: Array<OrderStatus>;
beforeExpiryTimestamp: number;
}
export interface GetOrderbookOrdersReturn {
page?: Page;
orders: Array<OrderbookOrder>;
}
export interface GetTopOrdersArgs {
orderbookContractAddress: string;
collectionAddress: string;
currencyAddresses: Array<string>;
tokenIDs: Array<string>;
isListing: boolean;
priceSort: SortOrder;
excludeUser?: string;
}
export interface GetTopOrdersReturn {
orders: Array<OrderbookOrder>;
}
export interface FetchTransactionReceiptWithFilterArgs {

@@ -471,2 +547,4 @@ filter: Filter;

fetchTransactionReceipt: (args: FetchTransactionReceiptArgs, headers?: object | undefined) => Promise<FetchTransactionReceiptReturn>;
getOrderbookOrders: (args: GetOrderbookOrdersArgs, headers?: object | undefined) => Promise<GetOrderbookOrdersReturn>;
getTopOrders: (args: GetTopOrdersArgs, headers?: object | undefined) => Promise<GetTopOrdersReturn>;
fetchTransactionReceiptWithFilter: (args: FetchTransactionReceiptWithFilterArgs, headers?: object | undefined) => Promise<FetchTransactionReceiptWithFilterReturn>;

@@ -473,0 +551,0 @@ getAllWebhookListeners: (args: GetAllWebhookListenersArgs, headers?: object | undefined) => Promise<GetAllWebhookListenersReturn>;

2

package.json
{
"name": "@0xsequence/indexer",
"version": "0.0.0-20240408185635",
"version": "0.0.0-20240427232558",
"description": "indexer sub-package for Sequence",

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

/* eslint-disable */
// sequence-indexer v0.4.0 b53b368f85445da25796f8cc90459c61425c13f4
// sequence-indexer v0.4.0 83530970d81179658f6546c87fc4352280dbd287
// --
// Code generated by webrpc-gen@v0.12.x-dev with typescript@v0.10.0 generator. DO NOT EDIT.
// Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
//

@@ -15,3 +15,3 @@ // webrpc-gen -schema=indexer.ridl -target=typescript@v0.10.0 -client -out=./clients/indexer.gen.ts

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = 'b53b368f85445da25796f8cc90459c61425c13f4'
export const WebRPCSchemaHash = '83530970d81179658f6546c87fc4352280dbd287'

@@ -67,2 +67,3 @@ //

UNKNOWN = 'UNKNOWN',
NATIVE = 'NATIVE',
ERC20 = 'ERC20',

@@ -74,3 +75,4 @@ ERC721 = 'ERC721',

ERC721_BRIDGE = 'ERC721_BRIDGE',
ERC1155_BRIDGE = 'ERC1155_BRIDGE'
ERC1155_BRIDGE = 'ERC1155_BRIDGE',
SEQ_MARKETPLACE = 'SEQ_MARKETPLACE'
}

@@ -88,2 +90,7 @@ export enum EventLogType {

}
export enum OrderStatus {
OPEN = 'OPEN',
CLOSED = 'CLOSED',
CANCELLED = 'CANCELLED'
}
export enum TxnTransferType {

@@ -127,2 +134,13 @@ UNKNOWN = 'UNKNOWN',

export interface WALWriterRuntimeStatus {
healthOK: boolean
startTime: string
uptime: number
ver: string
branch: string
commitHash: string
chainID: number
percentWALWritten: number
}
export interface RuntimeChecks {

@@ -136,3 +154,5 @@ running: boolean

lastBlockNumWithState: number
bloomStatus: BloomStatus
bond: Bond
diskUsage: string
}

@@ -142,2 +162,4 @@

pebble: PebbleMetrics
estimatedDiskUsagePerTable: any
estimatedDiskUsageTotal: string
}

@@ -153,2 +175,8 @@

export interface BloomStatus {
enabled: boolean
initialized: boolean
bloomInitElapsedTime: string
}
export interface EtherBalance {

@@ -207,2 +235,25 @@ accountAddress: string

export interface OrderbookOrder {
orderId: string
tokenContract: string
tokenId: string
isListing: boolean
quantity: string
quantityRemaining: string
currencyAddress: string
pricePerToken: string
expiry: string
orderStatus: OrderStatus
createdBy: string
createdAt: number
orderbookContractAddress: string
}
export interface OrderbookOrderFilter {
isListing?: boolean
userAddress?: string
tokenIds: Array<string>
excludeUserAddress?: string
}
export interface TokenHistory {

@@ -330,2 +381,3 @@ blockNumber: number

verifiedOnly?: boolean
unverifiedOnly?: boolean
includeContracts?: Array<string>

@@ -347,2 +399,4 @@ }

fetchTransactionReceipt(args: FetchTransactionReceiptArgs, headers?: object): Promise<FetchTransactionReceiptReturn>
getOrderbookOrders(args: GetOrderbookOrdersArgs, headers?: object): Promise<GetOrderbookOrdersReturn>
getTopOrders(args: GetTopOrdersArgs, headers?: object): Promise<GetTopOrdersReturn>
fetchTransactionReceiptWithFilter(

@@ -392,2 +446,3 @@ args: FetchTransactionReceiptWithFilterArgs,

metadataOptions?: MetadataOptions
includeCollectionTokens?: boolean
page?: Page

@@ -458,2 +513,29 @@ }

}
export interface GetOrderbookOrdersArgs {
page?: Page
orderbookContractAddress: string
collectionAddress: string
currencyAddresses: Array<string>
filters: Array<OrderbookOrderFilter>
orderStatuses: Array<OrderStatus>
beforeExpiryTimestamp: number
}
export interface GetOrderbookOrdersReturn {
page?: Page
orders: Array<OrderbookOrder>
}
export interface GetTopOrdersArgs {
orderbookContractAddress: string
collectionAddress: string
currencyAddresses: Array<string>
tokenIDs: Array<string>
isListing: boolean
priceSort: SortOrder
excludeUser?: string
}
export interface GetTopOrdersReturn {
orders: Array<OrderbookOrder>
}
export interface FetchTransactionReceiptWithFilterArgs {

@@ -649,2 +731,23 @@ filter: Filter

getOrderbookOrders = (args: GetOrderbookOrdersArgs, headers?: object): Promise<GetOrderbookOrdersReturn> => {
return this.fetch(this.url('GetOrderbookOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: <Page>_data.page,
orders: <Array<OrderbookOrder>>_data.orders
}
})
})
}
getTopOrders = (args: GetTopOrdersArgs, headers?: object): Promise<GetTopOrdersReturn> => {
return this.fetch(this.url('GetTopOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
orders: <Array<OrderbookOrder>>_data.orders
}
})
})
}
fetchTransactionReceiptWithFilter = (

@@ -651,0 +754,0 @@ args: FetchTransactionReceiptWithFilterArgs,

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