Skip to content

Commit

Permalink
Refactored the contract object (web3#424)
Browse files Browse the repository at this point in the history
* started contract

* prepared the contract functions

* added deploy function

* added event emitter funcitons

* eventified promise

* added encodeABI

* added optional bluebird

* improved the param finder

* added call, transact and estimateGas

* allow siganture for encodeABI

* working on events

* added event listeners to contracts

* working on contract events

* changed on message to on data

* working on decoding events

* switched deploy check to subscriptions

* removed all event functions, keep only contract.on

* added subscription stuff

* fixed substractions formatters

* added log decoding

* added all events

* fixed events

* added new method calling structure

* added mined event for send tx

* worked on getPastEvents, still WIP

* working on tests

* added once method

* made options object in function execution optional

* finished pastEvents

* added request function for batch processing to contract methods

* fixed contract tests

* finished proting tests

* test provider isolatiton issues

* commented out test to prevent unsolvable issue for now

* changed deploy resolve

* deactivate encodeABI

* improved fake provider, with stacking validation and results

* added fromBlock test

* added tests for internal methods of the contract object
  • Loading branch information
frozeman authored and nachomazzara committed Jun 4, 2020
1 parent fc1bb53 commit 9e22e7f
Show file tree
Hide file tree
Showing 25 changed files with 15,931 additions and 2,936 deletions.
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"eqeqeq": true,
"freeze": true,
"funcscope": false,
"maxcomplexity": 6,
"maxcomplexity": 8, /* our target is 6! */
"maxdepth": 3,
"maxerr": 50,
/*"maxlen": 80*/ /*this should be our goal*/
Expand Down
5 changes: 3 additions & 2 deletions .versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ethereum:[email protected]
[email protected]
ethereum:[email protected]
[email protected]
[email protected]
Loading

0 comments on commit 9e22e7f

Please sign in to comment.