web3-eth-contract
Advanced tools
Comparing version 2.0.0-alpha to 2.0.0-alpha.1
@@ -917,3 +917,9 @@ 'use strict'; | ||
value: function onNewSubscriptionItem(subscriptionItem) { | ||
return this.eventLogDecoder.decode(this.abiItemModel, this.formatters.outputLogFormatter(subscriptionItem)); | ||
var log = this.formatters.outputLogFormatter(subscriptionItem); | ||
if (log.removed) { | ||
log = this.eventLogDecoder.decode(this.abiItemModel, log); | ||
this.emit('changed', log); | ||
return log; | ||
} | ||
return this.eventLogDecoder.decode(this.abiItemModel, log); | ||
} | ||
@@ -938,3 +944,9 @@ }]); | ||
value: function onNewSubscriptionItem(subscriptionItem) { | ||
return this.allEventsLogDecoder.decode(this.abiModel, this.formatters.outputLogFormatter(subscriptionItem)); | ||
var log = this.formatters.outputLogFormatter(subscriptionItem); | ||
if (log.removed) { | ||
log = this.allEventsLogDecoder.decode(this.abiModel, log); | ||
this.emit('changed', log); | ||
return log; | ||
} | ||
return this.allEventsLogDecoder.decode(this.abiModel, log); | ||
} | ||
@@ -941,0 +953,0 @@ }]); |
@@ -692,3 +692,9 @@ import * as Utils from 'web3-utils'; | ||
onNewSubscriptionItem(subscriptionItem) { | ||
return this.eventLogDecoder.decode(this.abiItemModel, this.formatters.outputLogFormatter(subscriptionItem)); | ||
let log = this.formatters.outputLogFormatter(subscriptionItem); | ||
if (log.removed) { | ||
log = this.eventLogDecoder.decode(this.abiItemModel, log); | ||
this.emit('changed', log); | ||
return log; | ||
} | ||
return this.eventLogDecoder.decode(this.abiItemModel, log); | ||
} | ||
@@ -704,3 +710,9 @@ } | ||
onNewSubscriptionItem(subscriptionItem) { | ||
return this.allEventsLogDecoder.decode(this.abiModel, this.formatters.outputLogFormatter(subscriptionItem)); | ||
let log = this.formatters.outputLogFormatter(subscriptionItem); | ||
if (log.removed) { | ||
log = this.allEventsLogDecoder.decode(this.abiModel, log); | ||
this.emit('changed', log); | ||
return log; | ||
} | ||
return this.allEventsLogDecoder.decode(this.abiModel, log); | ||
} | ||
@@ -707,0 +719,0 @@ } |
@@ -911,3 +911,9 @@ (function (global, factory) { | ||
value: function onNewSubscriptionItem(subscriptionItem) { | ||
return this.eventLogDecoder.decode(this.abiItemModel, this.formatters.outputLogFormatter(subscriptionItem)); | ||
var log = this.formatters.outputLogFormatter(subscriptionItem); | ||
if (log.removed) { | ||
log = this.eventLogDecoder.decode(this.abiItemModel, log); | ||
this.emit('changed', log); | ||
return log; | ||
} | ||
return this.eventLogDecoder.decode(this.abiItemModel, log); | ||
} | ||
@@ -932,3 +938,9 @@ }]); | ||
value: function onNewSubscriptionItem(subscriptionItem) { | ||
return this.allEventsLogDecoder.decode(this.abiModel, this.formatters.outputLogFormatter(subscriptionItem)); | ||
var log = this.formatters.outputLogFormatter(subscriptionItem); | ||
if (log.removed) { | ||
log = this.allEventsLogDecoder.decode(this.abiModel, log); | ||
this.emit('changed', log); | ||
return log; | ||
} | ||
return this.allEventsLogDecoder.decode(this.abiModel, log); | ||
} | ||
@@ -935,0 +947,0 @@ }]); |
{ | ||
"name": "web3-eth-contract", | ||
"namespace": "ethereum", | ||
"version": "2.0.0-alpha", | ||
"version": "2.0.0-alpha.1", | ||
"description": "Web3 module to interact with Ethereum smart contracts.", | ||
@@ -25,10 +25,10 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-eth-contract", | ||
"lodash": "^4.17.11", | ||
"web3-core": "2.0.0-alpha", | ||
"web3-core-helpers": "2.0.0-alpha", | ||
"web3-core-method": "2.0.0-alpha", | ||
"web3-core-subscriptions": "2.0.0-alpha", | ||
"web3-eth-abi": "2.0.0-alpha", | ||
"web3-eth-accounts": "2.0.0-alpha", | ||
"web3-providers": "2.0.0-alpha", | ||
"web3-utils": "2.0.0-alpha" | ||
"web3-core": "2.0.0-alpha.1", | ||
"web3-core-helpers": "2.0.0-alpha.1", | ||
"web3-core-method": "2.0.0-alpha.1", | ||
"web3-core-subscriptions": "2.0.0-alpha.1", | ||
"web3-eth-abi": "2.0.0-alpha.1", | ||
"web3-eth-accounts": "2.0.0-alpha.1", | ||
"web3-providers": "2.0.0-alpha.1", | ||
"web3-utils": "2.0.0-alpha.1" | ||
}, | ||
@@ -43,3 +43,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "a09d2cc84c1f08aa673028cc7c517d40a1f72972" | ||
"gitHead": "cb266cc298150f4eb1c8cdac4f41551dd8819a81" | ||
} |
@@ -23,3 +23,3 @@ /* | ||
import {AbiInput, AbiOutput, AbiItem} from 'web3-utils'; | ||
import {PromiEvent} from 'web3-core'; | ||
import {PromiEvent, Web3ModuleOptions} from 'web3-core'; | ||
@@ -98,7 +98,11 @@ export class Contract { | ||
export interface ContractOptions { | ||
from: string; | ||
gasPrice: string; | ||
gas: number; | ||
data: string; | ||
export interface ContractOptions extends Web3ModuleOptions { | ||
// Sender to use for contract calls | ||
from?: string; | ||
// Gas price to use for contract calls | ||
gasPrice?: string; | ||
// Gas to use for contract calls | ||
gas?: number; | ||
// Contract code | ||
data?: string; | ||
} | ||
@@ -105,0 +109,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
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
135188
7
3313
3
+ Addedeventemitter3@4.0.7(transitive)
+ Addedweb3-core@2.0.0-alpha.1(transitive)
+ Addedweb3-core-helpers@2.0.0-alpha.1(transitive)
+ Addedweb3-core-method@2.0.0-alpha.1(transitive)
+ Addedweb3-core-subscriptions@2.0.0-alpha.1(transitive)
+ Addedweb3-eth-abi@2.0.0-alpha.1(transitive)
+ Addedweb3-eth-accounts@2.0.0-alpha.1(transitive)
+ Addedweb3-eth-iban@2.0.0-alpha.1(transitive)
+ Addedweb3-providers@2.0.0-alpha.1(transitive)
+ Addedweb3-utils@2.0.0-alpha.1(transitive)
- Removedbufferutil@4.0.8(transitive)
- Removedd@1.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedext@1.7.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedms@2.0.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-gyp-build@4.8.2(transitive)
- Removedtype@2.7.3(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedutf-8-validate@5.0.10(transitive)
- Removedweb3-core@2.0.0-alpha(transitive)
- Removedweb3-core-helpers@2.0.0-alpha(transitive)
- Removedweb3-core-method@2.0.0-alpha(transitive)
- Removedweb3-core-subscriptions@2.0.0-alpha(transitive)
- Removedweb3-eth-abi@2.0.0-alpha(transitive)
- Removedweb3-eth-accounts@2.0.0-alpha(transitive)
- Removedweb3-eth-iban@2.0.0-alpha(transitive)
- Removedweb3-providers@2.0.0-alpha(transitive)
- Removedweb3-utils@2.0.0-alpha(transitive)
- Removedwebsocket@1.0.35(transitive)
- Removedyaeti@0.0.6(transitive)
Updatedweb3-core@2.0.0-alpha.1
Updatedweb3-eth-abi@2.0.0-alpha.1
Updatedweb3-providers@2.0.0-alpha.1
Updatedweb3-utils@2.0.0-alpha.1