├── .env.example ├── .gitignore ├── README.md ├── abi ├── v1.1.0-20240307 │ ├── bridge-erc20.json │ ├── bridge-erc721.json │ └── bridge.json ├── v1.2.0-20240315 │ ├── bridge-erc20.json │ ├── bridge-erc721.json │ ├── bridge.json │ ├── erc20.json │ └── erc721.json ├── v1.3.0-20240327 │ ├── bridge-erc20.json │ ├── bridge-erc721.json │ ├── bridge.json │ ├── erc20.json │ └── erc721.json ├── v1.4.0-20240513 │ ├── bridge-erc20.json │ ├── bridge-erc721.json │ ├── bridge.json │ ├── erc20.json │ └── erc721.json ├── v1.5.0-20240925 │ ├── bridge-erc20.json │ ├── bridge-erc721.json │ ├── bridge.json │ ├── erc20.json │ └── erc721.json └── v1.6.0-202401211 │ ├── bridge-erc20.json │ ├── bridge-erc721.json │ ├── bridge.json │ ├── erc20.json │ └── erc721.json ├── contracts ├── BTCLayer2Bridge.sol ├── BTCLayer2BridgeERC20.sol ├── BTCLayer2BridgeERC721.sol ├── BridgeFeeRates.sol ├── ERC20TokenWrapped.sol ├── ERC721TokenWrapped.sol └── interfaces │ ├── IBTCLayer2BridgeERC20.sol │ ├── IBTCLayer2BridgeERC721.sol │ └── IBtcAddressChecker.sol ├── hardhat.config.js ├── package.json ├── pnpm-lock.yaml ├── scripts ├── deploy.js ├── deployOnly │ ├── deploy-bridge-erc20.js │ ├── deploy-bridge-erc721.js │ ├── deploy-bridge.js │ ├── deploy-erc20.js │ └── deploy-erc721.js ├── upgrades │ ├── upgrade-bridge-erc20.js │ ├── upgrade-bridge-erc721.js │ └── upgrade-bridge.js └── verify.js ├── test ├── Lock.js └── claim.test.js └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/README.md -------------------------------------------------------------------------------- /abi/v1.1.0-20240307/bridge-erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.1.0-20240307/bridge-erc20.json -------------------------------------------------------------------------------- /abi/v1.1.0-20240307/bridge-erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.1.0-20240307/bridge-erc721.json -------------------------------------------------------------------------------- /abi/v1.1.0-20240307/bridge.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.1.0-20240307/bridge.json -------------------------------------------------------------------------------- /abi/v1.2.0-20240315/bridge-erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.2.0-20240315/bridge-erc20.json -------------------------------------------------------------------------------- /abi/v1.2.0-20240315/bridge-erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.2.0-20240315/bridge-erc721.json -------------------------------------------------------------------------------- /abi/v1.2.0-20240315/bridge.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.2.0-20240315/bridge.json -------------------------------------------------------------------------------- /abi/v1.2.0-20240315/erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.2.0-20240315/erc20.json -------------------------------------------------------------------------------- /abi/v1.2.0-20240315/erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.2.0-20240315/erc721.json -------------------------------------------------------------------------------- /abi/v1.3.0-20240327/bridge-erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.3.0-20240327/bridge-erc20.json -------------------------------------------------------------------------------- /abi/v1.3.0-20240327/bridge-erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.3.0-20240327/bridge-erc721.json -------------------------------------------------------------------------------- /abi/v1.3.0-20240327/bridge.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.3.0-20240327/bridge.json -------------------------------------------------------------------------------- /abi/v1.3.0-20240327/erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.3.0-20240327/erc20.json -------------------------------------------------------------------------------- /abi/v1.3.0-20240327/erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.3.0-20240327/erc721.json -------------------------------------------------------------------------------- /abi/v1.4.0-20240513/bridge-erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.4.0-20240513/bridge-erc20.json -------------------------------------------------------------------------------- /abi/v1.4.0-20240513/bridge-erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.4.0-20240513/bridge-erc721.json -------------------------------------------------------------------------------- /abi/v1.4.0-20240513/bridge.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.4.0-20240513/bridge.json -------------------------------------------------------------------------------- /abi/v1.4.0-20240513/erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.4.0-20240513/erc20.json -------------------------------------------------------------------------------- /abi/v1.4.0-20240513/erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.4.0-20240513/erc721.json -------------------------------------------------------------------------------- /abi/v1.5.0-20240925/bridge-erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.5.0-20240925/bridge-erc20.json -------------------------------------------------------------------------------- /abi/v1.5.0-20240925/bridge-erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.5.0-20240925/bridge-erc721.json -------------------------------------------------------------------------------- /abi/v1.5.0-20240925/bridge.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.5.0-20240925/bridge.json -------------------------------------------------------------------------------- /abi/v1.5.0-20240925/erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.5.0-20240925/erc20.json -------------------------------------------------------------------------------- /abi/v1.5.0-20240925/erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.5.0-20240925/erc721.json -------------------------------------------------------------------------------- /abi/v1.6.0-202401211/bridge-erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.6.0-202401211/bridge-erc20.json -------------------------------------------------------------------------------- /abi/v1.6.0-202401211/bridge-erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.6.0-202401211/bridge-erc721.json -------------------------------------------------------------------------------- /abi/v1.6.0-202401211/bridge.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.6.0-202401211/bridge.json -------------------------------------------------------------------------------- /abi/v1.6.0-202401211/erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.6.0-202401211/erc20.json -------------------------------------------------------------------------------- /abi/v1.6.0-202401211/erc721.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/abi/v1.6.0-202401211/erc721.json -------------------------------------------------------------------------------- /contracts/BTCLayer2Bridge.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/BTCLayer2Bridge.sol -------------------------------------------------------------------------------- /contracts/BTCLayer2BridgeERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/BTCLayer2BridgeERC20.sol -------------------------------------------------------------------------------- /contracts/BTCLayer2BridgeERC721.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/BTCLayer2BridgeERC721.sol -------------------------------------------------------------------------------- /contracts/BridgeFeeRates.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/BridgeFeeRates.sol -------------------------------------------------------------------------------- /contracts/ERC20TokenWrapped.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/ERC20TokenWrapped.sol -------------------------------------------------------------------------------- /contracts/ERC721TokenWrapped.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/ERC721TokenWrapped.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBTCLayer2BridgeERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/interfaces/IBTCLayer2BridgeERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBTCLayer2BridgeERC721.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/interfaces/IBTCLayer2BridgeERC721.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBtcAddressChecker.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/contracts/interfaces/IBtcAddressChecker.sol -------------------------------------------------------------------------------- /hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/hardhat.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /scripts/deploy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/deploy.js -------------------------------------------------------------------------------- /scripts/deployOnly/deploy-bridge-erc20.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/deployOnly/deploy-bridge-erc20.js -------------------------------------------------------------------------------- /scripts/deployOnly/deploy-bridge-erc721.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/deployOnly/deploy-bridge-erc721.js -------------------------------------------------------------------------------- /scripts/deployOnly/deploy-bridge.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/deployOnly/deploy-bridge.js -------------------------------------------------------------------------------- /scripts/deployOnly/deploy-erc20.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/deployOnly/deploy-erc20.js -------------------------------------------------------------------------------- /scripts/deployOnly/deploy-erc721.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/deployOnly/deploy-erc721.js -------------------------------------------------------------------------------- /scripts/upgrades/upgrade-bridge-erc20.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/upgrades/upgrade-bridge-erc20.js -------------------------------------------------------------------------------- /scripts/upgrades/upgrade-bridge-erc721.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/upgrades/upgrade-bridge-erc721.js -------------------------------------------------------------------------------- /scripts/upgrades/upgrade-bridge.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/upgrades/upgrade-bridge.js -------------------------------------------------------------------------------- /scripts/verify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/scripts/verify.js -------------------------------------------------------------------------------- /test/Lock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/test/Lock.js -------------------------------------------------------------------------------- /test/claim.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/test/claim.test.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MerlinLayer2/BTCLayer2BridgeContract/HEAD/yarn.lock --------------------------------------------------------------------------------