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

@avalabs/multicall

Package Overview
Dependencies
Maintainers
14
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avalabs/multicall - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"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>;
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