ETH Price: $2,601.33 (+1.31%)

Contract

0x78B0263974F265b153bD6dB903F7Ba29080Fb38e
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Transfer31648012024-05-08 3:36:57160 days ago1715139417IN
0x78B02639...9080Fb38e
0 ETH0.000000490.01998991
Transfer26646862024-04-26 13:46:27171 days ago1714139187IN
0x78B02639...9080Fb38e
0 ETH0.000000010.00068027
Mint20030332024-04-11 6:11:21187 days ago1712815881IN
0x78B02639...9080Fb38e
0 ETH0.000000020.00054408
Mint20030222024-04-11 6:10:59187 days ago1712815859IN
0x78B02639...9080Fb38e
0 ETH0.000000020.0005609
Mint20024012024-04-11 5:50:17187 days ago1712814617IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00097001
Mint20023082024-04-11 5:47:11187 days ago1712814431IN
0x78B02639...9080Fb38e
0 ETH0.000000030.00065985
Mint20021982024-04-11 5:43:31187 days ago1712814211IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00089471
Mint20021782024-04-11 5:42:51187 days ago1712814171IN
0x78B02639...9080Fb38e
0 ETH0.000000080.00095088
Mint20019752024-04-11 5:36:05187 days ago1712813765IN
0x78B02639...9080Fb38e
0 ETH0.000000050.00100028
Mint20015362024-04-11 5:21:27187 days ago1712812887IN
0x78B02639...9080Fb38e
0 ETH0.00000050.01
Mint20013022024-04-11 5:13:39187 days ago1712812419IN
0x78B02639...9080Fb38e
0 ETH0.000000050.0011
Mint20009262024-04-11 5:01:07187 days ago1712811667IN
0x78B02639...9080Fb38e
0 ETH0.000000050.0011
Mint20002752024-04-11 4:39:25187 days ago1712810365IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00094029
Mint20000572024-04-11 4:32:09187 days ago1712809929IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00085902
Mint19994622024-04-11 4:12:19187 days ago1712808739IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00097
Mint19993902024-04-11 4:09:55187 days ago1712808595IN
0x78B02639...9080Fb38e
0 ETH0.000000030.00066322
Mint19993082024-04-11 4:07:11187 days ago1712808431IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00082077
Mint19986642024-04-11 3:45:43187 days ago1712807143IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00080827
Mint19984732024-04-11 3:39:21187 days ago1712806761IN
0x78B02639...9080Fb38e
0 ETH0.000000030.00072296
Mint19980142024-04-11 3:24:03187 days ago1712805843IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00083324
Mint19979232024-04-11 3:21:01187 days ago1712805661IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00083301
Mint19978312024-04-11 3:17:57187 days ago1712805477IN
0x78B02639...9080Fb38e
0 ETH0.000000050.0011
Mint19977052024-04-11 3:13:45187 days ago1712805225IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00088556
Mint19974572024-04-11 3:05:29187 days ago1712804729IN
0x78B02639...9080Fb38e
0 ETH0.000000060.00119999
Mint19973542024-04-11 3:02:03187 days ago1712804523IN
0x78B02639...9080Fb38e
0 ETH0.000000040.00094118
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x83E58440...68eD1B166
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
MilkBurner

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 6 : Milk.sol
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

interface IProxy {
    function masterCopy() external view returns (address);
}

interface IBlast {
    // base configuration options
    function configureClaimableYield() external;
    function configureClaimableGas() external;
    function configureGovernor(address _gov) external;
}

interface IBlastPoints {
    function configurePointsOperator(address operator) external;
}


