-
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.
- Loading branch information
1 parent
4b2c69d
commit 3ac21f9
Showing
6 changed files
with
708 additions
and
1,092 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
contracts/test/TestBoltzDeployVerifierEverythingAccepted.sol
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,31 @@ | ||
// SPDX-License-Identifier:MIT | ||
pragma solidity ^0.6.12; | ||
pragma experimental ABIEncoderV2; | ||
|
||
import "@rsksmart/rif-relay-contracts/contracts/interfaces/IDeployVerifier.sol"; | ||
import "@rsksmart/rif-relay-contracts/contracts/TokenHandler.sol"; | ||
import "@rsksmart/rif-relay-contracts/contracts/DestinationContractHandler.sol"; | ||
|
||
contract TestBoltzDeployVerifierEverythingAccepted is IDeployVerifier, TokenHandler, DestinationContractHandler { | ||
|
||
function versionVerifier() external view override virtual returns (string memory){ | ||
return "2.0.1+enveloping.test-pea.iverifier"; | ||
} | ||
|
||
event SampleRecipientPreCall(); | ||
event SampleRecipientPostCall(bool success); | ||
|
||
function verifyRelayedCall( | ||
/* solhint-disable-next-line no-unused-vars */ | ||
EnvelopingTypes.DeployRequest calldata relayRequest, | ||
bytes calldata signature | ||
) | ||
external | ||
override | ||
virtual | ||
returns (bytes memory) { | ||
(signature, relayRequest); | ||
emit SampleRecipientPreCall(); | ||
return ("no revert here"); | ||
} | ||
} |
Oops, something went wrong.