Migrating FCP to Swan Mainnet

Now all CPs can migrate to the mainnet to participate in Swan Mainnet Campaign

How to Upgrade and Migrate to Swan Mainnet

First-time Deployment

If you are deploying for the first time, you can follow the instructions in the latest version: Swan Chain Computing Provider v0.6.1

Migration from Proxima to Mainnet

  1. Update resource-exporter to the latest version v11.2.8: Follow the instructions in this issue: Update Resource Exporter to v11.2.8.

  2. Specify a new CP_PATH:

    export CP_PATH="/YOUR/CP/PATH"
  3. Download the mainnet version of the computing-provider:

    wget https://github.com/swanchain/go-computing-provider/releases/download/v0.6.1/computing-provider
  4. Verify CP version:

    computing-provider -v

    Ensure it shows version 0.6.1+mainnet.

  5. Initialize CP repo and update configuration: Refer to Initialize CP Repo and Update Configuration

    Note:

    • No need to modify parts of the configuration file with default values.

    • The "contract address" is now built into the program, no separate configuration is needed.

    • The default configuration file template can be found here.

  6. Initialize a Wallet and Deposit SwanETH: Refer to Initialize a Wallet and Deposit SwanETH.

  7. Initialization CP Account: Refer to Initialization CP Account.

  8. Collateral SWANC for FCP: Refer to Collateral SWANC for FCP.

  9. Withdraw SWANC from FCP: Refer to Withdraw SWANC from FCP.

  10. Start the Computing Provider: Refer to Start the Computing Provider.

Mainnet Changes

  1. Different Compilation Method:

    • Mainnet version: make mainnet

    • Testnet version: make testnet

  2. Different Collateral:

  3. Different Task Distribution Platform:

  4. Funds Operations:

  5. ECP (Edge Computing Provider):

    • The new version will support ECP running independently or with FCP, allowing FCP to earn both rewards simultaneously.

    • ECP tasks are more frequent but offer lower rewards.

For any questions, refer to the detailed documentation on the Swan Mainnet Campaign.

Last updated