Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PP-885/explore-solution-b2 #260

Merged
merged 14 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/pre-push
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
antomor marked this conversation as resolved.
Show resolved Hide resolved
12 changes: 9 additions & 3 deletions contracts/import.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ pragma solidity ^0.6.12;
import '@rsksmart/rif-relay-contracts/contracts/RelayHub.sol';
import '@rsksmart/rif-relay-contracts/contracts/smartwallet/SmartWallet.sol';
import '@rsksmart/rif-relay-contracts/contracts/smartwallet/CustomSmartWallet.sol';
import '@rsksmart/rif-relay-contracts/contracts/factory/SmartWalletFactory.sol';
import '@rsksmart/rif-relay-contracts/contracts/smartwallet/CustomSmartWallet.sol';
import '@rsksmart/rif-relay-contracts/contracts/smartwallet/BoltzSmartWallet.sol';
import '@rsksmart/rif-relay-contracts/contracts/smartwallet/MinimalBoltzSmartWallet.sol';
import '@rsksmart/rif-relay-contracts/contracts/factory/SmartWalletFactory.sol';
import '@rsksmart/rif-relay-contracts/contracts/factory/CustomSmartWalletFactory.sol';
import '@rsksmart/rif-relay-contracts/contracts/verifier/DeployVerifier.sol';
import '@rsksmart/rif-relay-contracts/contracts/factory/BoltzSmartWalletFactory.sol';
import '@rsksmart/rif-relay-contracts/contracts/factory/MinimalBoltzSmartWalletFactory.sol';
import '@rsksmart/rif-relay-contracts/contracts/verifier/CustomSmartWalletDeployVerifier.sol';
import '@rsksmart/rif-relay-contracts/contracts/verifier/DeployVerifier.sol';
import '@rsksmart/rif-relay-contracts/contracts/verifier/RelayVerifier.sol';
import '@rsksmart/rif-relay-contracts/contracts/verifier/BoltzRelayVerifier.sol';
import '@rsksmart/rif-relay-contracts/contracts/verifier/BoltzDeployVerifier.sol';
import '@rsksmart/rif-relay-contracts/contracts/verifier/MinimalBoltzRelayVerifier.sol';
import '@rsksmart/rif-relay-contracts/contracts/verifier/MinimalBoltzDeployVerifier.sol';
import '@rsksmart/rif-relay-contracts/contracts/Penalizer.sol';
import '@rsksmart/rif-relay-contracts/contracts/utils/UtilToken.sol';
import '@rsksmart/rif-relay-contracts/contracts/interfaces/IForwarder.sol';
Expand Down
19 changes: 19 additions & 0 deletions contracts/test/TestSwap.sol
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 {}

}
4,392 changes: 2,068 additions & 2,324 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"@metamask/eth-sig-util": "^5.0.2",
"@nomicfoundation/hardhat-toolbox": "^2.0.0",
"@nomiclabs/hardhat-ethers": "^2.2.1",
"@openzeppelin/contracts": "^3.4.0",
antomor marked this conversation as resolved.
Show resolved Hide resolved
"@rsksmart/rif-relay-client": "github:rsksmart/rif-relay-client",
"@rsksmart/rif-relay-contracts": "github:rsksmart/rif-relay-contracts",
"@rsksmart/rif-relay-server": "github:rsksmart/rif-relay-server",
Expand Down Expand Up @@ -115,6 +116,7 @@
"devDependencies": {
"@types/express": "^4.17.17",
"@types/sinon-chai": "^3.2.10",
"axios": "^1.6.7",
"sinon": "^16.0.0",
"sinon-chai": "^3.7.0"
}
Expand Down
Loading
Loading