Skip to content

Commit

Permalink
feat(starknet_l1_provider): add Starknet contract
Browse files Browse the repository at this point in the history
Use alloy to generate a `Starknet` instance, which can interact with
contract on L1.
Using `Starknet::new` assumes the contract _has already been deployed_
at the given address, and will delegate calls to that address.

Note: since errors are not possible during construction, the error
handling was removed.
  • Loading branch information
Gilad Chase committed Dec 18, 2024
1 parent 28a0f67 commit f3e4531
Show file tree
Hide file tree
Showing 6 changed files with 864 additions and 27 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/papyrus_base_layer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ alloy-dyn-abi.workspace = true
alloy-json-rpc.workspace = true
alloy-primitives.workspace = true
alloy-provider.workspace = true
alloy-sol-types.workspace = true
alloy-sol-types = { workspace = true, features = ["json"] }
alloy-transport.workspace = true
alloy-transport-http.workspace = true
async-trait.workspace = true
Expand Down
Loading

0 comments on commit f3e4531

Please sign in to comment.