Commit 364643a1dafb28ead224b6e8b6deed9459d2064e
Export all public methods via Interface.exportTable
Alex Beregszaszi committed on 8/3/2016, 6:18:26 PMParent: ebeb995496ef4d8498153d040e7683fccdf8badc
Files changed
interface.js | changed |
interface.js | ||
---|---|---|
@@ -24,8 +24,37 @@ | ||
24 | 24 | |
25 | 25 | get exportTable () { |
26 | 26 | let exportMethods = [ |
27 | 27 | // include all the public methods according to the Ethereum Environment Interface (EEI) |
28 | + // FIXME: this currently doesn't match EEI r0 | |
29 | + 'useGas', | |
30 | + 'gas', | |
31 | + 'address', | |
32 | + 'balance', | |
33 | + 'origin', | |
34 | + 'caller', | |
35 | + 'callValue', | |
36 | + 'callDataSize', | |
37 | + 'callDataCopy', | |
38 | + 'codeSize', | |
39 | + 'codeCopy', | |
40 | + 'extCodeSize', | |
41 | + 'extCodeCopy', | |
42 | + 'gasPrice', | |
43 | + 'blockHash', | |
44 | + 'coinbase', | |
45 | + 'timestamp', | |
46 | + 'number', | |
47 | + 'difficulty', | |
48 | + 'gasLimit', | |
49 | + 'log', | |
50 | + 'create', | |
51 | + 'call', | |
52 | + 'callDelegate', | |
53 | + 'sstore', | |
54 | + 'sload', | |
55 | + 'return', | |
56 | + 'suicide' | |
28 | 57 | ] |
29 | 58 | let ret = {} |
30 | 59 | exportMethods.forEach((method) => { |
31 | 60 | ret[method] = this[method].bind(this) |
Built with git-ssb-web