Skip to content

AgoL5866/stake

 
 

Repository files navigation

RockX Liquid Staking

Usage

0. Repo clone

$ git clone https://github.com/RockX-SG/stake

1. Create API KEY

Visit access.rockx.com, and create an Ethereum API KEY

2. Install brownie

Visit brownie, install brownie environment.

3. Follow: brownie-integration to setup brownie network

$brownie networks modify mainnet host=https://eth.w3node.com/\$ROCKX_API_KEY/api provider=rockx

Brownie v1.18.1 - Python development framework for Ethereum

SUCCESS: Network 'Mainnet' has been modified
  └─Mainnet
    ├─id: mainnet
    ├─chainid: 1
    ├─explorer: https://api.etherscan.io/api
    ├─host: https://eth.w3node.com/$ROCKX_API_KEY/api
    ├─multicall2: 0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696

$ export ROCKX_API_KEY=<YOUR API KEY>

4. Deploy to mainnet-fork

$cd src
$brownie run scripts/ganache_deploy.py --network mainnet-fork -I

5. Official deployment

mainnet

UNIVERSAL_ETH_ADDRESS: '0xF1376bceF0f78459C0Ed0ba5ddce976F1ddF51F4'
STAKING_ADDRESS: '0x4beFa2aA9c305238AA3E0b5D17eB20C045269E9d'
REDEEM_ADDRESS: '0x98169228cB99Ed26c1043eD8Ca53A5Cb371D3B8D'
PROXY_ADMIN: '0xa5F2B6AB5B38b88Ba221741b3A189999b4c889C6'
RESTAKING_ADDRESS: '0x3F4eaCeb930b0Edfa78a1DFCbaE5c5494E6e9850'
EIGENPOD_ADDRESS: '0x926720Ae39114D0e2043b79570A1e08f00D01cCE'

goerli

UNIVERSAL_ETH_ADDRESS: '0xB4f4231fC4Be7A34f0a1BE046538793Dc8D99c0E'
STAKING_ADDRESS: '0xa6E1a466626Db4927C197468026fa0A54c092492'
REDEEM_ADDRESS: '0xc6928Af206b0ABe57354D901dfB6Ca3EC4ecC5E3'

holesky

UNIVERSAL_ETH_ADDRESS: 0x13586f74B4077c06Ea1B68ec41694d9BbFc2627F
STAKING_ADDRESS: 0x0f59BfDEdbB4ECc965be28484BfD968552fD5C67
REDEEM_ADDRESS:  0x4BA466b3C0FC80cD935D27eb3f5C40a730bab3B6

6. Error Codes from contracts

  1. SYS001: PHASE_MISMATCH
  2. SYS002: PHASE_ROLLBACK
  3. SYS003: INCONSISTENT_SIG_LEN
  4. SYS004: INCONSISTENT_PUBKEY_LEN
  5. SYS005: DUPLICATED_PUBKEY
  6. SYS006: PUBKEY_NOT_EXSITS
  7. SYS007: LENGTH_NOT_EQUAL
  8. SYS008: SHARE_OUT_OF_RANGE
  9. SYS009: REGISTRY_DEPLETED
  10. SYS010: WITHDRAW_EXCEEDED_MANAGER_REVENUE
  11. SYS011: INSUFFICIENT_ETHERS
  12. SYS012: CASUALITY_VIOLATION
  13. SYS013: VALIDATOR_COUNT_MISMATCH
  14. SYS014: ALIVE_BALANCE_DECREASED
  15. SYS015: NOT_ENOUGH_REVENUE
  16. SYS016: MALICIOUS_PUSH
  17. SYS017: EMPTY_CALLDATA
  18. SYS018: REPORTED_MORE_STOPPED_VALIDATORS
  19. SYS019: INSUFFICIENT_ETHERS_ARRIVED
  20. SYS020: ID_ALREADY_STOPPED
  21. SYS021: MALICIOUS_UNSTAKED_VALUE
  22. SYS022: EMPTY_QUEUE
  23. SYS023: DEBT_CONTRACT_NOT_SET
  24. SYS024: WITHDRAWAL_CREDENTIALS_NOT_SET
  25. SYS025: RESTAKING_ADDRESS_EMPTY
  26. SYS026: EIGENPODMANAGER_NULL
  27. SYS027: DELEGATIONMANAGER_NULL
  28. SYS028: STRATEGYMANAGER_NULL
  29. SYS029: DELAYED_WITHDRAWAL_ROUTER_NULL
  30. SYS030: STOPPED_VALIDATOR_DONOT_MATCH
  31. USR001: TRANSACTION_EXPIRED
  32. USR002: MINT_ZERO
  33. USR003: NEED_KYC_FOR_MORE
  34. USR004: EXCHANGE_RATIO_MISMATCH
  35. USR005: REDEEM_NOT_IN_32ETHERS
  36. USR006: SWAP_ZERO
  37. USR007: TOO_SMALL

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 82.6%
  • TypeScript 11.4%
  • Python 3.0%
  • Ruby 2.3%
  • Shell 0.5%
  • JavaScript 0.2%