-
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.
Retries for proofs and starknet (#14)
* feat: enhance MMR build options and refactor RPC handling Add new MMR build options: - Add --start-block (-s) to start building from specific block - Add --from-latest (-l) to start from latest MMR block - Add validation to prevent conflicting options - Update help text for all CLI options Refactor RPC URL handling: - Move RPC URL handling from StarknetAccount to AccumulatorBuilder - Add starknet_rpc_url field to AccumulatorBuilder struct - Update AccumulatorBuilder::new signature to accept RPC URL - Remove RPC URL handling from StarknetAccount New AccumulatorBuilder methods: - Add build_from_block for starting from specific block - Add build_from_latest for starting from latest MMR block - Add build_from_block_with_batches for batch processing - Add build_from_latest_with_batches for batch processing This change improves flexibility in MMR building by: 1. Allowing users to specify custom start points 2. Supporting continuation from latest MMR state 3. Making the RPC URL dependency explicit 4. Simplifying provider creation for latest block queries * remove unused update_mmr_state from starknet account * implemented retries for starkent proof verification tx * fixes for mmr build restart + added min block to starknet store * scarb fmt * updated cairo in ci
- Loading branch information
Showing
17 changed files
with
406 additions
and
116 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,31 @@ | ||
ETH_RPC_URL=http://anvil:8545 | ||
FORK_URL=http://209.127.228.66:8545 | ||
|
||
BONSAI_API_KEY=XXX | ||
BONSAI_API_URL=https://api.bonsai.xyz/ | ||
|
||
DATABASE_URL=XXX | ||
|
||
ETH_ACCOUNT_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 | ||
ACCOUNT_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | ||
|
||
SN_MESSAGING=0x0c77a52c35601106993B684E6b20D68FF0a89493 | ||
L1_MESSAGE_SENDER=0x77F83238fa5FFD7E031C2D1195AC5d0a8D1B3df5 | ||
|
||
export FOUNDRY_EVM_VERSION=cancun | ||
|
||
ANVIL_CONFIG=config/anvil.messaging.json | ||
STARKNET_RPC_URL=http://katana:5050 | ||
STARKNET_PRIVATE_KEY=0xc5b2fcab997346f3ea1c00b002ecf6f382c5f9c9659a3894eb783c5320f912 | ||
STARKNET_ACCOUNT_ADDRESS=0x127fd5f1fe78a71f8bcd1fec63e3fe2f0486b6ecd5c86a0466c3a21fa5cfcec | ||
|
||
L2_MSG_PROXY=0x01c0692f888adfb3dea3d4b4446afbfcd3a2456a64b113084af3549e8d6915e8 | ||
FOSSIL_STORE=0x02d4eac88f8e9bbb0fd4ff2c35d385710bf3f8a6e4061266ac4de628dac11dd5 | ||
|
||
STARKNET_VERIFIER=0x03848e3432559e5804d48e1a60faa59c9ab00f515bcf122e3865193277eb118a | ||
FOSSIL_VERIFIER=0x029d9eba080e8e7a6eed79f432b8d0cbe1e7ffe4187eda3cf2819cde8d700ff2 | ||
|
||
STARKNET_ACCOUNT=katana-0 | ||
|
||
DEPLOYMENT_VERSION=local | ||
CHAIN_ID=11155111 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"chain": "ethereum", | ||
"rpc_url": "http://localhost:8545", | ||
"contract_address": "0xE37675Bb1cc1c90dB0Deed8033CAb650770e79cE", | ||
"rpc_url": "http://anvil:8545", | ||
"contract_address": "0xe9FfA5399C14206e16D801dA5BD94cbF67bE82a7", | ||
"sender_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"private_key": "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", | ||
"interval": 2, | ||
"from_block": 7422233 | ||
"from_block": 7442506 | ||
} |
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
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
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
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
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
Oops, something went wrong.