|
|
@ -18,23 +18,23 @@ |
|
|
|
package web3ext |
|
|
|
package web3ext |
|
|
|
|
|
|
|
|
|
|
|
var Modules = map[string]string{ |
|
|
|
var Modules = map[string]string{ |
|
|
|
"accounting": Accounting_JS, |
|
|
|
"accounting": AccountingJs, |
|
|
|
"admin": Admin_JS, |
|
|
|
"admin": AdminJs, |
|
|
|
"chequebook": Chequebook_JS, |
|
|
|
"chequebook": ChequebookJs, |
|
|
|
"clique": Clique_JS, |
|
|
|
"clique": CliqueJs, |
|
|
|
"ethash": Ethash_JS, |
|
|
|
"ethash": EthashJs, |
|
|
|
"debug": Debug_JS, |
|
|
|
"debug": DebugJs, |
|
|
|
"eth": Eth_JS, |
|
|
|
"eth": EthJs, |
|
|
|
"miner": Miner_JS, |
|
|
|
"miner": MinerJs, |
|
|
|
"net": Net_JS, |
|
|
|
"net": NetJs, |
|
|
|
"personal": Personal_JS, |
|
|
|
"personal": PersonalJs, |
|
|
|
"rpc": RPC_JS, |
|
|
|
"rpc": RpcJs, |
|
|
|
"shh": Shh_JS, |
|
|
|
"shh": ShhJs, |
|
|
|
"swarmfs": SWARMFS_JS, |
|
|
|
"swarmfs": SwarmfsJs, |
|
|
|
"txpool": TxPool_JS, |
|
|
|
"txpool": TxpoolJs, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const Chequebook_JS = ` |
|
|
|
const ChequebookJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'chequebook', |
|
|
|
property: 'chequebook', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -65,7 +65,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Clique_JS = ` |
|
|
|
const CliqueJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'clique', |
|
|
|
property: 'clique', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -111,7 +111,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Ethash_JS = ` |
|
|
|
const EthashJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'ethash', |
|
|
|
property: 'ethash', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -139,7 +139,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Admin_JS = ` |
|
|
|
const AdminJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'admin', |
|
|
|
property: 'admin', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -217,7 +217,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Debug_JS = ` |
|
|
|
const DebugJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'debug', |
|
|
|
property: 'debug', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -454,7 +454,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Eth_JS = ` |
|
|
|
const EthJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'eth', |
|
|
|
property: 'eth', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -524,7 +524,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Miner_JS = ` |
|
|
|
const MinerJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'miner', |
|
|
|
property: 'miner', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -569,7 +569,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Net_JS = ` |
|
|
|
const NetJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'net', |
|
|
|
property: 'net', |
|
|
|
methods: [], |
|
|
|
methods: [], |
|
|
@ -582,7 +582,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Personal_JS = ` |
|
|
|
const PersonalJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'personal', |
|
|
|
property: 'personal', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -628,7 +628,7 @@ web3._extend({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const RPC_JS = ` |
|
|
|
const RpcJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'rpc', |
|
|
|
property: 'rpc', |
|
|
|
methods: [], |
|
|
|
methods: [], |
|
|
@ -641,7 +641,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Shh_JS = ` |
|
|
|
const ShhJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'shh', |
|
|
|
property: 'shh', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
@ -661,7 +661,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const SWARMFS_JS = ` |
|
|
|
const SwarmfsJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'swarmfs', |
|
|
|
property: 'swarmfs', |
|
|
|
methods: |
|
|
|
methods: |
|
|
@ -685,7 +685,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const TxPool_JS = ` |
|
|
|
const TxpoolJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'txpool', |
|
|
|
property: 'txpool', |
|
|
|
methods: [], |
|
|
|
methods: [], |
|
|
@ -712,7 +712,7 @@ web3._extend({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
const Accounting_JS = ` |
|
|
|
const AccountingJs = ` |
|
|
|
web3._extend({ |
|
|
|
web3._extend({ |
|
|
|
property: 'accounting', |
|
|
|
property: 'accounting', |
|
|
|
methods: [ |
|
|
|
methods: [ |
|
|
|