Sepolia Testnet

Contract

0x5602c39A6E9C5AcE589F64F754927bcDa4f4BFc9
Source Code Source Code

Overview

ETH Balance

0 ETH

More Info

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Amount
Mint104037202026-03-07 17:28:0011 mins ago1772904480IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000060.00104306
Mint104036332026-03-07 17:08:0031 mins ago1772903280IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100292
Mint104035422026-03-07 16:48:0051 mins ago1772902080IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100025
Mint104034582026-03-07 16:28:001 hr ago1772900880IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100003
Mint104033732026-03-07 16:08:001 hr ago1772899680IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100002
Mint104032852026-03-07 15:48:001 hr ago1772898480IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100002
Mint104031942026-03-07 15:28:242 hrs ago1772897304IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100002
Mint104031082026-03-07 15:08:002 hrs ago1772896080IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100002
Mint104030272026-03-07 14:48:002 hrs ago1772894880IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100002
Mint104029432026-03-07 14:28:003 hrs ago1772893680IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100003
Mint104028622026-03-07 14:08:123 hrs ago1772892492IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100003
Mint104027812026-03-07 13:48:003 hrs ago1772891280IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100003
Mint104027012026-03-07 13:28:004 hrs ago1772890080IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100002
Mint104026162026-03-07 13:08:244 hrs ago1772888904IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100001
Mint104025252026-03-07 12:48:004 hrs ago1772887680IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100003
Mint104024372026-03-07 12:28:005 hrs ago1772886480IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100029
Mint104023542026-03-07 12:08:125 hrs ago1772885292IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100122
Mint104022702026-03-07 11:48:005 hrs ago1772884080IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100085
Mint104021792026-03-07 11:28:006 hrs ago1772882880IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100358
Mint104020932026-03-07 11:08:126 hrs ago1772881692IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00100656
Mint104020092026-03-07 10:48:246 hrs ago1772880504IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000050.00101339
Mint104019242026-03-07 10:28:007 hrs ago1772879280IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000060.00102353
Mint104018432026-03-07 10:08:007 hrs ago1772878080IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000060.00102325
Mint104017612026-03-07 9:48:007 hrs ago1772876880IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000060.00102647
Mint104016732026-03-07 9:28:008 hrs ago1772875680IN
0x5602c39A...Da4f4BFc9
0 ETH0.000000060.0010486
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FeeAssetHandler

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 200 runs

Other Settings:
prague EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.8.27;

import {IMintableERC20} from "@aztec/shared/interfaces/IMintableERC20.sol";
import {Ownable} from "@oz/access/Ownable.sol";

interface IFeeAssetHandler {
  event MintAmountSet(uint256 amount);

  function mint(address _recipient) external;
  function setMintAmount(uint256 _amount) external;
}

contract FeeAssetHandler is IFeeAssetHandler, Ownable {
  IMintableERC20 public immutable FEE_ASSET;
  uint256 public mintAmount;

  constructor(address _owner, address _feeAsset, uint256 _mintAmount) Ownable(_owner) {
    FEE_ASSET = IMintableERC20(_feeAsset);
    mintAmount = _mintAmount;
  }

  function mint(address _recipient) external override(IFeeAssetHandler) {
    FEE_ASSET.mint(_recipient, mintAmount);
  }

  function setMintAmount(uint256 _amount) external override(IFeeAssetHandler) onlyOwner {
    mintAmount = _amount;
    emit MintAmountSet(_amount);
  }
}

// SPDX-License-Identifier: Apache-2.0
// Copyright 2024 Aztec Labs.
pragma solidity >=0.8.27;

import {IERC20} from "@oz/token/ERC20/IERC20.sol";

interface IMintableERC20 is IERC20 {
  event MinterAdded(address indexed minter);
  event MinterRemoved(address indexed minter);

  error NotMinter(address caller);

  function mint(address _to, uint256 _amount) external;
  function addMinter(address _minter) external;
  function removeMinter(address _minter) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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);
}

