Compile contracts:
npm run compile
Generate artifacts:
npm run generate
Run tests:
npm run test
Run the deploy
task:
npx hardhat deploy --network $YOUR_NETWORK
Add an attestor
npx hardhat add-attestor --host $ATTESTOR_HOST --address $ATTESTOR_ADDRESS --network $YOUR_NETWORK
Remove an attestor
npx hardhat remove-attestor --host $ATTESTOR_HOST --network $YOUR_NETWORK
Get an attestor
npx hardhat get-attestor --host $ATTESTOR_HOST --network $YOUR_NETWORK
Get all attestors
npx hardhat get-attestors --network $YOUR_NETWORK
Stake an amount
npx hardhat stake --amount $YOUR_AMOUNT --network $YOUR_NETWORK
Request unstaking
npx hardhat request-unstake --network $YOUR_NETWORK
Unstake
npx hardhat unstake --network $YOUR_NETWORK
Set minimum stake amount
npx hardhat set-minimum-stake --amount $YOUR_AMOUNT --network $YOUR_NETWORK
Get minimum stake amount
npx hardhat get-minimum-stake --network $YOUR_NETWORK
Set unboding period
npx hardhat set-unbonding-period --amount 1 --network $YOUR_NETWORK
Get unboding period
npx hardhat get-unbonding-period --network $YOUR_NETWORK
Set required attestors count
npx hardhat set-required-attestors --amount $YOUR_AMOUNT --network $YOUR_NETWORK
Get required attestors count
npx hardhat get-required-attestors --network $YOUR_NETWORK
Set verification cost
npx hardhat set-verification-cost --amount $YOUR_AMOUNT --network $YOUR_NETWORK
Get verification cost
npx hardhat get-verification-cost --network $YOUR_NETWORK
Set slashing flag
npx hardhat set-slashing-enabled --flag $YOUR_BOOLEAN_FLAG --network $YOUR_NETWORK
Get slashing flag
npx hardhat get-slashing-enabled --network $YOUR_NETWORK
Slash
npx hardhat slash --amount $YOUR_AMOUNT --network $YOUR_NETWORK
Get total staked
npx hardhat get-total-staked --network $YOUR_NETWORK
Get total slashed
npx hardhat get-total-slashed --network $YOUR_NETWORK
Get stake per attestor
npx hardhat get-staked-amount --host $YOUR_HOST --network $YOUR_NETWORK
Get (pending) reward per attestor
npx hardhat get-reward-amount --host $YOUR_HOST --network $YOUR_NETWORK
Claim rewards
npx hardhat claim-rewards --network $YOUR_NETWORK
Withdraw funds
npx hardhat withdraw --network $YOUR_NETWORK
Get current task
npx hardhat get-current-task --network $YOUR_NETWORK
Fetch a task by id
npx hardhat fetch-task --id $YOUR_ID --network $YOUR_NETWORK
Fetch consensus result per task
npx hardhat get-consensus --id $YOUR_ID --network $YOUR_NETWORK
Create a task request
npx hardhat create-task-request --network $YOUR_NETWORK
Contract Name | Deployed Address | Explorer Link |
---|---|---|
Governance | 0xCc08210D8f15323104A629a925E4cc59D0fa2Fe1 | https://testnet-scan.mechain.tech/address/0xCc08210D8f15323104A629a925E4cc59D0fa2Fe1 |
ReclaimTask | 0xd6534f52CEB3d0139b915bc0C3278a94687fA5C7 | https://testnet-scan.mechain.tech/address/0xd6534f52CEB3d0139b915bc0C3278a94687fA5C7 |