git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 364643a1dafb28ead224b6e8b6deed9459d2064e

Export all public methods via Interface.exportTable

Alex Beregszaszi committed on 8/3/2016, 6:18:26 PM
Parent: ebeb995496ef4d8498153d040e7683fccdf8badc

Files changed

interface.jschanged
interface.jsView
@@ -24,8 +24,37 @@
2424
2525 get exportTable () {
2626 let exportMethods = [
2727 // 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'
2857 ]
2958 let ret = {}
3059 exportMethods.forEach((method) => {
3160 ret[method] = this[method].bind(this)

Built with git-ssb-web