web3-eth-contract
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"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 |
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
42699
8
1039
3
+ Added@types/bignumber.js@5.0.0(transitive)
+ Added@web3-js/websocket@1.0.30(transitive)
+ Addedbignumber.js@9.1.2(transitive)
+ Addedd@1.0.2(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addednan@2.20.0(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addedtype@2.7.3(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedweb3-core@1.2.3(transitive)
+ Addedweb3-core-helpers@1.2.3(transitive)
+ Addedweb3-core-method@1.2.3(transitive)
+ Addedweb3-core-promievent@1.2.3(transitive)
+ Addedweb3-core-requestmanager@1.2.3(transitive)
+ Addedweb3-core-subscriptions@1.2.3(transitive)
+ Addedweb3-eth-abi@1.2.3(transitive)
+ Addedweb3-eth-iban@1.2.3(transitive)
+ Addedweb3-providers-http@1.2.3(transitive)
+ Addedweb3-providers-ipc@1.2.3(transitive)
+ Addedweb3-providers-ws@1.2.3(transitive)
+ Addedweb3-utils@1.2.3(transitive)
+ Addedyaeti@0.0.6(transitive)
- Removedweb3-core@1.2.2(transitive)
- Removedweb3-core-helpers@1.2.2(transitive)
- Removedweb3-core-method@1.2.2(transitive)
- Removedweb3-core-promievent@1.2.2(transitive)
- Removedweb3-core-requestmanager@1.2.2(transitive)
- Removedweb3-core-subscriptions@1.2.2(transitive)
- Removedweb3-eth-abi@1.2.2(transitive)
- Removedweb3-eth-iban@1.2.2(transitive)
- Removedweb3-providers-http@1.2.2(transitive)
- Removedweb3-providers-ipc@1.2.2(transitive)
- Removedweb3-providers-ws@1.2.2(transitive)
- Removedweb3-utils@1.2.2(transitive)
Updatedweb3-core@1.2.3
Updatedweb3-core-helpers@1.2.3
Updatedweb3-core-method@1.2.3
Updatedweb3-core-promievent@1.2.3
Updatedweb3-eth-abi@1.2.3
Updatedweb3-utils@1.2.3