Contract 0xacf63e56fd08970b43401492a02f6f38b6635c91 7

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x0782f915d486549dc45c418e6879c23917389c0e6e1c25c845719bf8e1c026f7Set Approval For...390224872023-02-07 15:35:381 day 15 hrs ago0x11008e205b8d785e27f00c0e6ef46afb1c41e046 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.010382318905 225.144617808
0x345e3de6a9e3f976bedc60842acb5ba27bd076d394637392cc466a358e7176dcSet Approval For...388676802023-02-03 16:09:105 days 14 hrs ago0x45c2188ec89cce1f0d08b41ffe6c7efb7e72479f IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.009221340489 199.604755393
0xc3820e17a405291203fed17c5c2c3686940731b1996ad49276d441719f59d92fTransfer From388531072023-02-03 7:12:105 days 23 hrs ago0xd1ea7cc78720c2311f756cc63c3e94faad69aaf3 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.007653573582 189.844315585
0xabad1c27e28f4ab69ede45e6843835dc8d0e6b77b2900cc522ad852da7041dd8Transfer From388531052023-02-03 7:12:065 days 23 hrs ago0xd1ea7cc78720c2311f756cc63c3e94faad69aaf3 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.011486703643 184.664785348
0xcf44c134899cd3083d6ec920c982ed130e2a8074b284737e659b0a9ab9032a07Set Approval For...388529982023-02-03 7:08:185 days 23 hrs ago0xd1ea7cc78720c2311f756cc63c3e94faad69aaf3 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.008771646692 190.216565309
0xe435298e9466e4d83891740eb36375d685287574977c09c552442db090549d28Set Approval For...388408872023-02-02 23:40:096 days 7 hrs ago0x61fd9343c4b3360af821b4652e184c4e95f7cfc6 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.005431448106 117.568901392
0x7e72372420501729742998f5bc9d3585001dafdcaedbcc6e7b7ee1d9a874b6dbSet Approval For...387994332023-02-01 22:23:177 days 8 hrs ago0x0318c749eda70facfecba718093ead029e632fae IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.004244997491 92.054419298
0xec371cf471445c2c202a523ce4223db0df3ca92a0c6907dcd64649972818e8b9Safe Transfer Fr...387661082023-02-01 2:10:198 days 4 hrs ago0xe3edadf3c7773db4235b9f3ca3a7e1ebd943d5c0 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.006235383646 94.565777133
0x11a8e7cc7591d535b30bf4bace51e1589ebfd785b136039eb7601a1b376737e9Set Approval For...386206412023-01-28 9:49:0911 days 20 hrs ago0xce5be5a35dfb634028951ac3fa881e30e9972f73 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.002856124723 61.823557804
0xf380a60b2cd49f922f0e9519897ff6085816547aab5ed3e581c02acef10879b7Set Approval For...386202562023-01-28 9:34:5811 days 21 hrs ago0xce5be5a35dfb634028951ac3fa881e30e9972f73 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.00424829704 92.125971303
0xb43d4fb8226229106aa018e9f1c37890d6c2f94cbf8fa67bab8cdc9865383f64Transfer From385683222023-01-27 0:40:0013 days 6 hrs ago0x749767cc11f5462b02fed9ac7ed7056eaab3805d IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.002425037736 60.152244497
0x31de1de8a36b148ee084e51a065a91df23fee7a6bb0131c6b0cf067f05ce631fTransfer From385680622023-01-27 0:30:4613 days 6 hrs ago0x749767cc11f5462b02fed9ac7ed7056eaab3805d IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.004672627379 75.104514655
0x3b24c1d65264f94066c9fedd595a3b6febd3c40bc996a6fbac5abf5ef062c568Set Approval For...385591822023-01-26 19:03:5813 days 11 hrs ago0xbbe4a469e049a8a93495c4a7327ba4be82655165 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.002604048315 56.367122279
0xe9d36d65352075f34f30449ab1983e90b9da9ef75d20ba971ef6b188d8d0ba03Set Approval For...385433342023-01-26 9:24:2613 days 21 hrs ago0x8d16828fd312a50c9ea06bba3c4c867ca1132033 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.002315420509 50.119496714
0x6521d5fbe59ed21aa06a2ed8df115e1e3997a69fb96e7a619767c9401f1ca99fSafe Transfer Fr...385409902023-01-26 7:59:5613 days 22 hrs ago0x0601640fe3b6bbb7165447e0608c39eb1060fa25 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.00266708664 60.564676087
0x15db187c2f7e9ca6ee3c57bf480164328f29da73c1559f284b58f1cc214cd5c8Safe Transfer Fr...385409672023-01-26 7:59:0813 days 22 hrs ago0x0601640fe3b6bbb7165447e0608c39eb1060fa25 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.004087012168 61.983592951
0x6a0ada4713d0174d966466f72354cbe17573ea0d85cf8a000340ed8a19091f3bSet Approval For...384903032023-01-25 1:24:0215 days 5 hrs ago0xd994f9e5839259ce8bb81153bb7a062ca305e191 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.003181018856 68.856202797
0x5cab1984409fcbf2f9f9692b8450ca9970ebd7c76b5c444095e499a72fa0c8f2Set Approval For...384776032023-01-24 17:42:3115 days 13 hrs ago0x347e3af43bb62ae59569d09630c1287f135c7cba IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.00286427662
0xab601cc06d07be5f62aa7d36b0ffe27b8f987bc1ca215399627a09ea05274313Set Approval For...384615692023-01-24 8:00:4615 days 22 hrs ago0xf4f780a38e1062f5abe731cb54690a5ec2bd6832 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.003347183466 72.584973458
0x9333640dbc1b7e8735a822c1f2ed0cef440a96894bea5f95bfa89f152d559930Set Approval For...384409672023-01-23 19:39:5416 days 11 hrs ago0xf4f780a38e1062f5abe731cb54690a5ec2bd6832 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.002810474145 60.835407277
0xec7878572041dfc186120cabc9f0051fc5f40814b62312beac5896c87c042367Set Approval For...384353252023-01-23 16:18:2916 days 14 hrs ago0x2bdf0839f0f4331326fc267d1220b7b09ec575dc IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.00328259454 71.054905855
0xc5eb8703d4eb65736eeea48becca3ca3a6a5acdbbf63ce2a63d5226121c72f6dSet Approval For...384044452023-01-22 21:52:2517 days 8 hrs ago0x5625518a5a195a9784a6ff76ebac64ff43df79a8 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.002126599277 46.032280125
0xe0ceba4ebdfc09e88135362415dd53c5d52aa17aace25115f30365190d8a9954Set Approval For...384026982023-01-22 20:49:1417 days 9 hrs ago0xa978dd62f035f235b80323cdb55c359b56a127b5 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.00316266228 68.583559893
0xaf131a0c08881769665dc0f42ad7dc762de22a18041655bf9c7d4711552b4b45Set Approval For...384025632023-01-22 20:44:2217 days 10 hrs ago0xbde607d145567e57df7e695ec2e4b795e9399789 IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.003599632879 77.917504643
0xc59751c53193c5bc68d96b4a1303cd20bc60e8d4f30dad0521408f88f2940d6fSet Approval For...383985542023-01-22 18:19:3317 days 12 hrs ago0xf99b2de48e9082f676c710f7ce36998e6f441d6a IN  0xacf63e56fd08970b43401492a02f6f38b6635c910 MATIC0.001906672048 41.27174441
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x7e506397a3ba61df35b51fcb0cdf5a54ac40953d2ce2cb236d4d3bdfdb54acc1388700692023-02-03 17:41:505 days 13 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint28.39027466192593308 MATIC
0x7e506397a3ba61df35b51fcb0cdf5a54ac40953d2ce2cb236d4d3bdfdb54acc1388700692023-02-03 17:41:505 days 13 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9128.39027466192593308 MATIC
0x43eec11fd9cb70bdd605c32701763e95a375fdb3a367d7cbd392f5b7abc65cf2388414302023-02-03 0:01:176 days 6 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint21.441937116876565173 MATIC
0x43eec11fd9cb70bdd605c32701763e95a375fdb3a367d7cbd392f5b7abc65cf2388414302023-02-03 0:01:176 days 6 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9121.441937116876565173 MATIC
0xe52f759ae1fd53b549316be96d9ee697a8609e18750f226514cd0475528cd625386209032023-01-28 9:58:2511 days 20 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint16.151624451809600961 MATIC
0xe52f759ae1fd53b549316be96d9ee697a8609e18750f226514cd0475528cd625386209032023-01-28 9:58:2511 days 20 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9116.151624451809600961 MATIC
0xcfbb2e4efa22aa7530ab2d1073ec5e8783969ea1ee65f0997435e9684116e2f9385591912023-01-26 19:04:1813 days 11 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint0.035667956607952233 MATIC
0xcfbb2e4efa22aa7530ab2d1073ec5e8783969ea1ee65f0997435e9684116e2f9385591912023-01-26 19:04:1813 days 11 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c910.035667956607952233 MATIC
0x98504c0262e93e9481e9bbf43e191f0cb8d2c8377eddec2e0d9943c5e5f955d2385442412023-01-26 9:57:1013 days 20 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint14.401083807745235351 MATIC
0x98504c0262e93e9481e9bbf43e191f0cb8d2c8377eddec2e0d9943c5e5f955d2385442412023-01-26 9:57:1013 days 20 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9114.401083807745235351 MATIC
0xf88352d30be92ba443490f07608fe2d2d7893d815ece73bdf69b3546b0b053ff385003872023-01-25 7:27:2914 days 23 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint14.720233278805204357 MATIC
0xf88352d30be92ba443490f07608fe2d2d7893d815ece73bdf69b3546b0b053ff385003872023-01-25 7:27:2914 days 23 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9114.720233278805204357 MATIC
0x870deb3bf8f4c6f886dafafa2ec7aefc6e6449c767ff8d7524cc2a9408edebb6384787392023-01-24 18:25:2815 days 12 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint38.220502768240494248 MATIC
0x870deb3bf8f4c6f886dafafa2ec7aefc6e6449c767ff8d7524cc2a9408edebb6384787392023-01-24 18:25:2815 days 12 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9138.220502768240494248 MATIC
0x870deb3bf8f4c6f886dafafa2ec7aefc6e6449c767ff8d7524cc2a9408edebb6384787392023-01-24 18:25:2815 days 12 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint38.220502768240494248 MATIC
0x870deb3bf8f4c6f886dafafa2ec7aefc6e6449c767ff8d7524cc2a9408edebb6384787392023-01-24 18:25:2815 days 12 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9138.220502768240494248 MATIC
0x4dd335f3bff106ad1e708752b6ef9bc55692ca9172b220ff6e11cdbb58473983384776622023-01-24 17:45:0515 days 13 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint22.501151716072419308 MATIC
0x4dd335f3bff106ad1e708752b6ef9bc55692ca9172b220ff6e11cdbb58473983384776622023-01-24 17:45:0515 days 13 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9122.501151716072419308 MATIC
0xe8fd9b1a78bd31899d75caf2739bcba5d2e5571ca1e1a91b7e5260bb15954d1f384698462023-01-24 12:58:4415 days 17 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint14.946719726692427996 MATIC
0xe8fd9b1a78bd31899d75caf2739bcba5d2e5571ca1e1a91b7e5260bb15954d1f384698462023-01-24 12:58:4415 days 17 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9114.946719726692427996 MATIC
0x763cf490718cf6715c09ddb8921692f473263e0701f5d5f35a05d8ae0984a36b384614602023-01-24 7:56:5415 days 22 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint13.901830535747418388 MATIC
0x763cf490718cf6715c09ddb8921692f473263e0701f5d5f35a05d8ae0984a36b384614602023-01-24 7:56:5415 days 22 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9113.901830535747418388 MATIC
0x1ad1aa4472c81a91a93aeac1918378e3e43a822020be384e289ad9e9a940f12c384515892023-01-24 2:04:3916 days 4 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint15.897423935180070305 MATIC
0x1ad1aa4472c81a91a93aeac1918378e3e43a822020be384e289ad9e9a940f12c384515892023-01-24 2:04:3916 days 4 hrs ago 0x8ec5cdbfe1ebd1639ffdf51e243bfc4a6d1bc0d8 0xacf63e56fd08970b43401492a02f6f38b6635c9115.897423935180070305 MATIC
0xb9999916284bd3003a4b642a8bba0d6ffed4abb3cad2b9e94e063f8933af2f02384360322023-01-23 16:43:3316 days 14 hrs ago 0xacf63e56fd08970b43401492a02f6f38b6635c91 LayerZero: Polygon Endpoint46.758280879128656631 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ONFT

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 30000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 2 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 3 of 22 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

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

