Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- TestShadowToken
- Optimization enabled
- true
- Compiler version
- v0.8.33+commit.64118f21
- Optimization runs
- 200
- EVM Version
- shanghai
- Verified at
- 2026-03-07T07:15:54.645443Z
Constructor Arguments
0x00000000000000000000000077cda0575e66a5fc95404fda856615ad507d8a070000000000000000000000000000000000000000000000056bc75e2d63100000
Arg [0] (address) : 0x77cda0575e66a5fc95404fda856615ad507d8a07
Arg [1] (uint256) : 100000000000000000000
src/impl/TestShadowToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.33;
import {ShadowCompatibleERC20} from "./ShadowCompatibleERC20.sol";
/// @custom:security-contact security@taiko.xyz
/// @title TestShadowToken
/// @notice Concrete ERC20 for testing Shadow ERC20 support on Hoodi.
/// Uses _BALANCE_SLOT = 0 (plain OZ ERC20 layout).
contract TestShadowToken is ShadowCompatibleERC20 {
error OnlyDeployer();
address private immutable _deployer;
constructor(address _shadowContract, uint256 _maxShadowMintAmount)
ShadowCompatibleERC20("Test Shadow Token", "TST", _shadowContract, _maxShadowMintAmount)
{
_deployer = msg.sender;
}
/// @notice Mint tokens for testing. Only callable by the deployer.
function devMint(address _to, uint256 _amount) external {
if (msg.sender != _deployer) revert OnlyDeployer();
_mint(_to, _amount);
}
}
node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// 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);
}
node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* 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}.
*
* 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 default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual 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 {}
}
node_modules/@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}
src/iface/IShadowCompatibleToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.33;
/// @custom:security-contact security@taiko.xyz
/// @title IShadowCompatibleToken
/// @notice Minimal interface for ERC20 tokens on Taiko that support Shadow privacy transfers.
///
/// DEPOSIT: Holder sends tokens to targetAddress via a plain ERC20 transfer.
/// No interaction with this interface is required at deposit time.
///
/// PROVE: ZK circuit proves _balances[targetAddress] >= total_note_amounts
/// using a two-level MPT proof anchored to a block hash.
/// The server fetches the storage key via balanceStorageSlot(targetAddress).
///
/// CLAIM: Shadow.sol calls shadowMint(recipient, amount).
/// New tokens are minted to recipient â no pre-minted reserve, no
/// transfer from targetAddress. Direct analogy to IEthMinter.mintEth.
///
/// GOVERNANCE: Because shadowMint calls _mint, ERC20Votes assigns voting units
/// only if recipient has an active delegate â standard _mint behaviour.
/// targetAddress never called delegate(), so its locked tokens carry
/// no active voting weight.
interface IShadowCompatibleToken {
/// @notice Caller is not the authorised Shadow contract.
error ShadowUnauthorised();
/// @notice Mint tokens to a Shadow claim recipient.
/// @dev MUST revert with ShadowUnauthorised if the caller is not authorised.
/// MUST mint `_amount` new tokens to `_to` via _mint or equivalent.
/// @param _to Claim recipient (from ZK proof journal).
/// @param _amount Token amount in raw smallest units.
function shadowMint(address _to, uint256 _amount) external;
/// @notice Returns the Ethereum storage key where `holder`'s token balance
/// is stored in this contract's storage trie.
/// @dev The Shadow server calls this with targetAddress before proving.
/// The key is passed directly to eth_getProof and to the ZK circuit.
/// MUST be pure â changing the derivation after deployment would cause
/// the prover to use wrong storage keys and fail.
/// @param _holder The address whose balance storage key is requested.
/// @return storageKey The bytes32 Ethereum storage key for holder's balance.
function balanceStorageSlot(address _holder) external pure returns (bytes32 storageKey);
/// @notice Returns the raw ERC20 _balances mapping storage slot index.
/// @dev The ZK circuit uses this slot together with the holder address to
/// recompute the expected storage key inside the proof, preventing
/// a malicious prover from substituting an arbitrary storage key.
/// @return The storage slot index (e.g. 0 for plain OZ ERC20).
function balanceSlot() external pure returns (uint256);
/// @notice Returns the maximum amount that may be minted in a single Shadow claim.
/// @dev Shadow.sol reads this value and rejects any claim where amount exceeds it.
/// The client also reads this value to constrain note amounts in deposit files.
/// @return The maximum raw token amount (smallest units) per single claim.
function maxShadowMintAmount() external view returns (uint256);
}
src/impl/ShadowCompatibleERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.33;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {IShadowCompatibleToken} from "../iface/IShadowCompatibleToken.sol";
/// @custom:security-contact security@taiko.xyz
/// @title ShadowCompatibleERC20
/// @notice Abstract base for ERC20 tokens supporting Shadow privacy transfers.
abstract contract ShadowCompatibleERC20 is ERC20, IShadowCompatibleToken {
address private _shadowContract;
// The _balances mapping slot. Depends entirely on inheritance chain:
// - Plain OZ ERC20 (non-upgradeable): slot 0
// - Taiko BridgedERC20 / BridgedERC20V2 (upgradeable, large gap arrays): slot 251
// Override balanceStorageSlot() if your token uses a different slot.
uint256 private constant _BALANCE_SLOT = 0;
uint256 private immutable _maxShadowMintAmount;
modifier onlyShadow() {
if (msg.sender != _shadowContract) revert ShadowUnauthorised();
_;
}
constructor(string memory _name, string memory _symbol, address _shadowContract_, uint256 _maxShadowMintAmount_)
ERC20(_name, _symbol)
{
_shadowContract = _shadowContract_;
_maxShadowMintAmount = _maxShadowMintAmount_;
}
function shadowMint(address _to, uint256 _amount) external override onlyShadow {
_mint(_to, _amount);
}
function maxShadowMintAmount() external view virtual override returns (uint256) {
return _maxShadowMintAmount;
}
function balanceSlot() external pure override returns (uint256) {
return _BALANCE_SLOT;
}
function balanceStorageSlot(address _holder) external pure override returns (bytes32) {
bytes32 key;
assembly {
mstore(0x00, _holder)
mstore(0x20, _BALANCE_SLOT)
key := keccak256(0x00, 0x40)
}
return key;
}
/// @dev Allow token governance to update the Shadow contract address.
function _setShadowContract(address _shadowContract_) internal {
_shadowContract = _shadowContract_;
}
}
Compiler Settings
{"viaIR":true,"remappings":["forge-std/=node_modules/forge-std/src/","@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/","@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/","risc0-ethereum/=lib/risc0-ethereum/contracts/src/","openzeppelin/contracts/=node_modules/@openzeppelin/contracts/","erc4626-tests/=lib/risc0-ethereum/lib/openzeppelin-contracts/lib/erc4626-tests/","halmos-cheatcodes/=lib/risc0-ethereum/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/risc0-ethereum/lib/openzeppelin-contracts/"],"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":200,"enabled":true},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"libraries":{},"evmVersion":"shanghai"}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_shadowContract","internalType":"address"},{"type":"uint256","name":"_maxShadowMintAmount","internalType":"uint256"}]},{"type":"error","name":"OnlyDeployer","inputs":[]},{"type":"error","name":"ShadowUnauthorised","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceSlot","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"balanceStorageSlot","inputs":[{"type":"address","name":"_holder","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"devMint","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxShadowMintAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"shadowMint","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]}]
Contract Creation Code
0x60c06040523461037e57610f306040813803918261001c81610382565b93849283398101031261037e5780516001600160a01b038116919082900361037e57602001519061004d6040610382565b9160118352702a32b9ba1029b430b237bb902a37b5b2b760791b60208401526100766040610382565b60038152621514d560ea1b602082015283519092906001600160401b03811161028457600354600181811c91168015610374575b602082101461026657601f8111610306575b50602094601f82116001146102a3579481929394955f92610298575b50508160011b915f199060031b1c1916176003555b82516001600160401b03811161028457600454600181811c9116801561027a575b602082101461026657601f81116101f8575b506020601f821160011461019557819293945f9261018a575b50508160011b915f199060031b1c1916176004555b600580546001600160a01b0319169190911790556080523360a052604051610b8890816103a88239608051816103cc015260a051816104610152f35b015190505f80610139565b601f1982169060045f52805f20915f5b8181106101e0575095836001959697106101c8575b505050811b0160045561014e565b01515f1960f88460031b161c191690555f80806101ba565b9192602060018192868b0151815501940192016101a5565b818111156101205760045f52601f820160051c7f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b6020841061025e575b81601f9101920160051c03905f5b828110610251575050610120565b5f82820155600101610243565b5f9150610235565b634e487b7160e01b5f52602260045260245ffd5b90607f169061010e565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100d8565b601f1982169560035f52805f20915f5b8881106102ee575083600195969798106102d6575b505050811b016003556100ed565b01515f1960f88460031b161c191690555f80806102c8565b919260206001819286850151815501940192016102b3565b818111156100bc5760035f52601f820160051c7fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b6020841061036c575b81601f9101920160051c03905f5b82811061035f5750506100bc565b5f82820155600101610351565b5f9150610343565b90607f16906100aa565b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176102845760405256fe60806040526004361015610011575f80fd5b5f3560e01c806306fdde0314610114578063095ea7b31461010f57806318160ddd1461010a57806323b872dd14610105578063313ce567146101005780633297b3da146100fb57806339509351146100f6578063627804af146100f15780636eddc0b7146100ec57806370a08231146100e757806395d89b41146100e2578063a457c2d7146100dd578063a9059cbb146100d8578063acf74332146100d3578063b29b2694146100ce5763dd62ed3e146100c9575f80fd5b6106f3565b6106ac565b61067f565b610659565b6105af565b6104fa565b6104c3565b6104a9565b610443565b6103ef565b6103b5565b61039a565b6102d1565b6102b4565b610283565b610160565b9190916020815282518060208301525f5b81811061014a575060409293505f838284010152601f8019910116010190565b806020809287010151604082860101520161012a565b34610253575f366003190112610253576040515f6003548060011c9060018116908115610249575b60208310821461023557828552602085019190811561021c57506001146101ca575b6101c6846101ba8186038261074a565b60405191829182610119565b0390f35b60035f9081529250907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b818410610208575050016101ba826101aa565b8054848401526020909301926001016101f5565b60ff191682525090151560051b0190506101ba826101aa565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610188565b5f80fd5b600435906001600160a01b038216820361025357565b602435906001600160a01b038216820361025357565b34610253576040366003190112610253576102a961029f610257565b60243590336107a1565b602060405160018152f35b34610253575f366003190112610253576020600254604051908152f35b34610253576060366003190112610253576102ea610257565b6102f261026d565b6001600160a01b0382165f908152600160208181526040808420338552909152909120549260443592918401610339575b61032d9350610986565b60405160018152602090f35b828410610355576103508361032d950333836107a1565b610323565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b34610253575f36600319011261025357602060405160128152f35b34610253575f3660031901126102535760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b34610253576040366003190112610253576102a961040b610257565b61043c602435335f5260016020526104368360405f209060018060a01b03165f5260205260405f2090565b54610780565b90336107a1565b346102535760403660031901126102535761045c610257565b6024357f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316330361049a5761049891610a9a565b005b63618bbdd560e01b5f5260045ffd5b34610253575f3660031901126102535760206040515f8152f35b34610253576020366003190112610253576001600160a01b036104e4610257565b165f525f602052602060405f2054604051908152f35b34610253575f366003190112610253576040515f6004548060011c90600181169081156105a5575b60208310821461023557828552602085019190811561021c5750600114610553576101c6846101ba8186038261074a565b60045f9081529250907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b818410610591575050016101ba826101aa565b80548484015260209093019260010161057e565b91607f1691610522565b34610253576040366003190112610253576105c8610257565b60243590335f5260016020526105f18160405f209060018060a01b03165f5260205260405f2090565b54918083106106065761032d920390336107a1565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b34610253576040366003190112610253576102a9610675610257565b6024359033610986565b3461025357602036600319011261025357610698610257565b5f525f602052602060405f20604051908152f35b34610253576040366003190112610253576106c5610257565b600554602435906001600160a01b031633036106e45761049891610a9a565b63fb8b200360e01b5f5260045ffd5b34610253576040366003190112610253576020610741610711610257565b61071961026d565b6001600160a01b039182165f9081526001855260408082209290931681526020919091522090565b54604051908152f35b90601f8019910116810190811067ffffffffffffffff82111761076c57604052565b634e487b7160e01b5f52604160045260245ffd5b9190820180921161078d57565b634e487b7160e01b5f52601160045260245ffd5b6001600160a01b03811691908215610882576001600160a01b038216938415610832578061081c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259461080761082d9560018060a01b03165f52600160205260405f2090565b9060018060a01b03165f5260205260405f2090565b556040519081529081906020820190565b0390a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b156108da57565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b1561093257565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b916001600160a01b038316918215610a47577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91610a3161082d9260018060a01b038116966109d68815156108d3565b610a17846109f38360018060a01b03165f525f60205260405f2090565b54610a008282101561092b565b039160018060a01b03165f525f60205260405f2090565b556001600160a01b03165f90815260208190526040902090565b8054820190556040519081529081906020820190565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b03811691908215610b0d5781610afb7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92610adf5f95600254610780565b6002556001600160a01b03165f90815260208190526040902090565b805482019055604051908152602090a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fdfea2646970667358221220787141a8d91874c2201d348b4fec1f04f364dc9c6dea09740e13f7b86f51dfac64736f6c6343000821003300000000000000000000000077cda0575e66a5fc95404fda856615ad507d8a070000000000000000000000000000000000000000000000056bc75e2d63100000
Deployed ByteCode
0x60806040526004361015610011575f80fd5b5f3560e01c806306fdde0314610114578063095ea7b31461010f57806318160ddd1461010a57806323b872dd14610105578063313ce567146101005780633297b3da146100fb57806339509351146100f6578063627804af146100f15780636eddc0b7146100ec57806370a08231146100e757806395d89b41146100e2578063a457c2d7146100dd578063a9059cbb146100d8578063acf74332146100d3578063b29b2694146100ce5763dd62ed3e146100c9575f80fd5b6106f3565b6106ac565b61067f565b610659565b6105af565b6104fa565b6104c3565b6104a9565b610443565b6103ef565b6103b5565b61039a565b6102d1565b6102b4565b610283565b610160565b9190916020815282518060208301525f5b81811061014a575060409293505f838284010152601f8019910116010190565b806020809287010151604082860101520161012a565b34610253575f366003190112610253576040515f6003548060011c9060018116908115610249575b60208310821461023557828552602085019190811561021c57506001146101ca575b6101c6846101ba8186038261074a565b60405191829182610119565b0390f35b60035f9081529250907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b818410610208575050016101ba826101aa565b8054848401526020909301926001016101f5565b60ff191682525090151560051b0190506101ba826101aa565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610188565b5f80fd5b600435906001600160a01b038216820361025357565b602435906001600160a01b038216820361025357565b34610253576040366003190112610253576102a961029f610257565b60243590336107a1565b602060405160018152f35b34610253575f366003190112610253576020600254604051908152f35b34610253576060366003190112610253576102ea610257565b6102f261026d565b6001600160a01b0382165f908152600160208181526040808420338552909152909120549260443592918401610339575b61032d9350610986565b60405160018152602090f35b828410610355576103508361032d950333836107a1565b610323565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b34610253575f36600319011261025357602060405160128152f35b34610253575f3660031901126102535760206040517f0000000000000000000000000000000000000000000000056bc75e2d631000008152f35b34610253576040366003190112610253576102a961040b610257565b61043c602435335f5260016020526104368360405f209060018060a01b03165f5260205260405f2090565b54610780565b90336107a1565b346102535760403660031901126102535761045c610257565b6024357f000000000000000000000000e36c0f16d5fb473cc5181f5fb86b6eb3299ad9cb6001600160a01b0316330361049a5761049891610a9a565b005b63618bbdd560e01b5f5260045ffd5b34610253575f3660031901126102535760206040515f8152f35b34610253576020366003190112610253576001600160a01b036104e4610257565b165f525f602052602060405f2054604051908152f35b34610253575f366003190112610253576040515f6004548060011c90600181169081156105a5575b60208310821461023557828552602085019190811561021c5750600114610553576101c6846101ba8186038261074a565b60045f9081529250907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b818410610591575050016101ba826101aa565b80548484015260209093019260010161057e565b91607f1691610522565b34610253576040366003190112610253576105c8610257565b60243590335f5260016020526105f18160405f209060018060a01b03165f5260205260405f2090565b54918083106106065761032d920390336107a1565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b34610253576040366003190112610253576102a9610675610257565b6024359033610986565b3461025357602036600319011261025357610698610257565b5f525f602052602060405f20604051908152f35b34610253576040366003190112610253576106c5610257565b600554602435906001600160a01b031633036106e45761049891610a9a565b63fb8b200360e01b5f5260045ffd5b34610253576040366003190112610253576020610741610711610257565b61071961026d565b6001600160a01b039182165f9081526001855260408082209290931681526020919091522090565b54604051908152f35b90601f8019910116810190811067ffffffffffffffff82111761076c57604052565b634e487b7160e01b5f52604160045260245ffd5b9190820180921161078d57565b634e487b7160e01b5f52601160045260245ffd5b6001600160a01b03811691908215610882576001600160a01b038216938415610832578061081c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259461080761082d9560018060a01b03165f52600160205260405f2090565b9060018060a01b03165f5260205260405f2090565b556040519081529081906020820190565b0390a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b156108da57565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b1561093257565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b916001600160a01b038316918215610a47577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91610a3161082d9260018060a01b038116966109d68815156108d3565b610a17846109f38360018060a01b03165f525f60205260405f2090565b54610a008282101561092b565b039160018060a01b03165f525f60205260405f2090565b556001600160a01b03165f90815260208190526040902090565b8054820190556040519081529081906020820190565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b03811691908215610b0d5781610afb7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92610adf5f95600254610780565b6002556001600160a01b03165f90815260208190526040902090565b805482019055604051908152602090a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fdfea2646970667358221220787141a8d91874c2201d348b4fec1f04f364dc9c6dea09740e13f7b86f51dfac64736f6c63430008210033