erc_4626.vault_protocol.antarctic.migration
Documentation for eth_defi.erc_4626.vault_protocol.antarctic.migration Python module.
Bounded Antarctic metadata repair and event-history backfill.
Only the two reviewed Arbitrum LP token identities are rewritten. Reader state is never removed or reset, and the common writer receives an explicit address scope. See README-Antarctic.md for production volume and locking requirements.
Functions
|
Prepare both target rows before mutating any metadata database. |
|
Run a locked, copied-state rehearsal or explicit address-scoped apply. |
Parse the migration mode, defaulting to a non-persistent rehearsal. |
- parse_antarctic_migration_dry_run(value)
Parse the migration mode, defaulting to a non-persistent rehearsal.
Invalid input fails before a store is opened or a network read begins.
- fetch_antarctic_metadata_replacements(web3, database, token_cache)
Prepare both target rows before mutating any metadata database.
Creation dates come from the explorer/Hypersync-verified registry. Existing target rows are merge bases so adapter-unowned annotations are preserved.
- Parameters
web3 (web3.main.Web3) – Configured Arbitrum connection.
database (eth_defi.vault.vaultdb.VaultDatabase) – Existing shared metadata and leads.
token_cache (eth_defi.token.TokenDiskCache) – Token metadata cache.
- Returns
Validated target row and lead replacements.
- Return type
collections.abc.Mapping[eth_defi.vault.base.VaultSpec, tuple[eth_defi.vault.vaultdb.VaultRow, eth_defi.erc_4626.discovery_base.PotentialVaultMatch]]
- main()
Run a locked, copied-state rehearsal or explicit address-scoped apply.
Network prefill and atomic price writing complete before metadata is published. Dry runs copy existing prices/context into the mounted volume and use private token and timestamp caches.
- Returns
None.
- Return type
None