File 5 of 22 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` 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 tokenId
    ) 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.
     * - `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 tokenId
    ) internal virtual {}
}

File 7 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 8 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 10 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 22 : Context.sol
// 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;
    }
}

File 12 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 13 of 22 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 14 of 22 : IERC165.sol
// 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);
}

File 15 of 22 : LzApp.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/ILayerZeroReceiver.sol";
import "./interfaces/ILayerZeroUserApplicationConfig.sol";
import "./interfaces/ILayerZeroEndpoint.sol";

/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    ILayerZeroEndpoint internal immutable lzEndpoint;

    mapping(uint16 => bytes) internal trustedRemoteLookup;

    event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress);

    constructor(address _endpoint) {
        lzEndpoint = ILayerZeroEndpoint(_endpoint);
    }

    function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) external override {
        // lzReceive must be called by the endpoint for security
        require(_msgSender() == address(lzEndpoint));
        // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote.
        require(_srcAddress.length == trustedRemoteLookup[_srcChainId].length && keccak256(_srcAddress) == keccak256(trustedRemoteLookup[_srcChainId]), "LzReceiver: invalid source sending contract");

        _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParam) internal {
        require(trustedRemoteLookup[_dstChainId].length != 0, "LzSend: destination chain is not a trusted source.");
        lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemoteLookup[_dstChainId], _payload, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

    //---------------------------UserApplication config----------------------------------------
    function getConfig(uint16, uint16 _chainId, address, uint _configType) external view returns (bytes memory) {
        return lzEndpoint.getConfig(lzEndpoint.getSendVersion(address(this)), _chainId, address(this), _configType);
    }

    // generic config for LayerZero user Application
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner {
        lzEndpoint.setConfig(_version, _chainId, _configType, _config);
    }

    function setSendVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setSendVersion(_version);
    }

    function setReceiveVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setReceiveVersion(_version);
    }

    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {
        lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress);
    }

    // allow owner to set it multiple times.
    function setTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external onlyOwner {
        trustedRemoteLookup[_srcChainId] = _srcAddress;
        emit SetTrustedRemote(_srcChainId, _srcAddress);
    }

    function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) {
        bytes memory trustedSource = trustedRemoteLookup[_srcChainId];
        return keccak256(trustedSource) == keccak256(_srcAddress);
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------
    // interacting with the LayerZero Endpoint and remote contracts

    function getTrustedRemote(uint16 _chainId) external view returns (bytes memory) {
        return trustedRemoteLookup[_chainId];
    }

    function getLzEndpoint() external view returns (address) {
        return address(lzEndpoint);
    }
}

