|
|
|
@ -32,15 +32,15 @@ function web3VmProvider () { |
|
|
|
|
this.lastProcessedStorageTxHash = {} |
|
|
|
|
this.sha3Preimages = {} |
|
|
|
|
// util
|
|
|
|
|
this.sha3 = function () { return self.web3.sha3.apply(self.web3, arguments) } |
|
|
|
|
this.toHex = function () { return self.web3.toHex.apply(self.web3, arguments) } |
|
|
|
|
this.toAscii = function () { return self.web3.toAscii.apply(self.web3, arguments) } |
|
|
|
|
this.fromAscii = function () { return self.web3.fromAscii.apply(self.web3, arguments) } |
|
|
|
|
this.fromDecimal = function () { return self.web3.fromDecimal.apply(self.web3, arguments) } |
|
|
|
|
this.fromWei = function () { return self.web3.fromWei.apply(self.web3, arguments) } |
|
|
|
|
this.toWei = function () { return self.web3.toWei.apply(self.web3, arguments) } |
|
|
|
|
this.toBigNumber = function () { return self.web3.toBigNumber.apply(self.web3, arguments) } |
|
|
|
|
this.isAddress = function () { return self.web3.isAddress.apply(self.web3, arguments) } |
|
|
|
|
this.sha3 = function () { return self.web3.utils.sha3.apply(self.web3, arguments) } |
|
|
|
|
this.toHex = function () { return self.web3.utils.toHex.apply(self.web3, arguments) } |
|
|
|
|
this.toAscii = function () { return self.web3.utils.hexToAscii.apply(self.web3, arguments) } |
|
|
|
|
this.fromAscii = function () { return self.web3.utils.asciiToHex.apply(self.web3, arguments) } |
|
|
|
|
this.fromDecimal = function () { return self.web3.utils.numberToHex.apply(self.web3, arguments) } |
|
|
|
|
this.fromWei = function () { return self.web3.utils.fromWei.apply(self.web3, arguments) } |
|
|
|
|
this.toWei = function () { return self.web3.utils.toWei.apply(self.web3, arguments) } |
|
|
|
|
this.toBigNumber = function () { return self.web3.utils.toBN.apply(self.web3, arguments) } |
|
|
|
|
this.isAddress = function () { return self.web3.utils.isAddress.apply(self.web3, arguments) } |
|
|
|
|
this.utils = Web3.utils || [] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|