-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-enable Playwright installation and update data types in photon-api/models cd forester && pnpm test-1000-sync failing interop tests added • Use root_seq % 1400 instead of change_log_index • Sort accounts in state nullification test performance optimisations wip fix after rebase js transfer testnet test update forester keypair + move to .env, which is in .gitignore wip refactor config Allow to nullify state and addresses simultaneously Refactor init_rpc and nullify functions to use config directly Refactor code to support concurrent nullification tasks The code has been changed to support concurrent nullification of state and address trees. This includes changing the way some variables (like configuration and RPC) are passed around to use Arc<Mutex<T>> wrapper to ensure safe concurrent access. The nullify function is now also designed to be run in parallel using tokio's task spawn and join mechanism. Reduce total number of transfers (generate_sync) and cleanup nullify_addresses function Refactor and reformat Forester codebase Simplify error handling and refactor import order in tests Update test configurations and external service references Add derivation key to external services config A new field named 'derivation' has been incorporated to the external services configuration, setting a preset value for different environments. This modification enables us to use a variable derivation key, retrieved from the external services configuration, in the nullifier module. Implement async processing for account nullification Implement new version of application logic in forester's service. Add extensive logging and debug support across codebase This commit enriches various modules with extensive logging for better monitoring and debugging. Added Debug trait implementations for multiple structs and improved the error handling flow with additional logging. This will make understanding the pipeline's flow easier and facilitate troubleshooting during incidents. chore: Refactor module structure and file organization in v2 state module Refactor module structure and file organization in v2 state module Refactor v2 state module structure and file organization Refactor v2 address module structure and file organization Refactor forester Add shutdown handling to pipeline and processors Refactoring Add logging and retry mechanism in merkle tree update Update pnpm-lock.yaml and adjust low_address_next_value in photon_indexer.rs In pnpm-lock.yaml, some dependencies related to 'eslint-plugin-import' were adjusted and two nonessential lines were removed. Changes in photon_indexer.rs include fixing Gracefully end address process Refactor module hierarchy and update configuration Revised the module from 'v2' to 'nullifier', consequently adjusting import paths across multiple files. Also, a few changes were made to the configuration settings in 'main.rs'. Testing strategy was slightly modified within 'package.json'. Completion of assertion test in 'e2e_test.rs' was restored. fix Clean up and remove unnecessary code comments . Refactor code for enhanced readability and maintainability This commit encompasses a series of syntactical changes across multiple files. Primarily, the changes streamline `use` imports, update the arrangement of module imports, minimize the usage of whitespace, and enhance code indentation for better readability. No logical changes to functionalities or algorithms are made.
- Loading branch information
1 parent
89d2f7d
commit 4b88b39
Showing
54 changed files
with
1,598 additions
and
840 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/target | ||
.idea | ||
.env |
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,10 +1,5 @@ | ||
PAYER = [17, 34, 231, 31, 83, 147, 93, 173, 61, 164, 25, 0, 204, 82, 234, 91, 202, 187, 228, 110, 146, | ||
97, 112, 131, 180, 164, 96, 220, 57, 207, 65, 107, 2, 99, 226, 251, 88, 66, 92, 33, 25, 216, | ||
211, 185, 112, 203, 212, 238, 105, 144, 72, 121, 176, 253, 106, 168, 115, 158, 154, 188, 62, | ||
255, 166, 81] | ||
|
||
STATE_MERKLE_TREE_PUBKEY = "5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W" | ||
NULLIFIER_QUEUE_PUBKEY = "44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ" | ||
REGISTRY_PUBKEY = "7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1" | ||
ADDRESS_MERKLE_TREE_PUBKEY = "C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn" | ||
ADDRESS_MERKLE_TREE_QUEUE_PUBKEY = "HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz" | ||
STATE_MERKLE_TREE_PUBKEY="5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W" | ||
NULLIFIER_QUEUE_PUBKEY="44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ" | ||
REGISTRY_PUBKEY="7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1" | ||
ADDRESS_MERKLE_TREE_PUBKEY="C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn" | ||
ADDRESS_MERKLE_TREE_QUEUE_PUBKEY="HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
ROOT_DIR=$(git rev-parse --show-toplevel) | ||
solana-test-validator --account-dir "$ROOT_DIR"/cli/accounts |
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 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
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,32 @@ | ||
#[derive(Debug, Clone)] | ||
pub struct ExternalServicesConfig { | ||
pub rpc_url: String, | ||
pub ws_rpc_url: String, | ||
pub indexer_url: String, | ||
pub prover_url: String, | ||
pub derivation: String, | ||
} | ||
|
||
impl ExternalServicesConfig { | ||
pub fn local() -> Self { | ||
Self { | ||
rpc_url: "http://localhost:8899".to_string(), | ||
ws_rpc_url: "ws://localhost:8900".to_string(), | ||
indexer_url: "http://localhost:8784".to_string(), | ||
prover_url: "http://localhost:3001".to_string(), | ||
// derivation: "H7ZzJngDRtAGCV8Y9HwJrMpsxeNZQyYkjxw4GE8YcUG2".to_string(), | ||
derivation: "En9a97stB3Ek2n6Ey3NJwCUJnmTzLMMEA5C69upGDuQP".to_string(), | ||
// derivation: "ALA2cnz41Wa2v2EYUdkYHsg7VnKsbH1j7secM5aiP8k".to_string() | ||
} | ||
} | ||
|
||
pub fn zktestnet() -> Self { | ||
Self { | ||
rpc_url: "https://zk-testnet.helius.dev:8899".to_string(), | ||
ws_rpc_url: "ws://zk-testnet.helius.dev:8900".to_string(), | ||
indexer_url: "https://zk-testnet.helius.dev:8784".to_string(), | ||
prover_url: "https://zk-testnet.helius.dev:3001".to_string(), | ||
derivation: "En9a97stB3Ek2n6Ey3NJwCUJnmTzLMMEA5C69upGDuQP".to_string(), | ||
} | ||
} | ||
} |
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.