-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: integration test * refactor: boltz components * fix: change the estimation script to include the full boltz template * fix: cover the minimal boltz template with the gas estimation * fix: remove hard-coded gas and add some checks on deployment * refactor: minimal boltz * refactor: destination contract * chore: updated dependencies * test: add some tests to show the interaction with the server without client --------- Co-authored-by: Antonio <[email protected]>
- Loading branch information
1 parent
54eab20
commit 1c0c81f
Showing
17 changed files
with
5,202 additions
and
2,879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run test | ||
npm run test -- --network regtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.6.12; | ||
|
||
contract TestSwap { | ||
|
||
function claim( | ||
bytes32 preimage, | ||
uint amount, | ||
address refundAddress, | ||
uint timelock | ||
) external { | ||
(bool success, ) = payable(msg.sender).call{value: amount}(""); | ||
require(success, "Could not transfer Ether"); | ||
} | ||
|
||
// solhint-disable-next-line no-empty-blocks | ||
receive() external payable {} | ||
|
||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.