Skip to content

Commit

Permalink
Replace own web3 for 1.0.0-beta.30 and add modified web3-eth
Browse files Browse the repository at this point in the history
  • Loading branch information
patitonar committed Mar 28, 2019
1 parent db2c20a commit fe27eba
Show file tree
Hide file tree
Showing 121 changed files with 1,156 additions and 40,440 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ var Method = require('web3-core-method');
var utils = require('web3-utils');
var Net = require('web3-net');

var ENS = require('web3-eth-ens');
var Personal = require('web3-eth-personal');
var BaseContract = require('web3-eth-contract');
var Iban = require('web3-eth-iban');
Expand Down Expand Up @@ -144,20 +143,8 @@ var Eth = function Eth() {
// not create this proxy type, changing the provider in one instance of
// web3-eth would subsequently change the provider for _all_ contract
// instances!
var self = this;
var Contract = function Contract() {
BaseContract.apply(this, arguments);

// when Eth.setProvider is called, call packageInit
// on all contract instances instantiated via this Eth
// instances. This will update the currentProvider for
// the contract instances
var _this = this;
var setProvider = self.setProvider;
self.setProvider = function() {
setProvider.apply(self, arguments);
core.packageInit(_this, [self.currentProvider]);
};
};

Contract.setProvider = function() {
Expand All @@ -181,14 +168,8 @@ var Eth = function Eth() {
// add ABI
this.abi = abi;

// add ENS
this.ens = new ENS(this);

var methods = [
new Method({
name: 'getNodeInfo',
call: 'web3_clientVersion'
}),
new Method({
name: 'getProtocolVersion',
call: 'eth_protocolVersion',
Expand All @@ -210,6 +191,12 @@ var Eth = function Eth() {
params: 0,
outputFormatter: utils.hexToNumber
}),
new Method({
name: 'getChainId',
call: 'eth_chainId',
params: 0,
outputFormatter: utils.hexToNumber
}),
new Method({
name: 'isSyncing',
call: 'eth_syncing',
Expand Down Expand Up @@ -351,6 +338,26 @@ var Eth = function Eth() {
inputFormatter: [formatter.inputCallFormatter],
outputFormatter: utils.hexToNumber
}),
new Method({
name: 'getCompilers',
call: 'eth_getCompilers',
params: 0
}),
new Method({
name: 'compile.solidity',
call: 'eth_compileSolidity',
params: 1
}),
new Method({
name: 'compile.lll',
call: 'eth_compileLLL',
params: 1
}),
new Method({
name: 'compile.serpent',
call: 'eth_compileSerpent',
params: 1
}),
new Method({
name: 'submitWork',
call: 'eth_submitWork',
Expand All @@ -368,12 +375,6 @@ var Eth = function Eth() {
inputFormatter: [formatter.inputLogFormatter],
outputFormatter: formatter.outputLogFormatter
}),
new Method({
name: 'getChainId',
call: 'eth_chainId',
params: 0,
outputFormatter: utils.hexToNumber
}),

// subscriptions
new Subscriptions({
Expand Down Expand Up @@ -468,5 +469,4 @@ var Eth = function Eth() {
core.addProviders(Eth);


module.exports = Eth;

module.exports = Eth;
5 changes: 0 additions & 5 deletions lib/web3.js/.bowerrc

This file was deleted.

12 changes: 0 additions & 12 deletions lib/web3.js/.editorconfig

This file was deleted.

17 changes: 0 additions & 17 deletions lib/web3.js/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions lib/web3.js/.jshintignore

This file was deleted.

19 changes: 0 additions & 19 deletions lib/web3.js/.jshintrc

This file was deleted.

10 changes: 0 additions & 10 deletions lib/web3.js/.npmignore

This file was deleted.

28 changes: 0 additions & 28 deletions lib/web3.js/.travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions lib/web3.js/.versions

This file was deleted.

24 changes: 0 additions & 24 deletions lib/web3.js/ISSUE_TEMPLATE.md

This file was deleted.

14 changes: 0 additions & 14 deletions lib/web3.js/LICENSE

This file was deleted.

28 changes: 0 additions & 28 deletions lib/web3.js/PULL_REQUEST_TEMPLATE.md

This file was deleted.

Loading

0 comments on commit fe27eba

Please sign in to comment.