@avalabs/multicall
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@avalabs/multicall", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A blockchain state management library for dapps.", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -1,46 +0,46 @@ | ||
declare module '@avalabs/multicall' { | ||
import { BigNumber } from 'bignumber.js'; | ||
/// <reference types="node"/> | ||
export interface IConfig { | ||
preset: 'mainnet' | 'kovan' | 'rinkeby' | 'goerli' | 'xdai' | 'ropsten'; | ||
rpcUrl: string; | ||
multicallAddress: string; | ||
interval: number; | ||
staleBlockRetryWait: number; | ||
errorRetryWait: number; | ||
} | ||
import { BigNumber } from 'bignumber.js'; | ||
export interface IPostProcess { | ||
(v: any): any; | ||
} | ||
export interface IConfig { | ||
preset: 'mainnet' | 'kovan' | 'rinkeby' | 'goerli' | 'xdai' | 'ropsten'; | ||
rpcUrl: string; | ||
multicallAddress: string; | ||
interval: number; | ||
staleBlockRetryWait: number; | ||
errorRetryWait: number; | ||
} | ||
export interface ICall { | ||
target: string; | ||
call: string[]; | ||
returns: (string | IPostProcess)[][]; | ||
} | ||
export interface IPostProcess { | ||
(v: any): any; | ||
} | ||
export interface IArgumentsMapping { | ||
[key: string]: string[]; | ||
} | ||
export interface ICall { | ||
target: string; | ||
call: string[]; | ||
returns: (string | IPostProcess)[][]; | ||
} | ||
export interface IKeysValues { | ||
[key: string]: any; | ||
} | ||
export interface IArgumentsMapping { | ||
[key: string]: string[]; | ||
} | ||
export interface IResult { | ||
blockNumber: BigNumber; | ||
original: IKeysValues; | ||
transformed: IKeysValues; | ||
keyToArgMap: IArgumentsMapping; | ||
} | ||
export interface IKeysValues { | ||
[key: string]: any; | ||
} | ||
export interface IResponse { | ||
results: IResult; | ||
} | ||
export interface IResult { | ||
blockNumber: BigNumber; | ||
original: IKeysValues; | ||
transformed: IKeysValues; | ||
keyToArgMap: IArgumentsMapping; | ||
} | ||
export function aggregate( | ||
calls: Partial<ICall>[], | ||
config: Partial<IConfig>, | ||
): Promise<IResponse>; | ||
} | ||
export interface IResponse { | ||
results: IResult; | ||
} | ||
export function aggregate( | ||
calls: Partial<ICall>[], | ||
config: Partial<IConfig>, | ||
): Promise<IResponse>; |
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
1165774
1455