Skip to content

Commit

Permalink
Refactored the contract object (#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 Oct 7, 2016
1 parent d5b73e9 commit 23f428b
Show file tree
Hide file tree
Showing 26 changed files with 15,554 additions and 2,540 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
2 changes: 1 addition & 1 deletion .versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ethereum:[email protected]alpha
ethereum:[email protected]beta
[email protected]
[email protected]
Loading

0 comments on commit 23f428b

Please sign in to comment.