sleth
sleth copied to clipboard
node-ethereum / vapor compatibility
- [x] missing RPC method
eth_accounts
- [ ] missing RPC method
eth_coinbase
- [ ] missing RPC method
eth_defaultBlock
- [ ] missing RPC method
eth_logs
- [x] missing RPC method
eth_mining
- [ ] RPC method
eth_codeAt
returning Buffer instead of hexstring - [ ] RPC method
eth_balanceAt
returning empty string for 0 balance instead of0x
. - [x] RPC method
eth_blockByNumber
throws500
. - [x] RPC method
eth_listening
throws500
. https://github.com/ethereum/node-ethereum/issues/52 - [x] RPC method
eth_number
not returning anyresult
. - [ ] RPC methods returning hex strings lack
0x
prefix - [ ] RPC errors throw
500
instead of returningError
object. https://github.com/ethereum/node-ethereum/issues/49 - [ ] vapor requires all dapp assets to exist in a single html file
whoa nice i love checklists!
also note https://github.com/ethereum/wiki/wiki/JSON-RPC-Improvement-Proposal
@kumavis is eth_accounts
in vapor?
listing
should be fixed https://github.com/ethereum/node-ethereum/issues/52
eth_accounts
and eth_coinbase
are covered in vapor. Correct behavior of the coinbase
op code for the vapor backing server is not clear yet. I would imagine we'd tell the vm to use the sender's address as the coinbase
whenever they send a transact
or call
oh the coinbase
opcode is well defined. it just gives back the coinbase of the block that mined the tx. for eth_accounts
i just stubed it out and it will just return []
incase someone tries to use it
eth_codeAt
should be fixed now
for eth_balanceAt
returning 0x
is silly. is that really nessicary?
Correct behavior of the coinbase op code for the vapor backing server is not clear yet.
I don't mean in general. Like what do dapp builders expect the opcode to mean? Dapps should not care about mining at all, so they much be using it as a proxy for something else. primary identity of user of the dapp? yeah probably.
Edit: kinda confused eth.coinbase
and coinbase
op code there. why is it an opcode? whats the usecase?
ok blockbynumber
is returning blocks now
@kumavis coinbase
is sort of controversial opcode. but one use is using like a PRNG
ok eth_number
is returning a number
@wanderer hmmm weird. Maybe offer a PRNG opcode that is derived from the coinbase? weird. kinda sticky situation.
@kumavis @wanderer I don't really need coinbase
actually, but I have it on my command line testing tools to verify if mining is working and which of my node(s) is doing the mining.
ok working on methods returning hex strings lack 0x prefix
"vapor requires all dapp assets to exist in a single html file" is of course a vapor bug -- but I anticipate putting this off for awhile to see how dapp-requesting settles
Here is the current doc on the subject, clearly in flux https://github.com/ethereum/wiki/wiki/URL-Hint-Protocol
I've used this before to inline external assets into a single html file https://github.com/substack/html-inline