Socket
Socket
Sign inDemoInstall

web3-eth-contract

Package Overview
Dependencies
Maintainers
2
Versions
440
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-eth-contract - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

LICENSE

19

package.json
{
"name": "web3-eth-contract",
"version": "1.2.2",
"version": "1.2.3",
"description": "Web3 module to interact with Ethereum smart contracts.",

@@ -18,9 +18,9 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-contract",

"underscore": "1.9.1",
"web3-core": "1.2.2",
"web3-core-helpers": "1.2.2",
"web3-core-method": "1.2.2",
"web3-core-promievent": "1.2.2",
"web3-core-subscriptions": "1.2.2",
"web3-eth-abi": "1.2.2",
"web3-utils": "1.2.2"
"web3-core": "1.2.3",
"web3-core-helpers": "1.2.3",
"web3-core-method": "1.2.3",
"web3-core-promievent": "1.2.3",
"web3-core-subscriptions": "1.2.3",
"web3-eth-abi": "1.2.3",
"web3-utils": "1.2.3"
},

@@ -30,3 +30,4 @@ "devDependencies": {

"dtslint": "0.4.2"
}
},
"gitHead": "aca6a78b6c8182f175aa059e7ad359f109ec7a84"
}

@@ -21,3 +21,3 @@ /*

import BN = require('bn.js');
import {Common, PromiEvent, provider, hardfork, chain} from 'web3-core';
import {Common, PromiEvent, provider, hardfork, chain, BlockNumber, PastLogsOptions, LogsOptions} from 'web3-core';
import {AbiItem} from 'web3-utils';

@@ -27,4 +27,3 @@

constructor(
provider: provider,
abi: AbiItem[],
jsonInterface: AbiItem[],
address?: string,

@@ -68,6 +67,6 @@ options?: ContractOptions

event: string,
options: EventOptions,
options: PastEventOptions,
callback: (error: Error, event: EventData) => void
): Promise<EventData[]>;
getPastEvents(event: string, options: EventOptions): Promise<EventData[]>;
getPastEvents(event: string, options: PastEventOptions): Promise<EventData[]>;
getPastEvents(

@@ -138,9 +137,14 @@ event: string,

export interface EventOptions {
filter?: any;
fromBlock?: number;
toBlock?: string | number;
topics?: any[];
export interface PastEventOptions extends PastLogsOptions {
filter?: Filter;
}
export interface EventOptions extends LogsOptions {
filter?: Filter;
}
export interface Filter {
[key: string]: number | string | string[] | number[];
}
export interface EventData {

@@ -147,0 +151,0 @@ returnValues: {

@@ -23,3 +23,3 @@ /*

const contract = new Contract('http://localhost:500', []);
const contract = new Contract([]);

@@ -26,0 +26,0 @@ // $ExpectType string | null

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