Open Normalnoise opened 3 months ago
LFG best project ever
good to be here
Thank you for the docs. Here a summary for ECP:
computing-provider wallet export 0xA
SWAN_COLLATERAL_CONTRACT
REGISTER_CP_CONTRACT
ZK_COLLATERAL_CONTRACT
restart
computing-provider wallet import 0xA
computing-provider wallet list
computing-provider init --multi-address="..." --port 1234 --node-name="..."
computing-provider account create --ownerAddress 0xB --workerAddress 0xA --beneficiaryAddress 0xB --task-types 1,2,4
computing-provider collateral add --ecp --from 0xA --account 0xC 1
computing-provider info
restart
result:
computing-provider info
CP Account Info:
CP Account Address(2.0): 0xC
Name: Test123
Owner: 0xB
Node ID: 04d03fcd36b...
Domain: <YOUR CP Domain>
Multi-Address: /ip4/1.2.3.4/tcp/3456
Worker Address: 0xA
Beneficiary Address: 0xB
Capabilities:
Task Types: Fil-C2-512M,Aleo,Fil-C2-32G
Applications: 0
Owner Balance(sETH): 0.728
Worker Balance(sETH): 0.728
ECP Balance(sETH):
Collateral: 1.000
Escrow: 0.000
FCP Balance(sETH):
Collateral: 0.000
Escrow: 0.000
For FCP it's quite the same. just change:
computing-provider account create --ownerAddress 0xB --workerAddress 0xA --beneficiaryAddress 0xB --task-types 3
computing-provider collateral add --fcp --from 0xA --account 0xC 1
computing-provider info
...
Capabilities:
Task Types: AI
Applications: 31
Owner Balance(sETH): 0.698
Worker Balance(sETH): 0.698
ECP Balance(sETH):
Collateral: 0.000
Escrow: 0.000
FCP Balance(sETH):
Collateral: 0.500
Escrow: 0.000
Steps to Upgrade to CP Version 0.5.0:
As an ECP:
Export and back up your private key:
Back up the
config.toml
file in the$CP_PATH
directory asconfig.toml.bak
.Follow the Deployment DOC to start.
As an FCP:
Withdraw your previous staked Swan-ETH:
Back up and export the private key:
Modify the
config.toml
file in the$CP_PATH
directory:Follow the Deployment DOC to start.
v0.5.0