File 16 of 22 : NonblockingLzApp.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./LzApp.sol";

/*
 * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel
 * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking
 * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress)
 */
abstract contract NonblockingLzApp is LzApp {
    constructor(address _endpoint) LzApp(_endpoint) {}

    mapping(uint16 => mapping(bytes => mapping(uint => bytes32))) public failedMessages;

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload);

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // try-catch all errors/exceptions
        try this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload) {
            // do nothing
        } catch {
            // error / exception
            failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload);
        }
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual {
        // only internal transaction
        require(_msgSender() == address(this), "LzReceiver: caller must be Bridge.");
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    //@notice override this function
    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function retryMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes calldata _payload) external payable virtual {
        // assert there is message to retry
        bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(payloadHash != bytes32(0), "LzReceiver: no stored message");
        require(keccak256(_payload) == payloadHash, "LzReceiver: invalid payload");
        // clear the stored message
        failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0);
        // execute the message. revert if it fails again
        this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }
}

File 17 of 22 : ONFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8;

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "./ONFT721.sol";

contract ONFT is ONFT721, Pausable, ReentrancyGuard {
    using Strings for uint;
    using SafeERC20 for IERC20;

    uint public startMintId;
    uint public immutable endMintId;
    uint public price;
    uint public maxMintQuantity;
    bool public reveal;
    bool public isMintActive;
    string public contractURI;
    string public customName;
    string public customSymbol;
    IERC20 public immutable stableToken;
    mapping(address => uint) public claimed;
    address public feeCollectorAddress;

    /// @notice Constructor for the ONFT
    /// @param _name the name of the token
    /// @param _symbol the token symbol
    /// @param _baseTokenURI the base URI for computing the tokenURI
    /// @param _layerZeroEndpoint handles message transmission across chains
    /// @param _startMintId the starting mint number on this chain
    /// @param _endMintId the max number of mints on this chain
    /// @param _stableTokenAddress the address of the stable contract to pay for mints
    /// @param _stableTokenDecimals the decimals of the stable token
    /// @param _feeCollectorAddress the address fee collector
    constructor(string memory _name, string memory _symbol, string memory _baseTokenURI, address _layerZeroEndpoint, uint _startMintId, uint _endMintId, address _stableTokenAddress, uint _stableTokenDecimals, address _feeCollectorAddress) ONFT721(_name, _symbol, _layerZeroEndpoint) {
        customName = _name;
        customSymbol = _symbol;
        setBaseURI(_baseTokenURI);
        contractURI = _baseTokenURI;
        startMintId = _startMintId;
        endMintId = _endMintId;
        stableToken = IERC20(_stableTokenAddress);
        maxMintQuantity = 3;
        price = 400 * 10**_stableTokenDecimals;
        feeCollectorAddress = _feeCollectorAddress;
    }

    function mint(uint _quantity) external {
        require(isMintActive, "ONFT: Mint is not active.");
        require(claimed[msg.sender] + _quantity <= maxMintQuantity, "ONFT: Max Mint per wallet reached.");
        require(startMintId + _quantity <= endMintId, "ONFT: Max Mint limit reached.");
        stableToken.safeTransferFrom(msg.sender, feeCollectorAddress, price * _quantity);
        claimed[msg.sender] = claimed[msg.sender] + _quantity;
        for (uint i = 1; i <= _quantity; i++) {
            _safeMint(msg.sender, startMintId++);
        }
    }

    function _beforeSend(address, uint16, bytes memory, uint _tokenId) internal override whenNotPaused {
        _burn(_tokenId);
    }

    function pauseSendTokens(bool pause) external onlyOwner {
        pause ? _pause() : _unpause();
    }

    function activateReveal() external onlyOwner {
        reveal = true;
    }

    function tokenURI(uint tokenId) public view override returns (string memory) {
        if (reveal) {
            return string(abi.encodePacked(_baseURI(), tokenId.toString()));
        }
        return _baseURI();
    }

    function activateMint() external onlyOwner {
        isMintActive = true;
    }

    function setFeeCollector(address _feeCollectorAddress) external onlyOwner {
        feeCollectorAddress = _feeCollectorAddress;
    }

    function setMintPrice(uint _price) external onlyOwner {
        price = _price;
    }

    function setMintQuantity(uint _maxMintQuantity) external onlyOwner {
        maxMintQuantity = _maxMintQuantity;
    }

    function setContractURI(string memory _contractURI) public onlyOwner {
        contractURI = _contractURI;
    }

    function setName(string memory name) external onlyOwner {
        customName = name;
    }

    function setSymbol(string memory symbol) external onlyOwner {
        customSymbol = symbol;
    }

    function name() public view virtual override returns (string memory) {
        return customName;
    }

    function symbol() public view virtual override returns (string memory) {
        return customSymbol;
    }
}

File 18 of 22 : ONFT721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./interfaces/IONFT721.sol";
import "./NonblockingLzApp.sol";

