Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating FCP from Proxima to Swan Mainnet #112

Open
Normalnoise opened this issue Jul 18, 2024 · 0 comments
Open

Migrating FCP from Proxima to Swan Mainnet #112

Normalnoise opened this issue Jul 18, 2024 · 0 comments

Comments

@Normalnoise
Copy link
Collaborator

Why Upgrade?

The Swan Atom Accelerator Race event ended on July 15th, and the mainnet incentive campaign has begun. The Proxima environment will now serve as a test environment for CPs to familiarize themselves with the processes. All CPs can now migrate to the mainnet to earn rewards by contributing their computing resources.

Mainnet campaign link: 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, you can check it by computing-provider contract default.
    • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant