-
Deploy messengers https://github.com/Logarithm-Labs/logarithm_messenger/blob/master/README.md
-
Deploy
GasStationandBeacon(BrotherSwapper)on the destination chainforge script .\script\01_DeployCommon.s.sol:XDeploy --rpc-url <dest-chain-rpc> --broadcast -
Configure messengers on source and destination chains.
-
Set messenger addresses here. The messenger address resides in
[Chain]Addresses.solformat files. -
Set the addresses of
GasStationandBeacon(BrotherSwapper)here -
Configure messengers with the deployed gas station and wire on Arbitrum (source) chain.
forge script .\script\crosschain\ConfigMessenger.s.sol:ArbConfigScript --broadcast -
Configure messengers with the deployed gas station and wire on destination chains.
forge script .\script\crosschain\ConfigMessenger.s.sol:EthConfigScript --broadcast
- Deploy and configure strategy collection contracts.
-
Upgrade all existing beacon contracts (OffChainManager, SpotManager, XSpotManager, BasisStrategy, LogarithmVault) on Arbitrum chain.
-
Deploy proxies for arbitrum (sou.rce) chain strategy collection.
forge script .\script\04_Deploy_X_VIRTUAL_USDC_HL_Prod.s.sol:ArbDeploy --broadcastImportant: Make sure all strategy parameters are set properly.
-
Set the deployed proxy addresses (Vault, Strategy, XSpotManager, OffChainPositionManager) here
-
Deploy
BrotherSwapperproxy on destination chain.forge script .\script\04_Deploy_X_VIRTUAL_USDC_HL_Prod.s.sol:BaseDeploy --broadcast -
Set the deployed
BrotherSwapperaddress here -
Register
XSpotManagerwith the deployed swapper address.forge script .\script\04_Deploy_X_VIRTUAL_USDC_HL_Prod.s.sol:ConfigXSpot --broadcast