// NOTE: this ONFT contract has no public minting logic.
// must implement your own minting logic in child classes
contract ONFT721 is IONFT721, NonblockingLzApp, ERC721 {
    string public baseTokenURI;

    constructor(string memory _name, string memory _symbol, address _lzEndpoint) ERC721(_name, _symbol) NonblockingLzApp(_lzEndpoint) {}

    function estimateSendFee(uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, bool _payInZRO, bytes calldata _adapterParams) external virtual returns (uint nativeFee, uint _zroFee) {
        bytes memory payload = abi.encode(_toAddress, _tokenId);
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _payInZRO, _adapterParams);
    }

    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable virtual override {
        _send(_from, _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

    function send(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable virtual override {
        _send(_msgSender(), _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

    function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) internal virtual {
        require(_isApprovedOrOwner(_msgSender(), _tokenId), "ERC721: transfer caller is not owner nor approved");
        _beforeSend(_from, _dstChainId, _toAddress, _tokenId);

        bytes memory payload = abi.encode(_toAddress, _tokenId);
        _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParam);

        uint64 nonce = lzEndpoint.getOutboundNonce(_dstChainId, address(this));
        emit SendToChain(_from, _dstChainId, _toAddress, _tokenId, nonce);
        _afterSend(_from, _dstChainId, _toAddress, _tokenId);
    }

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        _beforeReceive(_srcChainId, _srcAddress, _payload);

        // decode and load the toAddress
        (bytes memory toAddress, uint tokenId) = abi.decode(_payload, (bytes, uint));
        address localToAddress;
        assembly {
            localToAddress := mload(add(toAddress, 20))
        }

        // if the toAddress is 0x0, convert to dead address, or it will get cached
        if (localToAddress == address(0x0)) localToAddress == address(0xdEaD);

        _afterReceive(_srcChainId, localToAddress, tokenId);

        emit ReceiveFromChain(_srcChainId, localToAddress, tokenId, _nonce);
    }

    function _beforeSend(
        address, /* _from */
        uint16, /* _dstChainId */
        bytes memory, /* _toAddress */
        uint _tokenId
    ) internal virtual {
        _burn(_tokenId);
    }

    function _afterSend(
        address, /* _from */
        uint16, /* _dstChainId */
        bytes memory, /* _toAddress */
        uint /* _tokenId */
    ) internal virtual {}

    function _beforeReceive(
        uint16, /* _srcChainId */
        bytes memory, /* _srcAddress */
        bytes memory /* _payload */
    ) internal virtual {}

    function _afterReceive(
        uint16, /* _srcChainId */
        address _toAddress,
        uint _tokenId
    ) internal virtual {
        _safeMint(_toAddress, _tokenId);
    }

    function setBaseURI(string memory _baseTokenURI) public onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

    function _baseURI() internal view override returns (string memory) {
        return baseTokenURI;
    }
}

File 19 of 22 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}

File 20 of 22 : ILayerZeroReceiver.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

interface ILayerZeroReceiver {
    // @notice LayerZero endpoint will invoke this function to deliver the message on the destination
    // @param _srcChainId - the source endpoint identifier
    // @param _srcAddress - the source sending contract address from the source chain
    // @param _nonce - the ordered message nonce
    // @param _payload - the signed payload is the UA bytes has encoded to be sent
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
}

File 21 of 22 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}

File 22 of 22 : IONFT721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/**
 * @dev Interface of the ONFT standard
 */