// 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
{
  "remappings": [
    "@oz/=lib/openzeppelin-contracts/contracts/",
    "@aztec/=src/",
    "@test/=test/",
    "@zkpassport/=lib/circuits/src/solidity/src/",
    "@zkpassport-test/=lib/circuits/src/solidity/test/",
    "@aztec-blob-lib/=src/mock/libraries/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "circuits/=lib/circuits/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "prague",
  "viaIR": false
}

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_feeAsset","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintAmountSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"FEE_ASSET","outputs":[{"internalType":"contract IMintableERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561000f575f5ffd5b5060405161047938038061047983398101604081905261002e916100e7565b826001600160a01b03811661005c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100658161007d565b506001600160a01b0390911660805260015550610120565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100e2575f5ffd5b919050565b5f5f5f606084860312156100f9575f5ffd5b610102846100cc565b9250610110602085016100cc565b9150604084015190509250925092565b60805161033b61013e5f395f818160e00152610152015261033b5ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c80638da5cb5b116100585780638da5cb5b146100b7578063b7e9fb2b146100db578063c7cd997f14610102578063f2fde38b14610115575f5ffd5b80635a2bcc181461007e5780636a6278421461009a578063715018a6146100af575b5f5ffd5b61008760015481565b6040519081526020015b60405180910390f35b6100ad6100a83660046102c1565b610128565b005b6100ad6101ae565b5f546001600160a01b03165b6040516001600160a01b039091168152602001610091565b6100c37f000000000000000000000000000000000000000000000000000000000000000081565b6100ad6101103660046102ee565b6101c1565b6100ad6101233660046102c1565b610204565b6001546040516340c10f1960e01b81526001600160a01b03838116600483015260248201929092527f0000000000000000000000000000000000000000000000000000000000000000909116906340c10f19906044015f604051808303815f87803b158015610195575f5ffd5b505af11580156101a7573d5f5f3e3d5ffd5b5050505050565b6101b6610246565b6101bf5f610272565b565b6101c9610246565b60018190556040518181527fd16cfa409e224ac1de77fe821c9359c8e16c1e008b50fb692809b3a154182e7f9060200160405180910390a150565b61020c610246565b6001600160a01b03811661023a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61024381610272565b50565b5f546001600160a01b031633146101bf5760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156102d1575f5ffd5b81356001600160a01b03811681146102e7575f5ffd5b9392505050565b5f602082840312156102fe575f5ffd5b503591905056fea264697066735822122063a9fcfda1e725b6248db7cd467bf7e1030a777f561744172d82c31cfa1b648964736f6c634300081b0033000000000000000000000000dfe19da6a717b7088621d8bbb66be59f2d78e924000000000000000000000000762c132040fda6183066fa3b14d985ee55aa3c1800000000000000000000000000000000000000000000003635c9adc5dea00000

Deployed Bytecode

0x608060405234801561000f575f5ffd5b506004361061007a575f3560e01c80638da5cb5b116100585780638da5cb5b146100b7578063b7e9fb2b146100db578063c7cd997f14610102578063f2fde38b14610115575f5ffd5b80635a2bcc181461007e5780636a6278421461009a578063715018a6146100af575b5f5ffd5b61008760015481565b6040519081526020015b60405180910390f35b6100ad6100a83660046102c1565b610128565b005b6100ad6101ae565b5f546001600160a01b03165b6040516001600160a01b039091168152602001610091565b6100c37f000000000000000000000000762c132040fda6183066fa3b14d985ee55aa3c1881565b6100ad6101103660046102ee565b6101c1565b6100ad6101233660046102c1565b610204565b6001546040516340c10f1960e01b81526001600160a01b03838116600483015260248201929092527f000000000000000000000000762c132040fda6183066fa3b14d985ee55aa3c18909116906340c10f19906044015f604051808303815f87803b158015610195575f5ffd5b505af11580156101a7573d5f5f3e3d5ffd5b5050505050565b6101b6610246565b6101bf5f610272565b565b6101c9610246565b60018190556040518181527fd16cfa409e224ac1de77fe821c9359c8e16c1e008b50fb692809b3a154182e7f9060200160405180910390a150565b61020c610246565b6001600160a01b03811661023a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61024381610272565b50565b5f546001600160a01b031633146101bf5760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156102d1575f5ffd5b81356001600160a01b03811681146102e7575f5ffd5b9392505050565b5f602082840312156102fe575f5ffd5b503591905056fea264697066735822122063a9fcfda1e725b6248db7cd467bf7e1030a777f561744172d82c31cfa1b648964736f6c634300081b0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000dfe19da6a717b7088621d8bbb66be59f2d78e924000000000000000000000000762c132040fda6183066fa3b14d985ee55aa3c1800000000000000000000000000000000000000000000003635c9adc5dea00000

-----Decoded View---------------
Arg [0] : _owner (address): 0xdfe19Da6a717b7088621d8bBB66be59F2d78e924
Arg [1] : _feeAsset (address): 0x762C132040fdA6183066Fa3B14d985ee55aA3C18
Arg [2] : _mintAmount (uint256): 1000000000000000000000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000dfe19da6a717b7088621d8bbb66be59f2d78e924
Arg [1] : 000000000000000000000000762c132040fda6183066fa3b14d985ee55aa3c18
Arg [2] : 00000000000000000000000000000000000000000000003635c9adc5dea00000


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
0x5602c39A6E9C5AcE589F64F754927bcDa4f4BFc9
Loading...
Loading
Loading...
Loading
[ 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.