@0xsequence/indexer
Advanced tools
Comparing version 0.39.5 to 0.39.6
@@ -30,3 +30,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-indexer v0.4.0 d44c148ecd843665eba71e66908382e569d8821a | ||
// sequence-indexer v0.4.0 1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b | ||
// -- | ||
@@ -40,3 +40,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a"; // | ||
const WebRPCSchemaHash = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b"; // | ||
// Types | ||
@@ -201,2 +201,10 @@ // | ||
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 +211,0 @@ this.fetch = fetch; |
@@ -30,3 +30,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-indexer v0.4.0 d44c148ecd843665eba71e66908382e569d8821a | ||
// sequence-indexer v0.4.0 1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b | ||
// -- | ||
@@ -40,3 +40,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a"; // | ||
const WebRPCSchemaHash = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b"; // | ||
// Types | ||
@@ -201,2 +201,10 @@ // | ||
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 +211,0 @@ this.fetch = fetch; |
@@ -22,3 +22,3 @@ import fetch from 'cross-fetch'; | ||
/* eslint-disable */ | ||
// sequence-indexer v0.4.0 d44c148ecd843665eba71e66908382e569d8821a | ||
// sequence-indexer v0.4.0 1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b | ||
// -- | ||
@@ -32,3 +32,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript | ||
const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a"; // | ||
const WebRPCSchemaHash = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b"; // | ||
// Types | ||
@@ -193,2 +193,10 @@ // | ||
this.syncBalance = (args, headers) => { | ||
return this.fetch(this.url('SyncBalance'), createHTTPRequest(args, headers)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return {}; | ||
}); | ||
}); | ||
}; | ||
this.hostname = hostname; | ||
@@ -195,0 +203,0 @@ this.fetch = fetch; |
export declare const WebRPCVersion = "v1"; | ||
export declare const WebRPCSchemaVersion = "v0.4.0"; | ||
export declare const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a"; | ||
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 enum ContractType { | ||
@@ -88,2 +126,4 @@ UNKNOWN = "UNKNOWN", | ||
chainId: number; | ||
contractInfo?: ContractInfo; | ||
tokenMetadata?: TokenMetadata; | ||
} | ||
@@ -108,2 +148,4 @@ export interface TokenHistory { | ||
chainId: number; | ||
contractInfo?: ContractInfo; | ||
tokenMetadata?: TokenMetadata; | ||
} | ||
@@ -127,2 +169,7 @@ export interface Transaction { | ||
amounts: Array<string>; | ||
logIndex: number; | ||
contractInfo?: ContractInfo; | ||
tokenMetadata?: { | ||
[key: string]: TokenMetadata; | ||
}; | ||
} | ||
@@ -163,2 +210,3 @@ export interface TransactionHistoryFilter { | ||
getTransactionHistory(args: GetTransactionHistoryArgs, headers?: object): Promise<GetTransactionHistoryReturn>; | ||
syncBalance(args: SyncBalanceArgs, headers?: object): Promise<SyncBalanceReturn>; | ||
} | ||
@@ -194,2 +242,3 @@ export interface PingArgs { | ||
contractAddress?: string; | ||
includeMetadata?: boolean; | ||
} | ||
@@ -201,2 +250,3 @@ export interface GetTokenBalancesReturn { | ||
contractAddress: string; | ||
includeMetadata?: boolean; | ||
} | ||
@@ -211,2 +261,3 @@ export interface GetTokenSuppliesReturn { | ||
}; | ||
includeMetadata?: boolean; | ||
} | ||
@@ -230,2 +281,3 @@ export interface GetTokenSuppliesMapReturn { | ||
page?: Page; | ||
includeMetadata?: boolean; | ||
} | ||
@@ -236,2 +288,9 @@ export interface GetTransactionHistoryReturn { | ||
} | ||
export interface SyncBalanceArgs { | ||
accountAddress: string; | ||
contractAddress: string; | ||
tokenID?: string; | ||
} | ||
export interface SyncBalanceReturn { | ||
} | ||
export declare class Indexer implements Indexer { | ||
@@ -253,2 +312,3 @@ protected hostname: string; | ||
getTransactionHistory: (args: GetTransactionHistoryArgs, headers?: object | undefined) => Promise<GetTransactionHistoryReturn>; | ||
syncBalance: (args: SyncBalanceArgs, headers?: object | undefined) => Promise<SyncBalanceReturn>; | ||
} | ||
@@ -255,0 +315,0 @@ export interface WebRPCError extends Error { |
{ | ||
"name": "@0xsequence/indexer", | ||
"version": "0.39.5", | ||
"version": "0.39.6", | ||
"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 d44c148ecd843665eba71e66908382e569d8821a | ||
// sequence-indexer v0.4.0 1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b | ||
// -- | ||
@@ -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 = "d44c148ecd843665eba71e66908382e569d8821a" | ||
export const WebRPCSchemaHash = "1b0f4a5b9d100c50a6afdd42cdeda800aa92ce9b" | ||
@@ -21,2 +21,39 @@ | ||
// | ||
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 { | ||
@@ -118,2 +155,4 @@ UNKNOWN = 'UNKNOWN', | ||
chainId: number | ||
contractInfo?: ContractInfo | ||
tokenMetadata?: TokenMetadata | ||
} | ||
@@ -140,2 +179,4 @@ | ||
chainId: number | ||
contractInfo?: ContractInfo | ||
tokenMetadata?: TokenMetadata | ||
} | ||
@@ -161,2 +202,5 @@ | ||
amounts: Array<string> | ||
logIndex: number | ||
contractInfo?: ContractInfo | ||
tokenMetadata?: {[key: string]: TokenMetadata} | ||
} | ||
@@ -201,2 +245,3 @@ | ||
getTransactionHistory(args: GetTransactionHistoryArgs, headers?: object): Promise<GetTransactionHistoryReturn> | ||
syncBalance(args: SyncBalanceArgs, headers?: object): Promise<SyncBalanceReturn> | ||
} | ||
@@ -238,2 +283,3 @@ | ||
contractAddress?: string | ||
includeMetadata?: boolean | ||
} | ||
@@ -246,2 +292,3 @@ | ||
contractAddress: string | ||
includeMetadata?: boolean | ||
} | ||
@@ -255,2 +302,3 @@ | ||
tokenMap: {[key: string]: Array<string>} | ||
includeMetadata?: boolean | ||
} | ||
@@ -274,2 +322,3 @@ | ||
page?: Page | ||
includeMetadata?: boolean | ||
} | ||
@@ -281,4 +330,12 @@ | ||
} | ||
export interface SyncBalanceArgs { | ||
accountAddress: string | ||
contractAddress: string | ||
tokenID?: string | ||
} | ||
export interface SyncBalanceReturn { | ||
} | ||
@@ -429,2 +486,13 @@ // | ||
syncBalance = (args: SyncBalanceArgs, headers?: object): Promise<SyncBalanceReturn> => { | ||
return this.fetch( | ||
this.url('SyncBalance'), | ||
createHTTPRequest(args, headers)).then((res) => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
} | ||
}) | ||
}) | ||
} | ||
} | ||
@@ -431,0 +499,0 @@ |
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
47709
1509