interface IONFT721 is IERC721 {
    /**
     * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParam` is a flexible bytes array to indicate messaging adapter services
     */
    function send(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable;

    /**
     * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`) from `_from`
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParam` is a flexible bytes array to indicate messaging adapter services
     */
    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable;

    /**
     * @dev Emitted when `_tokenId` are moved from the `_sender` to (`_dstChainId`, `_toAddress`)
     * `_nonce` is the outbound nonce from
     */
    event SendToChain(address indexed _sender, uint16 indexed _dstChainId, bytes indexed _toAddress, uint _tokenId, uint64 _nonce);

    /**
     * @dev Emitted when `_tokenId` are sent from `_srcChainId` to the `_toAddress` at this chain. `_nonce` is the inbound nonce.
     */
    event ReceiveFromChain(uint16 _srcChainId, address _toAddress, uint _tokenId, uint64 _nonce);
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 30000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"address","name":"_layerZeroEndpoint","type":"address"},{"internalType":"uint256","name":"_startMintId","type":"uint256"},{"internalType":"uint256","name":"_endMintId","type":"uint256"},{"internalType":"address","name":"_stableTokenAddress","type":"address"},{"internalType":"uint256","name":"_stableTokenDecimals","type":"uint256"},{"internalType":"address","name":"_feeCollectorAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"activateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activateReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customSymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_payInZRO","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"_zroFee","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollectorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLzEndpoint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"}],"name":"getTrustedRemote","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxMintQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"pauseSendTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"reveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParam","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParam","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollectorAddress","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintQuantity","type":"uint256"}],"name":"setMintQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"setSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stableToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b506040516200565d3803806200565d833981016040819052620000349162000390565b88888782828280620000463362000152565b60601b6001600160601b0319166080525081516200006c9060039060208501906200021a565b508051620000829060049060208401906200021a565b5050600a805460ff1916905550506001600b5550508851620000ac9060119060208c01906200021a565b508751620000c29060129060208b01906200021a565b50620000ce87620001a2565b8651620000e39060109060208a01906200021a565b50600c85905560a08490526001600160601b0319606084901b1660c0526003600e556200011282600a620004bc565b620001209061019062000587565b600d55601480546001600160a01b0319166001600160a01b039290921691909117905550620006129650505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620002015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620002169060099060208401906200021a565b5050565b8280546200022890620005a9565b90600052602060002090601f0160209004810192826200024c576000855562000297565b82601f106200026757805160ff191683800117855562000297565b8280016001018555821562000297579182015b82811115620002975782518255916020019190600101906200027a565b50620002a5929150620002a9565b5090565b5b80821115620002a55760008155600101620002aa565b80516001600160a01b0381168114620002d857600080fd5b919050565b600082601f830112620002ee578081fd5b81516001600160401b03808211156200030b576200030b620005fc565b604051601f8301601f19908116603f01168101908282118183101715620003365762000336620005fc565b8160405283815260209250868385880101111562000352578485fd5b8491505b8382101562000375578582018301518183018401529082019062000356565b838211156200038657848385830101525b9695505050505050565b60008060008060008060008060006101208a8c031215620003af578485fd5b89516001600160401b0380821115620003c6578687fd5b620003d48d838e01620002dd565b9a5060208c0151915080821115620003ea578687fd5b620003f88d838e01620002dd565b995060408c01519150808211156200040e578687fd5b506200041d8c828d01620002dd565b9750506200042e60608b01620002c0565b955060808a0151945060a08a015193506200044c60c08b01620002c0565b925060e08a01519150620004646101008b01620002c0565b90509295985092959850929598565b600181815b80851115620004b4578160001904821115620004985762000498620005e6565b80851615620004a657918102915b93841c939080029062000478565b509250929050565b6000620004ca8383620004d1565b9392505050565b600082620004e25750600162000581565b81620004f15750600062000581565b81600181146200050a5760028114620005155762000535565b600191505062000581565b60ff841115620005295762000529620005e6565b50506001821b62000581565b5060208310610133831016604e8410600b84101617156200055a575081810a62000581565b62000566838362000473565b80600019048211156200057d576200057d620005e6565b0290505b92915050565b6000816000190483118215151615620005a457620005a4620005e6565b500290565b600181811c90821680620005be57607f821691505b60208210811415620005e057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160c05160601c614fc8620006956000396000818161080b0152611c500152600081816109370152611b8e01526000818161099001528181610b1701528181610e4c01528181611173015281816112c1015281816115e50152818161209a015281816126a101528181612e6001526137080152614fc86000f3fe6080604052600436106103755760003560e01c806395d89b41116101d1578063cbed8b9c11610102578063eb8d72b7116100a0578063f2fde38b1161006f578063f2fde38b14610a9f578063f4a0a52814610abf578063f5a8622a14610adf578063f5ecbdbc14610af457600080fd5b8063eb8d72b714610a1f578063eed33cef14610a3f578063f108e22514610a52578063f187892214610a7f57600080fd5b8063d547cfb7116100dc578063d547cfb71461096c578063dacbcbe214610981578063e8a3d485146109b4578063e985e9c5146109c957600080fd5b8063cbed8b9c14610905578063d0f62e1b14610925578063d1deba1f1461095957600080fd5b8063ae9aea6d1161016f578063c47f002711610149578063c47f002714610883578063c87b56dd146108a3578063c884ef83146108c3578063c91c0462146108f057600080fd5b8063ae9aea6d1461082d578063b84c824614610843578063b88d4fde1461086357600080fd5b8063a22cb465116101ab578063a22cb4651461079f578063a42dce80146107bf578063a475b5dd146107df578063a9d75b2b146107f957600080fd5b806395d89b4114610754578063a035b1fe14610769578063a0712d681461077f57600080fd5b806342d65a8d116102ab57806369b41f95116102495780638d81592a116102235780638d81592a146106a55780638da5cb5b146106ba5780638ee74912146106e5578063938e3d7b1461073457600080fd5b806369b41f951461065057806370a0823114610670578063715018a61461069057600080fd5b80635b92ac0d116102855780635b92ac0d146105d95780635c975abb146105f85780636352211e1461061057806366ad5c8a1461063057600080fd5b806342d65a8d1461058657806351905636146105a657806355f804b3146105b957600080fd5b806323b872dd1161031857806336ecd177116102f257806336ecd1771461050d5780633d8b38f6146105315780633f388b331461055157806342842e0e1461056657600080fd5b806323b872dd146104985780632a205e3d146104b85780632c236490146104ed57600080fd5b806307e0db171161035457806307e0db17146103f3578063081812fc14610413578063095ea7b31461045857806310ddb1371461047857600080fd5b80621d35671461037a57806301ffc9a71461039c57806306fdde03146103d1575b600080fd5b34801561038657600080fd5b5061039a6103953660046146e5565b610b14565b005b3480156103a857600080fd5b506103bc6103b7366004614334565b610c3c565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610d21565b6040516103c89190614a2b565b3480156103ff57600080fd5b5061039a61040e36600461442a565b610db3565b34801561041f57600080fd5b5061043361042e366004614811565b610ec1565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103c8565b34801561046457600080fd5b5061039a6104733660046142d1565b610f81565b34801561048457600080fd5b5061039a61049336600461442a565b6110da565b3480156104a457600080fd5b5061039a6104b3366004614133565b6111b7565b3480156104c457600080fd5b506104d86104d33660046145be565b61123e565b604080519283526020830191909152016103c8565b3480156104f957600080fd5b5061039a610508366004614811565b61135f565b34801561051957600080fd5b50610523600c5481565b6040519081526020016103c8565b34801561053d57600080fd5b506103bc61054c366004614462565b6113cb565b34801561055d57600080fd5b506103e6611498565b34801561057257600080fd5b5061039a610581366004614133565b611526565b34801561059257600080fd5b5061039a6105a1366004614462565b611541565b61039a6105b436600461420a565b611655565b3480156105c557600080fd5b5061039a6105d43660046143e4565b6116a8565b3480156105e557600080fd5b50600f546103bc90610100900460ff1681565b34801561060457600080fd5b50600a5460ff166103bc565b34801561061c57600080fd5b5061043361062b366004614811565b611726565b34801561063c57600080fd5b5061039a61064b3660046146e5565b6117be565b34801561065c57600080fd5b506103e661066b36600461442a565b61183f565b34801561067c57600080fd5b5061052361068b3660046140df565b6118e6565b34801561069c57600080fd5b5061039a61199a565b3480156106b157600080fd5b506103e6611a0d565b3480156106c657600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610433565b3480156106f157600080fd5b50610523610700366004614567565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561074057600080fd5b5061039a61074f3660046143e4565b611a1a565b34801561076057600080fd5b506103e6611a94565b34801561077557600080fd5b50610523600d5481565b34801561078b57600080fd5b5061039a61079a366004614811565b611aa3565b3480156107ab57600080fd5b5061039a6107ba3660046141dd565b611cde565b3480156107cb57600080fd5b5061039a6107da3660046140df565b611ce9565b3480156107eb57600080fd5b50600f546103bc9060ff1681565b34801561080557600080fd5b506104337f000000000000000000000000000000000000000000000000000000000000000081565b34801561083957600080fd5b50610523600e5481565b34801561084f57600080fd5b5061039a61085e3660046143e4565b611d97565b34801561086f57600080fd5b5061039a61087e366004614173565b611e11565b34801561088f57600080fd5b5061039a61089e3660046143e4565b611e99565b3480156108af57600080fd5b506103e66108be366004614811565b611f13565b3480156108cf57600080fd5b506105236108de3660046140df565b60136020526000908152604090205481565b3480156108fc57600080fd5b5061039a611f61565b34801561091157600080fd5b5061039a6109203660046147b1565b611ff6565b34801561093157600080fd5b506105237f000000000000000000000000000000000000000000000000000000000000000081565b61039a610967366004614656565b612105565b34801561097857600080fd5b506103e66122c6565b34801561098d57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610433565b3480156109c057600080fd5b506103e66122d3565b3480156109d557600080fd5b506103bc6109e43660046140fb565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a2b57600080fd5b5061039a610a3a366004614462565b6122e0565b61039a610a4d3660046144b5565b6123a6565b348015610a5e57600080fd5b506014546104339073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a8b57600080fd5b5061039a610a9a3660046142fc565b6123f8565b348015610aab57600080fd5b5061039a610aba3660046140df565b612477565b348015610acb57600080fd5b5061039a610ada366004614811565b612570565b348015610aeb57600080fd5b5061039a6125dc565b348015610b0057600080fd5b506103e6610b0f366004614761565b612670565b337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614610b5657600080fd5b61ffff841660009081526001602052604090208054610b7490614de0565b90508351148015610bb3575061ffff8416600090815260016020526040908190209051610ba19190614926565b60405180910390208380519060200120145b610c2a5760405162461bcd60e51b815260206004820152602b60248201527f4c7a52656365697665723a20696e76616c696420736f757263652073656e646960448201527f6e6720636f6e747261637400000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610c3684848484612804565b50505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610ccf57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d1b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060118054610d3090614de0565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5c90614de0565b8015610da95780601f10610d7e57610100808354040283529160200191610da9565b820191906000526020600020905b815481529060010190602001808311610d8c57829003601f168201915b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b6040517f07e0db1700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906307e0db17906024015b600060405180830381600087803b158015610ea657600080fd5b505af1158015610eba573d6000803e3d6000fd5b5050505050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff16610f585760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c21565b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610f8c82611726565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156110305760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c21565b3373ffffffffffffffffffffffffffffffffffffffff82161480611059575061105981336109e4565b6110cb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c21565b6110d5838361290f565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146111415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b6040517f10ddb13700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906310ddb13790602401610e8c565b6111c133826129af565b6112335760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c21565b6110d5838383612b01565b60008060008787604051602001611256929190614a3e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f40a7bb10000000000000000000000000000000000000000000000000000000008252915073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090611300908c90309086908c908c908c90600401614a60565b604080518083038186803b15801561131757600080fd5b505afa15801561132b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134f9190614829565b9250925050965096945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146113c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b600e55565b61ffff8316600090815260016020526040812080548291906113ec90614de0565b80601f016020809104026020016040519081016040528092919081815260200182805461141890614de0565b80156114655780601f1061143a57610100808354040283529160200191611465565b820191906000526020600020905b81548152906001019060200180831161144857829003601f168201915b50505050509050838360405161147c9291906148fa565b60405180910390208180519060200120149150505b9392505050565b601280546114a590614de0565b80601f01602080910402602001604051908101604052809291908181526020018280546114d190614de0565b801561151e5780601f106114f35761010080835404028352916020019161151e565b820191906000526020600020905b81548152906001019060200180831161150157829003601f168201915b505050505081565b6110d583838360405180602001604052806000815250611e11565b60005473ffffffffffffffffffffffffffffffffffffffff1633146115a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b6040517f42d65a8d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d9061161e90869086908690600401614ac1565b600060405180830381600087803b15801561163857600080fd5b505af115801561164c573d6000803e3d6000fd5b50505050505050565b61169d898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888612d34565b505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461170f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b8051611722906009906020840190613ecd565b5050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610d1b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c21565b3330146118335760405162461bcd60e51b815260206004820152602260248201527f4c7a52656365697665723a2063616c6c6572206d75737420626520427269646760448201527f652e0000000000000000000000000000000000000000000000000000000000006064820152608401610c21565b610c3684848484612f6b565b61ffff8116600090815260016020526040902080546060919061186190614de0565b80601f016020809104026020016040519081016040528092919081815260200182805461188d90614de0565b80156118da5780601f106118af576101008083540402835291602001916118da565b820191906000526020600020905b8154815290600101906020018083116118bd57829003601f168201915b50505050509050919050565b600073ffffffffffffffffffffffffffffffffffffffff82166119715760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c21565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b611a0b600061300a565b565b601180546114a590614de0565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b8051611722906010906020840190613ecd565b606060128054610d3090614de0565b600f54610100900460ff16611afa5760405162461bcd60e51b815260206004820152601960248201527f4f4e46543a204d696e74206973206e6f74206163746976652e000000000000006044820152606401610c21565b600e5433600090815260136020526040902054611b18908390614d34565b1115611b8c5760405162461bcd60e51b815260206004820152602260248201527f4f4e46543a204d6178204d696e74207065722077616c6c65742072656163686560448201527f642e0000000000000000000000000000000000000000000000000000000000006064820152608401610c21565b7f000000000000000000000000000000000000000000000000000000000000000081600c54611bbb9190614d34565b1115611c095760405162461bcd60e51b815260206004820152601d60248201527f4f4e46543a204d6178204d696e74206c696d697420726561636865642e0000006044820152606401610c21565b601454600d54611c7891339173ffffffffffffffffffffffffffffffffffffffff90911690611c39908590614d60565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692919061307f565b33600090815260136020526040902054611c93908290614d34565b3360009081526013602052604090205560015b81811161172257600c8054611ccc913391906000611cc383614e34565b91905055613114565b80611cd681614e34565b915050611ca6565b61172233838361312e565b60005473ffffffffffffffffffffffffffffffffffffffff163314611d505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b601480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611dfe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b8051611722906012906020840190613ecd565b611e1b33836129af565b611e8d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c21565b610c3684848484613242565b60005473ffffffffffffffffffffffffffffffffffffffff163314611f005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b8051611722906011906020840190613ecd565b600f5460609060ff1615611f5957611f296132cb565b611f32836132da565b604051602001611f439291906149b3565b6040516020818303038152906040529050919050565b610d1b6132cb565b60005473ffffffffffffffffffffffffffffffffffffffff163314611fc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461205d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b6040517fcbed8b9c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c906120d79088908890889088908890600401614c71565b600060405180830381600087803b1580156120f157600080fd5b505af115801561169d573d6000803e3d6000fd5b61ffff8516600090815260026020526040808220905161212690879061490a565b908152604080516020928190038301902067ffffffffffffffff87166000908152925290205490508061219b5760405162461bcd60e51b815260206004820152601d60248201527f4c7a52656365697665723a206e6f2073746f726564206d6573736167650000006044820152606401610c21565b8083836040516121ac9291906148fa565b6040518091039020146122015760405162461bcd60e51b815260206004820152601b60248201527f4c7a52656365697665723a20696e76616c6964207061796c6f616400000000006044820152606401610c21565b61ffff8616600090815260026020526040808220905161222290889061490a565b90815260408051918290036020908101832067ffffffffffffffff89166000908152915220919091557f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a9061228c9089908990899089908990600401614adf565b600060405180830381600087803b1580156122a657600080fd5b505af11580156122ba573d6000803e3d6000fd5b50505050505050505050565b600980546114a590614de0565b601080546114a590614de0565b60005473ffffffffffffffffffffffffffffffffffffffff1633146123475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b61ffff83166000908152600160205260409020612365908383613f51565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab83838360405161239993929190614ac1565b60405180910390a1505050565b6123ee338989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a91508990508888612d34565b5050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461245f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b8061246f5761246c61345a565b50565b61246c613521565b60005473ffffffffffffffffffffffffffffffffffffffff1633146124de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b73ffffffffffffffffffffffffffffffffffffffff81166125675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c21565b61246c8161300a565b60005473ffffffffffffffffffffffffffffffffffffffff1633146125d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b600d55565b60005473ffffffffffffffffffffffffffffffffffffffff1633146126435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c21565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6040517f096568f60000000000000000000000000000000000000000000000000000000081523060048201526060907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063f5ecbdbc90829063096568f69060240160206040518083038186803b15801561270057600080fd5b505afa158015612714573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127389190614446565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815261ffff918216600482015290871660248201523060448201526064810185905260840160006040518083038186803b15801561279f57600080fd5b505afa1580156127b3573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526127f9919081019061436c565b90505b949350505050565b6040517f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a90612846908790879087908790600401614b2b565b600060405180830381600087803b15801561286057600080fd5b505af1925050508015612871575060015b610c36578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516128a6919061490a565b90815260408051918290036020908101832067ffffffffffffffff87166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90612902908690869086908690614b2b565b60405180910390a1610c36565b600081815260076020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061296982611726565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff16612a465760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c21565b6000612a5183611726565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612ac057508373ffffffffffffffffffffffffffffffffffffffff16612aa884610ec1565b73ffffffffffffffffffffffffffffffffffffffff16145b806127fc575073ffffffffffffffffffffffffffffffffffffffff80821660009081526008602090815260408083209388168352929052205460ff166127fc565b8273ffffffffffffffffffffffffffffffffffffffff16612b2182611726565b73ffffffffffffffffffffffffffffffffffffffff1614612baa5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610c21565b73ffffffffffffffffffffffffffffffffffffffff8216612c325760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c21565b612c3d60008261290f565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600660205260408120805460019290612c73908490614d9d565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120805460019290612cae908490614d34565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612d3e33866129af565b612db05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c21565b612dbc888888886135c7565b60008686604051602001612dd1929190614a3e565b6040516020818303038152906040529050612e258882878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061362392505050565b6040517f7a14574800000000000000000000000000000000000000000000000000000000815261ffff891660048201523060248201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690637a1457489060440160206040518083038186803b158015612eb757600080fd5b505afa158015612ecb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eef919061484c565b905087604051612eff919061490a565b6040805191829003822089835267ffffffffffffffff841660208401529161ffff8c169173ffffffffffffffffffffffffffffffffffffffff8e16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a46122ba565b60008082806020019051810190612f82919061439f565b60148201519193509150612f97878284613761565b6040805161ffff8916815273ffffffffffffffffffffffffffffffffffffffff8316602082015290810183905267ffffffffffffffff861660608201527fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db9060800160405180910390a150505050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610c3690859061376b565b61172282826040518060200160405280600081525061385d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156131aa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c21565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526008602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61324d848484612b01565b613259848484846138e6565b610c365760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c21565b606060098054610d3090614de0565b60608161331a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613344578061332e81614e34565b915061333d9050600a83614d4c565b915061331e565b60008167ffffffffffffffff811115613386577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133b0576020820181803683370190505b5090505b84156127fc576133c5600183614d9d565b91506133d2600a86614e6d565b6133dd906030614d34565b60f81b818381518110613419577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613453600a86614d4c565b94506133b4565b600a5460ff166134ac5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c21565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600a5460ff16156135745760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c21565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586134f73390565b600a5460ff161561361a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c21565b610c3681613ac8565b61ffff85166000908152600160205260409020805461364190614de0565b151590506136b75760405162461bcd60e51b815260206004820152603260248201527f4c7a53656e643a2064657374696e6174696f6e20636861696e206973206e6f7460448201527f2061207472757374656420736f757263652e00000000000000000000000000006064820152608401610c21565b61ffff85166000908152600160205260409081902090517fc580310000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163c5803100913491613748918a91908a908a908a908a90600401614b6a565b6000604051808303818588803b1580156122a657600080fd5b6110d58282613114565b60006137cd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613b959092919063ffffffff16565b8051909150156110d557808060200190518101906137eb9190614318565b6110d55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c21565b6138678383613ba4565b61387460008484846138e6565b6110d55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c21565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613ac0576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061395d9033908990889088906004016149e2565b602060405180830381600087803b15801561397757600080fd5b505af19250505080156139c5575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526139c291810190614350565b60015b613a75573d8080156139f3576040519150601f19603f3d011682016040523d82523d6000602084013e6139f8565b606091505b508051613a6d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c21565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506127fc565b5060016127fc565b6000613ad382611726565b9050613ae060008361290f565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660205260408120805460019290613b16908490614d9d565b909155505060008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60606127fc8484600085613d32565b73ffffffffffffffffffffffffffffffffffffffff8216613c075760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c21565b60008181526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613c795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c21565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120805460019290613caf908490614d34565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606082471015613daa5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610c21565b73ffffffffffffffffffffffffffffffffffffffff85163b613e0e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c21565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613e37919061490a565b60006040518083038185875af1925050503d8060008114613e74576040519150601f19603f3d011682016040523d82523d6000602084013e613e79565b606091505b5091509150613e89828286613e94565b979650505050505050565b60608315613ea3575081611491565b825115613eb35782518084602001fd5b8160405162461bcd60e51b8152600401610c219190614a2b565b828054613ed990614de0565b90600052602060002090601f016020900481019282613efb5760008555613f41565b82601f10613f1457805160ff1916838001178555613f41565b82800160010185558215613f41579182015b82811115613f41578251825591602001919060010190613f26565b50613f4d929150613fe3565b5090565b828054613f5d90614de0565b90600052602060002090601f016020900481019282613f7f5760008555613f41565b82601f10613fb6578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613f41565b82800160010185558215613f41579182015b82811115613f41578235825591602001919060010190613fc8565b5b80821115613f4d5760008155600101613fe4565b600061400b61400684614cee565b614c9f565b905082815283838301111561401f57600080fd5b828260208301376000602084830101529392505050565b60008083601f840112614047578182fd5b50813567ffffffffffffffff81111561405e578182fd5b60208301915083602082850101111561407657600080fd5b9250929050565b600082601f83011261408d578081fd5b61149183833560208501613ff8565b600082601f8301126140ac578081fd5b81516140ba61400682614cee565b8181528460208386010111156140ce578283fd5b6127fc826020830160208701614db4565b6000602082840312156140f0578081fd5b813561149181614f0e565b6000806040838503121561410d578081fd5b823561411881614f0e565b9150602083013561412881614f0e565b809150509250929050565b600080600060608486031215614147578081fd5b833561415281614f0e565b9250602084013561416281614f0e565b929592945050506040919091013590565b60008060008060808587031215614188578081fd5b843561419381614f0e565b935060208501356141a381614f0e565b925060408501359150606085013567ffffffffffffffff8111156141c5578182fd5b6141d18782880161407d565b91505092959194509250565b600080604083850312156141ef578182fd5b82356141fa81614f0e565b9150602083013561412881614f30565b600080600080600080600080600060e08a8c031215614227578485fd5b893561423281614f0e565b985060208a013561424281614f6c565b975060408a013567ffffffffffffffff8082111561425e578687fd5b61426a8d838e01614036565b909950975060608c0135965060808c0135915061428682614f0e565b90945060a08b01359061429882614f0e565b90935060c08b013590808211156142ad578384fd5b506142ba8c828d01614036565b915080935050809150509295985092959850929598565b600080604083850312156142e3578182fd5b82356142ee81614f0e565b946020939093013593505050565b60006020828403121561430d578081fd5b813561149181614f30565b600060208284031215614329578081fd5b815161149181614f30565b600060208284031215614345578081fd5b813561149181614f3e565b600060208284031215614361578081fd5b815161149181614f3e565b60006020828403121561437d578081fd5b815167ffffffffffffffff811115614393578182fd5b6127fc8482850161409c565b600080604083850312156143b1578182fd5b825167ffffffffffffffff8111156143c7578283fd5b6143d38582860161409c565b925050602083015190509250929050565b6000602082840312156143f5578081fd5b813567ffffffffffffffff81111561440b578182fd5b8201601f8101841361441b578182fd5b6127fc84823560208401613ff8565b60006020828403121561443b578081fd5b813561149181614f6c565b600060208284031215614457578081fd5b815161149181614f6c565b600080600060408486031215614476578081fd5b833561448181614f6c565b9250602084013567ffffffffffffffff81111561449c578182fd5b6144a886828701614036565b9497909650939450505050565b60008060008060008060008060c0898b0312156144d0578182fd5b88356144db81614f6c565b9750602089013567ffffffffffffffff808211156144f7578384fd5b6145038c838d01614036565b909950975060408b0135965060608b0135915061451f82614f0e565b90945060808a01359061453182614f0e565b90935060a08a01359080821115614546578384fd5b506145538b828c01614036565b999c989b5096995094979396929594505050565b60008060006060848603121561457b578081fd5b833561458681614f6c565b9250602084013567ffffffffffffffff8111156145a1578182fd5b6145ad8682870161407d565b925050604084013590509250925092565b60008060008060008060a087890312156145d6578384fd5b86356145e181614f6c565b9550602087013567ffffffffffffffff808211156145fd578586fd5b6146098a838b0161407d565b9650604089013595506060890135915061462282614f30565b90935060808801359080821115614637578384fd5b5061464489828a01614036565b979a9699509497509295939492505050565b60008060008060006080868803121561466d578283fd5b853561467881614f6c565b9450602086013567ffffffffffffffff80821115614694578485fd5b6146a089838a0161407d565b9550604088013591506146b282614f7c565b909350606087013590808211156146c7578283fd5b506146d488828901614036565b969995985093965092949392505050565b600080600080608085870312156146fa578182fd5b843561470581614f6c565b9350602085013567ffffffffffffffff80821115614721578384fd5b61472d8883890161407d565b94506040870135915061473f82614f7c565b90925060608601359080821115614754578283fd5b506141d18782880161407d565b60008060008060808587031215614776578182fd5b843561478181614f6c565b9350602085013561479181614f6c565b925060408501356147a181614f0e565b9396929550929360600135925050565b6000806000806000608086880312156147c8578283fd5b85356147d381614f6c565b945060208601356147e381614f6c565b935060408601359250606086013567ffffffffffffffff811115614805578182fd5b6146d488828901614036565b600060208284031215614822578081fd5b5035919050565b6000806040838503121561483b578182fd5b505080516020909101519092909150565b60006020828403121561485d578081fd5b815161149181614f7c565b81835281816020850137506000806020838501015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b600081518084526148c8816020860160208601614db4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8183823760009101908152919050565b6000825161491c818460208701614db4565b9190910192915050565b600080835461493481614de0565b6001828116801561494c576001811461497b576149a7565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008416875282870194506149a7565b8786526020808720875b8581101561499e5781548a820152908401908201614985565b50505082870194505b50929695505050505050565b600083516149c5818460208801614db4565b8351908301906149d9818360208801614db4565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614a2160808301846148b0565b9695505050505050565b60208152600061149160208301846148b0565b604081526000614a5160408301856148b0565b90508260208301529392505050565b61ffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201526000614a9960a08301876148b0565b85151560608401528281036080840152614ab4818587614868565b9998505050505050505050565b61ffff841681526040602082015260006127f9604083018486614868565b61ffff86168152608060208201526000614afc60808301876148b0565b67ffffffffffffffff861660408401528281036060840152614b1f818587614868565b98975050505050505050565b61ffff85168152608060208201526000614b4860808301866148b0565b67ffffffffffffffff851660408401528281036060840152613e8981856148b0565b61ffff871681526000602060c081840152818854614b8781614de0565b8060c087015260e0600180841660008114614ba95760018114614bdc57614c07565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838a015261010089019550614c07565b8d8852868820885b85811015614bff5781548b8201860152908301908801614be4565b8a0184019650505b50505050508381036040850152614c1e81896148b0565b915050614c43606084018773ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff8516608084015282810360a0840152614ab481856148b0565b600061ffff808816835280871660208401525084604083015260806060830152613e89608083018486614868565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614ce657614ce6614edf565b604052919050565b600067ffffffffffffffff821115614d0857614d08614edf565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115614d4757614d47614e81565b500190565b600082614d5b57614d5b614eb0565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614d9857614d98614e81565b500290565b600082821015614daf57614daf614e81565b500390565b60005b83811015614dcf578181015183820152602001614db7565b83811115610c365750506000910152565b600181811c90821680614df457607f821691505b60208210811415614e2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e6657614e66614e81565b5060010190565b600082614e7c57614e7c614eb0565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461246c57600080fd5b801515811461246c57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461246c57600080fd5b61ffff8116811461246c57600080fd5b67ffffffffffffffff8116811461246c57600080fdfea2646970667358221220a581e9b373477251dc06990aa2621f2c30e38c37ba30874127384da6cb03e0a364736f6c634300080400330000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000003c2269811836af69497e5f486a85d7316753cf6200000000000000000000000000000000000000000000000000000000000010ee000000000000000000000000000000000000000000000000000000000000157c0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000006000000000000000000000000f0638096047ef0183d0f3232e82205b118e100dd000000000000000000000000000000000000000000000000000000000000000d59616b757a612050616e646173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004594b5053000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261667962656961636777336865666e66617a6267646d656469796e6673356a756b3271636d326c64367671753763756662623368627462787461000000000000000000000000000000000000000000000000000000000000

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

