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 2.0.0-alpha to 2.0.0-alpha.1

LICENSE

16

dist/web3-eth-contract.cjs.js

@@ -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 @@ }]);

20

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

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