Dismiss Review
Are you sure you want to dismiss this review?
Labels
Clear labels
Epic
Integration tests
bug
critical
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
v5
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Something isn't working
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Further information is requested
This will not be worked on
An issue or PR manually copied from GitHub.
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/ipld-eth-server#11
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adding
eth_Callendpoint to ipld-eth-server.See #10
Included in this work are some Postgres functions for retrieving the canonical header at a provided height (based on weight).
https://github.com/vulcanize/ipld-eth-server/issues/10
This is ostensibly completed, but I need to write unit tests. This is cumbersome because we need to generate sufficient state to perform the eth_Call operations on to test them.
In addition to tests, #13 and #14 required to consider this complete
https://github.com/vulcanize/ipld-eth-indexer/issues/27 is blocking this, otherwise the tests are passing
@@ -29,3 +34,4 @@"github.com/ethereum/go-ethereum/params""github.com/ethereum/go-ethereum/rlp""github.com/ethereum/go-ethereum/rpc"ipfsethdb "github.com/vulcanize/pg-ipfs-ethdb"this repo was renamed to
github.com/vulcanize/ipfs-ethdbshouldn't we update import as well?Isn't better to return some error/exception/panic?
@@ -0,0 +148,4 @@}res, err := api.Call(context.Background(), callArgs, rpc.BlockNumberOrHashWithNumber(2), nil)Expect(err).ToNot(HaveOccurred())expectedRes := hexutil.Bytes(common.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000001"))where is the definition that for
datainput and block number 2 we will have this result?@@ -29,3 +34,4 @@"github.com/ethereum/go-ethereum/params""github.com/ethereum/go-ethereum/rlp""github.com/ethereum/go-ethereum/rpc"ipfsethdb "github.com/vulcanize/pg-ipfs-ethdb"We're using an early tagged release of that repo where the package is exported as
github.com/vulcanize/pg-ipfs-ethdb, because it is the version that is compatible with geth 1.9.11 (what our statediffing geth is currently rebased ontop of)ethash.NewFaker() is the correct thing to return in the case of mainnet and some other PoW chains, but PoA (Clique) chains need to return a different engine.
@@ -0,0 +148,4 @@}res, err := api.Call(context.Background(), callArgs, rpc.BlockNumberOrHashWithNumber(2), nil)Expect(err).ToNot(HaveOccurred())expectedRes := hexutil.Bytes(common.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000001"))This is the value set in the contract init: https://github.com/vulcanize/ipld-eth-server/blob/do_call/pkg/eth/test_helpers/test_contract.sol#L18
The other values are set in the chain maker txs: e.g. https://github.com/vulcanize/ipld-eth-server/blob/do_call/pkg/eth/test_helpers/chain_maker.go#L85
@@ -0,0 +148,4 @@}res, err := api.Call(context.Background(), callArgs, rpc.BlockNumberOrHashWithNumber(2), nil)Expect(err).ToNot(HaveOccurred())expectedRes := hexutil.Bytes(common.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000001"))Thanks!
Full path doesn't work in CI
Yeah I had to wait for https://github.com/vulcanize/ipld-eth-indexer/releases/tag/v0.6.0-alpha, was just stashing on the remote, updated it now
https://github.com/vulcanize/ipld-eth-indexer/releases/tag/v0.6.0-alpha is cut. Updated to use it and eth_call and rest of the tests are passing.