Skip to content

Bedrock-Technology/uniBTC

Repository files navigation

uniBTC

1. Compile Contracts

This repository uses submodules to manage dependencies on other repositories.

  • Command to clone this repository: git clone --recurse-submodules [email protected]:Bedrock-Technology/uniBTC.git.

  • If you have already cloned, from the uniBTC/ directory, run git submodule update --init --recursive.

After all submodules are updated as required, you can build contracts with this Brownie command: brownie compile.

2. Deployed Contracts

Please check here for more information.

3. Error Codes from contracts

  1. SYS001: INVALID_ADDRESS
  2. SYS002: TOKEN_PAUSED
  3. SYS003: INVALID_TOKEN_ADDRESS
  4. SYS004: INCORRECT_DECIMALS
  5. SYS005: MINIMUM_VALUE_SHOULD_BE_A_POSITIVE_MULTIPLE_OF_100000
  6. SYS006: INVALID_INPUT_ARRAY_LENGTHS
  7. SYS007: CHAIN_ID_CANNOT_BE_ZERO
  8. SYS008: INVALID_PEER_ADDRESS
  9. SYS009: IRREDEEMABLE_STATUS
  10. SYS010: INCONSISTENT_DECIMALS
  11. SYS011: OUT_OF_SERVICE
  12. SYS012: NATIVE_BTC_NOT_SUPPORTED
  13. USR001: UNIBTC: LEAST_ONE_RECIPIENT_ADDRESS
  14. USR002: UNIBTC: NUMBER_OF_RECIPIENT_ADDRESSES_DOES_NOT_MATCH_THE_NUMBER_OF_TOKENS
  15. USR003: INSUFFICIENT_QUOTA
  16. USR004: INVALID_CHAINID
  17. USR005: DESTINATION_PEER_DOES_NOT_EXIST
  18. USR006: INVALID_AMOUNT_TO_TRANSFER
  19. USR007: TRANSFER_TO_THE_ZERO_ADDRESS
  20. USR008: INCORRECT_FEE
  21. USR009: ILLEGAL_REMOTE_CALLER
  22. USR010: INSUFFICIENT_AMOUNT
  23. USR011: INVALID_SLIPPAGE
  24. USR012: SET_DELAY_REDEEM_BLOCK_TOO_LARGE
  25. USR013: SET_DAY_CAP_TOO_LARGE
  26. USR014: AMOUNT_TOO_LESS
  27. USR015: AMOUNT_TOO_MORE
  28. USR016: CAN_ONLY_TRANSFER_TO_DEDICATED_RECIPIENT
  29. USR017: TOKEN_CAP_ERROR
  30. USR018: NO_POOLS_FOR_LEADING_TOKEN
  31. USR019: PRINCIPAL_REDEEM_TIME_MISMATCH
  32. USR020: VARIABLE_VALUE_IS_EXITED
  33. USR021: VARIABLE_VALUE_IS_INVALID
  34. USR022: VARIABLE_VALUE_IS_NOT_EXITED
  35. USR023: SIGN_ERROR
  36. USR024: SYS_SIGNER_NOT_SET
  37. USR025: CALL_FAILED
  38. USR026: NOT_EOA