add compiler methods

pull/7/head
Iuri Matias 6 years ago
parent 57bbba6a41
commit 324c50f133
  1. 6
      remix-simulator/README.md
  2. 17
      remix-simulator/src/methods/misc.js

@ -37,9 +37,9 @@ Implemented:
* [_] eth_getUncleByBlockHashAndIndex
* [_] eth_getUncleByBlockNumberAndIndex
* [X] eth_getCompilers (DEPRECATED)
* [_] eth_compileSolidity (DEPRECATED)
* [_] eth_compileLLL (DEPRECATED)
* [_] eth_compileSerpent (DEPRECATED)
* [X] eth_compileSolidity (DEPRECATED)
* [X] eth_compileLLL (DEPRECATED)
* [X] eth_compileSerpent (DEPRECATED)
* [_] eth_newFilter
* [_] eth_newBlockFilter
* [_] eth_newPendingTransactionFilter

@ -12,7 +12,10 @@ Misc.prototype.methods = function () {
eth_mining: this.eth_mining.bind(this),
eth_hashrate: this.eth_hashrate.bind(this),
web3_sha3: this.web3_sha3.bind(this),
eth_getCompilers: this.eth_getCompilers.bind(this)
eth_getCompilers: this.eth_getCompilers.bind(this),
eth_compileSolidity: this.eth_compileSolidity.bind(this),
eth_compileLLL: this.eth_compileLLL.bind(this),
eth_compileSerpent: this.eth_compileSerpent.bind(this)
}
}
@ -46,4 +49,16 @@ Misc.prototype.eth_getCompilers = function (payload, cb) {
cb(null, [])
}
Misc.prototype.eth_compileSolidity = function (payload, cb) {
cb(null, "unsupported")
}
Misc.prototype.eth_compileLLL = function (payload, cb) {
cb(null, "unsupported")
}
Misc.prototype.eth_compileSerpent = function (payload, cb) {
cb(null, "unsupported")
}
module.exports = Misc

Loading…
Cancel
Save