Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
L2SwarmMarketsToken
Compiler Version
v0.8.24+commit.e11b9ed9
Contract Source Code (Solidity)
/** *Submitted for verification at Arbiscan.io on 2024-04-02 */ // SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.14.0 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.24; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @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() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @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) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @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) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } // File contracts/cross-chain/interfaces/IArbToken.sol /* * Copyright 2020, Offchain Labs, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @title Minimum expected interface for L2 token that interacts with the L2 token bridge (this is the interface necessary * for a custom token that interacts with the bridge, see TestArbCustomToken.sol for an example implementation). */ interface IArbToken { /** * @notice should increase token supply by amount, and should (probably) only be callable by the L1 bridge. */ function bridgeMint(address account, uint256 amount) external; /** * @notice should decrease token supply by amount, and should (probably) only be callable by the L1 bridge. */ function bridgeBurn(address account, uint256 amount) external; /** * @return address of layer 1 token */ function l1Address() external view returns (address); } // File contracts/cross-chain/L2SwarmMarketsToken.sol /// @title L2 Swarm Markets Token Contract /// @notice This contract represents a custom token on Layer 2, which integrates with an Arbitrum token interface and ERC20 standards. /// @dev Inherits ERC20 and implements IArbToken for Layer 2 functionality in the Arbitrum ecosystem. /// @author Swarm contract L2SwarmMarketsToken is ERC20, IArbToken { /// @dev Error to indicate a function call is made by an address that is not the expected L2 Gateway error NotAGateway(address caller, address correctGateway); /// @notice The address of the Layer 2 Gateway contract address public l2Gateway; /// @notice The address of the corresponding token contract on Layer 1 address public l1Address; /// @dev Ensures that a function is called only by the specified L2 Gateway modifier onlyL2Gateway() { address _l2Gateway = l2Gateway; if (msg.sender != _l2Gateway) { revert NotAGateway(msg.sender, _l2Gateway); } _; } /// @notice Initializes a new L2SwarmMarketsToken contract /// @param _l2Gateway The address of the L2 Gateway contract /// @param _l1TokenAddress The address of the L1 token contract constructor(address _l2Gateway, address _l1TokenAddress) ERC20("Swarm Markets", "SMT") { l2Gateway = _l2Gateway; l1Address = _l1TokenAddress; } /// @notice Increases the token supply by a certain amount, callable only by the L2 Gateway /// @dev Implements the minting process for the bridge mechanism /// @param account The address to which the minted tokens will be credited /// @param amount The amount of tokens to be minted function bridgeMint(address account, uint256 amount) external onlyL2Gateway { _mint(account, amount); } /// @notice Decreases the token supply by a certain amount, callable only by the L2 Gateway /// @dev Implements the burning process for the bridge mechanism /// @param account The address from which the tokens will be burned /// @param amount The amount of tokens to be burned function bridgeBurn(address account, uint256 amount) external onlyL2Gateway { _burn(account, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_l2Gateway","type":"address"},{"internalType":"address","name":"_l1TokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"correctGateway","type":"address"}],"name":"NotAGateway","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bridgeBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bridgeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"l1Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2Gateway","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801562000010575f80fd5b5060405162000df838038062000df88339810160408190526200003391620000ea565b6040518060400160405280600d81526020016c537761726d204d61726b65747360981b8152506040518060400160405280600381526020016214d35560ea1b8152508160039081620000869190620001be565b506004620000958282620001be565b5050600580546001600160a01b039485166001600160a01b0319918216179091556006805493909416921691909117909155506200028a565b80516001600160a01b0381168114620000e5575f80fd5b919050565b5f8060408385031215620000fc575f80fd5b6200010783620000ce565b91506200011760208401620000ce565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200014957607f821691505b6020821081036200016857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001b957805f5260205f20601f840160051c81016020851015620001955750805b601f840160051c820191505b81811015620001b6575f8155600101620001a1565b50505b505050565b81516001600160401b03811115620001da57620001da62000120565b620001f281620001eb845462000134565b846200016e565b602080601f83116001811462000228575f8415620002105750858301515b5f19600386901b1c1916600185901b17855562000282565b5f85815260208120601f198616915b82811015620002585788860151825594840194600190910190840162000237565b50858210156200027657878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b610b6080620002985f395ff3fe608060405234801561000f575f80fd5b50600436106100f0575f3560e01c806374f4f54711610093578063a457c2d711610063578063a457c2d7146101ff578063a9059cbb14610212578063c2eeeebd14610225578063dd62ed3e14610238575f80fd5b806374f4f547146101a45780638c2a993e146101b95780638fa74a0e146101cc57806395d89b41146101f7575f80fd5b806323b872dd116100ce57806323b872dd14610147578063313ce5671461015a578063395093511461016957806370a082311461017c575f80fd5b806306fdde03146100f4578063095ea7b31461011257806318160ddd14610135575b5f80fd5b6100fc61024b565b60405161010991906109ba565b60405180910390f35b610125610120366004610a21565b6102db565b6040519015158152602001610109565b6002545b604051908152602001610109565b610125610155366004610a49565b6102f4565b60405160128152602001610109565b610125610177366004610a21565b610317565b61013961018a366004610a82565b6001600160a01b03165f9081526020819052604090205490565b6101b76101b2366004610a21565b610338565b005b6101b76101c7366004610a21565b610389565b6005546101df906001600160a01b031681565b6040516001600160a01b039091168152602001610109565b6100fc6103d0565b61012561020d366004610a21565b6103df565b610125610220366004610a21565b610459565b6006546101df906001600160a01b031681565b610139610246366004610aa2565b610466565b60606003805461025a90610ad3565b80601f016020809104026020016040519081016040528092919081815260200182805461028690610ad3565b80156102d15780601f106102a8576101008083540402835291602001916102d1565b820191905f5260205f20905b8154815290600101906020018083116102b457829003601f168201915b5050505050905090565b5f336102e8818585610490565b60019150505b92915050565b5f336103018582856105b3565b61030c85858561062b565b506001949350505050565b5f336102e88185856103298383610466565b6103339190610b0b565b610490565b6005546001600160a01b031633811461037a57604051637b0c161560e01b81523360048201526001600160a01b03821660248201526044015b60405180910390fd5b61038483836107cd565b505050565b6005546001600160a01b03163381146103c657604051637b0c161560e01b81523360048201526001600160a01b0382166024820152604401610371565b61038483836108fd565b60606004805461025a90610ad3565b5f33816103ec8286610466565b90508381101561044c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610371565b61030c8286868403610490565b5f336102e881858561062b565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104f25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610371565b6001600160a01b0382166105535760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610371565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f6105be8484610466565b90505f19811461062557818110156106185760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610371565b6106258484848403610490565b50505050565b6001600160a01b03831661068f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610371565b6001600160a01b0382166106f15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610371565b6001600160a01b0383165f90815260208190526040902054818110156107685760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610371565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610625565b6001600160a01b03821661082d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610371565b6001600160a01b0382165f90815260208190526040902054818110156108a05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610371565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b0382166109535760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610371565b8060025f8282546109649190610b0b565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f602080835283518060208501525f5b818110156109e6578581018301518582016040015282016109ca565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610a1c575f80fd5b919050565b5f8060408385031215610a32575f80fd5b610a3b83610a06565b946020939093013593505050565b5f805f60608486031215610a5b575f80fd5b610a6484610a06565b9250610a7260208501610a06565b9150604084013590509250925092565b5f60208284031215610a92575f80fd5b610a9b82610a06565b9392505050565b5f8060408385031215610ab3575f80fd5b610abc83610a06565b9150610aca60208401610a06565b90509250929050565b600181811c90821680610ae757607f821691505b602082108103610b0557634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102ee57634e487b7160e01b5f52601160045260245ffdfea2646970667358221220c7dd934f15dbdc809cbf7efdc53b37f7ed3482c2876ba5fb893bf0afbc28229c64736f6c63430008180033000000000000000000000000096760f208390250649e3e8763348e783aef5562000000000000000000000000b17548c7b510427baac4e267bea62e800b247173
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100f0575f3560e01c806374f4f54711610093578063a457c2d711610063578063a457c2d7146101ff578063a9059cbb14610212578063c2eeeebd14610225578063dd62ed3e14610238575f80fd5b806374f4f547146101a45780638c2a993e146101b95780638fa74a0e146101cc57806395d89b41146101f7575f80fd5b806323b872dd116100ce57806323b872dd14610147578063313ce5671461015a578063395093511461016957806370a082311461017c575f80fd5b806306fdde03146100f4578063095ea7b31461011257806318160ddd14610135575b5f80fd5b6100fc61024b565b60405161010991906109ba565b60405180910390f35b610125610120366004610a21565b6102db565b6040519015158152602001610109565b6002545b604051908152602001610109565b610125610155366004610a49565b6102f4565b60405160128152602001610109565b610125610177366004610a21565b610317565b61013961018a366004610a82565b6001600160a01b03165f9081526020819052604090205490565b6101b76101b2366004610a21565b610338565b005b6101b76101c7366004610a21565b610389565b6005546101df906001600160a01b031681565b6040516001600160a01b039091168152602001610109565b6100fc6103d0565b61012561020d366004610a21565b6103df565b610125610220366004610a21565b610459565b6006546101df906001600160a01b031681565b610139610246366004610aa2565b610466565b60606003805461025a90610ad3565b80601f016020809104026020016040519081016040528092919081815260200182805461028690610ad3565b80156102d15780601f106102a8576101008083540402835291602001916102d1565b820191905f5260205f20905b8154815290600101906020018083116102b457829003601f168201915b5050505050905090565b5f336102e8818585610490565b60019150505b92915050565b5f336103018582856105b3565b61030c85858561062b565b506001949350505050565b5f336102e88185856103298383610466565b6103339190610b0b565b610490565b6005546001600160a01b031633811461037a57604051637b0c161560e01b81523360048201526001600160a01b03821660248201526044015b60405180910390fd5b61038483836107cd565b505050565b6005546001600160a01b03163381146103c657604051637b0c161560e01b81523360048201526001600160a01b0382166024820152604401610371565b61038483836108fd565b60606004805461025a90610ad3565b5f33816103ec8286610466565b90508381101561044c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610371565b61030c8286868403610490565b5f336102e881858561062b565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104f25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610371565b6001600160a01b0382166105535760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610371565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f6105be8484610466565b90505f19811461062557818110156106185760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610371565b6106258484848403610490565b50505050565b6001600160a01b03831661068f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610371565b6001600160a01b0382166106f15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610371565b6001600160a01b0383165f90815260208190526040902054818110156107685760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610371565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610625565b6001600160a01b03821661082d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610371565b6001600160a01b0382165f90815260208190526040902054818110156108a05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610371565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b0382166109535760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610371565b8060025f8282546109649190610b0b565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f602080835283518060208501525f5b818110156109e6578581018301518582016040015282016109ca565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610a1c575f80fd5b919050565b5f8060408385031215610a32575f80fd5b610a3b83610a06565b946020939093013593505050565b5f805f60608486031215610a5b575f80fd5b610a6484610a06565b9250610a7260208501610a06565b9150604084013590509250925092565b5f60208284031215610a92575f80fd5b610a9b82610a06565b9392505050565b5f8060408385031215610ab3575f80fd5b610abc83610a06565b9150610aca60208401610a06565b90509250929050565b600181811c90821680610ae757607f821691505b602082108103610b0557634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102ee57634e487b7160e01b5f52601160045260245ffdfea2646970667358221220c7dd934f15dbdc809cbf7efdc53b37f7ed3482c2876ba5fb893bf0afbc28229c64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000096760f208390250649e3e8763348e783aef5562000000000000000000000000b17548c7b510427baac4e267bea62e800b247173
-----Decoded View---------------
Arg [0] : _l2Gateway (address): 0x096760F208390250649E3e8763348E783AEF5562
Arg [1] : _l1TokenAddress (address): 0xB17548c7B510427baAc4e267BEa62e800b247173
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000096760f208390250649e3e8763348e783aef5562
Arg [1] : 000000000000000000000000b17548c7b510427baac4e267bea62e800b247173
Deployed Bytecode Sourcemap
19462:1932:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6643:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;8994:201;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;8994:201:0;1004:187:1;7763:108:0;7851:12;;7763:108;;;1342:25:1;;;1330:2;1315:18;7763:108:0;1196:177:1;9775:261:0;;;;;;:::i;:::-;;:::i;7605:93::-;;;7688:2;1853:36:1;;1841:2;1826:18;7605:93:0;1711:184:1;10445:238:0;;;;;;:::i;:::-;;:::i;7934:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;8035:18:0;8008:7;8035:18;;;;;;;;;;;;7934:127;21274:117;;;;;;:::i;:::-;;:::i;:::-;;20852;;;;;;:::i;:::-;;:::i;19751:24::-;;;;;-1:-1:-1;;;;;19751:24:0;;;;;;-1:-1:-1;;;;;2255:32:1;;;2237:51;;2225:2;2210:18;19751:24:0;2091:203:1;6862:104:0;;;:::i;11186:436::-;;;;;;:::i;:::-;;:::i;8267:193::-;;;;;;:::i;:::-;;:::i;19858:24::-;;;;;-1:-1:-1;;;;;19858:24:0;;;8523:151;;;;;;:::i;:::-;;:::i;6643:100::-;6697:13;6730:5;6723:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6643:100;:::o;8994:201::-;9077:4;4394:10;9133:32;4394:10;9149:7;9158:6;9133:8;:32::i;:::-;9183:4;9176:11;;;8994:201;;;;;:::o;9775:261::-;9872:4;4394:10;9930:38;9946:4;4394:10;9961:6;9930:15;:38::i;:::-;9979:27;9989:4;9995:2;9999:6;9979:9;:27::i;:::-;-1:-1:-1;10024:4:0;;9775:261;-1:-1:-1;;;;9775:261:0:o;10445:238::-;10533:4;4394:10;10589:64;4394:10;10605:7;10642:10;10614:25;4394:10;10605:7;10614:9;:25::i;:::-;:38;;;;:::i;:::-;10589:8;:64::i;21274:117::-;20029:9;;-1:-1:-1;;;;;20029:9:0;20053:10;:24;;20049:99;;20101:35;;-1:-1:-1;;;20101:35:0;;20113:10;20101:35;;;3388:34:1;-1:-1:-1;;;;;3458:15:1;;3438:18;;;3431:43;3323:18;;20101:35:0;;;;;;;;20049:99;21361:22:::1;21367:7;21376:6;21361:5;:22::i;:::-;19997:170:::0;21274:117;;:::o;20852:::-;20029:9;;-1:-1:-1;;;;;20029:9:0;20053:10;:24;;20049:99;;20101:35;;-1:-1:-1;;;20101:35:0;;20113:10;20101:35;;;3388:34:1;-1:-1:-1;;;;;3458:15:1;;3438:18;;;3431:43;3323:18;;20101:35:0;3176:304:1;20049:99:0;20939:22:::1;20945:7;20954:6;20939:5;:22::i;6862:104::-:0;6918:13;6951:7;6944:14;;;;;:::i;11186:436::-;11279:4;4394:10;11279:4;11362:25;4394:10;11379:7;11362:9;:25::i;:::-;11335:52;;11426:15;11406:16;:35;;11398:85;;;;-1:-1:-1;;;11398:85:0;;3687:2:1;11398:85:0;;;3669:21:1;3726:2;3706:18;;;3699:30;3765:34;3745:18;;;3738:62;-1:-1:-1;;;3816:18:1;;;3809:35;3861:19;;11398:85:0;3485:401:1;11398:85:0;11519:60;11528:5;11535:7;11563:15;11544:16;:34;11519:8;:60::i;8267:193::-;8346:4;4394:10;8402:28;4394:10;8419:2;8423:6;8402:9;:28::i;8523:151::-;-1:-1:-1;;;;;8639:18:0;;;8612:7;8639:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;8523:151::o;15179:346::-;-1:-1:-1;;;;;15281:19:0;;15273:68;;;;-1:-1:-1;;;15273:68:0;;4093:2:1;15273:68:0;;;4075:21:1;4132:2;4112:18;;;4105:30;4171:34;4151:18;;;4144:62;-1:-1:-1;;;4222:18:1;;;4215:34;4266:19;;15273:68:0;3891:400:1;15273:68:0;-1:-1:-1;;;;;15360:21:0;;15352:68;;;;-1:-1:-1;;;15352:68:0;;4498:2:1;15352:68:0;;;4480:21:1;4537:2;4517:18;;;4510:30;4576:34;4556:18;;;4549:62;-1:-1:-1;;;4627:18:1;;;4620:32;4669:19;;15352:68:0;4296:398:1;15352:68:0;-1:-1:-1;;;;;15433:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;15485:32;;1342:25:1;;;15485:32:0;;1315:18:1;15485:32:0;;;;;;;15179:346;;;:::o;15816:419::-;15917:24;15944:25;15954:5;15961:7;15944:9;:25::i;:::-;15917:52;;-1:-1:-1;;15984:16:0;:37;15980:248;;16066:6;16046:16;:26;;16038:68;;;;-1:-1:-1;;;16038:68:0;;4901:2:1;16038:68:0;;;4883:21:1;4940:2;4920:18;;;4913:30;4979:31;4959:18;;;4952:59;5028:18;;16038:68:0;4699:353:1;16038:68:0;16150:51;16159:5;16166:7;16194:6;16175:16;:25;16150:8;:51::i;:::-;15906:329;15816:419;;;:::o;12092:806::-;-1:-1:-1;;;;;12189:18:0;;12181:68;;;;-1:-1:-1;;;12181:68:0;;5259:2:1;12181:68:0;;;5241:21:1;5298:2;5278:18;;;5271:30;5337:34;5317:18;;;5310:62;-1:-1:-1;;;5388:18:1;;;5381:35;5433:19;;12181:68:0;5057:401:1;12181:68:0;-1:-1:-1;;;;;12268:16:0;;12260:64;;;;-1:-1:-1;;;12260:64:0;;5665:2:1;12260:64:0;;;5647:21:1;5704:2;5684:18;;;5677:30;5743:34;5723:18;;;5716:62;-1:-1:-1;;;5794:18:1;;;5787:33;5837:19;;12260:64:0;5463:399:1;12260:64:0;-1:-1:-1;;;;;12410:15:0;;12388:19;12410:15;;;;;;;;;;;12444:21;;;;12436:72;;;;-1:-1:-1;;;12436:72:0;;6069:2:1;12436:72:0;;;6051:21:1;6108:2;6088:18;;;6081:30;6147:34;6127:18;;;6120:62;-1:-1:-1;;;6198:18:1;;;6191:36;6244:19;;12436:72:0;5867:402:1;12436:72:0;-1:-1:-1;;;;;12544:15:0;;;:9;:15;;;;;;;;;;;12562:20;;;12544:38;;12762:13;;;;;;;;;;:23;;;;;;12814:26;;1342:25:1;;;12762:13:0;;12814:26;;1315:18:1;12814:26:0;;;;;;;12853:37;21274:117;14066:675;-1:-1:-1;;;;;14150:21:0;;14142:67;;;;-1:-1:-1;;;14142:67:0;;6476:2:1;14142:67:0;;;6458:21:1;6515:2;6495:18;;;6488:30;6554:34;6534:18;;;6527:62;-1:-1:-1;;;6605:18:1;;;6598:31;6646:19;;14142:67:0;6274:397:1;14142:67:0;-1:-1:-1;;;;;14309:18:0;;14284:22;14309:18;;;;;;;;;;;14346:24;;;;14338:71;;;;-1:-1:-1;;;14338:71:0;;6878:2:1;14338:71:0;;;6860:21:1;6917:2;6897:18;;;6890:30;6956:34;6936:18;;;6929:62;-1:-1:-1;;;7007:18:1;;;7000:32;7049:19;;14338:71:0;6676:398:1;14338:71:0;-1:-1:-1;;;;;14445:18:0;;:9;:18;;;;;;;;;;;14466:23;;;14445:44;;14584:12;:22;;;;;;;14635:37;1342:25:1;;;14445:9:0;;:18;14635:37;;1315:18:1;14635:37:0;;;;;;;19997:170;21274:117;;:::o;13185:548::-;-1:-1:-1;;;;;13269:21:0;;13261:65;;;;-1:-1:-1;;;13261:65:0;;7281:2:1;13261:65:0;;;7263:21:1;7320:2;7300:18;;;7293:30;7359:33;7339:18;;;7332:61;7410:18;;13261:65:0;7079:355:1;13261:65:0;13417:6;13401:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;13572:18:0;;:9;:18;;;;;;;;;;;:28;;;;;;13627:37;1342:25:1;;;13627:37:0;;1315:18:1;13627:37:0;;;;;;;13185:548;;:::o;14::1:-;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:186::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;2051:29;2070:9;2051:29;:::i;:::-;2041:39;1900:186;-1:-1:-1;;;1900:186:1:o;2299:260::-;2367:6;2375;2428:2;2416:9;2407:7;2403:23;2399:32;2396:52;;;2444:1;2441;2434:12;2396:52;2467:29;2486:9;2467:29;:::i;:::-;2457:39;;2515:38;2549:2;2538:9;2534:18;2515:38;:::i;:::-;2505:48;;2299:260;;;;;:::o;2564:380::-;2643:1;2639:12;;;;2686;;;2707:61;;2761:4;2753:6;2749:17;2739:27;;2707:61;2814:2;2806:6;2803:14;2783:18;2780:38;2777:161;;2860:10;2855:3;2851:20;2848:1;2841:31;2895:4;2892:1;2885:15;2923:4;2920:1;2913:15;2777:161;;2564:380;;;:::o;2949:222::-;3014:9;;;3035:10;;;3032:133;;;3087:10;3082:3;3078:20;3075:1;3068:31;3122:4;3119:1;3112:15;3150:4;3147:1;3140:15
Swarm Source
ipfs://c7dd934f15dbdc809cbf7efdc53b37f7ed3482c2876ba5fb893bf0afbc28229c
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.