avalanche-atomic-swap-daemon 0.2.1

Production-ready HTLC atomic swap daemon for Avalanche C-Chain and Subnet-EVM chains with bidirectional support and Prometheus metrics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use alloy::sol;

sol! {
    #[derive(Debug)]
    contract HTLC {
        event SwapInitiated(bytes32 indexed hashlock, uint256 amount, address sender, uint256 timelock);
        event SwapClaimed(bytes32 indexed hashlock, bytes32 secret);
        function lock(uint256 amount, bytes32 hashlock, uint256 timelock) external payable;
        function claim(bytes32 secret) external;
    }
}

pub use HTLC::{SwapInitiated, SwapClaimed};