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

@0xsequence/indexer

Package Overview
Dependencies
Maintainers
5
Versions
456
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-cdbb3137-20220630192830 to 0.0.0-coolcats-0.36.12-20220711222640

12

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

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

/* eslint-disable */
// sequence-indexer v0.4.0 1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b
// sequence-indexer v0.4.0 d44c148ecd843665eba71e66908382e569d8821a
// --

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

const WebRPCSchemaHash = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b"; //
const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a"; //
// Types

@@ -201,10 +201,2 @@ //

this.syncBalance = (args, headers) => {
return this.fetch(this.url('SyncBalance'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
});
};
this.hostname = hostname;

@@ -211,0 +203,0 @@ this.fetch = fetch;

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

/* eslint-disable */
// sequence-indexer v0.4.0 1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b
// sequence-indexer v0.4.0 d44c148ecd843665eba71e66908382e569d8821a
// --

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

const WebRPCSchemaHash = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b"; //
const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a"; //
// Types

@@ -201,10 +201,2 @@ //

this.syncBalance = (args, headers) => {
return this.fetch(this.url('SyncBalance'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
});
};
this.hostname = hostname;

@@ -211,0 +203,0 @@ this.fetch = fetch;

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

/* eslint-disable */
// sequence-indexer v0.4.0 1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b
// sequence-indexer v0.4.0 d44c148ecd843665eba71e66908382e569d8821a
// --

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

const WebRPCSchemaHash = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b"; //
const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a"; //
// Types

@@ -193,10 +193,2 @@ //

this.syncBalance = (args, headers) => {
return this.fetch(this.url('SyncBalance'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
});
};
this.hostname = hostname;

@@ -203,0 +195,0 @@ this.fetch = fetch;

export declare const WebRPCVersion = "v1";
export declare const WebRPCSchemaVersion = "v0.4.0";
export declare const WebRPCSchemaHash = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b";
export interface ContractInfo {
chainId: number;
address: string;
name: string;
type: string;
symbol: string;
decimals?: number;
logoURI: string;
extensions: ContractInfoExtensions;
}
export interface ContractInfoExtensions {
link: string;
description: string;
ogImage: string;
originChainId: number;
originAddress: string;
blacklist: boolean;
}
export interface TokenMetadata {
tokenId: string;
contractAddress: string;
name: string;
description: string;
image: string;
decimals: number;
properties: {
[key: string]: any;
};
video: string;
audio: string;
image_data: string;
external_url: string;
background_color: string;
animation_url: string;
attributes: Array<{
[key: string]: any;
}>;
}
export declare const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a";
export declare enum ContractType {

@@ -126,4 +88,2 @@ UNKNOWN = "UNKNOWN",

chainId: number;
contractInfo?: ContractInfo;
tokenMetadata?: TokenMetadata;
}

@@ -148,4 +108,2 @@ export interface TokenHistory {

chainId: number;
contractInfo?: ContractInfo;
tokenMetadata?: TokenMetadata;
}

@@ -169,7 +127,2 @@ export interface Transaction {

amounts: Array<string>;
logIndex: number;
contractInfo?: ContractInfo;
tokenMetadata?: {
[key: string]: TokenMetadata;
};
}

@@ -210,3 +163,2 @@ export interface TransactionHistoryFilter {

getTransactionHistory(args: GetTransactionHistoryArgs, headers?: object): Promise<GetTransactionHistoryReturn>;
syncBalance(args: SyncBalanceArgs, headers?: object): Promise<SyncBalanceReturn>;
}

@@ -242,3 +194,2 @@ export interface PingArgs {

contractAddress?: string;
includeMetadata?: boolean;
}

@@ -250,3 +201,2 @@ export interface GetTokenBalancesReturn {

contractAddress: string;
includeMetadata?: boolean;
}

@@ -261,3 +211,2 @@ export interface GetTokenSuppliesReturn {

};
includeMetadata?: boolean;
}

@@ -281,3 +230,2 @@ export interface GetTokenSuppliesMapReturn {

page?: Page;
includeMetadata?: boolean;
}

@@ -288,9 +236,2 @@ export interface GetTransactionHistoryReturn {

}
export interface SyncBalanceArgs {
accountAddress: string;
contractAddress: string;
tokenID?: string;
}
export interface SyncBalanceReturn {
}
export declare class Indexer implements Indexer {

@@ -312,3 +253,2 @@ protected hostname: string;

getTransactionHistory: (args: GetTransactionHistoryArgs, headers?: object | undefined) => Promise<GetTransactionHistoryReturn>;
syncBalance: (args: SyncBalanceArgs, headers?: object | undefined) => Promise<SyncBalanceReturn>;
}

@@ -315,0 +255,0 @@ export interface WebRPCError extends Error {

2

package.json
{
"name": "@0xsequence/indexer",
"version": "0.0.0-cdbb3137-20220630192830",
"version": "0.0.0-coolcats-0.36.12-20220711222640",
"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 1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b
// sequence-indexer v0.4.0 d44c148ecd843665eba71e66908382e569d8821a
// --

@@ -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 = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b"
export const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a"

@@ -21,39 +21,2 @@

//
export interface ContractInfo {
chainId: number
address: string
name: string
type: string
symbol: string
decimals?: number
logoURI: string
extensions: ContractInfoExtensions
}
export interface ContractInfoExtensions {
link: string
description: string
ogImage: string
originChainId: number
originAddress: string
blacklist: boolean
}
export interface TokenMetadata {
tokenId: string
contractAddress: string
name: string
description: string
image: string
decimals: number
properties: {[key: string]: any}
video: string
audio: string
image_data: string
external_url: string
background_color: string
animation_url: string
attributes: Array<{[key: string]: any}>
}
export enum ContractType {

@@ -155,4 +118,2 @@ UNKNOWN = 'UNKNOWN',

chainId: number
contractInfo?: ContractInfo
tokenMetadata?: TokenMetadata
}

@@ -179,4 +140,2 @@

chainId: number
contractInfo?: ContractInfo
tokenMetadata?: TokenMetadata
}

@@ -202,5 +161,2 @@

amounts: Array<string>
logIndex: number
contractInfo?: ContractInfo
tokenMetadata?: {[key: string]: TokenMetadata}
}

@@ -245,3 +201,2 @@

getTransactionHistory(args: GetTransactionHistoryArgs, headers?: object): Promise<GetTransactionHistoryReturn>
syncBalance(args: SyncBalanceArgs, headers?: object): Promise<SyncBalanceReturn>
}

@@ -283,3 +238,2 @@

contractAddress?: string
includeMetadata?: boolean
}

@@ -292,3 +246,2 @@

contractAddress: string
includeMetadata?: boolean
}

@@ -302,3 +255,2 @@

tokenMap: {[key: string]: Array<string>}
includeMetadata?: boolean
}

@@ -322,3 +274,2 @@

page?: Page
includeMetadata?: boolean
}

@@ -330,12 +281,4 @@

}
export interface SyncBalanceArgs {
accountAddress: string
contractAddress: string
tokenID?: string
}
export interface SyncBalanceReturn {
}

@@ -486,13 +429,2 @@ //

syncBalance = (args: SyncBalanceArgs, headers?: object): Promise<SyncBalanceReturn> => {
return this.fetch(
this.url('SyncBalance'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
}
})
})
}
}

@@ -499,0 +431,0 @@

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