contract MilkBurner is ERC20 {
    // keccak256(
    //   "Mint(address to,uint256 amount,uint256 nonce)"
    // );
    bytes32 private constant MINT_TYPEHASH = 0x53cd935fa7cdddf2f609bafe004dc8225e345bca594f7f6155b9b45b3f7efad5;

    mapping(address => uint256) public nonces;

    address verifier;
    address owner;
    bool allowTransfer = false;

    constructor(address blastPoint, address blast, address _op, address _gov, address _verifier) ERC20("Milk", "MILK") {
        IBlastPoints(blastPoint).configurePointsOperator(_op);
        IBlast(blast).configureClaimableYield();
        IBlast(blast).configureClaimableGas();
        IBlast(blast).configureGovernor(_gov);
        verifier = _verifier;
        owner = msg.sender;
    }

    // keccak256(
    //     "EIP712Domain(uint256 chainId,address verifyingContract)"
    // );
    bytes32 private constant DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218;

    function getChainId() public view returns (uint256) {
        uint256 id;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            id := chainid()
        }
        return id;
    }

    function signatureSplit(bytes memory signatures, uint256 pos) internal pure returns (uint8 v, bytes32 r, bytes32 s) {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            let signaturePos := mul(0x41, pos)
            r := mload(add(signatures, add(signaturePos, 0x20)))
            s := mload(add(signatures, add(signaturePos, 0x40)))
            v := and(mload(add(signatures, add(signaturePos, 0x41))), 0xff)
        }
    }

    function setAllowTransfer(bool val) public {
      require(msg.sender == owner, "MK04");
      allowTransfer = val;
    }

    function domainSeparator() public view returns (bytes32) {
      return keccak256(abi.encode(DOMAIN_SEPARATOR_TYPEHASH, getChainId(), this));
    }

    function encodeMint(
        address to,
        uint256 amount,
        uint256 nonce
    ) public view returns (bytes memory) {
        bytes32 withdrawHash = keccak256(
            abi.encode(
                MINT_TYPEHASH,
                to,
                amount,
                nonce
            )
        );
        return abi.encodePacked(bytes1(0x19), bytes1(0x01), domainSeparator(), withdrawHash);
    }

    function mint(address to, uint256 amount, uint256 nonce, bytes calldata signature) public {
      require(nonces[to] < nonce, "MK01");
      uint8 v;
      bytes32 r;
      bytes32 s;
      (v, r, s) = signatureSplit(signature, 0);
      address _verifier = ecrecover(keccak256(encodeMint(to, amount ,nonce)), v, r, s);
      require(_verifier == verifier, "MK02");
      nonces[to] = nonce;
      _mint(to, amount);
    }

    function transfer(address to, uint256 amount) public override returns (bool) {
      require(allowTransfer, "MK03");
      return super.transfer(to, amount);
    }
}

