generated from chainbound/rust-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from chainbound/nico/feat/bindings
feat: add contract bindings
- Loading branch information
Showing
10 changed files
with
2,686 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# List all available commands | ||
default: | ||
@just --list --unsorted | ||
|
||
# Run the development server locally | ||
dev loglevel='debug': | ||
@echo "Starting bolt-registry in development mode with loglevel: {{loglevel}}" | ||
cd registry && RUST_LOG=bolt_registry={{loglevel}} cargo watch -x run | ||
|
||
# Generate new contract bindings for the registry | ||
abigen: | ||
@echo "Generating new contract bindings" | ||
@just _generate_and_export_abi SymbioticMiddlewareV1 ../registry/src/chainio/artifacts | ||
@just _generate_and_export_abi OperatorsRegistryV1 ../registry/src/chainio/artifacts | ||
@just _generate_and_export_abi EigenLayerMiddlewareV3 ../registry/src/chainio/artifacts | ||
|
||
# Helper to generate and export the ABI of a contract to a file | ||
_generate_and_export_abi contract_name out_dir: | ||
cd contracts && forge inspect {{contract_name}} abi > {{out_dir}}/{{contract_name}}.json |
Oops, something went wrong.