Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x57bf81ac19961625dc6bc874056f06e5ba086beb0821b1e7aa957abc58936378 | 40039154 | 19 days 18 hrs ago | 0x0000000000ffe8b47b3e2130213b802212439497 | Contract Creation | 0 MATIC |
[ Download CSV Export ]
Contract Source Code Verified (Exact Match)
Contract Name:
EssentialForwarder
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). 0xEssential removes the chainId from domainSeparator, instead including chainId as * a bytes32 representation as the salt. This allows wallets to sign from any network, while still ensuring signatures * can only be used on the target chain. * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EssentialEIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256("EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() public view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, address(this), bytes32(getChainId()))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } function getChainId() public view returns (uint256 id) { assembly { id := chainid() } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./EssentialEIP712Base.sol"; import "./SignedOwnershipProof.sol"; import "./IForwardRequest.sol"; import "./IDelegationRegistry.sol"; /// @title EssentialForwarder /// @author 0xEssential /// @notice EIP-2771 based MetaTransaction Forwarding Contract with EIP-3668 OffchainLookup for cross-chain token gating /// @dev Allows a Relayer to submit meta-transactions that utilize an NFT (i.e. in a game) on behalf of EOAs. Transactions /// are only executed if the Relayer provides a signature from a trusted signer. The signature must include the current /// owner of the Layer 1 NFT being used, or a Burner EOA the owner has authorized to use its NFTs. /// /// EssentialForwarder can be used to build Layer 2 games that use Layer 1 NFTs without bridging and with superior UX. /// End users can specify a Burner EOA from their primary EOA, and then use that burner address to play games. /// The Burner EOA can then sign messages for game moves without user interaction without any risk to the NFTs or other /// assets owned by the primary EOA. contract EssentialForwarder is EssentialEIP712, AccessControl, SignedOwnershipProof { using ECDSA for bytes32; error Unauthorized(); error InvalidSignature(); error InvalidOwnership(); error InternalTransactionFailure(); error OffchainLookup(address sender, string[] urls, bytes callData, bytes4 callbackFunction, bytes extraData); bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); bytes32 private constant ERC721_TYPEHASH = keccak256( "ForwardRequest(address to,address from,address authorizer,address nftContract,uint256 nonce,uint256 nftChainId,uint256 nftTokenId,uint256 targetChainId,bytes data)" ); bytes32 private constant NATIVE_TYPEHASH = keccak256( "MinimalRequest(address to,address from,address authorizer,uint256 nonce,uint256 targetChainId,bytes data)" ); mapping(address => uint256) internal _nonces; IDelegationRegistry public DelegationRegistry; string[] public urls; constructor(address initialOwner) EssentialEIP712("EssentialForwarder", "0.0.1") { _setupRole(DEFAULT_ADMIN_ROLE, initialOwner); _setupRole(ADMIN_ROLE, initialOwner); } /// @notice Set OffchainLookup urls function setUrls(string[] memory _urls) external onlyRole(ADMIN_ROLE) { urls = _urls; } /// @notice Change the ownership signer function setOwnershipSigner(address newSigner) external onlyRole(ADMIN_ROLE) { _setOwnershipSigner(newSigner); } /// @notice Change the Delegation source function setDelegationRegistry(address registry) external onlyRole(ADMIN_ROLE) { DelegationRegistry = IDelegationRegistry(registry); } /// @notice Get current nonce for EOA function getNonce(address from) external view returns (uint256) { return _nonces[from]; } /// @notice Submit a meta-tx request and signature to check validity and receive /// a response with data useful for fetching a trusted proof per EIP-3668. /// @dev Per EIP-3668, a valid signature will cause a revert with useful error params. function preflight(IForwardRequest.ERC721ForwardRequest calldata req, bytes calldata signature) public view { // If the signature is valid for the request and state, the client will receive // the OffchainLookup error with parameters suitable for an https call to a JSON // RPC server. if (!verifyRequest(req, signature)) revert InvalidSignature(); revert OffchainLookup( address(this), urls, abi.encode( req.from, req.authorizer, _nonces[req.from], req.nftChainId, req.nftContract, req.nftTokenId, block.chainid, block.timestamp ), this.executeWithProof.selector, abi.encode(block.timestamp, req, signature) ); } /// @notice For standard transactions that verify NFT ownership, call this view function /// with the ERC721ForwardRequest representation of the transaction to be submitted. You'll /// receive a revert with data useful for fetching a trusted proof per EIP-3668. /// @dev Per EIP-3668, a valid signature will cause a revert with useful error params. function preflightNative(IForwardRequest.ERC721ForwardRequest calldata req) public view { // If the signature is valid for the request and state, the client will receive // the OffchainLookup error with parameters suitable for an https call to a JSON // RPC server. revert OffchainLookup( address(this), urls, abi.encode( req.from, req.authorizer, _nonces[req.from], req.nftChainId, req.nftContract, req.nftTokenId, block.chainid, block.timestamp ), this.executeWithProofNative.selector, abi.encode(block.timestamp, req) ); } /// @notice Re-submit a valid meta-tx request with trust-minimized proof to execute the transaction. /// @dev The RPC call and re-submission should be handled by your Relayer client /// @param response The unaltered bytes reponse from a call made to an RPC url from OffchainLookup::urls /// @param extraData The unaltered bytes from OffchainLookup::extraData function executeWithProof(bytes calldata response, bytes calldata extraData) external payable returns (bytes memory) { (uint256 timestamp, IForwardRequest.ERC721ForwardRequest memory req, bytes memory signature) = abi.decode( extraData, (uint256, IForwardRequest.ERC721ForwardRequest, bytes) ); if (!verifyRequest(req, signature)) revert InvalidSignature(); if (!verifyOwnershipProof(req, response, timestamp)) revert InvalidOwnership(); ++_nonces[req.from]; return _executeWithProof(req); } function executeWithProofNative(bytes calldata response, bytes calldata extraData) external payable returns (bytes memory) { (uint256 timestamp, IForwardRequest.ERC721ForwardRequest memory req) = abi.decode( extraData, (uint256, IForwardRequest.ERC721ForwardRequest) ); if (!verifyOwnershipProof(req, response, timestamp)) revert InvalidOwnership(); ++_nonces[msg.sender]; return _executeWithProof(req); } function _executeWithProof(IForwardRequest.ERC721ForwardRequest memory req) internal returns (bytes memory) { (bool success, bytes memory returndata) = req.to.call{gas: req.gas, value: 0}( // Implementation contracts may use EssentialERC2771Context::_msgNFT() // to access trusted NFT data. Calldata is compatible with OZ::_msgSender() abi.encodePacked(req.data, req.nftChainId, req.nftTokenId, req.nftContract, req.authorizer) ); // Validate that the relayer has sent enough gas for the call. // See https://ronan.eth.link/blog/ethereum-gas-dangers/ assert(gasleft() > req.gas / 63); if(!success) revert InternalTransactionFailure(); return returndata; } /// @notice Submit a meta-tx request where a proof of ownership is not required. /// @dev Useful for transactions where the signer is not using a specific NFT, but values /// are still required in the signature - use the zero address for nftContract and 0 for tokenId function verify(IForwardRequest.ForwardRequest calldata req, bytes calldata signature) public view returns (bool) { return verifyUnauthenticatedRequest(req, signature); } function execute(IForwardRequest.ForwardRequest calldata req, bytes calldata signature) public payable returns (bytes memory) { if (!verifyUnauthenticatedRequest(req, signature)) revert InvalidSignature(); _nonces[req.from] = req.nonce + 1; (bool success, bytes memory returndata) = req.to.call{gas: req.gas, value: req.value}( abi.encodePacked(req.data, uint256(0), uint256(0), address(0), req.authorizer) ); // Validate that the relayer has sent enough gas for the call. // See https://ronan.eth.link/blog/ethereum-gas-dangers/ assert(gasleft() > req.gas / 63); if(!success) revert InternalTransactionFailure(); return returndata; } function verifyRequest(IForwardRequest.ERC721ForwardRequest memory req, bytes memory signature) internal view returns (bool) { address signer = _hashTypedDataV4( keccak256( abi.encode( ERC721_TYPEHASH, req.to, req.from, req.authorizer, req.nftContract, req.nonce, req.nftChainId, req.nftTokenId, req.targetChainId, keccak256(req.data) ) ) ).recover(signature); return _nonces[req.from] == req.nonce && signer == req.from && req.targetChainId == block.chainid; } function verifyUnauthenticatedRequest(IForwardRequest.ForwardRequest memory req, bytes memory signature) internal view returns (bool) { address signer = _hashTypedDataV4( keccak256( abi.encode( NATIVE_TYPEHASH, req.to, req.from, req.authorizer, req.nonce, req.targetChainId, keccak256(req.data) ) ) ).recover(signature); return _nonces[req.from] == req.nonce && signer == req.from && req.targetChainId == block.chainid; } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity ^0.8.17; /** * @title An immutable registry contract to be deployed as a standalone primitive * @dev See EIP-5639, new project launches can read previous cold wallet -> hot wallet delegations * from here and integrate those permissions into their flow */ interface IDelegationRegistry { /// @notice Delegation type enum DelegationType { NONE, ALL, CONTRACT, TOKEN } /// @notice Info about a single delegation, used for onchain enumeration struct DelegationInfo { DelegationType type_; address vault; address delegate; address contract_; uint256 tokenId; } /// @notice Info about a single contract-level delegation struct ContractDelegation { address contract_; address delegate; } /// @notice Info about a single token-level delegation struct TokenDelegation { address contract_; uint256 tokenId; address delegate; } /// @notice Emitted when a user delegates their entire wallet event DelegateForAll(address vault, address delegate, bool value); /// @notice Emitted when a user delegates a specific contract event DelegateForContract(address vault, address delegate, address contract_, bool value); /// @notice Emitted when a user delegates a specific token event DelegateForToken(address vault, address delegate, address contract_, uint256 tokenId, bool value); /// @notice Emitted when a user revokes all delegations event RevokeAllDelegates(address vault); /// @notice Emitted when a user revoes all delegations for a given delegate event RevokeDelegate(address vault, address delegate); /** * ----------- WRITE ----------- */ /** * @notice Allow the delegate to act on your behalf for all contracts * @param delegate The hotwallet to act on your behalf * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking */ function delegateForAll(address delegate, bool value) external; /** * @notice Allow the delegate to act on your behalf for a specific contract * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking */ function delegateForContract( address delegate, address contract_, bool value ) external; /** * @notice Allow the delegate to act on your behalf for a specific token * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param tokenId The token id for the token you're delegating * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking */ function delegateForToken( address delegate, address contract_, uint256 tokenId, bool value ) external; /** * @notice Revoke all delegates */ function revokeAllDelegates() external; /** * @notice Revoke a specific delegate for all their permissions * @param delegate The hotwallet to revoke */ function revokeDelegate(address delegate) external; /** * @notice Remove yourself as a delegate for a specific vault * @param vault The vault which delegated to the msg.sender, and should be removed */ function revokeSelf(address vault) external; /** * ----------- READ ----------- */ /** * @notice Returns all active delegations a given delegate is able to claim on behalf of * @param delegate The delegate that you would like to retrieve delegations for * @return info Array of DelegationInfo structs */ function getDelegationsByDelegate(address delegate) external view returns (DelegationInfo[] memory); /** * @notice Returns an array of wallet-level delegates for a given vault * @param vault The cold wallet who issued the delegation * @return addresses Array of wallet-level delegates for a given vault */ function getDelegatesForAll(address vault) external view returns (address[] memory); /** * @notice Returns an array of contract-level delegates for a given vault and contract * @param vault The cold wallet who issued the delegation * @param contract_ The address for the contract you're delegating * @return addresses Array of contract-level delegates for a given vault and contract */ function getDelegatesForContract(address vault, address contract_) external view returns (address[] memory); /** * @notice Returns an array of contract-level delegates for a given vault's token * @param vault The cold wallet who issued the delegation * @param contract_ The address for the contract holding the token * @param tokenId The token id for the token you're delegating * @return addresses Array of contract-level delegates for a given vault's token */ function getDelegatesForToken( address vault, address contract_, uint256 tokenId ) external view returns (address[] memory); /** * @notice Returns all contract-level delegations for a given vault * @param vault The cold wallet who issued the delegations * @return delegations Array of ContractDelegation structs */ function getContractLevelDelegations(address vault) external view returns (ContractDelegation[] memory delegations); /** * @notice Returns all token-level delegations for a given vault * @param vault The cold wallet who issued the delegations * @return delegations Array of TokenDelegation structs */ function getTokenLevelDelegations(address vault) external view returns (TokenDelegation[] memory delegations); /** * @notice Returns true if the address is delegated to act on the entire vault * @param delegate The hotwallet to act on your behalf * @param vault The cold wallet who issued the delegation */ function checkDelegateForAll(address delegate, address vault) external view returns (bool); /** * @notice Returns true if the address is delegated to act on your behalf for a token contract or an entire vault * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param vault The cold wallet who issued the delegation */ function checkDelegateForContract( address delegate, address vault, address contract_ ) external view returns (bool); /** * @notice Returns true if the address is delegated to act on your behalf for a specific token, the token's contract or an entire vault * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param tokenId The token id for the token you're delegating * @param vault The cold wallet who issued the delegation */ function checkDelegateForToken( address delegate, address vault, address contract_, uint256 tokenId ) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; interface IForwardRequest { struct ERC721ForwardRequest { address from; // Externally-owned account (EOA) signing the request. address authorizer; // Externally-owned account (EOA) that authorized from account in PlaySession. address to; // Destination address, normally a smart contract for an nFight game. address nftContract; // The address of the NFT contract for the token being used. uint256 nftTokenId; // The tokenId of the NFT being used uint256 nftChainId; // The chainId of the NFT neing used uint256 targetChainId; // The chainId where the Forwarder and implementation contract are deployed. uint256 value; // Amount of ether to transfer to the destination. uint256 gas; // Amount of gas limit to set for the execution. uint256 nonce; // On-chain tracked nonce of a transaction. bytes data; // (Call)data to be sent to the destination. } struct ForwardRequest { address from; // Externally-owned account (EOA) signing the request. address authorizer; // Externally-owned account (EOA) that authorized from account in PlaySession. address to; // Destination address, normally a smart contract for an nFight game. uint256 targetChainId; // The chainId where the Forwarder and implementation contract are deployed. uint256 value; // Amount of ether to transfer to the destination. uint256 gas; // Amount of gas limit to set for the execution. uint256 nonce; // On-chain tracked nonce of a transaction. bytes data; // (Call)data to be sent to the destination. } struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } struct PlaySession { address authorized; // Burner EOA that is authorized to play with NFTs by owner EOA. uint256 expiresAt; // block timestamp when the session is invalidated. } struct NFT { address contractAddress; uint256 tokenId; uint256 chainId; } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./IForwardRequest.sol"; import "./EssentialEIP712Base.sol" as EssentialEIP712Base; /// @title SignedOwnershipProof /// @author Sammy Bauch /// @dev Based on SignedAllowance by Simon Fremaux (@dievardump) /// see https://github.com/dievardump/signed-minting contract SignedOwnershipProof { using ECDSA for bytes32; // address used to sign proof of ownership address private _ownershipSigner; /// @notice Construct message that _ownershipSigner must sign as ownership proof /// @dev The RPC server uses this view function to create the ownership proof /// @param signer the address that currently owns the L1 NFT /// @param authorizer the address that currently owns the L1 NFT /// @param nonce the meta-transaction nonce for account /// @param nftChainId the chainId for the nftContract /// @param nftContract the contract address for the NFT being utilized /// @param tokenId the tokenId from nftContract for the NFT being utilized /// @param timestamp the timestamp from the OffchainLookup error /// @return the message _ownershipSigner should sign function createMessage( address signer, address authorizer, uint256 nonce, uint256 nftChainId, address nftContract, uint256 tokenId, uint256 timestamp ) public view returns (bytes32) { return keccak256( abi.encode(signer, authorizer, nonce, nftChainId, nftContract, tokenId, block.chainid, timestamp) ); } /// @notice Verify signed OffchainLookup proof against meta-tx request data /// @dev Ensures that _ownershipSigner signed a message containing (nftOwner OR authorized address, nonce, nftContract, tokenId) /// @param req structured data submitted by EOA making a meta-transaction request /// @param signature the signature proof created by the ownership signer EOA function verifyOwnershipProof( IForwardRequest.ERC721ForwardRequest memory req, bytes memory signature, uint256 timestamp ) public view returns (bool) { // TODO: what are the drift requirements here? require(block.timestamp - timestamp < 10 minutes, "Stale"); bytes32 message = createMessage( req.from, req.authorizer, req.nonce, req.nftChainId, req.nftContract, req.nftTokenId, timestamp ).toEthSignedMessageHash(); return message.recover(signature) == _ownershipSigner; } /// @notice Get ownershipSigner address /// @return the ownership proof signer address function ownershipSigner() public view returns (address) { return _ownershipSigner; } /// @dev This signer should hold no assets and is only used for signing L1 ownership proofs. /// @param newSigner the new signer's public address function _setOwnershipSigner(address newSigner) internal { _ownershipSigner = newSigner; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "@ensdomains/=node_modules/@ensdomains/", "@openzeppelin/=node_modules/@openzeppelin/", "ds-test/=lib/forge-std/lib/ds-test/src/", "eth-gas-reporter/=node_modules/eth-gas-reporter/", "forge-std/=lib/forge-std/src/", "hardhat-deploy/=node_modules/hardhat-deploy/", "hardhat/=node_modules/hardhat/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InternalTransactionFailure","type":"error"},{"inputs":[],"name":"InvalidOwnership","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"string[]","name":"urls","type":"string[]"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"bytes4","name":"callbackFunction","type":"bytes4"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"OffchainLookup","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DelegationRegistry","outputs":[{"internalType":"contract IDelegationRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_domainSeparatorV4","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"nftChainId","type":"uint256"},{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"createMessage","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"targetChainId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct IForwardRequest.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"response","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"executeWithProof","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"response","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"executeWithProofNative","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownershipSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"nftTokenId","type":"uint256"},{"internalType":"uint256","name":"nftChainId","type":"uint256"},{"internalType":"uint256","name":"targetChainId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct IForwardRequest.ERC721ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"preflight","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"nftTokenId","type":"uint256"},{"internalType":"uint256","name":"nftChainId","type":"uint256"},{"internalType":"uint256","name":"targetChainId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct IForwardRequest.ERC721ForwardRequest","name":"req","type":"tuple"}],"name":"preflightNative","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"name":"setDelegationRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setOwnershipSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_urls","type":"string[]"}],"name":"setUrls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"urls","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"targetChainId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct IForwardRequest.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"uint256","name":"nftTokenId","type":"uint256"},{"internalType":"uint256","name":"nftChainId","type":"uint256"},{"internalType":"uint256","name":"targetChainId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct IForwardRequest.ERC721ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"verifyOwnershipProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b50604051620029f2380380620029f2833981016040819052620000359162000207565b604080518082018252601281527122b9b9b2b73a34b0b62337b93bb0b93232b960711b6020808301918252835180850185526005815264302e302e3160d81b908201529151902060c08181527fae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc19916381188560e08190524660a081815286517f36c25de3e541d5d970f66e4210d728721220fff5c077cc6cd008b3a0c62adab781880181905281890196909652606081019390935230608080850191909152838201929092528651808403909101815291909201909452835193909201929092209052610100526200012460008262000157565b620001507fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758262000157565b5062000239565b62000163828262000167565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000163576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001c33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000602082840312156200021a57600080fd5b81516001600160a01b03811681146200023257600080fd5b9392505050565b60805160a05160c05160e051610100516127746200027e60003960006108f1015260006109400152600061091b015260006108a0015260006108c801526127746000f3fe6080604052600436106101665760003560e01c8063796676be116100d1578063cc75e30f1161008a578063d6ad439411610064578063d6ad439414610447578063dbf0eeef1461045a578063f2cde3ef1461046d578063f9a9c00f1461048d57600080fd5b8063cc75e30f146103e7578063d547741f14610407578063d66df8f01461042757600080fd5b8063796676be1461033d5780637b134b4c1461035d578063819025641461037257806391d148541461039257806395cb1c2d146103b2578063a217fddf146103d257600080fd5b806336568abe1161012357806336568abe1461027b5780633da29f0b1461029b5780635c0dfff6146102bb5780636cc895a9146102db57806373aa9e94146102fb57806375b238fc1461031b57600080fd5b806301ffc9a71461016b57806312ce42fd146101a0578063248a9ca3146101d25780632d0335ab146102105780632f2ff15d146102465780633408e47014610268575b600080fd5b34801561017757600080fd5b5061018b61018636600461190f565b6104ad565b60405190151581526020015b60405180910390f35b3480156101ac57600080fd5b506001546001600160a01b03165b6040516001600160a01b039091168152602001610197565b3480156101de57600080fd5b506102026101ed366004611939565b60009081526020819052604090206001015490565b604051908152602001610197565b34801561021c57600080fd5b5061020261022b36600461196e565b6001600160a01b031660009081526002602052604090205490565b34801561025257600080fd5b50610266610261366004611989565b6104e4565b005b34801561027457600080fd5b5046610202565b34801561028757600080fd5b50610266610296366004611989565b61050e565b6102ae6102a93660046119f6565b610591565b6040516101979190611ab7565b3480156102c757600080fd5b506102026102d6366004611aca565b610746565b3480156102e757600080fd5b506102666102f6366004611c1d565b61078a565b34801561030757600080fd5b5061026661031636600461196e565b6107b5565b34801561032757600080fd5b5061020260008051602061271f83398151915281565b34801561034957600080fd5b506102ae610358366004611939565b6107f0565b34801561036957600080fd5b5061020261089c565b34801561037e57600080fd5b5061018b61038d366004611de2565b61098e565b34801561039e57600080fd5b5061018b6103ad366004611989565b610a7e565b3480156103be57600080fd5b506102666103cd366004611e67565b610aa7565b3480156103de57600080fd5b50610202600081565b3480156103f357600080fd5b5061018b6104023660046119f6565b610be3565b34801561041357600080fd5b50610266610422366004611989565b610bf9565b34801561043357600080fd5b506003546101ba906001600160a01b031681565b6102ae610455366004611eb5565b610c1e565b6102ae610468366004611eb5565b610cc7565b34801561047957600080fd5b5061026661048836600461196e565b610da5565b34801561049957600080fd5b506102666104a8366004611f20565b610ddc565b60006001600160e01b03198216637965db0b60e01b14806104de57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000828152602081905260409020600101546104ff81610e84565b6105098383610e91565b505050565b6001600160a01b03811633146105835760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61058d8282610f15565b5050565b60606105db61059f85611f54565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610f7a92505050565b6105f857604051638baa579f60e01b815260040160405180910390fd5b61060760c0850135600161200b565b60026000610618602088018861196e565b6001600160a01b03166001600160a01b0316815260200190815260200160002081905550600080856040016020810190610652919061196e565b6001600160a01b031660a0870135608088013561067260e08a018a61201e565b60008060008d602001602081019061068a919061196e565b60405160200161069f96959493929190612064565b60408051601f19818403018152908290526106b9916120a4565b600060405180830381858888f193505050503d80600081146106f7576040519150601f19603f3d011682016040523d82523d6000602084013e6106fc565b606091505b509092509050610711603f60a08801356120c0565b5a1161071f5761071f6120e2565b8161073d5760405163c6b7740f60e01b815260040160405180910390fd5b95945050505050565b600087878787878746886040516020016107679897969594939291906120f8565b604051602081830303815290604052805190602001209050979650505050505050565b60008051602061271f8339815191526107a281610e84565b8151610509906004906020850190611852565b60008051602061271f8339815191526107cd81610e84565b50600380546001600160a01b0319166001600160a01b0392909216919091179055565b6004818154811061080057600080fd5b90600052602060002001600091509050805461081b90612143565b80601f016020809104026020016040519081016040528092919081815260200182805461084790612143565b80156108945780601f1061086957610100808354040283529160200191610894565b820191906000526020600020905b81548152906001019060200180831161087757829003601f168201915b505050505081565b60007f000000000000000000000000000000000000000000000000000000000000000046036108ea57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301523060808301524660a0808401919091528351808403909101815260c0909201909252805191012090565b600061025861099d8342612177565b106109d25760405162461bcd60e51b81526020600482015260056024820152645374616c6560d81b604482015260640161057a565b6000610a526109ff866000015187602001518861012001518960a001518a606001518b608001518a610746565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6001549091506001600160a01b0316610a6b828661108c565b6001600160a01b03161495945050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610aef610ab38461218a565b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506110b092505050565b610b0c57604051638baa579f60e01b815260040160405180910390fd5b306004610b1c602086018661196e565b610b2c604087016020880161196e565b60026000610b3d60208a018a61196e565b6001600160a01b0316815260208101919091526040016000205460a0880135610b6c60808a0160608b0161196e565b89608001354642604051602001610b8a9897969594939291906120f8565b60405160208183030381529060405263dbf0eeef60e01b42878787604051602001610bb894939291906122d4565b60408051601f1981840301815290829052630556f18360e41b825261057a9594939291600401612300565b6000610bf161059f85611f54565b949350505050565b600082815260208190526040902060010154610c1481610e84565b6105098383610f15565b6060600080610c2f84860186612411565b91509150610c758188888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525087925061098e915050565b610c9257604051630f1f82e960e31b815260040160405180910390fd5b3360009081526002602052604081208054909190610caf90612457565b90915550610cbc816111cb565b979650505050505050565b606060008080610cd985870187612470565b925092509250610ce982826110b0565b610d0657604051638baa579f60e01b815260040160405180910390fd5b610d488289898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525088925061098e915050565b610d6557604051630f1f82e960e31b815260040160405180910390fd5b81516001600160a01b031660009081526002602052604081208054909190610d8c90612457565b90915550610d99826111cb565b98975050505050505050565b60008051602061271f833981519152610dbd81610e84565b600180546001600160a01b0319166001600160a01b0384161790555050565b306004610dec602084018461196e565b610dfc604085016020860161196e565b60026000610e0d602088018861196e565b6001600160a01b0316815260208101919091526040016000205460a0860135610e3c608088016060890161196e565b87608001354642604051602001610e5a9897969594939291906120f8565b60405160208183030381529060405263d6ad439460e01b4285604051602001610bb89291906124dc565b610e8e81336112bb565b50565b610e9b8282610a7e565b61058d576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610ed13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610f1f8282610a7e565b1561058d576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008061103b836110357fc352fb4bac0a9eb2a3eb9d512b9c3fc84437de7669b62ac390f09924ce4887cd8760400151886000015189602001518a60c001518b606001518c60e001518051906020012060405160200161101a97969594939291909687526001600160a01b0395861660208801529385166040870152919093166060850152608084019290925260a083019190915260c082015260e00190565b6040516020818303038152906040528051906020012061131f565b9061108c565b60c085015185516001600160a01b0316600090815260026020526040902054919250148015611076575083516001600160a01b038281169116145b8015610bf1575046846060015114949350505050565b600080600061109b858561136d565b915091506110a8816113db565b509392505050565b60008061117c836110357f43fa348c6c9d3f16a4580fbb7f1b7f0432ed8cdc844564275311b61f50661ea08760400151886000015189602001518a606001518b61012001518c60a001518d608001518e60c001518f61014001518051906020012060405160200161101a9a99989796959493929190998a526001600160a01b0398891660208b015296881660408a0152948716606089015292909516608087015260a086015260c085019390935260e08401929092526101008301919091526101208201526101400190565b61012085015185516001600160a01b03166000908152600260205260409020549192501480156111b8575083516001600160a01b038281169116145b8015610bf1575050505060c00151461490565b606060008083604001516001600160a01b031684610100015160008661014001518760a00151886080015189606001518a602001516040516020016112149594939291906124f5565b60408051601f198184030181529082905261122e916120a4565b600060405180830381858888f193505050503d806000811461126c576040519150601f19603f3d011682016040523d82523d6000602084013e611271565b606091505b5091509150603f84610100015161128891906120c0565b5a11611296576112966120e2565b816112b45760405163c6b7740f60e01b815260040160405180910390fd5b9392505050565b6112c58282610a7e565b61058d576112dd816001600160a01b03166014611591565b6112e8836020611591565b6040516020016112f9929190612542565b60408051601f198184030181529082905262461bcd60e51b825261057a91600401611ab7565b60006104de61132c61089c565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008082516041036113a35760208301516040840151606085015160001a6113978782858561172c565b945094505050506113d4565b82516040036113cc57602083015160408401516113c1868383611819565b9350935050506113d4565b506000905060025b9250929050565b60008160048111156113ef576113ef6125b7565b036113f75750565b600181600481111561140b5761140b6125b7565b036114585760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161057a565b600281600481111561146c5761146c6125b7565b036114b95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161057a565b60038160048111156114cd576114cd6125b7565b036115255760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161057a565b6004816004811115611539576115396125b7565b03610e8e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161057a565b606060006115a08360026125cd565b6115ab90600261200b565b6001600160401b038111156115c2576115c2611b34565b6040519080825280601f01601f1916602001820160405280156115ec576020820181803683370190505b509050600360fc1b81600081518110611607576116076125e4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611636576116366125e4565b60200101906001600160f81b031916908160001a905350600061165a8460026125cd565b61166590600161200b565b90505b60018111156116dd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611699576116996125e4565b1a60f81b8282815181106116af576116af6125e4565b60200101906001600160f81b031916908160001a90535060049490941c936116d6816125fa565b9050611668565b5083156112b45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161057a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156117635750600090506003611810565b8460ff16601b1415801561177b57508460ff16601c14155b1561178c5750600090506004611810565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156117e0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661180957600060019250925050611810565b9150600090505b94509492505050565b6000806001600160ff1b0383168161183660ff86901c601b61200b565b90506118448782888561172c565b935093505050935093915050565b828054828255906000526020600020908101928215611898579160200282015b828111156118985782518290611888908261265f565b5091602001919060010190611872565b506118a49291506118a8565b5090565b808211156118a45760006118bc82826118c5565b506001016118a8565b5080546118d190612143565b6000825580601f106118e1575050565b601f016020900490600052602060002090810190610e8e91905b808211156118a457600081556001016118fb565b60006020828403121561192157600080fd5b81356001600160e01b0319811681146112b457600080fd5b60006020828403121561194b57600080fd5b5035919050565b80356001600160a01b038116811461196957600080fd5b919050565b60006020828403121561198057600080fd5b6112b482611952565b6000806040838503121561199c57600080fd5b823591506119ac60208401611952565b90509250929050565b60008083601f8401126119c757600080fd5b5081356001600160401b038111156119de57600080fd5b6020830191508360208285010111156113d457600080fd5b600080600060408486031215611a0b57600080fd5b83356001600160401b0380821115611a2257600080fd5b908501906101008288031215611a3757600080fd5b90935060208501359080821115611a4d57600080fd5b50611a5a868287016119b5565b9497909650939450505050565b60005b83811015611a82578181015183820152602001611a6a565b50506000910152565b60008151808452611aa3816020860160208601611a67565b601f01601f19169290920160200192915050565b6020815260006112b46020830184611a8b565b600080600080600080600060e0888a031215611ae557600080fd5b611aee88611952565b9650611afc60208901611952565b95506040880135945060608801359350611b1860808901611952565b925060a0880135915060c0880135905092959891949750929550565b634e487b7160e01b600052604160045260246000fd5b60405161016081016001600160401b0381118282101715611b6d57611b6d611b34565b60405290565b60405161010081016001600160401b0381118282101715611b6d57611b6d611b34565b604051601f8201601f191681016001600160401b0381118282101715611bbe57611bbe611b34565b604052919050565b60006001600160401b03831115611bdf57611bdf611b34565b611bf2601f8401601f1916602001611b96565b9050828152838383011115611c0657600080fd5b828260208301376000602084830101529392505050565b60006020808385031215611c3057600080fd5b82356001600160401b0380821115611c4757600080fd5b818501915085601f830112611c5b57600080fd5b813581811115611c6d57611c6d611b34565b8060051b611c7c858201611b96565b9182528381018501918581019089841115611c9657600080fd5b86860192505b83831015611ce757823585811115611cb45760008081fd5b8601603f81018b13611cc65760008081fd5b611cd78b8983013560408401611bc6565b8352509186019190860190611c9c565b9998505050505050505050565b600082601f830112611d0557600080fd5b6112b483833560208501611bc6565b60006101608284031215611d2757600080fd5b611d2f611b4a565b9050611d3a82611952565b8152611d4860208301611952565b6020820152611d5960408301611952565b6040820152611d6a60608301611952565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e0820152610100808301358183015250610120808301358183015250610140808301356001600160401b03811115611dca57600080fd5b611dd685828601611cf4565b82840152505092915050565b600080600060608486031215611df757600080fd5b83356001600160401b0380821115611e0e57600080fd5b611e1a87838801611d14565b94506020860135915080821115611e3057600080fd5b50611e3d86828701611cf4565b925050604084013590509250925092565b60006101608284031215611e6157600080fd5b50919050565b600080600060408486031215611e7c57600080fd5b83356001600160401b0380821115611e9357600080fd5b611e9f87838801611e4e565b94506020860135915080821115611a4d57600080fd5b60008060008060408587031215611ecb57600080fd5b84356001600160401b0380821115611ee257600080fd5b611eee888389016119b5565b90965094506020870135915080821115611f0757600080fd5b50611f14878288016119b5565b95989497509550505050565b600060208284031215611f3257600080fd5b81356001600160401b03811115611f4857600080fd5b610bf184828501611e4e565b60006101008236031215611f6757600080fd5b611f6f611b73565b611f7883611952565b8152611f8660208401611952565b6020820152611f9760408401611952565b6040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e08301356001600160401b03811115611fdd57600080fd5b611fe936828601611cf4565b60e08301525092915050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104de576104de611ff5565b6000808335601e1984360301811261203557600080fd5b8301803591506001600160401b0382111561204f57600080fd5b6020019150368190038213156113d457600080fd5b858782379094019283526020830191909152606090811b6bffffffffffffffffffffffff19908116604084015292901b9091166054820152606801919050565b600082516120b6818460208701611a67565b9190910192915050565b6000826120dd57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052600160045260246000fd5b6001600160a01b0398891681529688166020880152604087019590955260608601939093529416608084015260a083019390935260c082019290925260e08101919091526101000190565b600181811c9082168061215757607f821691505b602082108103611e6157634e487b7160e01b600052602260045260246000fd5b818103818111156104de576104de611ff5565b60006104de3683611d14565b6000808335601e198436030181126121ad57600080fd5b83016020810192503590506001600160401b038111156121cc57600080fd5b8036038213156113d457600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60006101606122238461221685611952565b6001600160a01b03169052565b61222f60208401611952565b6001600160a01b0316602085015261224960408401611952565b6001600160a01b0316604085015261226360608401611952565b6001600160a01b0381166060860152506080830135608085015260a083013560a085015260c083013560c085015260e083013560e08501526101008084013581860152506101208084013581860152506101406122c281850185612196565b8383880152610cbc84880182846121db565b8481526060602082015260006122ed6060830186612204565b8281036040840152610cbc8185876121db565b600060a0820160018060a01b0388168352602060a08185015281885480845260c0860191506005935060c081851b87010160008b8152848120815b848110156123ce5760bf198a850301865282825461235881612143565b80875260018281168015612373576001811461238c576123b7565b60ff198416898d01528215158d1b89018c0194506123b7565b8688528b8820885b848110156123af5781548b82018f0152908301908d01612394565b8a018d019550505b50988a01989296505050919091019060010161233b565b50505086810360408801526123e3818b611a8b565b9450505050506123ff60608401866001600160e01b0319169052565b8281036080840152610d998185611a8b565b6000806040838503121561242457600080fd5b8235915060208301356001600160401b0381111561244157600080fd5b61244d85828601611d14565b9150509250929050565b60006001820161246957612469611ff5565b5060010190565b60008060006060848603121561248557600080fd5b8335925060208401356001600160401b03808211156124a357600080fd5b6124af87838801611d14565b935060408601359150808211156124c557600080fd5b506124d286828701611cf4565b9150509250925092565b828152604060208201526000610bf16040830184612204565b60008651612507818460208b01611a67565b919091019485525060208401929092526bffffffffffffffffffffffff19606091821b8116604085015291901b166054820152606801919050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161257a816017850160208801611a67565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516125ab816028840160208801611a67565b01602801949350505050565b634e487b7160e01b600052602160045260246000fd5b80820281158282048414176104de576104de611ff5565b634e487b7160e01b600052603260045260246000fd5b60008161260957612609611ff5565b506000190190565b601f82111561050957600081815260208120601f850160051c810160208610156126385750805b601f850160051c820191505b8181101561265757828155600101612644565b505050505050565b81516001600160401b0381111561267857612678611b34565b61268c816126868454612143565b84612611565b602080601f8311600181146126c157600084156126a95750858301515b600019600386901b1c1916600185901b178555612657565b600085815260208120601f198616915b828110156126f0578886015182559484019460019091019084016126d1565b508582101561270e5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220d1f26e709ccb163006428f56a0dbeda77769a2779cc2f4a8b337ca2f80ebc62e64736f6c634300081100330000000000000000000000002ce6bd653220436eb8f35e146b0dd1a6013e97a7
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002ce6bd653220436eb8f35e146b0dd1a6013e97a7
-----Decoded View---------------
Arg [0] : initialOwner (address): 0x2ce6bd653220436eb8f35e146b0dd1a6013e97a7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002ce6bd653220436eb8f35e146b0dd1a6013e97a7
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.