-
Notifications
You must be signed in to change notification settings - Fork 3
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
c5862a6
commit 528f4b3
Showing
10 changed files
with
150 additions
and
54 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// Importing uFragments contract dependencies to be compiled for integration tests | ||
pragma solidity 0.7.6; | ||
|
||
import {UFragments} from "uFragments/contracts/UFragments.sol"; | ||
|
||
contract UFragmentsTestnet is UFragments { | ||
event Result(bool result, bytes reason); | ||
|
||
function isArbitrumEnabled() external view returns (uint8) { | ||
return uint8(0xa4b1); | ||
} | ||
|
||
// NOTE: this allows the token contarct to register itself with the bridge on testnet | ||
// The AMPL contract on mainnet is immutable and this can't be used! | ||
function externalCall(address destination, bytes calldata data, uint256 value) external payable { | ||
(bool result, bytes memory reason) = destination.call{value: value}(data); | ||
emit Result(result, reason); | ||
} | ||
} |
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
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
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
Oops, something went wrong.