Skip to content

feat: add anvil indexer #607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["relayer", "crates/*"]

[workspace.dependencies]
bindings = { package = "bob-bindings", path = "crates/bindings" }
bindings = { package = "bindings", path = "crates/bindings" }
utils = { package = "bob-utils", path = "crates/utils" }

# Bitcoin
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bindings:
rm -rf $(BINDINGS_OUT_PATH)

# Generate new bindings
@forge bind --root $(CONTRACTS_PATH) --crate-name $(BINDINGS_FOLDER) --select FullRelay
@forge bind --root $(CONTRACTS_PATH) --crate-name $(BINDINGS_FOLDER) --select FullRelay --select OrderBook

# Move bindings to the correct location
@mv -f $(BINDINGS_OUT_PATH) $(CRATES_FOLDER)
Expand Down
11 changes: 11 additions & 0 deletions contracts/src/mock/OrderBook.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pragma solidity ^0.8.17;

contract OrderBook {
uint256 public number;

event SubmitOrder(uint256 orderId, address sender, uint256 amount);

function submitOrder(uint256 amount) public {
emit SubmitOrder(block.number, msg.sender, amount);
}
}
176 changes: 44 additions & 132 deletions crates/bindings/src/fullrelay.rs

Large diffs are not rendered by default.

2,138 changes: 648 additions & 1,490 deletions crates/bindings/src/fullrelayaddheadertest.rs

Large diffs are not rendered by default.

2,071 changes: 645 additions & 1,426 deletions crates/bindings/src/fullrelayaddheaderwithretargettest.rs

Large diffs are not rendered by default.

2,070 changes: 641 additions & 1,429 deletions crates/bindings/src/fullrelayconstructiontest.rs

Large diffs are not rendered by default.

2,069 changes: 640 additions & 1,429 deletions crates/bindings/src/fullrelayfindancestortest.rs

Large diffs are not rendered by default.

2,069 changes: 640 additions & 1,429 deletions crates/bindings/src/fullrelayfindheighttest.rs

Large diffs are not rendered by default.

Loading
Loading