0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000003c2269811836af69497e5f486a85d7316753cf6200000000000000000000000000000000000000000000000000000000000010ee000000000000000000000000000000000000000000000000000000000000157c0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000006000000000000000000000000f0638096047ef0183d0f3232e82205b118e100dd000000000000000000000000000000000000000000000000000000000000000d59616b757a612050616e646173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004594b5053000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261667962656961636777336865666e66617a6267646d656469796e6673356a756b3271636d326c64367671753763756662623368627462787461000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Yakuza Pandas
Arg [1] : _symbol (string): YKPS
Arg [2] : _baseTokenURI (string): ipfs://bafybeiacgw3hefnfazbgdmediynfs5juk2qcm2ld6vqu7cufbb3hbtbxta
Arg [3] : _layerZeroEndpoint (address): 0x3c2269811836af69497e5f486a85d7316753cf62
Arg [4] : _startMintId (uint256): 4334
Arg [5] : _endMintId (uint256): 5500
Arg [6] : _stableTokenAddress (address): 0x2791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [7] : _stableTokenDecimals (uint256): 6
Arg [8] : _feeCollectorAddress (address): 0xf0638096047ef0183d0f3232e82205b118e100dd

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
Arg [4] : 00000000000000000000000000000000000000000000000000000000000010ee
Arg [5] : 000000000000000000000000000000000000000000000000000000000000157c
Arg [6] : 0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 000000000000000000000000f0638096047ef0183d0f3232e82205b118e100dd
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [10] : 59616b757a612050616e64617300000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 594b505300000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [14] : 697066733a2f2f6261667962656961636777336865666e66617a6267646d6564
Arg [15] : 69796e6673356a756b3271636d326c6436767175376375666262336862746278
Arg [16] : 7461000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.