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

fetch_antarctic_metadata_replacements(web3, ...)

Prepare both target rows before mutating any metadata database.

main()

Run a locked, copied-state rehearsal or explicit address-scoped apply.

parse_antarctic_migration_dry_run(value)

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.

Parameters

value (Optional[str]) – Raw DRY_RUN environment value.

Returns

True unless an explicit false literal was supplied.

Return type

bool

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
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