-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SuiNS Indexer] Dynamic config & edge case fix (#16223)
## Description This PR: 1. Allows dynamic config for registry + subdomain wrapper ID from env file (so we can deploy in diff networks) 2. Gets rid of any S3 related envs, we can just use the public endpoint. 3. Rewrites the logic to use a single loop over all transactions in a sequenced way (so we make sure that in the end of each checkpoint, we only have the LAST state for updates/deletions per name record). ## Test Plan Re-run the existing tests ``` crates/suins-indexer$ cargo test ``` --- If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section. ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
1 parent
1f84041
commit 9495851
Showing
4 changed files
with
185 additions
and
161 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
DATABASE_URL=postgres://<pg_user>:<pg_password>@localhost:5432/<db_name> | ||
AWS_S3_ENDPOINT=https://s3.<region>.amazonaws.com/<bucket_name> | ||
AWS_ACCESS_KEY_ID= | ||
AWS_ACCESS_SECRET_KEY= | ||
AWS_SESSION_TOKEN= | ||
BACKFILL_PROGRESS_FILE_PATH=/tmp/backfill_progress # expects a file in the format { "indexing_name": <checkpoint> } | ||
CHECKPOINTS_DIR=/tmp/backfill_progress | ||
REMOTE_STORAGE=https://checkpoints.mainnet.sui.io | ||
BACKFILL_PROGRESS_FILE_PATH=/tmp/backfill_progress # expects a file in the format { "suins_indexing": <checkpoint> } | ||
CHECKPOINTS_DIR=/tmp/checkpoints | ||
REGISTRY_ID=0xe64cd9db9f829c6cc405d9790bd71567ae07259855f4fba6f02c84f52298c106 | ||
SUBDOMAIN_WRAPPER_TYPE=0xe64cd9db9f829c6cc405d9790bd71567ae07259855f4fba6f02c84f52298c106::subdomain_registration::SubDomainRegistration | ||
|
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.