Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x19640000000ba88d36206BeB10D0e86011C8d08c
Balance 0 ETH
Nonce 1
Code Size 4239 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

4239 bytes
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806355cc4e571161008c578063a9059cbb11610066578063a9059cbb14610214578063d5d1e77014610244578063dd62ed3e1461024e578063f2fde38b1461027e576100cf565b806355cc4e57146101aa57806370a08231146101c657806395d89b41146101f6576100cf565b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461012257806323b872dd14610140578063313ce5671461017057806340c10f191461018e575b600080fd5b6100dc61029a565b6040516100e99190610d44565b60405180910390f35b61010c60048036038101906101079190610dff565b610328565b6040516101199190610e5a565b60405180910390f35b61012a61041a565b6040516101379190610e84565b60405180910390f35b61015a60048036038101906101559190610e9f565b610420565b6040516101679190610e5a565b60405180910390f35b61017861054b565b6040516101859190610f0e565b60405180910390f35b6101a860048036038101906101a39190610dff565b61055e565b005b6101c460048036038101906101bf9190610f29565b6106d6565b005b6101e060048036038101906101db9190610f29565b6107d9565b6040516101ed9190610e84565b60405180910390f35b6101fe6107f1565b60405161020b9190610d44565b60405180910390f35b61022e60048036038101906102299190610dff565b61087f565b60405161023b9190610e5a565b60405180910390f35b61024c610896565b005b61026860048036038101906102639190610f56565b6109ff565b6040516102759190610e84565b60405180910390f35b61029860048036038101906102939190610f29565b610a24565b005b600780546102a790610fc5565b80601f01602080910402602001604051908101604052809291908181526020018280546102d390610fc5565b80156103205780601f106102f557610100808354040283529160200191610320565b820191906000526020600020905b81548152906001019060200180831161030357829003601f168201915b505050505081565b600081600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104089190610e84565b60405180910390a36001905092915050565b60035481565b600081600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156104ab57600080fd5b6104b6848484610b2b565b81600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540392505081905550600190509392505050565b600260149054906101000a900460ff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105b957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105f257600080fd5b600454826003546106039190611025565b111561060e57600080fd5b8160036000828254019250508190555081600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516106c99190610e84565b60405180910390a3505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461072f57600080fd5b81600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f33209da902260b15af88d27b2383f608bb1ed36eeb4ddef27866de5eafe0752260405160405180910390a25050565b60056020528060005260406000206000915090505481565b600880546107fe90610fc5565b80601f016020809104026020016040519081016040528092919081815260200182805461082a90610fc5565b80156108775780601f1061084c57610100808354040283529160200191610877565b820191906000526020600020905b81548152906001019060200180831161085a57829003601f168201915b505050505081565b600061088c338484610b2b565b6001905092915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108f157600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001151560008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fcbe2aa772079086290469c944126fdc8e1438a556b92ebdb5044506435217f0460405160405180910390a350565b6006602052816000526040600020602052806000526040600020600091509150505481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a7d57600080fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060001515600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fcbe2aa772079086290469c944126fdc8e1438a556b92ebdb5044506435217f0460405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b6457600080fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610bb057600080fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610ca79190610e84565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610cee578082015181840152602081019050610cd3565b60008484015250505050565b6000601f19601f8301169050919050565b6000610d1682610cb4565b610d208185610cbf565b9350610d30818560208601610cd0565b610d3981610cfa565b840191505092915050565b60006020820190508181036000830152610d5e8184610d0b565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610d9682610d6b565b9050919050565b610da681610d8b565b8114610db157600080fd5b50565b600081359050610dc381610d9d565b92915050565b6000819050919050565b610ddc81610dc9565b8114610de757600080fd5b50565b600081359050610df981610dd3565b92915050565b60008060408385031215610e1657610e15610d66565b5b6000610e2485828601610db4565b9250506020610e3585828601610dea565b9150509250929050565b60008115159050919050565b610e5481610e3f565b82525050565b6000602082019050610e6f6000830184610e4b565b92915050565b610e7e81610dc9565b82525050565b6000602082019050610e996000830184610e75565b92915050565b600080600060608486031215610eb857610eb7610d66565b5b6000610ec686828701610db4565b9350506020610ed786828701610db4565b9250506040610ee886828701610dea565b9150509250925092565b600060ff82169050919050565b610f0881610ef2565b82525050565b6000602082019050610f236000830184610eff565b92915050565b600060208284031215610f3f57610f3e610d66565b5b6000610f4d84828501610db4565b91505092915050565b60008060408385031215610f6d57610f6c610d66565b5b6000610f7b85828601610db4565b9250506020610f8c85828601610db4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680610fdd57607f821691505b602082108103610ff057610fef610f96565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061103082610dc9565b915061103b83610dc9565b925082820190508082111561105357611052610ff6565b5b9291505056fea2646970667358221220bab79f4205d3b8d5dd7e14ddb76f49fbb415105430ea94f7e3a0602fe4506e8d64736f6c63430008120033

