Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 8 internal transactions
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FactoryBurnMintERC20
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 80000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import {IGetCCIPAdmin} from "../../interfaces/IGetCCIPAdmin.sol";
import {IOwnable} from "@chainlink/contracts/src/v0.8/shared/interfaces/IOwnable.sol";
import {ITypeAndVersion} from "@chainlink/contracts/src/v0.8/shared/interfaces/ITypeAndVersion.sol";
import {IBurnMintERC20} from "@chainlink/contracts/src/v0.8/shared/token/ERC20/IBurnMintERC20.sol";
import {Ownable2StepMsgSender} from "@chainlink/contracts/src/v0.8/shared/access/Ownable2StepMsgSender.sol";
import {ERC20} from "@openzeppelin/[email protected]/token/ERC20/ERC20.sol";
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/IERC20.sol";
import {ERC20Burnable} from "@openzeppelin/[email protected]/token/ERC20/extensions/ERC20Burnable.sol";
import {IERC165} from "@openzeppelin/[email protected]/utils/introspection/IERC165.sol";
import {EnumerableSet} from "@openzeppelin/[email protected]/utils/structs/EnumerableSet.sol";
/// @notice A basic ERC20 compatible token contract with burn and minting roles.
/// @dev The constructor has been modified to support the deployment pattern used by a factory contract.
/// @dev The total supply can be limited during deployment.
contract FactoryBurnMintERC20 is
IBurnMintERC20,
IGetCCIPAdmin,
IERC165,
ERC20Burnable,
Ownable2StepMsgSender,
ITypeAndVersion
{
using EnumerableSet for EnumerableSet.AddressSet;
error SenderNotMinter(address sender);
error SenderNotBurner(address sender);
error MaxSupplyExceeded(uint256 supplyAfterMint);
event MintAccessGranted(address minter);
event BurnAccessGranted(address burner);
event MintAccessRevoked(address minter);
event BurnAccessRevoked(address burner);
event CCIPAdminTransferred(address indexed previousAdmin, address indexed newAdmin);
/// @dev The number of decimals for the token
uint8 internal immutable i_decimals;
/// @dev The maximum supply of the token, 0 if unlimited
uint256 internal immutable i_maxSupply;
/// @dev the CCIPAdmin can be used to register with the CCIP token admin registry, but has no other special powers,
/// and can only be transferred by the owner.
address internal s_ccipAdmin;
/// @dev the allowed minter addresses
EnumerableSet.AddressSet internal s_minters;
/// @dev the allowed burner addresses
EnumerableSet.AddressSet internal s_burners;
/// @dev the underscores in parameter names are used to suppress compiler warnings about shadowing ERC20 functions
constructor(
string memory name,
string memory symbol,
uint8 decimals_,
uint256 maxSupply_,
uint256 preMint,
address newOwner
) ERC20(name, symbol) {
i_decimals = decimals_;
i_maxSupply = maxSupply_;
s_ccipAdmin = newOwner;
if (preMint > maxSupply_ && maxSupply_ != 0) revert MaxSupplyExceeded(preMint);
// Mint the initial supply to the new Owner, saving gas by not calling if the mint amount is zero
if (preMint != 0) _mint(newOwner, preMint);
}
/// @inheritdoc ITypeAndVersion
/// @notice Using a function because constant state variables cannot be overridden by child contracts.
function typeAndVersion() external pure virtual override returns (string memory) {
return "FactoryBurnMintERC20 1.6.2";
}
/// @inheritdoc IERC165
function supportsInterface(
bytes4 interfaceId
) public pure virtual override returns (bool) {
return interfaceId == type(IERC20).interfaceId || interfaceId == type(IBurnMintERC20).interfaceId
|| interfaceId == type(IERC165).interfaceId || interfaceId == type(IOwnable).interfaceId
|| interfaceId == type(IGetCCIPAdmin).interfaceId;
}
// ================================================================
// │ ERC20 │
// ================================================================
/// @dev Returns the number of decimals used in its user representation.
function decimals() public view virtual override returns (uint8) {
return i_decimals;
}
/// @dev Returns the max supply of the token, 0 if unlimited.
function maxSupply() public view virtual returns (uint256) {
return i_maxSupply;
}
/// @dev Uses OZ ERC20 _transfer to disallow sending to address(0).
/// @dev Disallows sending to address(this)
function _transfer(address from, address to, uint256 amount) internal virtual override validAddress(to) {
super._transfer(from, to, amount);
}
/// @dev Uses OZ ERC20 _approve to disallow approving for address(0).
/// @dev Disallows approving for address(this)
function _approve(address owner, address spender, uint256 amount) internal virtual override validAddress(spender) {
super._approve(owner, spender, amount);
}
/// @dev Exists to be backwards compatible with the older naming convention.
/// @param spender the account being approved to spend on the users' behalf.
/// @param subtractedValue the amount being removed from the approval.
/// @return success Bool to return if the approval was successfully decreased.
function decreaseApproval(address spender, uint256 subtractedValue) external returns (bool success) {
return decreaseAllowance(spender, subtractedValue);
}
/// @dev Exists to be backwards compatible with the older naming convention.
/// @param spender the account being approved to spend on the users' behalf.
/// @param addedValue the amount being added to the approval.
function increaseApproval(address spender, uint256 addedValue) external {
increaseAllowance(spender, addedValue);
}
// ================================================================
// │ Burning & minting │
// ================================================================
/// @inheritdoc ERC20Burnable
/// @dev Uses OZ ERC20 _burn to disallow burning from address(0).
/// @dev Decreases the total supply.
function burn(
uint256 amount
) public override(IBurnMintERC20, ERC20Burnable) onlyBurner {
super.burn(amount);
}
/// @inheritdoc IBurnMintERC20
/// @dev Alias for BurnFrom for compatibility with the older naming convention.
/// @dev Uses burnFrom for all validation & logic.
function burn(address account, uint256 amount) public virtual override {
burnFrom(account, amount);
}
/// @inheritdoc ERC20Burnable
/// @dev Uses OZ ERC20 _burn to disallow burning from address(0).
/// @dev Decreases the total supply.
function burnFrom(address account, uint256 amount) public override(IBurnMintERC20, ERC20Burnable) onlyBurner {
super.burnFrom(account, amount);
}
/// @inheritdoc IBurnMintERC20
/// @dev Uses OZ ERC20 _mint to disallow minting to address(0).
/// @dev Disallows minting to address(this)
/// @dev Increases the total supply.
function mint(address account, uint256 amount) external override onlyMinter validAddress(account) {
if (i_maxSupply != 0 && totalSupply() + amount > i_maxSupply) revert MaxSupplyExceeded(totalSupply() + amount);
_mint(account, amount);
}
// ================================================================
// │ Roles │
// ================================================================
/// @notice grants both mint and burn roles to `burnAndMinter`.
/// @dev calls public functions so this function does not require
/// access controls. This is handled in the inner functions.
function grantMintAndBurnRoles(
address burnAndMinter
) external {
grantMintRole(burnAndMinter);
grantBurnRole(burnAndMinter);
}
/// @notice Grants mint role to the given address.
/// @dev only the owner can call this function.
function grantMintRole(
address minter
) public onlyOwner {
if (s_minters.add(minter)) {
emit MintAccessGranted(minter);
}
}
/// @notice Grants burn role to the given address.
/// @dev only the owner can call this function.
/// @param burner the address to grant the burner role to
function grantBurnRole(
address burner
) public onlyOwner {
if (s_burners.add(burner)) {
emit BurnAccessGranted(burner);
}
}
/// @notice Revokes mint role for the given address.
/// @dev only the owner can call this function.
/// @param minter the address to revoke the mint role from.
function revokeMintRole(
address minter
) external onlyOwner {
if (s_minters.remove(minter)) {
emit MintAccessRevoked(minter);
}
}
/// @notice Revokes burn role from the given address.
/// @dev only the owner can call this function
/// @param burner the address to revoke the burner role from
function revokeBurnRole(
address burner
) external onlyOwner {
if (s_burners.remove(burner)) {
emit BurnAccessRevoked(burner);
}
}
/// @notice Returns all permissioned minters
function getMinters() external view returns (address[] memory) {
return s_minters.values();
}
/// @notice Returns all permissioned burners
function getBurners() external view returns (address[] memory) {
return s_burners.values();
}
/// @notice Returns the current CCIPAdmin
function getCCIPAdmin() external view returns (address) {
return s_ccipAdmin;
}
/// @notice Transfers the CCIPAdmin role to a new address
/// @dev only the owner can call this function, NOT the current ccipAdmin, and 1-step ownership transfer is used.
/// @param newAdmin The address to transfer the CCIPAdmin role to. Setting to address(0) is a valid way to revoke
/// the role
function setCCIPAdmin(
address newAdmin
) public onlyOwner {
address currentAdmin = s_ccipAdmin;
s_ccipAdmin = newAdmin;
emit CCIPAdminTransferred(currentAdmin, newAdmin);
}
// ================================================================
// │ Access │
// ================================================================
/// @notice Checks whether a given address is a minter for this token.
/// @return true if the address is allowed to mint.
function isMinter(
address minter
) public view returns (bool) {
return s_minters.contains(minter);
}
/// @notice Checks whether a given address is a burner for this token.
/// @return true if the address is allowed to burn.
function isBurner(
address burner
) public view returns (bool) {
return s_burners.contains(burner);
}
/// @notice Checks whether the msg.sender is a permissioned minter for this token
/// @dev Reverts with a SenderNotMinter if the check fails
modifier onlyMinter() {
if (!isMinter(msg.sender)) revert SenderNotMinter(msg.sender);
_;
}
/// @notice Checks whether the msg.sender is a permissioned burner for this token
/// @dev Reverts with a SenderNotBurner if the check fails
modifier onlyBurner() {
if (!isBurner(msg.sender)) revert SenderNotBurner(msg.sender);
_;
}
/// @notice Check if recipient is valid (not this contract address).
/// @param recipient the account we transfer/approve to.
/// @dev Reverts with an empty revert to be compatible with the existing link token when
/// the recipient is this contract address.
modifier validAddress(
address recipient
) virtual {
// solhint-disable-next-line reason-string, gas-custom-errors
if (recipient == address(this)) revert();
_;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IGetCCIPAdmin {
/// @notice Returns the admin of the token.
/// @dev This method is named to never conflict with existing methods.
function getCCIPAdmin() external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import {IOwnable} from "../interfaces/IOwnable.sol";
/// @notice A minimal contract that implements 2-step ownership transfer and nothing more. It's made to be minimal
/// to reduce the impact of the bytecode size on any contract that inherits from it.
contract Ownable2Step is IOwnable {
/// @notice The pending owner is the address to which ownership may be transferred.
address private s_pendingOwner;
/// @notice The owner is the current owner of the contract.
/// @dev The owner is the second storage variable so any implementing contract could pack other state with it
/// instead of the much less used s_pendingOwner.
address private s_owner;
error OwnerCannotBeZero();
error MustBeProposedOwner();
error CannotTransferToSelf();
error OnlyCallableByOwner();
event OwnershipTransferRequested(address indexed from, address indexed to);
event OwnershipTransferred(address indexed from, address indexed to);
constructor(address newOwner, address pendingOwner) {
if (newOwner == address(0)) {
revert OwnerCannotBeZero();
}
s_owner = newOwner;
if (pendingOwner != address(0)) {
_transferOwnership(pendingOwner);
}
}
/// @notice Get the current owner
function owner() public view override returns (address) {
return s_owner;
}
/// @notice Allows an owner to begin transferring ownership to a new address. The new owner needs to call
/// `acceptOwnership` to accept the transfer before any permissions are changed.
/// @param to The address to which ownership will be transferred.
function transferOwnership(
address to
) public override onlyOwner {
_transferOwnership(to);
}
/// @notice validate, transfer ownership, and emit relevant events
/// @param to The address to which ownership will be transferred.
function _transferOwnership(
address to
) private {
if (to == msg.sender) {
revert CannotTransferToSelf();
}
s_pendingOwner = to;
emit OwnershipTransferRequested(s_owner, to);
}
/// @notice Allows an ownership transfer to be completed by the recipient.
function acceptOwnership() external override {
if (msg.sender != s_pendingOwner) {
revert MustBeProposedOwner();
}
address oldOwner = s_owner;
s_owner = msg.sender;
s_pendingOwner = address(0);
emit OwnershipTransferred(oldOwner, msg.sender);
}
/// @notice validate access
function _validateOwnership() internal view {
if (msg.sender != s_owner) {
revert OnlyCallableByOwner();
}
}
/// @notice Reverts if called by anyone other than the contract owner.
modifier onlyOwner() {
_validateOwnership();
_;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import {Ownable2Step} from "./Ownable2Step.sol";
/// @notice Sets the msg.sender to be the owner of the contract and does not set a pending owner.
contract Ownable2StepMsgSender is Ownable2Step {
constructor() Ownable2Step(msg.sender, address(0)) {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IOwnable {
function owner() external returns (address);
function transferOwnership(
address recipient
) external;
function acceptOwnership() external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface ITypeAndVersion {
function typeAndVersion() external pure returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/IERC20.sol";
interface IBurnMintERC20 is IERC20 {
/// @notice Mints new tokens for a given address.
/// @param account The address to mint the new tokens to.
/// @param amount The number of tokens to be minted.
/// @dev this function increases the total supply.
function mint(address account, uint256 amount) external;
/// @notice Burns tokens from the sender.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burn(
uint256 amount
) external;
/// @notice Burns tokens from a given address..
/// @param account The address to burn tokens from.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burn(address account, uint256 amount) external;
/// @notice Burns tokens from a given address..
/// @param account The address to burn tokens from.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burnFrom(address account, uint256 amount) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.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 {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.0;
import "../ERC20.sol";
import "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.20;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position is the index of the value in the `values` array plus 1.
// Position 0 is used to mean a value is not in the set.
mapping(bytes32 value => uint256) _positions;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._positions[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We cache the value's position to prevent multiple reads from the same storage slot
uint256 position = set._positions[value];
if (position != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 valueIndex = position - 1;
uint256 lastIndex = set._values.length - 1;
if (valueIndex != lastIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the lastValue to the index where the value to delete is
set._values[valueIndex] = lastValue;
// Update the tracked position of the lastValue (that was just moved)
set._positions[lastValue] = position;
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the tracked position for the deleted slot
delete set._positions[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._positions[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}{
"evmVersion": "paris",
"metadata": {
"appendCBOR": true,
"bytecodeHash": "none",
"useLiteralContent": false
},
"optimizer": {
"enabled": true,
"runs": 80000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": [
"forge-std/=node_modules/@chainlink/contracts/src/v0.8/vendor/forge-std/src/",
"@chainlink/contracts/=node_modules/@chainlink/contracts/",
"@openzeppelin/[email protected]/=node_modules/@openzeppelin/contracts-4.8.3/",
"@openzeppelin/[email protected]/=node_modules/@openzeppelin/contracts-5.0.2/"
],
"viaIR": true
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"preMint","type":"uint256"},{"internalType":"address","name":"newOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CannotTransferToSelf","type":"error"},{"inputs":[{"internalType":"uint256","name":"supplyAfterMint","type":"uint256"}],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[],"name":"MustBeProposedOwner","type":"error"},{"inputs":[],"name":"OnlyCallableByOwner","type":"error"},{"inputs":[],"name":"OwnerCannotBeZero","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"SenderNotBurner","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"SenderNotMinter","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":false,"internalType":"address","name":"burner","type":"address"}],"name":"BurnAccessGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"burner","type":"address"}],"name":"BurnAccessRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"CCIPAdminTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"MintAccessGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"MintAccessRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferred","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":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","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":"subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBurners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCCIPAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinters","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"grantBurnRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burnAndMinter","type":"address"}],"name":"grantMintAndBurnRoles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"grantMintRole","outputs":[],"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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"isBurner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"revokeBurnRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"revokeMintRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setCCIPAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"typeAndVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]Contract Creation Code
60c0604052346104b55761280e80380380610019816104ba565b92833981019060c0818303126104b55780516001600160401b0381116104b557826100459183016104df565b602082015190926001600160401b0382116104b5576100659183016104df565b604082015160ff811681036104b55760608301519160a060808501519401519460018060a01b0386168096036104b5578051906001600160401b0382116103b25760035490600182811c921680156104ab575b60208310146103925781601f84931161043b575b50602090601f83116001146103d3576000926103c8575b50508160011b916000199060031b1c1916176003555b8051906001600160401b0382116103b25760045490600182811c921680156103a8575b60208310146103925781601f849311610322575b50602090601f83116001146102ba576000926102af575b50508160011b916000199060031b1c1916176004555b331561029e573360018060a01b031960065416176006556080528060a0528260018060a01b031960075416176007558082119081610294575b5061028057806101c9575b6040516122c3908161054b823960805181611240015260a05181818161042601526110700152f35b811561023b57600254908082018092116102255760207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9160009360025584845283825260408420818154019055604051908152a338806101a1565b634e487b7160e01b600052601160045260246000fd5b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b63cbbf111360e01b60005260045260246000fd5b9050151538610196565b639b15e16f60e01b60005260046000fd5b015190503880610147565b600460009081528281209350601f198516905b81811061030a57509084600195949392106102f1575b505050811b0160045561015d565b015160001960f88460031b161c191690553880806102e3565b929360206001819287860151815501950193016102cd565b60046000529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f840160051c81019160208510610388575b90601f859493920160051c01905b8181106103795750610130565b6000815584935060010161036c565b909150819061035e565b634e487b7160e01b600052602260045260246000fd5b91607f169161011c565b634e487b7160e01b600052604160045260246000fd5b0151905038806100e3565b600360009081528281209350601f198516905b818110610423575090846001959493921061040a575b505050811b016003556100f9565b015160001960f88460031b161c191690553880806103fc565b929360206001819287860151815501950193016103e6565b60036000529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c810191602085106104a1575b90601f859493920160051c01905b81811061049257506100cc565b60008155849350600101610485565b9091508190610477565b91607f16916100b8565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176103b257604052565b81601f820112156104b5578051906001600160401b0382116103b25761050e601f8301601f19166020016104ba565b92828452602083830101116104b55760005b82811061053557505060206000918301015290565b8060208092840101518282870101520161052056fe608080604052600436101561001357600080fd5b60003560e01c90816301ffc9a7146116ef5750806306fdde0314611612578063095ea7b31461145557806318160ddd14611419578063181f5a771461136357806323b872dd14611264578063313ce5671461120857806339509351146111cc57806340c10f1914610ff957806342966c6814610fa25780634334614a14610f3d5780634f5632f814610eac578063661884631461098a5780636b32810b14610e1757806370a0823114610db257806379ba509714610cc957806379cc67901461098f57806386fe8b4314610c285780638da5cb5b14610bd65780638fd6a6ac14610b8457806395d89b4114610a275780639dc29fac1461098f578063a457c2d71461098a578063a8fa343c146108df578063a9059cbb1461067d578063aa271e1a1461060e578063c2e3273d1461057d578063c630948d146104da578063c64d0ebc14610449578063d5abeb01146103f0578063d73dd623146103ab578063dd62ed3e1461031b578063f2fde38b1461022b5763f81094f31461019557600080fd5b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6101e16118a6565b6101e9611d29565b166101f3816120d1565b6101f957005b60207fed998b960f6340d045f620c119730f7aa7995e7425c2401d3a5b64ff998a59e991604051908152a1005b600080fd5b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6102776118a6565b61027f611d29565b163381146102f157807fffffffffffffffffffffffff0000000000000000000000000000000000000000600554161760055573ffffffffffffffffffffffffffffffffffffffff600654167fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae1278600080a3005b7fdad89dca0000000000000000000000000000000000000000000000000000000060005260046000fd5b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576103526118a6565b73ffffffffffffffffffffffffffffffffffffffff61036f6118c9565b9116600052600160205273ffffffffffffffffffffffffffffffffffffffff604060002091166000526020526020604060002054604051908152f35b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576103ee6103e56118a6565b60243590611b2f565b005b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6104956118a6565b61049d611d29565b166104a78161225c565b6104ad57005b60207f92308bb7573b2a3d17ddb868b39d8ebec433f3194421abc22d084f89658c9bad91604051908152a1005b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6105266118a6565b61052e611d29565b16610538816121fc565b61054e575b610545611d29565b6104a78161225c565b7fe46fef8bbff1389d9010703cf8ebb363fb3daf5bf56edc27080b67bc8d9251ea6020604051838152a161053d565b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6105c96118a6565b6105d1611d29565b166105db816121fc565b6105e157005b60207fe46fef8bbff1389d9010703cf8ebb363fb3daf5bf56edc27080b67bc8d9251ea91604051908152a1005b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602061067373ffffffffffffffffffffffffffffffffffffffff61065f6118a6565b166000526009602052604060002054151590565b6040519015158152f35b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576106b46118a6565b73ffffffffffffffffffffffffffffffffffffffff1660243530821461022657331561085b5781156107d7573360005260006020526040600020548181106107535781903360005260006020520360406000205581600052600060205260406000208181540190556040519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203392a3602060405160018152f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576109166118a6565b61091e611d29565b73ffffffffffffffffffffffffffffffffffffffff80600754921691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600755167f9524c9e4b0b61eb018dd58a1cd856e3e74009528328ab4a613b434fa631d7242600080a3005b6118ec565b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576109c66118a6565b6024356109e033600052600b602052604060002054151590565b156109f9576103ee916109f4823383611bce565b611d74565b7fc820b10b000000000000000000000000000000000000000000000000000000006000523360045260246000fd5b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760405160006004548060011c90600181168015610b7a575b602083108114610b4d57828552908115610b0b5750600114610aab575b610aa783610a9b81850382611ab2565b6040519182918261183e565b0390f35b91905060046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b916000905b808210610af157509091508101602001610a9b610a8b565b919260018160209254838588010152019101909291610ad9565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660208086019190915291151560051b84019091019150610a9b9050610a8b565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526022600452fd5b91607f1691610a6e565b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602073ffffffffffffffffffffffffffffffffffffffff60075416604051908152f35b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602073ffffffffffffffffffffffffffffffffffffffff60065416604051908152f35b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657604051806020600a54918281520190600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a89060005b818110610cb357610aa785610ca781870382611ab2565b60405191829182611a62565b8254845260209093019260019283019201610c90565b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760055473ffffffffffffffffffffffffffffffffffffffff81163303610d88577fffffffffffffffffffffffff00000000000000000000000000000000000000006006549133828416176006551660055573ffffffffffffffffffffffffffffffffffffffff3391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b7f02b543c60000000000000000000000000000000000000000000000000000000060005260046000fd5b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff610dfe6118a6565b1660005260006020526020604060002054604051908152f35b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760405180602060085491828152019060086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee39060005b818110610e9657610aa785610ca781870382611ab2565b8254845260209093019260019283019201610e7f565b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff610ef86118a6565b610f00611d29565b16610f0a81611f3b565b610f1057005b60207f0a675452746933cefe3d74182e78db7afe57ba60eaa4234b5d85e9aa41b0610c91604051908152a1005b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602061067373ffffffffffffffffffffffffffffffffffffffff610f8e6118a6565b16600052600b602052604060002054151590565b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657610fe833600052600b602052604060002054151590565b156109f9576103ee60043533611d74565b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576110306118a6565b6024359061104b336000526009602052604060002054151590565b1561119e5773ffffffffffffffffffffffffffffffffffffffff1690308214610226577f00000000000000000000000000000000000000000000000000000000000000008015159081611189575b506111505781156110f2577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020826110d6600094600254611af3565b60025584845283825260408420818154019055604051908152a3005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b61115c90600254611af3565b7fcbbf11130000000000000000000000000000000000000000000000000000000060005260045260246000fd5b905061119782600254611af3565b1183611099565b7fe2c8c9d5000000000000000000000000000000000000000000000000000000006000523360045260246000fd5b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760206106736103e56118a6565b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602060405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346102265760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265761129b6118a6565b6112a36118c9565b73ffffffffffffffffffffffffffffffffffffffff604435916112c7833386611bce565b16913083146102265773ffffffffffffffffffffffffffffffffffffffff1690811561085b5782156107d75781600052600060205260406000205481811061075357817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9260209285600052600084520360406000205584600052600082526040600020818154019055604051908152a3602060405160018152f35b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657604051604081019080821067ffffffffffffffff8311176113ea57610aa791604052601a81527f466163746f72794275726e4d696e74455243323020312e362e3200000000000060208201526040519182918261183e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576020600254604051908152f35b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265761148c6118a6565b73ffffffffffffffffffffffffffffffffffffffff1660243530821461022657331561158f57811561150b57336000526001602052604060002082600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760405160006003548060011c906001811680156116e5575b602083108114610b4d57828552908115610b0b575060011461168557610aa783610a9b81850382611ab2565b91905060036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b916000905b8082106116cb57509091508101602001610a9b610a8b565b9192600181602092548385880101520191019092916116b3565b91607f1691611659565b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657600435907fffffffff00000000000000000000000000000000000000000000000000000000821680920361022657817f36372b070000000000000000000000000000000000000000000000000000000060209314908115611814575b81156117ea575b81156117c0575b8115611796575b5015158152f35b7f8fd6a6ac000000000000000000000000000000000000000000000000000000009150148361178f565b7f06e278470000000000000000000000000000000000000000000000000000000081149150611788565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081149150611781565b7fe6599b4d000000000000000000000000000000000000000000000000000000008114915061177a565b9190916020815282519283602083015260005b8481106118905750507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006040809697860101520116010190565b8060208092840101516040828601015201611851565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361022657565b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361022657565b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576119236118a6565b6024359060009133835260016020526040832073ffffffffffffffffffffffffffffffffffffffff831684526020526040832054908082106119de5773ffffffffffffffffffffffffffffffffffffffff91039116913083146119db57331561158f57821561150b5760408291338152600160205281812085825260205220556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a360206001604051908152f35b80fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b602060408183019282815284518094520192019060005b818110611a865750505090565b825173ffffffffffffffffffffffffffffffffffffffff16845260209384019390920191600101611a79565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176113ea57604052565b91908201809211611b0057565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b90611b6b73ffffffffffffffffffffffffffffffffffffffff913360005260016020526040600020838516600052602052604060002054611af3565b91169030821461022657331561158f57811561150b57336000526001602052604060002082600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3600190565b73ffffffffffffffffffffffffffffffffffffffff909291921690816000526001602052604060002073ffffffffffffffffffffffffffffffffffffffff8416600052602052604060002054907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611c49575b50505050565b808210611ccb5773ffffffffffffffffffffffffffffffffffffffff910392169130831461022657811561158f57821561150b5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a338808080611c43565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b73ffffffffffffffffffffffffffffffffffffffff600654163303611d4a57565b7f2b5c74de0000000000000000000000000000000000000000000000000000000060005260046000fd5b73ffffffffffffffffffffffffffffffffffffffff168015611e705780600052600060205260406000205491808310611dec576020817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926000958587528684520360408620558060025403600255604051908152a3565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fd5b8054821015611f0c5760005260206000200190600090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000818152600b602052604090205480156120ca577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818111611b0057600a54907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201918211611b005781810361205b575b505050600a54801561202c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01611fe981600a611ef4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82549160031b1b19169055600a55600052600b60205260006040812055600190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6120b261206c61207d93600a611ef4565b90549060031b1c928392600a611ef4565b81939154907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9060031b92831b921b19161790565b9055600052600b602052604060002055388080611fb0565b5050600090565b60008181526009602052604090205480156120ca577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818111611b0057600854907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201918211611b00578181036121c2575b505050600854801561202c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0161217f816008611ef4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82549160031b1b19169055600855600052600960205260006040812055600190565b6121e46121d361207d936008611ef4565b90549060031b1c9283926008611ef4565b90556000526009602052604060002055388080612146565b8060005260096020526040600020541560001461225657600854680100000000000000008110156113ea5761223d61207d8260018594016008556008611ef4565b9055600854906000526009602052604060002055600190565b50600090565b80600052600b6020526040600020541560001461225657600a54680100000000000000008110156113ea5761229d61207d826001859401600a55600a611ef4565b9055600a5490600052600b60205260406000205560019056fea164736f6c634300081a000a00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062f05cd6c835677b05a8658a3519694768613160000000000000000000000000000000000000000000000000000000000000011466163746f72792d426e4d2d45524332300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011466163746f72792d426e4d2d4552433230000000000000000000000000000000
Deployed Bytecode
0x608080604052600436101561001357600080fd5b60003560e01c90816301ffc9a7146116ef5750806306fdde0314611612578063095ea7b31461145557806318160ddd14611419578063181f5a771461136357806323b872dd14611264578063313ce5671461120857806339509351146111cc57806340c10f1914610ff957806342966c6814610fa25780634334614a14610f3d5780634f5632f814610eac578063661884631461098a5780636b32810b14610e1757806370a0823114610db257806379ba509714610cc957806379cc67901461098f57806386fe8b4314610c285780638da5cb5b14610bd65780638fd6a6ac14610b8457806395d89b4114610a275780639dc29fac1461098f578063a457c2d71461098a578063a8fa343c146108df578063a9059cbb1461067d578063aa271e1a1461060e578063c2e3273d1461057d578063c630948d146104da578063c64d0ebc14610449578063d5abeb01146103f0578063d73dd623146103ab578063dd62ed3e1461031b578063f2fde38b1461022b5763f81094f31461019557600080fd5b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6101e16118a6565b6101e9611d29565b166101f3816120d1565b6101f957005b60207fed998b960f6340d045f620c119730f7aa7995e7425c2401d3a5b64ff998a59e991604051908152a1005b600080fd5b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6102776118a6565b61027f611d29565b163381146102f157807fffffffffffffffffffffffff0000000000000000000000000000000000000000600554161760055573ffffffffffffffffffffffffffffffffffffffff600654167fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae1278600080a3005b7fdad89dca0000000000000000000000000000000000000000000000000000000060005260046000fd5b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576103526118a6565b73ffffffffffffffffffffffffffffffffffffffff61036f6118c9565b9116600052600160205273ffffffffffffffffffffffffffffffffffffffff604060002091166000526020526020604060002054604051908152f35b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576103ee6103e56118a6565b60243590611b2f565b005b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6104956118a6565b61049d611d29565b166104a78161225c565b6104ad57005b60207f92308bb7573b2a3d17ddb868b39d8ebec433f3194421abc22d084f89658c9bad91604051908152a1005b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6105266118a6565b61052e611d29565b16610538816121fc565b61054e575b610545611d29565b6104a78161225c565b7fe46fef8bbff1389d9010703cf8ebb363fb3daf5bf56edc27080b67bc8d9251ea6020604051838152a161053d565b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff6105c96118a6565b6105d1611d29565b166105db816121fc565b6105e157005b60207fe46fef8bbff1389d9010703cf8ebb363fb3daf5bf56edc27080b67bc8d9251ea91604051908152a1005b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602061067373ffffffffffffffffffffffffffffffffffffffff61065f6118a6565b166000526009602052604060002054151590565b6040519015158152f35b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576106b46118a6565b73ffffffffffffffffffffffffffffffffffffffff1660243530821461022657331561085b5781156107d7573360005260006020526040600020548181106107535781903360005260006020520360406000205581600052600060205260406000208181540190556040519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203392a3602060405160018152f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576109166118a6565b61091e611d29565b73ffffffffffffffffffffffffffffffffffffffff80600754921691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600755167f9524c9e4b0b61eb018dd58a1cd856e3e74009528328ab4a613b434fa631d7242600080a3005b6118ec565b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576109c66118a6565b6024356109e033600052600b602052604060002054151590565b156109f9576103ee916109f4823383611bce565b611d74565b7fc820b10b000000000000000000000000000000000000000000000000000000006000523360045260246000fd5b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760405160006004548060011c90600181168015610b7a575b602083108114610b4d57828552908115610b0b5750600114610aab575b610aa783610a9b81850382611ab2565b6040519182918261183e565b0390f35b91905060046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b916000905b808210610af157509091508101602001610a9b610a8b565b919260018160209254838588010152019101909291610ad9565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660208086019190915291151560051b84019091019150610a9b9050610a8b565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526022600452fd5b91607f1691610a6e565b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602073ffffffffffffffffffffffffffffffffffffffff60075416604051908152f35b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602073ffffffffffffffffffffffffffffffffffffffff60065416604051908152f35b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657604051806020600a54918281520190600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a89060005b818110610cb357610aa785610ca781870382611ab2565b60405191829182611a62565b8254845260209093019260019283019201610c90565b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760055473ffffffffffffffffffffffffffffffffffffffff81163303610d88577fffffffffffffffffffffffff00000000000000000000000000000000000000006006549133828416176006551660055573ffffffffffffffffffffffffffffffffffffffff3391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b7f02b543c60000000000000000000000000000000000000000000000000000000060005260046000fd5b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff610dfe6118a6565b1660005260006020526020604060002054604051908152f35b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760405180602060085491828152019060086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee39060005b818110610e9657610aa785610ca781870382611ab2565b8254845260209093019260019283019201610e7f565b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265773ffffffffffffffffffffffffffffffffffffffff610ef86118a6565b610f00611d29565b16610f0a81611f3b565b610f1057005b60207f0a675452746933cefe3d74182e78db7afe57ba60eaa4234b5d85e9aa41b0610c91604051908152a1005b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602061067373ffffffffffffffffffffffffffffffffffffffff610f8e6118a6565b16600052600b602052604060002054151590565b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657610fe833600052600b602052604060002054151590565b156109f9576103ee60043533611d74565b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576110306118a6565b6024359061104b336000526009602052604060002054151590565b1561119e5773ffffffffffffffffffffffffffffffffffffffff1690308214610226577f00000000000000000000000000000000000000000000000000000000000000008015159081611189575b506111505781156110f2577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020826110d6600094600254611af3565b60025584845283825260408420818154019055604051908152a3005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b61115c90600254611af3565b7fcbbf11130000000000000000000000000000000000000000000000000000000060005260045260246000fd5b905061119782600254611af3565b1183611099565b7fe2c8c9d5000000000000000000000000000000000000000000000000000000006000523360045260246000fd5b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760206106736103e56118a6565b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657602060405160ff7f0000000000000000000000000000000000000000000000000000000000000012168152f35b346102265760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265761129b6118a6565b6112a36118c9565b73ffffffffffffffffffffffffffffffffffffffff604435916112c7833386611bce565b16913083146102265773ffffffffffffffffffffffffffffffffffffffff1690811561085b5782156107d75781600052600060205260406000205481811061075357817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9260209285600052600084520360406000205584600052600082526040600020818154019055604051908152a3602060405160018152f35b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657604051604081019080821067ffffffffffffffff8311176113ea57610aa791604052601a81527f466163746f72794275726e4d696e74455243323020312e362e3200000000000060208201526040519182918261183e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576020600254604051908152f35b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265761148c6118a6565b73ffffffffffffffffffffffffffffffffffffffff1660243530821461022657331561158f57811561150b57336000526001602052604060002082600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b346102265760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102265760405160006003548060011c906001811680156116e5575b602083108114610b4d57828552908115610b0b575060011461168557610aa783610a9b81850382611ab2565b91905060036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b916000905b8082106116cb57509091508101602001610a9b610a8b565b9192600181602092548385880101520191019092916116b3565b91607f1691611659565b346102265760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022657600435907fffffffff00000000000000000000000000000000000000000000000000000000821680920361022657817f36372b070000000000000000000000000000000000000000000000000000000060209314908115611814575b81156117ea575b81156117c0575b8115611796575b5015158152f35b7f8fd6a6ac000000000000000000000000000000000000000000000000000000009150148361178f565b7f06e278470000000000000000000000000000000000000000000000000000000081149150611788565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081149150611781565b7fe6599b4d000000000000000000000000000000000000000000000000000000008114915061177a565b9190916020815282519283602083015260005b8481106118905750507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006040809697860101520116010190565b8060208092840101516040828601015201611851565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361022657565b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361022657565b346102265760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610226576119236118a6565b6024359060009133835260016020526040832073ffffffffffffffffffffffffffffffffffffffff831684526020526040832054908082106119de5773ffffffffffffffffffffffffffffffffffffffff91039116913083146119db57331561158f57821561150b5760408291338152600160205281812085825260205220556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a360206001604051908152f35b80fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b602060408183019282815284518094520192019060005b818110611a865750505090565b825173ffffffffffffffffffffffffffffffffffffffff16845260209384019390920191600101611a79565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176113ea57604052565b91908201809211611b0057565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b90611b6b73ffffffffffffffffffffffffffffffffffffffff913360005260016020526040600020838516600052602052604060002054611af3565b91169030821461022657331561158f57811561150b57336000526001602052604060002082600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3600190565b73ffffffffffffffffffffffffffffffffffffffff909291921690816000526001602052604060002073ffffffffffffffffffffffffffffffffffffffff8416600052602052604060002054907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611c49575b50505050565b808210611ccb5773ffffffffffffffffffffffffffffffffffffffff910392169130831461022657811561158f57821561150b5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a338808080611c43565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b73ffffffffffffffffffffffffffffffffffffffff600654163303611d4a57565b7f2b5c74de0000000000000000000000000000000000000000000000000000000060005260046000fd5b73ffffffffffffffffffffffffffffffffffffffff168015611e705780600052600060205260406000205491808310611dec576020817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926000958587528684520360408620558060025403600255604051908152a3565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fd5b8054821015611f0c5760005260206000200190600090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000818152600b602052604090205480156120ca577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818111611b0057600a54907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201918211611b005781810361205b575b505050600a54801561202c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01611fe981600a611ef4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82549160031b1b19169055600a55600052600b60205260006040812055600190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6120b261206c61207d93600a611ef4565b90549060031b1c928392600a611ef4565b81939154907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9060031b92831b921b19161790565b9055600052600b602052604060002055388080611fb0565b5050600090565b60008181526009602052604090205480156120ca577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818111611b0057600854907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201918211611b00578181036121c2575b505050600854801561202c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0161217f816008611ef4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82549160031b1b19169055600855600052600960205260006040812055600190565b6121e46121d361207d936008611ef4565b90549060031b1c9283926008611ef4565b90556000526009602052604060002055388080612146565b8060005260096020526040600020541560001461225657600854680100000000000000008110156113ea5761223d61207d8260018594016008556008611ef4565b9055600854906000526009602052604060002055600190565b50600090565b80600052600b6020526040600020541560001461225657600a54680100000000000000008110156113ea5761229d61207d826001859401600a55600a611ef4565b9055600a5490600052600b60205260406000205560019056fea164736f6c634300081a000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062f05cd6c835677b05a8658a3519694768613160000000000000000000000000000000000000000000000000000000000000011466163746f72792d426e4d2d45524332300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011466163746f72792d426e4d2d4552433230000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Factory-BnM-ERC20
Arg [1] : symbol (string): Factory-BnM-ERC20
Arg [2] : decimals_ (uint8): 18
Arg [3] : maxSupply_ (uint256): 0
Arg [4] : preMint (uint256): 0
Arg [5] : newOwner (address): 0x062f05CD6c835677B05a8658A351969476861316
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 000000000000000000000000062f05cd6c835677b05a8658a351969476861316
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [7] : 466163746f72792d426e4d2d4552433230000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [9] : 466163746f72792d426e4d2d4552433230000000000000000000000000000000
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.