Skip to content

Commit

Permalink
Merge pull request #38 from chainbound/nico/feat/bindings
Browse files Browse the repository at this point in the history
feat: add contract bindings
  • Loading branch information
merklefruit authored Jan 30, 2025
2 parents 2a8204c + a9b01d5 commit b8d5386
Show file tree
Hide file tree
Showing 10 changed files with 2,686 additions and 254 deletions.
19 changes: 19 additions & 0 deletions justfile
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
Loading

0 comments on commit b8d5386

Please sign in to comment.