This file contains hidden or 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
// SPDX-License-Identifier: LGPL-3.0-only | |
pragma solidity ^0.8.0; | |
import { ISignatureValidatorConstants, ISignatureValidator } from "https://github.com/gnosis/safe-contracts/blob/v1.3.0/contracts/interfaces/ISignatureValidator.sol"; | |
import { IERC721 } from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.5.0/contracts/token/ERC721/IERC721.sol"; | |
enum Flag { Nil, Validated, NotValidated } | |
/// @notice allows a 1 of 1 gnosis safe to be controlled by a NFT |
This file contains hidden or 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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
contract Caller { | |
uint256 flag = 0; | |
event InsideBeforeDelegate(); | |
event InsideAfterDelegate(); | |
event OutsideAfterAllWtf(); |
This file contains hidden or 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
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
contract L1Sender { | |
address payable immutable l2Receiver; | |
constructor(address _l2Receiver) { | |
l2Receiver = payable(_l2Receiver); | |
} | |
This file contains hidden or 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
// SPDX-License-Identifier: Apache-2.0 | |
pragma solidity ^0.6.11; | |
library AddressAliasHelper { | |
uint160 constant offset = uint160(0x1111000000000000000000000000000000001111); | |
/// @notice Utility function that converts the msg.sender viewed in the L2 to the | |
/// address in the L1 that submitted a tx to the inbox |
This file contains hidden or 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
pragma solidity ^0.6.11; | |
import "./ArbSys.sol"; | |
import "./IInbox.sol"; | |
contract L1Contract { | |
address constant ARBSYS_ADDR = address(0x0000000000000000000000000000000000000064); | |
address inbox; | |
event WithdrawalCreated(uint256 amount, uint256 indexed id); |
This file contains hidden or 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
pragma solidity ^0.4.0; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". | |
*/ | |
contract Ownable { | |
address public owner; |