Transactions
Internal Transactions
Coin Balance History
Code
Read Contract
Read Proxy
Write Contract
Write Proxy
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- wCUTokenImplementation
- Optimization enabled
- true
- Compiler version
- v0.8.19+commit.7dd6d404
- Optimization runs
- 999999
- EVM Version
- paris
- Verified at
- 2024-03-26T01:15:04.460469Z
src/implementation/wCUTokenImplementation.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {CutERC20Diamond} from 'lib/@cu-tokens/src/implementation/CutERC20Diamond.sol'; /// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility /// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file /// @dev This interface is used internally to call endpoints on a deployed diamond cluster. contract wCUTokenImplementation is CutERC20Diamond { function setL2Gateway(address _l2Gateway) external {} function getL2Gateway() external view returns (address) {} function setL1TokenAddress(address _l1TokenAddress) external {} function l1Address() external view returns (address) {} /** * @notice should increase token supply by amount, and should only be callable by the L2Gateway. */ function bridgeMint(address account, uint256 amount) external {} /** * @notice should decrease token supply by amount, and should only be callable by the L2Gateway. */ function bridgeBurn(address account, uint256 amount) external {} }
lib/@cu-tokens/lib/@lagunagames/lg-diamond-template/src/diamond/CutDiamond.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import '../interfaces/IDiamondLoupe.sol'; import '../interfaces/IDiamondCut.sol'; import '../interfaces/IERC165.sol'; import '../libraries/LibSupportsInterface.sol'; /// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility /// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file /// @dev This interface is used internally to call endpoints on a deployed diamond cluster. contract CutDiamond is IERC165 { /// @notice Query if a contract implements an interface /// @param interfaceID The interface identifier, as specified in ERC-165 /// @dev Interface identification is specified in ERC-165. This function /// uses less than 30,000 gas. /// @return `true` if the contract implements `interfaceID` and /// `interfaceID` is not 0xffffffff, `false` otherwise function supportsInterface(bytes4 interfaceID) external pure returns (bool) { return (interfaceID == type(IERC165).interfaceId); } /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @param _diamondCut Contains the facet addresses and function selectors /// @param _init The address of the contract or facet to execute _calldata /// @param _calldata A function call, including function selector and arguments /// _calldata is executed with delegatecall on _init function diamondCut( IDiamondCut.FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata ) external {} /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @dev This is a convenience implementation of the above /// @param _diamondCut Contains the facet addresses and function selectors function diamondCut(IDiamondCut.FacetCut[] calldata _diamondCut) external {} /// @notice Removes one selector from the Diamond, using DiamondCut /// @param selector - The byte4 signature for a method selector to remove /// @custom:emits FacetCutAction function cutSelector(bytes4 selector) external {} /// @notice Removes one selector from the Diamond, using removeFunction() /// @param selector - The byte4 signature for a method selector to remove function deleteSelector(bytes4 selector) external {} /// @notice Removes many selectors from the Diamond, using DiamondCut /// @param selectors - Array of byte4 signatures for method selectors to remove /// @custom:emits FacetCutAction function cutSelectors(bytes4[] memory selectors) external {} /// @notice Removes many selectors from the Diamond, using removeFunctions() /// @param selectors - Array of byte4 signatures for method selectors to remove function deleteSelectors(bytes4[] memory selectors) external {} /// @notice Removes any selectors from the Diamond that come from a target /// @notice contract address, using DiamondCut. /// @param facet - The address of the Facet smart contract to remove /// @custom:emits FacetCutAction function cutFacet(address facet) external {} /// @notice Gets all facets and their selectors. /// @return facets_ Facet function facets() external view returns (IDiamondLoupe.Facet[] memory facets_) {} /// @notice Gets all the function selectors provided by a facet. /// @param _facet The facet address. /// @return facetFunctionSelectors_ function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory facetFunctionSelectors_) {} /// @notice Get all the facet addresses used by a diamond. /// @return facetAddresses_ function facetAddresses() external view returns (address[] memory facetAddresses_) {} /// @notice Gets the facet that supports the given selector. /// @dev If facet is not found return address(0). /// @param _functionSelector The function selector. /// @return facetAddress_ The facet address. function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_) {} /// @notice Get the address of the owner /// @return The address of the owner. function owner() external view returns (address) {} /// @notice Set the address of the new owner of the contract /// @dev Set _newOwner to address(0) to renounce any ownership. /// @param _newOwner The address of the new owner of the contract function transferOwnership(address _newOwner) external {} /// @notice Set the dummy "implementation" contract address /// @custom:emits Upgraded function setImplementation(address _implementation) external {} /// @notice Get the dummy "implementation" contract address /// @return The dummy "implementation" contract address function implementation() external view returns (address) {} /// @notice Set whether an interface is implemented /// @dev Only the contract owner can call this function /// @param interfaceID The interface identifier, as specified in ERC-165 /// @param implemented `true` if the contract implements `interfaceID` function setSupportsInterface(bytes4 interfaceID, bool implemented) external {} /// @notice Set a list of interfaces as implemented or not /// @dev Only the contract owner can call this function /// @param interfaceIDs The interface identifiers, as specified in ERC-165 /// @param allImplemented `true` if the contract implements all interfaces function setSupportsInterfaces(bytes4[] calldata interfaceIDs, bool allImplemented) external {} /// @notice Returns a list of interfaces that have (ever) been supported /// @return The list of interfaces function interfaces() external view returns (LibSupportsInterface.KnownInterface[] memory) {} }
lib/@cu-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IDiamondCut.sol
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 /******************************************************************************/ interface IDiamondCut { enum FacetCutAction { Add, Replace, Remove } // Add=0, Replace=1, Remove=2 struct FacetCut { address facetAddress; FacetCutAction action; bytes4[] functionSelectors; } /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @param _diamondCut Contains the facet addresses and function selectors /// @param _init The address of the contract or facet to execute _calldata /// @param _calldata A function call, including function selector and arguments /// _calldata is executed with delegatecall on _init function diamondCut(FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata) external; event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata); }
lib/@cu-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IDiamondLoupe.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; // Adapted from the Diamond 3 reference implementation by Nick Mudge: // https://github.com/mudgen/diamond-3-hardhat // A loupe is a small magnifying glass used to look at diamonds. // These functions look at diamonds interface IDiamondLoupe { /// These functions are expected to be called frequently /// by tools. struct Facet { address facetAddress; bytes4[] functionSelectors; } /// @notice Gets all facet addresses and their four byte function selectors. /// @return facets_ Facet function facets() external view returns (Facet[] memory facets_); /// @notice Gets all the function selectors supported by a specific facet. /// @param _facet The facet address. /// @return facetFunctionSelectors_ function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory facetFunctionSelectors_); /// @notice Get all the facet addresses used by a diamond. /// @return facetAddresses_ function facetAddresses() external view returns (address[] memory facetAddresses_); /// @notice Gets the facet that supports the given selector. /// @dev If facet is not found return address(0). /// @param _functionSelector The function selector. /// @return facetAddress_ The facet address. function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_); }
lib/@cu-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IERC165.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title ERC-165 Standard Interface Detection /// @dev https://eips.ethereum.org/EIPS/eip-165 interface IERC165 { /// @notice Query if a contract implements an interface /// @param interfaceID The interface identifier, as specified in ERC-165 /// @dev Interface identification is specified in ERC-165. This function /// uses less than 30,000 gas. /// @return `true` if the contract implements `interfaceID` and /// `interfaceID` is not 0xffffffff, `false` otherwise function supportsInterface(bytes4 interfaceID) external view returns (bool); }
lib/@cu-tokens/lib/@lagunagames/lg-diamond-template/src/libraries/LibContractOwner.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Library for the common LG implementation of ERC-173 Contract Ownership Standard /// @author [email protected] /// @custom:storage-location erc1967:eip1967.proxy.admin library LibContractOwner { error CallerIsNotContractOwner(); /// @notice This emits when ownership of a contract changes. /// @dev ERC-173 event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /// @notice Emitted when the admin account has changed. /// @dev ERC-1967 event AdminChanged(address previousAdmin, address newAdmin); // @dev Standard storage slot for the ERC-1967 admin address // @dev bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1) bytes32 private constant ADMIN_SLOT_POSITION = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; struct LibOwnerStorage { address contractOwner; } /// @notice Storage slot for Contract Owner state data function ownerStorage() internal pure returns (LibOwnerStorage storage storageSlot) { bytes32 position = ADMIN_SLOT_POSITION; // solhint-disable-next-line no-inline-assembly assembly { storageSlot.slot := position } } /// @notice Sets the contract owner /// @param newOwner The new owner /// @custom:emits OwnershipTransferred function setContractOwner(address newOwner) internal { LibOwnerStorage storage ls = ownerStorage(); address previousOwner = ls.contractOwner; ls.contractOwner = newOwner; emit OwnershipTransferred(previousOwner, newOwner); emit AdminChanged(previousOwner, newOwner); } /// @notice Gets the contract owner wallet /// @return owner The contract owner function contractOwner() internal view returns (address owner) { owner = ownerStorage().contractOwner; } /// @notice Ensures that the caller is the contract owner, or throws an error. /// @custom:throws LibAccess: Must be contract owner function enforceIsContractOwner() internal view { if (msg.sender != ownerStorage().contractOwner) revert CallerIsNotContractOwner(); } }
lib/@cu-tokens/lib/@lagunagames/lg-diamond-template/src/libraries/LibSupportsInterface.sol
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; import '../libraries/LibContractOwner.sol'; /// @title Library for the common LG implementation of ERC-165 /// @author [email protected] /// @custom:storage-location erc7201:games.laguna.LibSupportsInterface library LibSupportsInterface { bytes32 public constant SUPPORTS_INTERFACE_STORAGE_POSITION = keccak256(abi.encode(uint256(keccak256('games.laguna.LibSupportsInterface')) - 1)) & ~bytes32(uint256(0xff)); struct KnownInterface { bytes4 selector; bool supported; } struct SupportsInterfaceStorage { mapping(bytes4 selector => bool supported) supportedInterfaces; bytes4[] interfaces; } /// @notice Storage slot for SupportsInterface state data function supportsInterfaceStorage() internal pure returns (SupportsInterfaceStorage storage storageSlot) { bytes32 position = SUPPORTS_INTERFACE_STORAGE_POSITION; // solhint-disable-next-line no-inline-assembly assembly { storageSlot.slot := position } } /// @notice Checks if a contract implements an interface /// @param _interfaceId Interface ID to check /// @return true if the contract implements the interface function supportsInterface(bytes4 _interfaceId) internal view returns (bool) { return supportsInterfaceStorage().supportedInterfaces[_interfaceId]; } /// @notice Sets whether a contract implements an interface /// @param _interfaceId Interface ID to set /// @param _implemented true if the contract implements the interface function setSupportsInterface(bytes4 _interfaceId, bool _implemented) internal { SupportsInterfaceStorage storage s = supportsInterfaceStorage(); if (_implemented && !s.supportedInterfaces[_interfaceId]) { s.interfaces.push(_interfaceId); } s.supportedInterfaces[_interfaceId] = _implemented; } /// @notice Returns the list of interfaces this contract has supported, and whether they are supported currently. /// @return The list of interfaces function getKnownInterfaces() internal view returns (KnownInterface[] memory) { SupportsInterfaceStorage storage s = supportsInterfaceStorage(); KnownInterface[] memory interfaces = new KnownInterface[](s.interfaces.length); for (uint i = 0; i < s.interfaces.length; ++i) { interfaces[i] = KnownInterface({ selector: s.interfaces[i], supported: s.supportedInterfaces[s.interfaces[i]] }); } return interfaces; } /// @notice Calculate the interface ID for a list of function selectors /// @dev Per ERC-165: "We define the interface identifier as the XOR of all function selectors in the interface" /// @param functionSelectors The list of function selectors in the interface /// @return interfaceId The ERC-165 interface ID function calculateInterfaceId(bytes4[] memory functionSelectors) internal pure returns (bytes4 interfaceId) { for (uint256 i = 0; i < functionSelectors.length; ++i) { interfaceId ^= functionSelectors[i]; } } }
lib/@cu-tokens/src/implementation/CutERC20Diamond.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {CutDiamond} from '../../lib/@lagunagames/lg-diamond-template/src/diamond/CutDiamond.sol'; // import '@openzeppelin-contracts/contracts/token/ERC20/IERC20.sol'; /// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility /// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file /// @dev This interface is used internally to call endpoints on a deployed diamond cluster. contract CutERC20Diamond is CutDiamond { /** * @dev Returns the name of the token. */ function name() external view returns (string memory) {} /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() external view returns (string memory) {} /** * @dev Returns the address of the contract that is the controller of this token. */ function contractController() external view returns (address) {} /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) external view returns (uint256) {} /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) external returns (bool) {} /** * @dev See {IERC20-totalSupply}. */ function totalSupply() external view returns (uint256) {} /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) external view returns (uint256) {} /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() external pure returns (uint8) {} /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {} /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) external returns (bool) {} /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {} /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {} }
Compiler Settings
{"viaIR":true,"remappings":["@cu-common/=lib/@cu-tokens/lib/@lagunagames/cu-common/","@cu-tokens/=lib/@cu-tokens/","@lagunagames/=lib/@lagunagames/","@lagunagames/lg-diamond-template/=lib/@cu-tokens/lib/@lagunagames/lg-diamond-template/","@layerzerolabs/=lib/@layerzerolabs/","@lg-arb-bridge/=lib/@lg-arb-bridge/src/","@lg-diamond-template/=lib/@cu-tokens/lib/@lagunagames/lg-diamond-template/","@lg-layerzero/=lib/@lg-layerzero/src/","@openzeppelin-contracts/=lib/@cu-tokens/lib/openzeppelin-contracts/","@openzeppelin/=lib/@openzeppelin/","ds-test/=lib/@cu-tokens/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/@openzeppelin/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","openzeppelin-contracts/=lib/@cu-tokens/lib/openzeppelin-contracts/","openzeppelin/=lib/@openzeppelin/contracts/","solidity-stringutils/=lib/@lagunagames/lg-diamond-template/lib/solidity-stringutils/"],"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":999999,"enabled":true,"details":{"yulDetails":{"stackAllocation":true,"optimizerSteps":"dhfoDgvulfnTUtnIf"},"yul":true,"peephole":true,"inliner":true,"deduplicate":true,"cse":true}},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"libraries":{},"evmVersion":"paris"}
Contract ABI
[{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"bridgeBurn","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"bridgeMint","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"contractController","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutFacet","inputs":[{"type":"address","name":"facet","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutSelector","inputs":[{"type":"bytes4","name":"selector","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutSelectors","inputs":[{"type":"bytes4[]","name":"selectors","internalType":"bytes4[]"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteSelector","inputs":[{"type":"bytes4","name":"selector","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteSelectors","inputs":[{"type":"bytes4[]","name":"selectors","internalType":"bytes4[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"diamondCut","inputs":[{"type":"tuple[]","name":"_diamondCut","internalType":"struct IDiamondCut.FacetCut[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"uint8","name":"action","internalType":"enum IDiamondCut.FacetCutAction"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]},{"type":"address","name":"_init","internalType":"address"},{"type":"bytes","name":"_calldata","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"diamondCut","inputs":[{"type":"tuple[]","name":"_diamondCut","internalType":"struct IDiamondCut.FacetCut[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"uint8","name":"action","internalType":"enum IDiamondCut.FacetCutAction"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"facetAddress_","internalType":"address"}],"name":"facetAddress","inputs":[{"type":"bytes4","name":"_functionSelector","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"facetAddresses_","internalType":"address[]"}],"name":"facetAddresses","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes4[]","name":"facetFunctionSelectors_","internalType":"bytes4[]"}],"name":"facetFunctionSelectors","inputs":[{"type":"address","name":"_facet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"facets_","internalType":"struct IDiamondLoupe.Facet[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]}],"name":"facets","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getL2Gateway","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"implementation","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct LibSupportsInterface.KnownInterface[]","components":[{"type":"bytes4","name":"selector","internalType":"bytes4"},{"type":"bool","name":"supported","internalType":"bool"}]}],"name":"interfaces","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"l1Address","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setImplementation","inputs":[{"type":"address","name":"_implementation","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setL1TokenAddress","inputs":[{"type":"address","name":"_l1TokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setL2Gateway","inputs":[{"type":"address","name":"_l2Gateway","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSupportsInterface","inputs":[{"type":"bytes4","name":"interfaceID","internalType":"bytes4"},{"type":"bool","name":"implemented","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSupportsInterfaces","inputs":[{"type":"bytes4[]","name":"interfaceIDs","internalType":"bytes4[]"},{"type":"bool","name":"allImplemented","internalType":"bool"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceID","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"_newOwner","internalType":"address"}]}]
Contract Creation Code
0x60806040523461001a57604051610b846100208239610b8490f35b600080fdfe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461021857806306fdde03146101e1578063095ea7b3146101dc57806318160ddd146102135780631939dddb146101d25780631f931c1c1461020e57806323b872dd14610209578063313ce5671461020457806339509351146101dc57806352ef6b2c146101ff57806354e7796f146101fa5780635c60da1b146101d25780636463e3a0146101af57806366e5722b146101f557806369bc8cd4146101b457806370a08231146101f057806374f4f547146101e65780637a0ed627146101eb5780638c2a993e146101e65780638da5cb5b146101d257806395d89b41146101e1578063a457c2d7146101dc578063a6638c0e146101b4578063a9059cbb146101dc578063adfca15e146101d7578063bd00dcf6146101d2578063c2eeeebd146101d2578063c80a0f84146101b4578063cdffacc6146101cd578063d784d426146101b4578063dd62ed3e146101c8578063debb3856146101c3578063e0435c0b146101c3578063e57e69c6146101be578063f2709f21146101b9578063f2fde38b146101b45763ff6f3e0b0361021d575b6107da565b610856565b610b1a565b610a8b565b610a55565b610a3f565b610a06565b61043b565b6109de565b6103f9565b61037b565b610882565b6109ae565b610866565b610826565b610690565b610639565b6105a0565b610584565b610534565b610415565b610273565b600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081165b0361021d57565b9050359061025a82610222565b565b9060208282031261021d576102709161024d565b90565b3461021d576102e26102d061028936600461025c565b7fffffffff00000000000000000000000000000000000000000000000000000000167f01ffc9a7000000000000000000000000000000000000000000000000000000001490565b60405191829182901515815260200190565b0390f35b600091031261021d57565b60005b8381106103045750506000910152565b81810151838201526020016102f4565b61033561033e60209361036693610329815190565b80835293849260200190565b958691016102f1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b0190565b602080825261027092910190610314565b3461021d5761038b3660046102e6565b604051806102e260608261036a565b73ffffffffffffffffffffffffffffffffffffffff8116610246565b9050359061025a8261039a565b80610246565b9050359061025a826103c3565b919060408382031261021d57610270906103f081856103b6565b936020016103c9565b3461021d576102e26102d061040f3660046103d6565b90610b39565b3461021d576104253660046102e6565b6102e260005b6040519182918290815260200190565b3461021d5761044b3660046102e6565b6102e260005b6040519182918273ffffffffffffffffffffffffffffffffffffffff909116815260200190565b909182601f8301121561021d5781359167ffffffffffffffff831161021d57602001926020830284011161021d57565b909182601f8301121561021d5781359167ffffffffffffffff831161021d57602001926001830284011161021d57565b919060608382031261021d57823567ffffffffffffffff811161021d5781610501918501610478565b92909361051183602083016103b6565b92604082013567ffffffffffffffff811161021d5761053092016104a8565b9091565b3461021d576105443660046104d8565b505050505061055260405190565b005b909160608284031261021d5761027061056d84846103b6565b9361057b81602086016103b6565b936040016103c9565b3461021d576102e26102d061059a366004610554565b91610b43565b3461021d576105b03660046102e6565b60405160008152602090f35b906105dc6105d56105cb845190565b8084529260200190565b9260200190565b9060005b8181106105ed5750505090565b909192610620610619600192865173ffffffffffffffffffffffffffffffffffffffff16815260200190565b9460200190565b9291016105e0565b6020808252610270929101906105bc565b3461021d576106493660046102e6565b604051806102e2606082610628565b801515610246565b9050359061025a82610658565b919060408382031261021d5761027090610687818561024d565b93602001610660565b3461021d576106a036600461066d565b5050604051005b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810190811067ffffffffffffffff82111761071657604052565b6106a7565b9061025a61072860405190565b92836106d6565b67ffffffffffffffff81116107165760208091020190565b9092919261075c6107578261072f565b61071b565b938185526020808601920283019281841161021d57915b8383106107805750505050565b6020809161078e848661024d565b815201920191610773565b9080601f8301121561021d5781602061027093359101610747565b9060208282031261021d57813567ffffffffffffffff811161021d576102709201610799565b3461021d576107ea3660046107b4565b50604051005b9160408383031261021d57823567ffffffffffffffff811161021d5761081b83610270928601610478565b939094602001610660565b3461021d576108363660046107f0565b50505061055260405190565b9060208282031261021d57610270916103b6565b3461021d576107ea366004610842565b3461021d576102e261042b61087c366004610842565b50600090565b3461021d576106a03660046103d6565b906108a16105d56105cb845190565b9060005b8181106108b25750505090565b9091926108ea61061960019286517fffffffff0000000000000000000000000000000000000000000000000000000016815260200190565b9291016108a5565b805173ffffffffffffffffffffffffffffffffffffffff16825261027091604081019160200151906020818403910152610892565b90610270916108f2565b9061094761093d835190565b8083529160200190565b90816109596020830284019460200190565b926000915b83831061096d57505050505090565b9091929394602061099061098983856001950387528951610927565b9760200190565b930193019193929061095e565b602080825261027092910190610931565b3461021d576109be3660046102e6565b604051806102e260608261099d565b602080825261027092910190610892565b3461021d576102e26109fa6109f4366004610842565b50606090565b604051918291826109cd565b3461021d576102e261045161087c36600461025c565b919060408382031261021d5761027090610a3681856103b6565b936020016103b6565b3461021d576102e261042b61040f366004610a1c565b3461021d576107ea36600461025c565b9060208282031261021d57813567ffffffffffffffff811161021d576105309201610478565b3461021d576106a0366004610a65565b90610aaa6105d56105cb845190565b9060005b818110610abb5750505090565b909192610b01610619600192865180517fffffffff0000000000000000000000000000000000000000000000000000000016825260209081015115159082015260400190565b929101610aae565b602080825261027092910190610a9b565b3461021d57610b2a3660046102e6565b604051806102e2606082610b09565b5050610270600090565b50505061027060009056fea26469706673582212200a4c2e475f143c2f0c3e7f81b303fc52dc24aaf4a475cb794561a7805ffb78aa64736f6c63430008130033
Deployed ByteCode
0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461021857806306fdde03146101e1578063095ea7b3146101dc57806318160ddd146102135780631939dddb146101d25780631f931c1c1461020e57806323b872dd14610209578063313ce5671461020457806339509351146101dc57806352ef6b2c146101ff57806354e7796f146101fa5780635c60da1b146101d25780636463e3a0146101af57806366e5722b146101f557806369bc8cd4146101b457806370a08231146101f057806374f4f547146101e65780637a0ed627146101eb5780638c2a993e146101e65780638da5cb5b146101d257806395d89b41146101e1578063a457c2d7146101dc578063a6638c0e146101b4578063a9059cbb146101dc578063adfca15e146101d7578063bd00dcf6146101d2578063c2eeeebd146101d2578063c80a0f84146101b4578063cdffacc6146101cd578063d784d426146101b4578063dd62ed3e146101c8578063debb3856146101c3578063e0435c0b146101c3578063e57e69c6146101be578063f2709f21146101b9578063f2fde38b146101b45763ff6f3e0b0361021d575b6107da565b610856565b610b1a565b610a8b565b610a55565b610a3f565b610a06565b61043b565b6109de565b6103f9565b61037b565b610882565b6109ae565b610866565b610826565b610690565b610639565b6105a0565b610584565b610534565b610415565b610273565b600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081165b0361021d57565b9050359061025a82610222565b565b9060208282031261021d576102709161024d565b90565b3461021d576102e26102d061028936600461025c565b7fffffffff00000000000000000000000000000000000000000000000000000000167f01ffc9a7000000000000000000000000000000000000000000000000000000001490565b60405191829182901515815260200190565b0390f35b600091031261021d57565b60005b8381106103045750506000910152565b81810151838201526020016102f4565b61033561033e60209361036693610329815190565b80835293849260200190565b958691016102f1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b0190565b602080825261027092910190610314565b3461021d5761038b3660046102e6565b604051806102e260608261036a565b73ffffffffffffffffffffffffffffffffffffffff8116610246565b9050359061025a8261039a565b80610246565b9050359061025a826103c3565b919060408382031261021d57610270906103f081856103b6565b936020016103c9565b3461021d576102e26102d061040f3660046103d6565b90610b39565b3461021d576104253660046102e6565b6102e260005b6040519182918290815260200190565b3461021d5761044b3660046102e6565b6102e260005b6040519182918273ffffffffffffffffffffffffffffffffffffffff909116815260200190565b909182601f8301121561021d5781359167ffffffffffffffff831161021d57602001926020830284011161021d57565b909182601f8301121561021d5781359167ffffffffffffffff831161021d57602001926001830284011161021d57565b919060608382031261021d57823567ffffffffffffffff811161021d5781610501918501610478565b92909361051183602083016103b6565b92604082013567ffffffffffffffff811161021d5761053092016104a8565b9091565b3461021d576105443660046104d8565b505050505061055260405190565b005b909160608284031261021d5761027061056d84846103b6565b9361057b81602086016103b6565b936040016103c9565b3461021d576102e26102d061059a366004610554565b91610b43565b3461021d576105b03660046102e6565b60405160008152602090f35b906105dc6105d56105cb845190565b8084529260200190565b9260200190565b9060005b8181106105ed5750505090565b909192610620610619600192865173ffffffffffffffffffffffffffffffffffffffff16815260200190565b9460200190565b9291016105e0565b6020808252610270929101906105bc565b3461021d576106493660046102e6565b604051806102e2606082610628565b801515610246565b9050359061025a82610658565b919060408382031261021d5761027090610687818561024d565b93602001610660565b3461021d576106a036600461066d565b5050604051005b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810190811067ffffffffffffffff82111761071657604052565b6106a7565b9061025a61072860405190565b92836106d6565b67ffffffffffffffff81116107165760208091020190565b9092919261075c6107578261072f565b61071b565b938185526020808601920283019281841161021d57915b8383106107805750505050565b6020809161078e848661024d565b815201920191610773565b9080601f8301121561021d5781602061027093359101610747565b9060208282031261021d57813567ffffffffffffffff811161021d576102709201610799565b3461021d576107ea3660046107b4565b50604051005b9160408383031261021d57823567ffffffffffffffff811161021d5761081b83610270928601610478565b939094602001610660565b3461021d576108363660046107f0565b50505061055260405190565b9060208282031261021d57610270916103b6565b3461021d576107ea366004610842565b3461021d576102e261042b61087c366004610842565b50600090565b3461021d576106a03660046103d6565b906108a16105d56105cb845190565b9060005b8181106108b25750505090565b9091926108ea61061960019286517fffffffff0000000000000000000000000000000000000000000000000000000016815260200190565b9291016108a5565b805173ffffffffffffffffffffffffffffffffffffffff16825261027091604081019160200151906020818403910152610892565b90610270916108f2565b9061094761093d835190565b8083529160200190565b90816109596020830284019460200190565b926000915b83831061096d57505050505090565b9091929394602061099061098983856001950387528951610927565b9760200190565b930193019193929061095e565b602080825261027092910190610931565b3461021d576109be3660046102e6565b604051806102e260608261099d565b602080825261027092910190610892565b3461021d576102e26109fa6109f4366004610842565b50606090565b604051918291826109cd565b3461021d576102e261045161087c36600461025c565b919060408382031261021d5761027090610a3681856103b6565b936020016103b6565b3461021d576102e261042b61040f366004610a1c565b3461021d576107ea36600461025c565b9060208282031261021d57813567ffffffffffffffff811161021d576105309201610478565b3461021d576106a0366004610a65565b90610aaa6105d56105cb845190565b9060005b818110610abb5750505090565b909192610b01610619600192865180517fffffffff0000000000000000000000000000000000000000000000000000000016825260209081015115159082015260400190565b929101610aae565b602080825261027092910190610a9b565b3461021d57610b2a3660046102e6565b604051806102e2606082610b09565b5050610270600090565b50505061027060009056fea26469706673582212200a4c2e475f143c2f0c3e7f81b303fc52dc24aaf4a475cb794561a7805ffb78aa64736f6c63430008130033