[VOC12] - eth_call support for IPLD database #10

Closed
opened 2020-09-21 04:26:36 +00:00 by i-norden · 2 comments
Member

ethdb.Database is in the ipld-eth-server backend from ipfs-ethdb: https://github.com/vulcanize/ipld-eth-server/blob/master/pkg/eth/backend.go#L46

  1. Use that to create state.Database: https://github.com/vulcanize/go-ethereum/blob/master/core/state/database.go#L109

  2. Use that to create state.StateDB: https://github.com/vulcanize/go-ethereum/blob/master/core/state/statedb.go#L119

  3. Use that create an EVM: https://github.com/vulcanize/go-ethereum/blob/master/core/vm/evm.go#L139

  4. Use that to reproduce DoCall: https://github.com/vulcanize/go-ethereum/blob/master/internal/ethapi/api.go#L817 in ipld-eth-server pkg/eth/backend.go

  5. Use that to reproduce https://github.com/vulcanize/go-ethereum/blob/master/internal/ethapi/api.go#L930 in ipld-eth-server pkg/eth/api.go

NOTE: This will need to be optimized later on for Postgres, but should provide a quick route to support by using the geth types that already exist

ethdb.Database is in the ipld-eth-server backend from ipfs-ethdb: https://github.com/vulcanize/ipld-eth-server/blob/master/pkg/eth/backend.go#L46 1. Use that to create state.Database: https://github.com/vulcanize/go-ethereum/blob/master/core/state/database.go#L109 2. Use that to create state.StateDB: https://github.com/vulcanize/go-ethereum/blob/master/core/state/statedb.go#L119 3. Use that create an EVM: https://github.com/vulcanize/go-ethereum/blob/master/core/vm/evm.go#L139 4. Use that to reproduce DoCall: https://github.com/vulcanize/go-ethereum/blob/master/internal/ethapi/api.go#L817 in ipld-eth-server pkg/eth/backend.go 5. Use that to reproduce https://github.com/vulcanize/go-ethereum/blob/master/internal/ethapi/api.go#L930 in ipld-eth-server pkg/eth/api.go NOTE: This will need to be optimized later on for Postgres, but should provide a quick route to support by using the geth types that already exist
ramilexe commented 2020-09-21 16:50:49 +00:00 (Migrated from github.com)
https://github.com/vulcanize/eth-contract-watcher/issues/24
Author
Member

Satisfied in #11

Satisfied in #11
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-server#10
No description provided.