Skip to content

Trisome-Bedrock/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. Mainnet Deployed Contracts

Please check this file for more information.

3. Testnet Deployed Contracts

3.1 Bitcoin Ecosystem

Contract B² Testnet Bitlayer Testnet Merlin Testnet
ProxyAdmin 0x56c3024eB229Ca0570479644c78Af9D53472B3e4 0x56c3024eb229ca0570479644c78af9d53472b3e4 0x56c3024eb229ca0570479644c78af9d53472b3e4
uniBTC 0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894 0x16221CaD160b441db008eF6DA2d3d89a32A05859 0x16221CaD160b441db008eF6DA2d3d89a32A05859
Vault 0x2ac98DB41Cbd3172CB7B8FD8A8Ab3b91cFe45dCf 0x97e16DB82E089D0C9c37bc07F23FcE98cfF04823 0x97e16DB82E089D0C9c37bc07F23FcE98cfF04823
mockFBTC 0xC0c9E78BfC3996E8b68D872b29340816495D7e89 0xC0c9E78BfC3996E8b68D872b29340816495D7e89 -
mockWBTC 0xcBf3e6Ad1eeD0f3F81fCc2Ae76A0dB16C4e747B0 0xcBf3e6Ad1eeD0f3F81fCc2Ae76A0dB16C4e747B0 -
mockWBTC18 0x4ed4739E6F6820f2357685592168f6C6c003714f 0x1d481E87C3f3C967Ad8F17156A99D69D0052dC67 -
mockmBTC - - 0x2F9Ae77C5955c68c2Fbbca2b5b9F917e90929f7b

3.2 Ethereum Ecosystem

Contract Holesky Testnet Avalanche Fuji Testnet BSC Testnet Fantom Testnet
ProxyAdmin 0xC0c9E78BfC3996E8b68D872b29340816495D7e89 0x8746649B65eA03A22e559Eb03059018baEDFBA9e 0x49D6844cbcef64952E6793677eeaBae324f895aD 0x8746649B65eA03A22e559Eb03059018baEDFBA9e
uniBTC 0x16221CaD160b441db008eF6DA2d3d89a32A05859 0x2c914Ba874D94090Ba0E6F56790bb8Eb6D4C7e5f 0x2c914ba874d94090ba0e6f56790bb8eb6d4c7e5f 0x802d4900209b2292bf7f07ecae187f836040a709
Vault 0x97e16DB82E089D0C9c37bc07F23FcE98cfF04823 0x85792f60633DBCF7c2414675bcC0a790B1b65CbB 0x85792f60633dbcf7c2414675bcc0a790b1b65cbb 0x06c186ff3a0da2ce668e5b703015f3134f4a88ad
Peer 0x6EFc200c769E54DAab8fcF2d339b79F92cFf4EC9 0xe7431fc992a54fAA435125Ca94E00B4a8c89095c 0xd59677a6efe9151c0131e8cf174c8bbceb536005 0xe7431fc992a54faa435125ca94e00b4a8c89095c
mockFBTC 0x5C367C804ce9F00464Cba3199d6Fb646E8287146 0xEB74BB04aD28b9b7ec1f2fd1812e7242170C6d1B 0xc87E37848B913f289Aee0E2A9d3Ed94bA98D2A60 0xeb74bb04ad28b9b7ec1f2fd1812e7242170c6d1b
mockWBTC 0xcBf3e6Ad1eeD0f3F81fCc2Ae76A0dB16C4e747B0 0x49D6844cbcef64952E6793677eeaBae324f895aD 0xe7431fc992a54faa435125ca94e00b4a8c89095c 0x49d6844cbcef64952e6793677eeabae324f895ad

3.3 L1 Blockchains

Contract Berachain Testnet
ProxyAdmin 0xC0c9E78BfC3996E8b68D872b29340816495D7e89
uniBTC 0x16221CaD160b441db008eF6DA2d3d89a32A05859
Vault 0x97e16DB82E089D0C9c37bc07F23FcE98cfF04823
mockedWBTC 0xcBf3e6Ad1eeD0f3F81fCc2Ae76A0dB16C4e747B0
WBTC 0x286F1C3f0323dB9c91D1E8f45c8DF2d065AB5fae

4. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 78.4%
  • Python 21.6%