Skip to main content
After you read this page, you can configure the SDK for a network, and you can check each address against the chain. Anafi has a deployment on three networks: polygon, xlayer and polygon-amoy. Each table copies the deployment record of that network. The record holds the values at the time of the deployment. The registry owner can change some values later, so read the chain for the current state. The last section shows how. Use the proxy address of each upgradeable contract. Do not call an implementation address directly.

polygon

Polygon PoS mainnet. Chain id 137. Deploy block 94819521. Safe releases that the deployment admitted on the Safe adapter:

xlayer

X Layer mainnet. Chain id 196. Deploy block 71515481. The deployment record of xlayer does not list the admitted Safe releases. Read them from the Safe adapter with admittedSafeProxyCodehashes(bytes32) and admittedSafeSingletons(address).

polygon-amoy

Polygon PoS Amoy testnet. Chain id 80002. Deploy block 49116880. Safe releases that the deployment admitted on the Safe adapter:

SDK configuration

The SDK client takes the addresses in two objects of AnafiClientConfig: addresses, of type AnafiClientAddresses, and delegationAdapters, of type DelegationAdapters.
The SDK reads the swap executor from the ERC20Allow adapter, and the engine keys from the registry. See Client for the other fields of the configuration.

Read the same values on chain

Start from the registry address. Each other Anafi address has a getter that you can check against this page.
The Safe infrastructure contracts belong to Safe, not to Anafi. Anafi uses the public Safe deployments at the addresses above. The four addresses of the singleton, the L2 singleton, SafeToL2Setup and the proxy factory together set the address of each Safe that the SDK predicts for an owner. The deployment block is the first block where an Anafi event of that network can exist. Use it as fromBlock when you read Anafi events.