2015-06-08 03:23:54 -05:00
|
|
|
package api
|
|
|
|
|
|
|
|
// JS api provided by web3.js
|
2015-06-22 06:19:59 -05:00
|
|
|
// eth_sign not standard
|
|
|
|
|
|
|
|
const Eth_JS = `
|
|
|
|
web3._extend({
|
|
|
|
property: 'eth',
|
|
|
|
methods:
|
|
|
|
[
|
|
|
|
new web3._extend.Method({
|
|
|
|
name: 'sign',
|
|
|
|
call: 'eth_sign',
|
|
|
|
params: 2,
|
|
|
|
inputFormatter: [web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputString],
|
|
|
|
outputFormatter: web3._extend.formatters.formatOutputString
|
2015-06-24 07:56:53 -05:00
|
|
|
}),
|
|
|
|
new web3._extend.Method({
|
|
|
|
name: 'resend',
|
|
|
|
call: 'eth_resend',
|
|
|
|
params: 3,
|
|
|
|
inputFormatter: [function(obj) { return obj; },web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputString],
|
|
|
|
outputFormatter: web3._extend.formatters.formatOutputString
|
2015-06-22 06:19:59 -05:00
|
|
|
})
|
2015-06-24 06:53:37 -05:00
|
|
|
],
|
|
|
|
properties:
|
|
|
|
[
|
|
|
|
new web3._extend.Property({
|
|
|
|
name: 'pendingTransactions',
|
|
|
|
getter: 'eth_pendingTransactions',
|
|
|
|
outputFormatter: function(obj) { return obj; }
|
|
|
|
})
|
2015-06-22 06:19:59 -05:00
|
|
|
]
|
|
|
|
});
|
|
|
|
`
|