File 2 of 6 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 3 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}.
 *
 * 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].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

    mapping(address account => mapping(address spender => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * 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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

File 4 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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 5 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 6 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"blastPoint","type":"address"},{"internalType":"address","name":"blast","type":"address"},{"internalType":"address","name":"_op","type":"address"},{"internalType":"address","name":"_gov","type":"address"},{"internalType":"address","name":"_verifier","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","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":"value","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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"encodeMint","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setAllowTransfer","outputs":[],"stateMutability":"nonpayable","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a08231116100975780639b663ec7116100665780639b663ec714610288578063a9059cbb146102b8578063dd62ed3e146102e8578063f698da2514610318576100f5565b806370a08231146101ee578063731133e91461021e5780637ecebe001461023a57806395d89b411461026a576100f5565b806318160ddd116100d357806318160ddd1461016457806323b872dd14610182578063313ce567146101b25780633408e470146101d0576100f5565b806306fdde03146100fa578063095ea7b3146101185780630b81e21614610148575b600080fd5b610102610336565b60405161010f91906110e4565b60405180910390f35b610132600480360381019061012d91906111a4565b6103c8565b60405161013f91906111ff565b60405180910390f35b610162600480360381019061015d9190611246565b6103eb565b005b61016c610498565b6040516101799190611282565b60405180910390f35b61019c6004803603810190610197919061129d565b6104a2565b6040516101a991906111ff565b60405180910390f35b6101ba6104d1565b6040516101c7919061130c565b60405180910390f35b6101d86104da565b6040516101e59190611282565b60405180910390f35b61020860048036038101906102039190611327565b6104e7565b6040516102159190611282565b60405180910390f35b610238600480360381019061023391906113b9565b61052f565b005b610254600480360381019061024f9190611327565b61075d565b6040516102619190611282565b60405180910390f35b610272610775565b60405161027f91906110e4565b60405180910390f35b6102a2600480360381019061029d9190611441565b610807565b6040516102af91906114e9565b60405180910390f35b6102d260048036038101906102cd91906111a4565b61089c565b6040516102df91906111ff565b60405180910390f35b61030260048036038101906102fd919061150b565b6108ff565b60405161030f9190611282565b60405180910390f35b610320610986565b60405161032d9190611564565b60405180910390f35b606060038054610345906115ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610371906115ae565b80156103be5780601f10610393576101008083540402835291602001916103be565b820191906000526020600020905b8154815290600101906020018083116103a157829003601f168201915b5050505050905090565b6000806103d36109e2565b90506103e08185856109ea565b600191505092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461047b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104729061162b565b60405180910390fd5b80600760146101000a81548160ff02191690831515021790555050565b6000600254905090565b6000806104ad6109e2565b90506104ba8582856109fc565b6104c5858585610a90565b60019150509392505050565b60006012905090565b6000804690508091505090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b82600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106105b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a790611697565b60405180910390fd5b600080600061060485858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506000610b84565b8093508194508295505050506000600161061f8a8a8a610807565b805190602001208585856040516000815260200160405260405161064694939291906116b7565b6020604051602081039080840390855afa158015610668573d6000803e3d6000fd5b505050602060405103519050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106fb90611748565b60405180910390fd5b86600560008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506107528989610bb3565b505050505050505050565b60056020528060005260406000206000915090505481565b606060048054610784906115ae565b80601f01602080910402602001604051908101604052809291908181526020018280546107b0906115ae565b80156107fd5780601f106107d2576101008083540402835291602001916107fd565b820191906000526020600020905b8154815290600101906020018083116107e057829003601f168201915b5050505050905090565b606060007f53cd935fa7cdddf2f609bafe004dc8225e345bca594f7f6155b9b45b3f7efad560001b8585856040516020016108459493929190611777565b604051602081830303815290604052805190602001209050601960f81b600160f81b61086f610986565b83604051602001610883949392919061182a565b6040516020818303038152906040529150509392505050565b6000600760149054906101000a900460ff166108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e4906118c4565b60405180910390fd5b6108f78383610c35565b905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a7946921860001b6109b46104da565b306040516020016109c793929190611943565b60405160208183030381529060405280519060200120905090565b600033905090565b6109f78383836001610c58565b505050565b6000610a0884846108ff565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610a8a5781811015610a7a578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610a719392919061197a565b60405180910390fd5b610a8984848484036000610c58565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610b025760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610af991906119b1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b745760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b6b91906119b1565b60405180910390fd5b610b7f838383610e2f565b505050565b60008060008360410260208101860151925060408101860151915060ff60418201870151169350509250925092565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c255760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c1c91906119b1565b60405180910390fd5b610c3160008383610e2f565b5050565b600080610c406109e2565b9050610c4d818585610a90565b600191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610cca5760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610cc191906119b1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d3c5760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610d3391906119b1565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610e29578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610e209190611282565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e81578060026000828254610e7591906119fb565b92505081905550610f54565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610f0d578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610f049392919061197a565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f9d5780600260008282540392505081905550610fea565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110479190611282565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561108e578082015181840152602081019050611073565b60008484015250505050565b6000601f19601f8301169050919050565b60006110b682611054565b6110c0818561105f565b93506110d0818560208601611070565b6110d98161109a565b840191505092915050565b600060208201905081810360008301526110fe81846110ab565b905092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061113b82611110565b9050919050565b61114b81611130565b811461115657600080fd5b50565b60008135905061116881611142565b92915050565b6000819050919050565b6111818161116e565b811461118c57600080fd5b50565b60008135905061119e81611178565b92915050565b600080604083850312156111bb576111ba611106565b5b60006111c985828601611159565b92505060206111da8582860161118f565b9150509250929050565b60008115159050919050565b6111f9816111e4565b82525050565b600060208201905061121460008301846111f0565b92915050565b611223816111e4565b811461122e57600080fd5b50565b6000813590506112408161121a565b92915050565b60006020828403121561125c5761125b611106565b5b600061126a84828501611231565b91505092915050565b61127c8161116e565b82525050565b60006020820190506112976000830184611273565b92915050565b6000806000606084860312156112b6576112b5611106565b5b60006112c486828701611159565b93505060206112d586828701611159565b92505060406112e68682870161118f565b9150509250925092565b600060ff82169050919050565b611306816112f0565b82525050565b600060208201905061132160008301846112fd565b92915050565b60006020828403121561133d5761133c611106565b5b600061134b84828501611159565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261137957611378611354565b5b8235905067ffffffffffffffff81111561139657611395611359565b5b6020830191508360018202830111156113b2576113b161135e565b5b9250929050565b6000806000806000608086880312156113d5576113d4611106565b5b60006113e388828901611159565b95505060206113f48882890161118f565b94505060406114058882890161118f565b935050606086013567ffffffffffffffff8111156114265761142561110b565b5b61143288828901611363565b92509250509295509295909350565b60008060006060848603121561145a57611459611106565b5b600061146886828701611159565b93505060206114798682870161118f565b925050604061148a8682870161118f565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60006114bb82611494565b6114c5818561149f565b93506114d5818560208601611070565b6114de8161109a565b840191505092915050565b6000602082019050818103600083015261150381846114b0565b905092915050565b6000806040838503121561152257611521611106565b5b600061153085828601611159565b925050602061154185828601611159565b9150509250929050565b6000819050919050565b61155e8161154b565b82525050565b60006020820190506115796000830184611555565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806115c657607f821691505b6020821081036115d9576115d861157f565b5b50919050565b7f4d4b303400000000000000000000000000000000000000000000000000000000600082015250565b600061161560048361105f565b9150611620826115df565b602082019050919050565b6000602082019050818103600083015261164481611608565b9050919050565b7f4d4b303100000000000000000000000000000000000000000000000000000000600082015250565b600061168160048361105f565b915061168c8261164b565b602082019050919050565b600060208201905081810360008301526116b081611674565b9050919050565b60006080820190506116cc6000830187611555565b6116d960208301866112fd565b6116e66040830185611555565b6116f36060830184611555565b95945050505050565b7f4d4b303200000000000000000000000000000000000000000000000000000000600082015250565b600061173260048361105f565b915061173d826116fc565b602082019050919050565b6000602082019050818103600083015261176181611725565b9050919050565b61177181611130565b82525050565b600060808201905061178c6000830187611555565b6117996020830186611768565b6117a66040830185611273565b6117b36060830184611273565b95945050505050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b6118036117fe826117bc565b6117e8565b82525050565b6000819050919050565b61182461181f8261154b565b611809565b82525050565b600061183682876117f2565b60018201915061184682866117f2565b6001820191506118568285611813565b6020820191506118668284611813565b60208201915081905095945050505050565b7f4d4b303300000000000000000000000000000000000000000000000000000000600082015250565b60006118ae60048361105f565b91506118b982611878565b602082019050919050565b600060208201905081810360008301526118dd816118a1565b9050919050565b6000819050919050565b60006119096119046118ff84611110565b6118e4565b611110565b9050919050565b600061191b826118ee565b9050919050565b600061192d82611910565b9050919050565b61193d81611922565b82525050565b60006060820190506119586000830186611555565b6119656020830185611273565b6119726040830184611934565b949350505050565b600060608201905061198f6000830186611768565b61199c6020830185611273565b6119a96040830184611273565b949350505050565b60006020820190506119c66000830184611768565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a068261116e565b9150611a118361116e565b9250828201905080821115611a2957611a286119cc565b5b9291505056fea264697066735822122008117d5dbf67cbe46a98a999447c61465e1864e62463214b733f4e878cc1fe4e64736f6c63430008180033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

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.