Verified Source Code Partial Match

Compiler: v0.8.18+commit.87f61d96 EVM: paris Optimization: No
Token.sol 186 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

interface IERC20 {
    function totalSupply() external view returns (uint);
    function balanceOf(address account) external view returns (uint);
    function transfer(address recipient, uint amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint amount) external returns (bool);
    function approve(address spender, uint amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint);

    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
}

contract Token is IERC20 {
    address internal owner;
    address internal pendingOwner;
    address internal issuer;

    uint8 public decimals;
    uint256 public totalSupply;
    uint256 internal maxSupply;

    mapping (address => uint256) public override balanceOf;
    mapping (address => mapping (address => uint256)) public override allowance;

    string public name;
    string public symbol;

    event NewIssuer(address indexed issuer);
    event TransferOwnership(address indexed owner, bool indexed confirmed);

    modifier only(address role) {
        require(msg.sender == role); // dev: missing role
        _;
    }

    /**
     * Sets the token fields: name, symbol and decimals
     *
     * @param tokenName Name of the token
     * @param tokenSymbol Token Symbol
     * @param tokenDecimals Decimal places
     * @param tokenOwner Token Owner
     * @param tokenIssuer Token Issuer
     * @param tokenMaxSupply Max total supply
     */
    constructor(string memory tokenName, string memory tokenSymbol, uint8 tokenDecimals, address tokenOwner, address tokenIssuer, uint256 tokenMaxSupply) {
        require(tokenOwner != address(0)); // dev: invalid owner
        require(tokenIssuer != address(0)); // dev: invalid issuer
        require(tokenMaxSupply > 0); // dev: invalid max supply

        name = tokenName;
        symbol = tokenSymbol;
        decimals = tokenDecimals;
        owner = tokenOwner;
        issuer = tokenIssuer;
        maxSupply = tokenMaxSupply;
    }

    /**
     * Sets the owner
     *
     * @param newOwner Address of the new owner (must be confirmed by the new owner)
     */
    function transferOwnership(address newOwner)
    external
    only(owner) {
        pendingOwner = newOwner;

        emit TransferOwnership(pendingOwner, false);
    }

    /**
     * Confirms the new owner
     */
    function confirmOwnership()
    external
    only(pendingOwner) {
        owner = pendingOwner;
        pendingOwner = address(0);

        emit TransferOwnership(owner, true);
    }

    /**
     * Sets the issuer
     *
     * @param newIssuer Address of the issuer
     */
    function setIssuer(address newIssuer)
    external
    only(owner) {
        issuer = newIssuer;

        emit NewIssuer(issuer);
    }

    /**
     * Mints {value} tokens to the {to} wallet.
     *
     * @param to The address receiving the newly minted tokens
     * @param value The number of tokens to mint
     */
    function mint(address to, uint256 value)
    external
    only(issuer) {
        require(to != address(0)); // dev: requires non-zero address
        require(totalSupply + value <= maxSupply); // dev: exceeds max supply

        unchecked {
            totalSupply += value;
            balanceOf[to] += value;
        }

        emit Transfer(address(0), to, value);
    }

    /**
     * Approves the {spender} to transfer {value} tokens of the caller.
     *
     * @param spender The address which will spend the funds
     * @param value The value approved to be spent by the spender
     * @return A boolean that indicates if the operation was successful
     */
    function approve(address spender, uint256 value)
    external
    override
    returns(bool) {
        allowance[msg.sender][spender] = value;

        emit Approval(msg.sender, spender, value);

        return true;
    }

    /**
     * Transfers {value} tokens from the caller, to {to}
     *
     * @param to The address to transfer tokens to
     * @param value The number of tokens to be transferred
     * @return A boolean that indicates if the operation was successful
     */
    function transfer(address to, uint256 value)
    external
    override
    returns (bool) {
        updateBalance(msg.sender, to, value);

        return true;
    }

    /**
     * Transfers {value} tokens of {from} to {to}, on behalf of the caller.
     *
     * @param from The address to transfer tokens from
     * @param to The address to transfer tokens to
     * @param value The number of tokens to be transferred
     * @return A boolean that indicates if the operation was successful
     */
    function transferFrom(address from, address to, uint256 value)
    external
    override
    returns (bool) {
        require(allowance[from][msg.sender] >= value); // dev: exceeds allowance
        updateBalance(from, to, value);
        unchecked {
            allowance[from][msg.sender] -= value;
        }

        return true;
    }

    function updateBalance(address from, address to, uint256 value)
    internal {
        require(to != address(0)); // dev: requires non-zero address
        require(balanceOf[from] >= value); // dev: exceeds balance
        unchecked {
            balanceOf[from] -= value;
            balanceOf[to] += value;
        }

        emit Transfer(from, to, value);
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 7 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 value
returns: bool
confirmOwnership 0xd5d1e770
No parameters
mint 0x40c10f19
address to
uint256 value
setIssuer 0x55cc4e57
address newIssuer
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address