Skip to content

leon-do/hash-timelock-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTLC

For EVM to Non-EVM cross chain swaps

Bitcoin Lightning: https://www.youtube.com/watch?v=12Y0qTUlRKU

Stellar: https://leondo.medium.com/stellar-hash-timelock-contract-htlc-9cdc998999c5

Sepolia: https://sepolia.etherscan.io/address/0xd70df01b868f3c57d42fcdc4e8feac33e5c0d235#code

Install

forge install --no-commit --shallow OpenZeppelin/openzeppelin-contracts

Documentation

https://book.getfoundry.sh/

Usage

Format

forge fmt

Build

forge build

Test

forge test --watch --run-all

Deploy

source .env

forge script script/Deploy.s.sol:DeployScript \
    --rpc-url $RPC_URL \
    --broadcast --verify -vvvv \
    --legacy

About

#️⃣ hash timelock contract for atomic swaps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published