git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit ebeb995496ef4d8498153d040e7683fccdf8badc

Introduce Interface.exportTable

Alex Beregszaszi committed on 8/3/2016, 6:09:14 PM
Parent: c137aba03aa9981099698af3a30df2969c42a73b

Files changed

interface.jschanged
interface.jsView
@@ -21,8 +21,18 @@
2121 constructor (environment) {
2222 ENV = this.environment = environment
2323 }
2424
25+ get exportTable () {
26+ let exportMethods = [
27+ // include all the public methods according to the Ethereum Environment Interface (EEI)
28+ ]
29+ let ret = {}
30+ exportMethods.forEach((method) => {
31+ ret[method] = this[method].bind(this)
32+ })
33+ return ret
34+ }
2535
2636 // FIXME: this shouldn't be needed
2737 get env () {
2838 return ENV

Built with git-ssb-web