Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.94 KB

File metadata and controls

55 lines (36 loc) · 1.94 KB

Cross-chain Strategy Deployment

  1. Deploy messengers https://github.com/Logarithm-Labs/logarithm_messenger/blob/master/README.md

  2. Deploy GasStation and Beacon(BrotherSwapper) on the destination chain

    forge script .\script\01_DeployCommon.s.sol:XDeploy --rpc-url <dest-chain-rpc> --broadcast
    
  3. Configure messengers on source and destination chains.

  • Set messenger addresses here. The messenger address resides in [Chain]Addresses.sol format files.

  • Set the addresses of GasStation and Beacon(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
    
  1. 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 --broadcast
    

    Important: Make sure all strategy parameters are set properly.

  • Set the deployed proxy addresses (Vault, Strategy, XSpotManager, OffChainPositionManager) here

  • Deploy BrotherSwapper proxy on destination chain.

    forge script .\script\04_Deploy_X_VIRTUAL_USDC_HL_Prod.s.sol:BaseDeploy --broadcast
    
  • Set the deployed BrotherSwapper address here

  • Register XSpotManager with the deployed swapper address.

    forge script .\script\04_Deploy_X_VIRTUAL_USDC_HL_Prod.s.sol:ConfigXSpot --broadcast