Contract 0x8da7a7a48ebbd870358f2fd824e52e5142f44257

 

Contract Overview

The Space: PLK Token
Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x5508c6d4b2bf03fc5aba94d6945f10d9e59d7cbfb74b2d63411b322d4b2e163bSet Approval For...332042742022-09-17 3:58:287 days 15 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.00138992561 30.07
0x1c21ed3442045e5391e7774b2711f649831d0877218bd8796c79edb5196850bbSafe Transfer Fr...332042272022-09-17 3:56:547 days 15 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.00513323482 30.927386447
0x1c028573d4c4f453746201f656de53a646da099ae5f2c3763b5ea16ed4659ddfSafe Transfer Fr...332025562022-09-17 2:59:247 days 16 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004979310001 30.000000011
0x8cdf3171fc03407f8bcdd67f902681e310d0930db63d252cf389e88747914891Safe Transfer Fr...332025362022-09-17 2:58:447 days 16 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004979310001 30.000000012
0xb84a7ca753480da0d75343934cb7ddaa5a2bba5aa28fccdc0372e7f939bf5096Safe Transfer Fr...332024692022-09-17 2:56:267 days 16 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004979310001 30.000000011
0xa8ce29cd29983f2081e891dc0ae55e6b27b78d7feeafd45bd711181204eda553Safe Transfer Fr...332024562022-09-17 2:56:007 days 16 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004670490001 30.000000011
0xba48d71813b6b57891d44ad98c877b7bfa2892dd83b7dad284afe6a3367db730Safe Transfer Fr...332024422022-09-17 2:55:327 days 16 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004756894066 30.555000011
0x5329e919f4c6a030166e56ccf8dd727650d6e794c28d543b9da9f5ee075af006Safe Transfer Fr...332024312022-09-17 2:55:067 days 16 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.005039490001 30.000000011
0x5d8282b08b5d16613f0512b2fdbb674c77a604ebe1de02931a539838fe7bde3fSet Approval For...328088632022-09-07 15:01:0417 days 4 hrs ago0x8a46a25d45c18968450f4354d36a14c936a67050 IN  The Space: PLK Token0 MATIC0.001936928591 41.903999994
0x8bd2f6439c0440496e4fe41686ce092f23188fbdb6bdee9cce602c0997b5d65aSafe Transfer Fr...326464132022-09-03 17:12:0921 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.005855867568 35.28375
0xf24e662eec18786e919cce6ab534f5ff85c5c09b71e00a56921b421fc1c6e1e2Safe Transfer Fr...326463842022-09-03 17:11:0721 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.005071060577 30.555000013
0x6ec6e1a4b31f82bc6b27c4631d63c40f616f8d3a2c0a3e8c021373a9b363dd17Safe Transfer Fr...326463452022-09-03 17:09:4921 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004978950001 30.000000011
0x7f212e3a10ae70c10ff0868fd264809ff2e0d3069ed798f47ce669470b694021Safe Transfer Fr...326463222022-09-03 17:08:5921 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004978950001 30.000000012
0x722005e8c991f2683337c2cec7186477147ca95881cbdf69cd60d2bc357d2f9fSafe Transfer Fr...326463002022-09-03 17:08:1521 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004978950001 30.000000012
0xfbb2e3f31e2d41d8b20f548a546577390f50edfce2e1c7fd8c464ea44dab48a3Safe Transfer Fr...326462782022-09-03 17:07:3121 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.005312539652 32.010000013
0x81527031bdf99738fea419005e6038f92626cfbfdd2dd559c11712dcb11d7291Safe Transfer Fr...326462572022-09-03 17:06:4521 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004978950002 30.000000013
0x7cf83ec76e87cdd42b02e77ffc1f86b1e0ecddd2c43fc446e712c6f51d61f466Safe Transfer Fr...326462362022-09-03 17:06:0321 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.004978950001 30.000000012
0xac8b4ce47505571e77fdcbf76a1fe2d8e0cb75daf6dfb31934b90b7f3e9aeafbSafe Transfer Fr...326461542022-09-03 17:03:1521 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.005195481863 31.3046839
0xe2d659862f981215a6c45831198ceae56088a3962baead96c34fe937ae8bb782Safe Transfer Fr...326461292022-09-03 17:02:2121 days 2 hrs ago0x6778bac05212728b9998825feefc0521d58081dd IN  The Space: PLK Token0 MATIC0.005465476397 32.9315
0xfdf02f51841b09602e839c81d09a3cc22b8f103ae121a6115a09d65165ffc335Safe Transfer Fr...320284172022-08-18 9:40:4837 days 10 hrs ago0xc49200ff859391d9d4c83fe4db2b88f7f14f36ab IN  The Space: PLK Token0 MATIC0.003160484822 36.751532894
0x18c640e475f6f33263e61edd52cf627d56ad2e1a46e7f965426860b256b0b3b9Safe Transfer Fr...320284152022-08-18 9:40:4037 days 10 hrs ago0xc49200ff859391d9d4c83fe4db2b88f7f14f36ab IN  The Space: PLK Token0 MATIC0.003423556799 38.799999997
0x8dbcd6f24beda0293018f5178f59a9cc7d334cedbff79f4dd89a53777709d2e9Safe Transfer Fr...320283602022-08-18 9:38:5037 days 10 hrs ago0xc49200ff859391d9d4c83fe4db2b88f7f14f36ab IN  The Space: PLK Token0 MATIC0.0034235568 38.800000006
0x046932495f46de689dc29e3bfe79579cee06d9cc20418571ede9e0896d975e05Safe Transfer Fr...320283582022-08-18 9:38:4637 days 10 hrs ago0xc49200ff859391d9d4c83fe4db2b88f7f14f36ab IN  The Space: PLK Token0 MATIC0.0037476144 38.800000006
0x9c8df7270beee6db7c80fff552517f02e6f42ee2288602d8583e66d1237f112bSafe Transfer Fr...320283562022-08-18 9:38:4237 days 10 hrs ago0xc49200ff859391d9d4c83fe4db2b88f7f14f36ab IN  The Space: PLK Token0 MATIC0.0037476144 38.800000002
0xd31e0f9803cbd53e3b427c800e51a53479cb3fd5e480f1e3a29e6e53638170aeSafe Transfer Fr...320283522022-08-18 9:38:3437 days 10 hrs ago0xc49200ff859391d9d4c83fe4db2b88f7f14f36ab IN  The Space: PLK Token0 MATIC0.003355085664 38.024000001
[ Download CSV Export 

OVERVIEW

The Space: an everlasting co-creation blockchain graffiti wall shared and governed by all participants through radical market principles.

Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xeeb332aea55eafb86b33e61b98453288b950d571592af2d01c2ee60a3bc58c41289815632022-05-31 6:14:35116 days 13 hrs ago 0xa84108b2d248e0991b5c214db29ceab989f0bea1  Contract Creation0 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TheSpaceRegistry

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-05-31
*/

//SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;

// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

/**
 * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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);
}

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        uint256 currentAllowance = _allowances[sender][_msgSender()];
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
            unchecked {
                _approve(sender, _msgSender(), currentAllowance - amount);
            }
        }

        _transfer(sender, recipient, amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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

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

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

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

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.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);
}

// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

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

// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

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

// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.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;
    }
}

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

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// OpenZeppelin Contracts v4.4.1 (access/Ownable.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);
    }
}

/**
 * @title The interface for `TheSpaceRegistry` contract.
 * @notice Storage contract for `TheSpace` contract.
 * @dev It stores all states related to the market, and is owned by the TheSpace contract.
 * @dev The market contract can be upgraded by changing the owner of this contract to the new implementation contract.
 */
interface ITheSpaceRegistry is IERC721Enumerable {
    //////////////////////////////
    /// Error types
    //////////////////////////////

    /**
     * @notice Token id is out of range.
     * @param min Lower range of possible token id.
     * @param max Higher range of possible token id.
     */
    error InvalidTokenId(uint256 min, uint256 max);

    //////////////////////////////
    /// Event types
    //////////////////////////////

    /**
     * @notice A token updated price.
     * @param tokenId Id of token that updated price.
     * @param price New price after update.
     * @param owner Token owner during price update.
     */
    event Price(uint256 indexed tokenId, uint256 price, address indexed owner);

    /**
     * @notice Global configuration is updated.
     * @param option Field of config been updated.
     * @param value New value after update.
     */
    event Config(ConfigOptions indexed option, uint256 value);

    /**
     * @notice Total is updated.
     * @param previousSupply Total supply amount before update.
     * @param newSupply New supply amount after update.
     */
    event TotalSupply(uint256 previousSupply, uint256 newSupply);

    /**
     * @notice Tax is collected for a token.
     * @param tokenId Id of token that has been taxed.
     * @param taxpayer user address who has paid the tax.
     * @param amount Amount of tax been collected.
     */
    event Tax(uint256 indexed tokenId, address indexed taxpayer, uint256 amount);

    /**
     * @notice UBI (universal basic income) is withdrawn for a token.
     * @param tokenId Id of token that UBI has been withdrawn for.
     * @param recipient user address who got this withdrawn UBI.
     * @param amount Amount of UBI withdrawn.
     */
    event UBI(uint256 indexed tokenId, address indexed recipient, uint256 amount);

    /**
     * @notice Treasury is withdrawn.
     * @param recipient address who got this withdrawn treasury.
     * @param amount Amount of withdrawn.
     */
    event Treasury(address indexed recipient, uint256 amount);

    /**
     * @notice A token has been succefully bid.
     * @param tokenId Id of token that has been bid.
     * @param from Original owner before bid.
     * @param to New owner after bid.
     * @param amount Amount of currency used for bidding.
     */
    event Deal(uint256 indexed tokenId, address indexed from, address indexed to, uint256 amount);

    /**
     * @notice Emitted when the color of a pixel is updated.
     * @param tokenId Id of token that has been bid.
     * @param color Color index defined by client.
     * @param owner Token owner.
     */
    event Color(uint256 indexed tokenId, uint256 indexed color, address indexed owner);

    //////////////////////////////
    /// Data structure
    //////////////////////////////

    /**
     * @notice Options for global tax configuration.
     * @param taxRate: Tax rate in bps every 1000 blocks
     * @param treasuryShare: Share to treasury in bps.
     * @param mintTax: Tax to mint a token. It should be non-zero to prevent attacker constantly mint, default and mint token again.
     */
    enum ConfigOptions {
        taxRate,
        treasuryShare,
        mintTax
    }

    /**
     * @notice Record of each token.
     * @param price Current price.
     * @param lastTaxCollection Block number of last tax collection.
     * @param ubiWithdrawn Amount of UBI been withdrawn.
     */
    struct TokenRecord {
        uint256 price;
        uint256 lastTaxCollection;
        uint256 ubiWithdrawn;
    }

    /**
     * @notice Global state of tax and treasury.
     * @param accumulatedUBI Total amount of currency allocated for UBI.
     * @param accumulatedTreasury Total amount of currency allocated for treasury.
     * @param treasuryWithdrawn Total amount of treasury been withdrawn.
     */
    struct TreasuryRecord {
        uint256 accumulatedUBI;
        uint256 accumulatedTreasury;
        uint256 treasuryWithdrawn;
    }

    /**
     * @dev Packed pixel info.
     */
    struct Pixel {
        uint256 tokenId;
        uint256 price;
        uint256 lastTaxCollection;
        uint256 ubi;
        address owner;
        uint256 color;
    }

    //////////////////////////////
    /// Getters & Setters
    //////////////////////////////

    /**
     * @notice Update total supply of ERC721 token.
     * @param totalSupply_ New amount of total supply.
     */
    function setTotalSupply(uint256 totalSupply_) external;

    /**
     * @notice Update global tax settings.
     * @param option_ Tax config options, see {ConfigOptions} for detail.
     * @param value_ New value for tax setting.
     */
    function setTaxConfig(ConfigOptions option_, uint256 value_) external;

    /**
     * @notice Update UBI and treasury.
     * @param accumulatedUBI_ Total amount of currency allocated for UBI.
     * @param accumulatedTreasury_ Total amount of currency allocated for treasury.
     * @param treasuryWithdrawn_ Total amount of treasury been withdrawn.
     */
    function setTreasuryRecord(
        uint256 accumulatedUBI_,
        uint256 accumulatedTreasury_,
        uint256 treasuryWithdrawn_
    ) external;

    /**
     * @notice Set record for a given token.
     * @param tokenId_ Id of token to be set.
     * @param price_ Current price.
     * @param lastTaxCollection_ Block number of last tax collection.
     * @param ubiWithdrawn_ Amount of UBI been withdrawn.
     */
    function setTokenRecord(
        uint256 tokenId_,
        uint256 price_,
        uint256 lastTaxCollection_,
        uint256 ubiWithdrawn_
    ) external;

    /**
     * @notice Set color for a given token.
     * @param tokenId_ Token id to be set.
     * @param color_ Color Id.
     * @param owner_ Token owner.
     */
    function setColor(
        uint256 tokenId_,
        uint256 color_,
        address owner_
    ) external;

    //////////////////////////////
    /// Event emission
    //////////////////////////////

    /**
     * @dev Emit {Tax} event
     */
    function emitTax(
        uint256 tokenId_,
        address taxpayer_,
        uint256 amount_
    ) external;

    /**
     * @dev Emit {Price} event
     */
    function emitPrice(
        uint256 tokenId_,
        uint256 price_,
        address operator_
    ) external;

    /**
     * @dev Emit {UBI} event
     */
    function emitUBI(
        uint256 tokenId_,
        address recipient_,
        uint256 amount_
    ) external;

    /**
     * @dev Emit {Treasury} event
     */
    function emitTreasury(address recipient_, uint256 amount_) external;

    /**
     * @dev Emit {Deal} event
     */
    function emitDeal(
        uint256 tokenId_,
        address from_,
        address to_,
        uint256 amount_
    ) external;

    //////////////////////////////
    /// ERC721 property related
    //////////////////////////////

    /**
     * @dev Mint an ERC721 token.
     */
    function mint(address to_, uint256 tokenId_) external;

    /**
     * @dev Burn an ERC721 token.
     */
    function burn(uint256 tokenId_) external;

    /**
     * @dev Perform ERC721 token transfer by market contract.
     */
    function safeTransferByMarket(
        address from_,
        address to_,
        uint256 tokenId_
    ) external;

    /**
     * @dev If an ERC721 token has been minted.
     */
    function exists(uint256 tokenId_) external view returns (bool);

    /**
     * @dev If an address is allowed to transfer an ERC721 token.
     */
    function isApprovedOrOwner(address spender_, uint256 tokenId_) external view returns (bool);

    //////////////////////////////
    /// ERC20 currency related
    //////////////////////////////

    /**
     * @dev Perform ERC20 token transfer by market contract.
     */
    function transferCurrency(address to_, uint256 amount_) external;

    /**
     * @dev Perform ERC20 token transferFrom by market contract.
     */
    function transferCurrencyFrom(
        address from_,
        address to_,
        uint256 amount_
    ) external;
}

/**
 * @title The interface for `TheSpace` contract
 * @notice _The Space_ is a pixel space owned by a decentralized autonomous organization (DAO), where members can tokenize, own, trade and color pixels.
 *
 * Pixels are tokenized as ERC721 tokens and traded under Harberger tax, while members receive dividend based on the share of pixels they own.
 *
 * #### Trading
 * - User needs to call `approve` on currency contract before starting. If there is not sufficient allowance for taxing, the corresponding assets are defaulted.
 * - User buy pixel: call [`bid` function](./ITheSpace.md).
 * - User set pixel price: call [`setPrice` function](./ITheSpace.md).
 *
 * @dev This contract holds the logic of market place, while read from and write into {TheSpaceRegistry}, which is the storage contact.
 * @dev This contract owns a {TheSpaceRegistry} contract for storage, and can be updated by transfering ownership to a new implementation contract.
 */

interface ITheSpace {
    //////////////////////////////
    /// Error types
    //////////////////////////////

    /**
     * @dev Price too low to bid the given token.
     */
    error PriceTooLow();

    /**
     * @dev Price too high to set.
     */
    error PriceTooHigh(uint256 maxPrice);

    /**
     * @dev Sender is not authorized for given operation.
     */
    error Unauthorized();

    /**
     * @dev The give token does not exist and needs to be minted first via bidding.
     */
    error TokenNotExists();

    //////////////////////////////
    /// Upgradability
    //////////////////////////////

    /**
     * @notice Switch logic contract to another one.
     *
     * @dev Access: only `Role.aclManager`.
     * @dev Throws: `RoleRequired` error.
     *
     * @param newImplementation address of new logic contract.
     */
    function upgradeTo(address newImplementation) external;

    //////////////////////////////
    /// Configuration / Admin
    //////////////////////////////

    /**
     * @notice Update total supply of ERC721 token.
     *
     * @dev Access: only `Role.marketAdmin`.
     * @dev Throws: `RoleRequired` error.
     *
     * @param totalSupply_ New amount of total supply.
     */
    function setTotalSupply(uint256 totalSupply_) external;

    /**
     * @notice Update current tax configuration.
     *
     * @dev Access: only `Role.marketAdmin`.
     * @dev Emits: `Config` event.
     * @dev Throws: `RoleRequired` error.
     *
     * @param option_ Field of config been updated.
     * @param value_ New value after update.
     */
    function setTaxConfig(ITheSpaceRegistry.ConfigOptions option_, uint256 value_) external;

    /**
     * @notice Withdraw all available treasury.
     *
     * @dev Access: only `Role.treasuryAdmin`.
     * @dev Throws: `RoleRequired` error.
     *
     * @param to_ address of DAO treasury.
     */
    function withdrawTreasury(address to_) external;

    /**
     * @notice Set token image URI.
     *
     * @dev Access: only `Role.aclManager`.
     * @dev Throws: `RoleRequired` error.
     *
     * @param uri_ new URI
     */
    function setTokenImageURI(string memory uri_) external;

    //////////////////////////////
    /// Pixel
    //////////////////////////////

    /**
     * @notice Get pixel info.
     * @param tokenId_ Token id to be queried.
     * @return pixel Packed pixel info.
     */
    function getPixel(uint256 tokenId_) external view returns (ITheSpaceRegistry.Pixel memory pixel);

    /**
     * @notice Bid pixel, then set price and color.
     *
     * @dev Throws: inherits from `bid` and `setPrice`.
     *
     * @param tokenId_ Token id to be bid and set.
     * @param bidPrice_ Bid price.
     * @param newPrice_ New price to be set.
     * @param color_ Color to be set.
     */
    function setPixel(
        uint256 tokenId_,
        uint256 bidPrice_,
        uint256 newPrice_,
        uint256 color_
    ) external;

    /**
     * @notice Set color for a pixel.
     *
     * @dev Access: only token owner or approved operator.
     * @dev Throws: `Unauthorized` or `ERC721: operator query for nonexistent token` error.
     * @dev Emits: `Color` event.
     *
     * @param tokenId_ Token id to be set.
     * @param color_ Color to be set.
     */
    function setColor(uint256 tokenId_, uint256 color_) external;

    /**
     * @notice Get color for a pixel.
     * @param tokenId_ Token id to be queried.
     * @return color Color.
     */
    function getColor(uint256 tokenId_) external view returns (uint256 color);

    /**
     * @notice Get pixels owned by a given address.
     * @param owner_ Owner address.
     * @param limit_ Limit of returned pixels.
     * @param offset_ Offset of returned pixels.
     * @return total Total number of pixels.
     * @return limit Limit of returned pixels.
     * @return offset Offset of returned pixels.
     * @return pixels Packed pixels.
     * @dev offset-based pagination
     */
    function getPixelsByOwner(
        address owner_,
        uint256 limit_,
        uint256 offset_
    )
        external
        view
        returns (
            uint256 total,
            uint256 limit,
            uint256 offset,
            ITheSpaceRegistry.Pixel[] memory pixels
        );

    //////////////////////////////
    /// Trading
    //////////////////////////////

    /**
     * @notice Returns the current price of a token by id.
     * @param tokenId_ Token id to be queried.
     * @return price Current price.
     */
    function getPrice(uint256 tokenId_) external view returns (uint256 price);

    /**
     * @notice Set the current price of a token with id. Triggers tax settle first, price is succefully updated after tax is successfully collected.
     *
     * @dev Access: only token owner or approved operator.
     * @dev Throws: `Unauthorized` or `ERC721: operator query for nonexistent token` error.
     * @dev Emits: `Price` event.
     *
     * @param tokenId_ Id of token been updated.
     * @param price_ New price to be updated.
     */
    function setPrice(uint256 tokenId_, uint256 price_) external;

    /**
     * @notice Returns the current owner of an Harberger property with token id.
     * @dev If token does not exisit, return zero address and user can bid the token as usual.
     * @param tokenId_ Token id to be queried.
     * @return owner Current owner address.
     */
    function getOwner(uint256 tokenId_) external view returns (address owner);

    /**
     * @notice Purchase property with bid higher than current price.
     * If bid price is higher than ask price, only ask price will be deducted.
     * @dev Clear tax for owner before transfer.
     *
     * @dev Throws: `PriceTooLow` or `InvalidTokenId` error.
     * @dev Emits: `Deal`, `Tax` events.
     *
     * @param tokenId_ Id of token been bid.
     * @param price_ Bid price.
     */
    function bid(uint256 tokenId_, uint256 price_) external;

    //////////////////////////////
    /// Tax & UBI
    //////////////////////////////

    /**
     * @notice Calculate outstanding tax for a token.
     * @param tokenId_ Token id to be queried.
     * @return amount Current amount of tax that needs to be paid.
     */
    function getTax(uint256 tokenId_) external view returns (uint256 amount);

    /**
     * @notice Calculate amount of tax that can be collected, and determine if token should be defaulted.
     * @param tokenId_ Token id to be queried.
     * @return collectable Amount of currency that can be collected, considering balance and allowance.
     * @return shouldDefault Whether current token should be defaulted.
     */
    function evaluateOwnership(uint256 tokenId_) external view returns (uint256 collectable, bool shouldDefault);

    /**
     * @notice Collect outstanding tax of a token and default it if needed.
     * @dev Anyone can trigger this function. It could be desirable for the developer team to trigger it once a while to make sure all tokens meet their tax obligation.
     *
     * @dev Throws: `PriceTooLow` or `InvalidTokenId` error.
     * @dev Emits: `Tax` events.
     *
     * @param tokenId_ Id of token been settled.
     * @return success Whether tax is fully collected without token been defaulted.
     */
    function settleTax(uint256 tokenId_) external returns (bool success);

    /**
     * @notice Amount of UBI available for withdraw on given token.
     * @param tokenId_ Token id to be queried.
     * @param amount Amount of UBI available to be collected
     */
    function ubiAvailable(uint256 tokenId_) external view returns (uint256 amount);

    /**
     * @notice Withdraw all UBI on given token.
     *
     * @dev Emits: `UBI` event.
     *
     * @param tokenId_ Id of token been withdrawn.
     */
    function withdrawUbi(uint256 tokenId_) external;

    //////////////////////////////
    /// Registry backcall
    //////////////////////////////

    /**
     * @notice Perform before `safeTransfer` and `safeTransferFrom` by registry contract.
     * @dev Collect tax and set price.
     *
     * @dev Access: only registry.
     * @dev Throws: `Unauthorized` error.
     *
     * @param tokenId_ Token id to be transferred.
     * @return success Whether tax is fully collected without token been defaulted.
     */
    function _beforeTransferByRegistry(uint256 tokenId_) external returns (bool success);

    /**
     * @notice Get token URI by registry contract.
     *
     * @dev Access: only registry.
     * @dev Throws: `Unauthorized` or `TokenNotExists` error.
     *
     * @param tokenId_ Token id to be transferred.
     * @return uri Base64 encoded URI.
     */
    function _tokenURI(uint256 tokenId_) external view returns (string memory uri);
}

contract TheSpaceRegistry is ITheSpaceRegistry, ERC721Enumerable, Ownable {
    /**
     * @dev Total possible number of ERC721 token
     */
    uint256 private _totalSupply;

    /**
     * @dev ERC20 token used as currency
     */
    ERC20 public immutable currency;

    /**
     * @dev Record for all tokens (tokenId => TokenRecord).
     */
    mapping(uint256 => TokenRecord) public tokenRecord;

    /**
     * @dev Color of each token.
     */
    mapping(uint256 => uint256) public pixelColor;

    /**
     * @dev Tax configuration of market.
     */
    mapping(ConfigOptions => uint256) public taxConfig;

    /**
     * @dev Global state of tax and treasury.
     */
    TreasuryRecord public treasuryRecord;

    /**
     * @dev Create Property contract, setup attached currency contract, setup tax rate.
     */
    constructor(
        string memory propertyName_,
        string memory propertySymbol_,
        uint256 totalSupply_,
        uint256 taxRate_,
        uint256 treasuryShare_,
        uint256 mintTax_,
        address currencyAddress_
    ) ERC721(propertyName_, propertySymbol_) {
        // initialize total supply
        _totalSupply = totalSupply_;

        // initialize currency contract
        currency = ERC20(currencyAddress_);

        // initialize tax config
        taxConfig[ConfigOptions.taxRate] = taxRate_;
        emit Config(ConfigOptions.taxRate, taxRate_);
        taxConfig[ConfigOptions.treasuryShare] = treasuryShare_;
        emit Config(ConfigOptions.treasuryShare, treasuryShare_);
        taxConfig[ConfigOptions.mintTax] = mintTax_;
        emit Config(ConfigOptions.mintTax, mintTax_);
    }

    //////////////////////////////
    /// Getters & Setters
    //////////////////////////////

    /**
     * @notice See {IERC20-totalSupply}.
     * @dev Always return total possible amount of supply, instead of current token in circulation.
     */
    function totalSupply() public view override(ERC721Enumerable, IERC721Enumerable) returns (uint256) {
        return _totalSupply;
    }

    //////////////////////////////
    /// Setters for global variables
    //////////////////////////////

    /// @inheritdoc ITheSpaceRegistry
    function setTotalSupply(uint256 totalSupply_) external onlyOwner {
        emit TotalSupply(_totalSupply, totalSupply_);

        _totalSupply = totalSupply_;
    }

    /// @inheritdoc ITheSpaceRegistry
    function setTaxConfig(ConfigOptions option_, uint256 value_) external onlyOwner {
        taxConfig[option_] = value_;

        emit Config(option_, value_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function setTreasuryRecord(
        uint256 accumulatedUBI_,
        uint256 accumulatedTreasury_,
        uint256 treasuryWithdrawn_
    ) external onlyOwner {
        treasuryRecord = TreasuryRecord(accumulatedUBI_, accumulatedTreasury_, treasuryWithdrawn_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function setTokenRecord(
        uint256 tokenId_,
        uint256 price_,
        uint256 lastTaxCollection_,
        uint256 ubiWithdrawn_
    ) external onlyOwner {
        tokenRecord[tokenId_] = TokenRecord(price_, lastTaxCollection_, ubiWithdrawn_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function setColor(
        uint256 tokenId_,
        uint256 color_,
        address owner_
    ) external onlyOwner {
        pixelColor[tokenId_] = color_;
        emit Color(tokenId_, color_, owner_);
    }

    //////////////////////////////
    /// Event emission
    //////////////////////////////

    /// @inheritdoc ITheSpaceRegistry
    function emitTax(
        uint256 tokenId_,
        address taxpayer_,
        uint256 amount_
    ) external onlyOwner {
        emit Tax(tokenId_, taxpayer_, amount_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function emitPrice(
        uint256 tokenId_,
        uint256 price_,
        address operator_
    ) external onlyOwner {
        emit Price(tokenId_, price_, operator_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function emitUBI(
        uint256 tokenId_,
        address recipient_,
        uint256 amount_
    ) external onlyOwner {
        emit UBI(tokenId_, recipient_, amount_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function emitTreasury(address recipient_, uint256 amount_) external onlyOwner {
        emit Treasury(recipient_, amount_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function emitDeal(
        uint256 tokenId_,
        address from_,
        address to_,
        uint256 amount_
    ) external onlyOwner {
        emit Deal(tokenId_, from_, to_, amount_);
    }

    //////////////////////////////
    /// ERC721 property related
    //////////////////////////////

    /// @inheritdoc ITheSpaceRegistry
    function mint(address to_, uint256 tokenId_) external onlyOwner {
        if (tokenId_ > _totalSupply || tokenId_ < 1) revert InvalidTokenId(1, _totalSupply);
        _safeMint(to_, tokenId_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function burn(uint256 tokenId_) external onlyOwner {
        _burn(tokenId_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function safeTransferByMarket(
        address from_,
        address to_,
        uint256 tokenId_
    ) external onlyOwner {
        _safeTransfer(from_, to_, tokenId_, "");
    }

    /// @inheritdoc ITheSpaceRegistry
    function exists(uint256 tokenId_) external view returns (bool) {
        return _exists(tokenId_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function isApprovedOrOwner(address spender_, uint256 tokenId_) external view returns (bool) {
        return _isApprovedOrOwner(spender_, tokenId_);
    }

    /**
     * @notice See {IERC721-transferFrom}.
     * @dev Override to collect tax and set price before transfer.
     */
    function transferFrom(
        address from_,
        address to_,
        uint256 tokenId_
    ) public override(ERC721, IERC721) {
        safeTransferFrom(from_, to_, tokenId_, "");
    }

    /**
     * @notice See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from_,
        address to_,
        uint256 tokenId_,
        bytes memory data_
    ) public override(ERC721, IERC721) {
        // solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(msg.sender, tokenId_), "ERC721: transfer caller is not owner nor approved");

        ITheSpace market = ITheSpace(owner());

        bool success = market._beforeTransferByRegistry(tokenId_);

        if (success) {
            _safeTransfer(from_, to_, tokenId_, data_);
        }
    }

    /**
     * @notice See {IERC721-tokenURI}.
     */
    function tokenURI(uint256 tokenId_) public view override returns (string memory uri) {
        ITheSpace market = ITheSpace(owner());

        uri = market._tokenURI(tokenId_);
    }

    //////////////////////////////
    /// ERC20 currency related
    //////////////////////////////

    /// @inheritdoc ITheSpaceRegistry
    function transferCurrency(address to_, uint256 amount_) external onlyOwner {
        currency.transfer(to_, amount_);
    }

    /// @inheritdoc ITheSpaceRegistry
    function transferCurrencyFrom(
        address from_,
        address to_,
        uint256 amount_
    ) external onlyOwner {
        currency.transferFrom(from_, to_, amount_);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"propertyName_","type":"string"},{"internalType":"string","name":"propertySymbol_","type":"string"},{"internalType":"uint256","name":"totalSupply_","type":"uint256"},{"internalType":"uint256","name":"taxRate_","type":"uint256"},{"internalType":"uint256","name":"treasuryShare_","type":"uint256"},{"internalType":"uint256","name":"mintTax_","type":"uint256"},{"internalType":"address","name":"currencyAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"min","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"InvalidTokenId","type":"error"},{"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":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"color","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"Color","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum ITheSpaceRegistry.ConfigOptions","name":"option","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Config","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deal","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":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"Price","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"taxpayer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Tax","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newSupply","type":"uint256"}],"name":"TotalSupply","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":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Treasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UBI","type":"event"},{"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":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currency","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"emitDeal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"address","name":"operator_","type":"address"}],"name":"emitPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"address","name":"taxpayer_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"emitTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"emitTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"emitUBI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pixelColor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"safeTransferByMarket","outputs":[],"stateMutability":"nonpayable","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"uint256","name":"color_","type":"uint256"},{"internalType":"address","name":"owner_","type":"address"}],"name":"setColor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ITheSpaceRegistry.ConfigOptions","name":"option_","type":"uint8"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"setTaxConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"lastTaxCollection_","type":"uint256"},{"internalType":"uint256","name":"ubiWithdrawn_","type":"uint256"}],"name":"setTokenRecord","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalSupply_","type":"uint256"}],"name":"setTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"accumulatedUBI_","type":"uint256"},{"internalType":"uint256","name":"accumulatedTreasury_","type":"uint256"},{"internalType":"uint256","name":"treasuryWithdrawn_","type":"uint256"}],"name":"setTreasuryRecord","outputs":[],"stateMutability":"nonpayable","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":"enum ITheSpaceRegistry.ConfigOptions","name":"","type":"uint8"}],"name":"taxConfig","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenRecord","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"lastTaxCollection","type":"uint256"},{"internalType":"uint256","name":"ubiWithdrawn","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"transferCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"transferCurrencyFrom","outputs":[],"stateMutability":"nonpayable","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"},{"inputs":[],"name":"treasuryRecord","outputs":[{"internalType":"uint256","name":"accumulatedUBI","type":"uint256"},{"internalType":"uint256","name":"accumulatedTreasury","type":"uint256"},{"internalType":"uint256","name":"treasuryWithdrawn","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b506040516200299438038062002994833981016040819052620000349162000365565b8651879087906200004d906000906020850190620001f2565b50805162000063906001906020840190620001f2565b505050620000806200007a6200019c60201b60201c565b620001a0565b600b8590556001600160a01b0381166080526000808052600e60209081527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c86905560408051878152905160008051602062002974833981519152929181900390910190a260016000819052600e60209081527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be95820785905560408051868152905160008051602062002974833981519152929181900390910190a260026000819052600e60209081527f9adb202b1492743bc00c81d33cdc6423fa8c79109027eb6a845391e8fc1f048184905560408051858152905160008051602062002974833981519152929181900390910190a25050505050505062000452565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002009062000416565b90600052602060002090601f0160209004810192826200022457600085556200026f565b82601f106200023f57805160ff19168380011785556200026f565b828001600101855582156200026f579182015b828111156200026f57825182559160200191906001019062000252565b506200027d92915062000281565b5090565b5b808211156200027d576000815560010162000282565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002c057600080fd5b81516001600160401b0380821115620002dd57620002dd62000298565b604051601f8301601f19908116603f0116810190828211818310171562000308576200030862000298565b816040528381526020925086838588010111156200032557600080fd5b600091505b838210156200034957858201830151818301840152908201906200032a565b838211156200035b5760008385830101525b9695505050505050565b600080600080600080600060e0888a0312156200038157600080fd5b87516001600160401b03808211156200039957600080fd5b620003a78b838c01620002ae565b985060208a0151915080821115620003be57600080fd5b50620003cd8a828b01620002ae565b96505060408801519450606088015193506080880151925060a0880151915060c088015160018060a01b03811681146200040657600080fd5b8091505092959891949750929550565b600181811c908216806200042b57607f821691505b6020821081036200044c57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516124f86200047c6000396000818161053e01528181610dec015261121d01526124f86000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c80635d47440411610146578063b3e4ee22116100c3578063e5a6b10f11610087578063e5a6b10f14610539578063e7d6fbbf14610560578063e985e9c514610580578063ecaf822a146105bc578063f2fde38b146105cf578063f7ea7a3d146105e257600080fd5b8063b3e4ee22146104da578063b88d4fde146104ed578063c87b56dd14610500578063d17d14c514610513578063e3759abd1461052657600080fd5b8063864370071161010a57806386437007146104885780638da5cb5b1461049b57806395d89b41146104ac578063a22cb465146104b4578063a5e59fb2146104c757600080fd5b80635d474404146104185780636352211e1461044757806370a082311461045a578063715018a61461046d57806376a91e6c1461047557600080fd5b806340c10f19116101d45780634f558e79116101985780634f558e79146103b95780634f6ccce7146103cc5780635701e25d146103df578063583d4248146103f2578063585008841461040557600080fd5b806340c10f191461035357806342842e0e1461031a57806342966c6814610366578063430c2081146103795780634d7c7dc71461038c57600080fd5b806318160ddd1161021b57806318160ddd146102e85780631d8d0f48146102fa57806323b872dd1461031a5780632b2163b31461032d5780632f745c591461034057600080fd5b806301ffc9a71461025857806306fdde0314610280578063081812fc14610295578063095ea7b3146102c05780631164da76146102d5575b600080fd5b61026b610266366004611e7a565b6105f5565b60405190151581526020015b60405180910390f35b610288610620565b6040516102779190611eef565b6102a86102a3366004611f02565b6106b2565b6040516001600160a01b039091168152602001610277565b6102d36102ce366004611f37565b61074c565b005b6102d36102e3366004611f61565b610861565b600b545b604051908152602001610277565b6102ec610308366004611f02565b600d6020526000908152604090205481565b6102d3610328366004611f96565b6108d4565b6102d361033b366004611f61565b6108ef565b6102ec61034e366004611f37565b610955565b6102d3610361366004611f37565b6109eb565b6102d3610374366004611f02565b610a5f565b61026b610387366004611f37565b610a95565b600f5460105460115461039e92919083565b60408051938452602084019290925290820152606001610277565b61026b6103c7366004611f02565b610aa8565b6102ec6103da366004611f02565b610ac7565b6102d36103ed366004611f37565b610b5a565b6102d3610400366004611fc2565b610bcb565b6102d3610413366004611f96565b610c1b565b61039e610426366004611f02565b600c6020526000908152604090208054600182015460029092015490919083565b6102a8610455366004611f02565b610c60565b6102ec610468366004611fee565b610cd7565b6102d3610d5e565b6102d3610483366004611f96565b610d94565b6102d3610496366004612009565b610e5f565b600a546001600160a01b03166102a8565b610288610edd565b6102d36104c236600461205b565b610eec565b6102d36104d5366004612092565b610ef7565b6102d36104e83660046120c7565b610f6b565b6102d36104fb366004612168565b610fd0565b61028861050e366004611f02565b6110e1565b6102d3610521366004612092565b611167565b6102d3610534366004611f37565b6111cd565b6102a87f000000000000000000000000000000000000000000000000000000000000000081565b6102ec61056e366004612222565b600e6020526000908152604090205481565b61026b61058e36600461223d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102d36105ca366004612270565b61128a565b6102d36105dd366004611fee565b61132f565b6102d36105f0366004611f02565b6113c7565b60006001600160e01b0319821663780e9d6360e01b148061061a575061061a82611432565b92915050565b60606000805461062f9061228c565b80601f016020809104026020016040519081016040528092919081815260200182805461065b9061228c565b80156106a85780601f1061067d576101008083540402835291602001916106a8565b820191906000526020600020905b81548152906001019060200180831161068b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075782610c60565b9050806001600160a01b0316836001600160a01b0316036107c45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610727565b336001600160a01b03821614806107e057506107e0813361058e565b6108525760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610727565b61085c8383611482565b505050565b600a546001600160a01b0316331461088b5760405162461bcd60e51b8152600401610727906122c6565b816001600160a01b0316837fa760fe80056c46d089c37a35d9dbe762141a463ae0eb8235522d27ab9595286d836040516108c791815260200190565b60405180910390a3505050565b61085c83838360405180602001604052806000815250610fd0565b600a546001600160a01b031633146109195760405162461bcd60e51b8152600401610727906122c6565b816001600160a01b0316837fc5790222911f43ca7d78c4f5ef5cb5a21d7fda4d923d433b80e7db9c295de88a836040516108c791815260200190565b600061096083610cd7565b82106109c25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610727565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a155760405162461bcd60e51b8152600401610727906122c6565b600b54811180610a255750600181105b15610a5157600b5460405163168a450960e21b8152600160048201526024810191909152604401610727565b610a5b82826114f0565b5050565b600a546001600160a01b03163314610a895760405162461bcd60e51b8152600401610727906122c6565b610a928161150a565b50565b6000610aa183836115b1565b9392505050565b6000818152600260205260408120546001600160a01b0316151561061a565b6000610ad260085490565b8210610b355760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610727565b60088281548110610b4857610b486122fb565b90600052602060002001549050919050565b600a546001600160a01b03163314610b845760405162461bcd60e51b8152600401610727906122c6565b816001600160a01b03167f782743bed566521eb169ba5186430a0e29079bfd1bdf4fc061bd63b48729846682604051610bbf91815260200190565b60405180910390a25050565b600a546001600160a01b03163314610bf55760405162461bcd60e51b8152600401610727906122c6565b604080516060810182528481526020810184905201819052600f92909255601055601155565b600a546001600160a01b03163314610c455760405162461bcd60e51b8152600401610727906122c6565b61085c838383604051806020016040528060008152506116a8565b6000818152600260205260408120546001600160a01b03168061061a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610727565b60006001600160a01b038216610d425760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610727565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610d885760405162461bcd60e51b8152600401610727906122c6565b610d9260006116db565b565b600a546001600160a01b03163314610dbe5760405162461bcd60e51b8152600401610727906122c6565b6040516323b872dd60e01b81526001600160a01b0384811660048301528381166024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af1158015610e35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e599190612311565b50505050565b600a546001600160a01b03163314610e895760405162461bcd60e51b8152600401610727906122c6565b816001600160a01b0316836001600160a01b0316857fc12a40285e912bef139dd458d6bb29f54ba3b7bb9513d442a8c16a3f0a649eed84604051610ecf91815260200190565b60405180910390a450505050565b60606001805461062f9061228c565b610a5b33838361172d565b600a546001600160a01b03163314610f215760405162461bcd60e51b8152600401610727906122c6565b6000838152600d6020526040808220849055516001600160a01b03831691849186917f8da7074ffa2c919782faaf9705c7edfe7f814551a91b91aed83ee2ef5ac6af2791a4505050565b600a546001600160a01b03163314610f955760405162461bcd60e51b8152600401610727906122c6565b6040805160608101825293845260208085019384528482019283526000958652600c9052909320915182555160018201559051600290910155565b610fda33836115b1565b6110405760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610727565b6000611054600a546001600160a01b031690565b604051633f8c2b5b60e01b8152600481018590529091506000906001600160a01b03831690633f8c2b5b906024016020604051808303816000875af11580156110a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c59190612311565b905080156110d9576110d9868686866116a8565b505050505050565b606060006110f7600a546001600160a01b031690565b60405163468bf38960e11b8152600481018590529091506001600160a01b03821690638d17e71290602401600060405180830381865afa15801561113f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610aa1919081019061232e565b600a546001600160a01b031633146111915760405162461bcd60e51b8152600401610727906122c6565b806001600160a01b0316837f75a0543aefc16d03b25751bdf0b5a2fbbec05c6436fd60b038d40f5b7d1def83846040516108c791815260200190565b600a546001600160a01b031633146111f75760405162461bcd60e51b8152600401610727906122c6565b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015611266573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085c9190612311565b600a546001600160a01b031633146112b45760405162461bcd60e51b8152600401610727906122c6565b80600e60008460028111156112cb576112cb6123a5565b60028111156112dc576112dc6123a5565b81526020810191909152604001600020558160028111156112ff576112ff6123a5565b6040518281527f90e64b63a2c952a97e60fcb9bdb464e5e76d2920683504331028687f0cd6643b90602001610bbf565b600a546001600160a01b031633146113595760405162461bcd60e51b8152600401610727906122c6565b6001600160a01b0381166113be5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610727565b610a92816116db565b600a546001600160a01b031633146113f15760405162461bcd60e51b8152600401610727906122c6565b600b5460408051918252602082018390527fce065be89501ad8aef77e0eb0160264c2d1eb1732a004bcb98735bb0b8102205910160405180910390a1600b55565b60006001600160e01b031982166380ac58cd60e01b148061146357506001600160e01b03198216635b5e139f60e01b145b8061061a57506301ffc9a760e01b6001600160e01b031983161461061a565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114b782610c60565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610a5b8282604051806020016040528060008152506117f3565b600061151582610c60565b905061152381600084611826565b61152e600083611482565b6001600160a01b03811660009081526003602052604081208054600192906115579084906123d1565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000818152600260205260408120546001600160a01b031661162a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610727565b600061163583610c60565b9050806001600160a01b0316846001600160a01b031614806116705750836001600160a01b0316611665846106b2565b6001600160a01b0316145b806116a057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b6116b38484846118de565b6116bf84848484611a85565b610e595760405162461bcd60e51b8152600401610727906123e8565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361178e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610727565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191016108c7565b6117fd8383611b86565b61180a6000848484611a85565b61085c5760405162461bcd60e51b8152600401610727906123e8565b6001600160a01b0383166118815761187c81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6118a4565b816001600160a01b0316836001600160a01b0316146118a4576118a48382611cd4565b6001600160a01b0382166118bb5761085c81611d71565b826001600160a01b0316826001600160a01b03161461085c5761085c8282611e20565b826001600160a01b03166118f182610c60565b6001600160a01b0316146119555760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610727565b6001600160a01b0382166119b75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610727565b6119c2838383611826565b6119cd600082611482565b6001600160a01b03831660009081526003602052604081208054600192906119f69084906123d1565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a2490849061243a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b15611b7b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ac9903390899088908890600401612452565b6020604051808303816000875af1925050508015611b04575060408051601f3d908101601f19168201909252611b019181019061248f565b60015b611b61573d808015611b32576040519150601f19603f3d011682016040523d82523d6000602084013e611b37565b606091505b508051600003611b595760405162461bcd60e51b8152600401610727906123e8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116a0565b506001949350505050565b6001600160a01b038216611bdc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610727565b6000818152600260205260409020546001600160a01b031615611c415760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610727565b611c4d60008383611826565b6001600160a01b0382166000908152600360205260408120805460019290611c7690849061243a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001611ce184610cd7565b611ceb91906123d1565b600083815260076020526040902054909150808214611d3e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611d83906001906123d1565b60008381526009602052604081205460088054939450909284908110611dab57611dab6122fb565b906000526020600020015490508060088381548110611dcc57611dcc6122fb565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611e0457611e046124ac565b6001900381819060005260206000200160009055905550505050565b6000611e2b83610cd7565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114610a9257600080fd5b600060208284031215611e8c57600080fd5b8135610aa181611e64565b60005b83811015611eb2578181015183820152602001611e9a565b83811115610e595750506000910152565b60008151808452611edb816020860160208601611e97565b601f01601f19169290920160200192915050565b602081526000610aa16020830184611ec3565b600060208284031215611f1457600080fd5b5035919050565b80356001600160a01b0381168114611f3257600080fd5b919050565b60008060408385031215611f4a57600080fd5b611f5383611f1b565b946020939093013593505050565b600080600060608486031215611f7657600080fd5b83359250611f8660208501611f1b565b9150604084013590509250925092565b600080600060608486031215611fab57600080fd5b611fb484611f1b565b9250611f8660208501611f1b565b600080600060608486031215611fd757600080fd5b505081359360208301359350604090920135919050565b60006020828403121561200057600080fd5b610aa182611f1b565b6000806000806080858703121561201f57600080fd5b8435935061202f60208601611f1b565b925061203d60408601611f1b565b9396929550929360600135925050565b8015158114610a9257600080fd5b6000806040838503121561206e57600080fd5b61207783611f1b565b915060208301356120878161204d565b809150509250929050565b6000806000606084860312156120a757600080fd5b83359250602084013591506120be60408501611f1b565b90509250925092565b600080600080608085870312156120dd57600080fd5b5050823594602084013594506040840135936060013592509050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612138576121386120f9565b604052919050565b600067ffffffffffffffff82111561215a5761215a6120f9565b50601f01601f191660200190565b6000806000806080858703121561217e57600080fd5b61218785611f1b565b935061219560208601611f1b565b925060408501359150606085013567ffffffffffffffff8111156121b857600080fd5b8501601f810187136121c957600080fd5b80356121dc6121d782612140565b61210f565b8181528860208385010111156121f157600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b803560038110611f3257600080fd5b60006020828403121561223457600080fd5b610aa182612213565b6000806040838503121561225057600080fd5b61225983611f1b565b915061226760208401611f1b565b90509250929050565b6000806040838503121561228357600080fd5b611f5383612213565b600181811c908216806122a057607f821691505b6020821081036122c057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561232357600080fd5b8151610aa18161204d565b60006020828403121561234057600080fd5b815167ffffffffffffffff81111561235757600080fd5b8201601f8101841361236857600080fd5b80516123766121d782612140565b81815285602083850101111561238b57600080fd5b61239c826020830160208601611e97565b95945050505050565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156123e3576123e36123bb565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000821982111561244d5761244d6123bb565b500190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061248590830184611ec3565b9695505050505050565b6000602082840312156124a157600080fd5b8151610aa181611e64565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a4486a95fb302039e97091d89901e50103de8ad02f52ad032b2dd5f1a436dae864736f6c634300080d003390e64b63a2c952a97e60fcb9bdb464e5e76d2920683504331028687f0cd6643b00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000264808855b0a6a5a318d238c6ee9f299179f27fc0000000000000000000000000000000000000000000000000000000000000006506c616e636b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003504c4b0000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000264808855b0a6a5a318d238c6ee9f299179f27fc0000000000000000000000000000000000000000000000000000000000000006506c616e636b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003504c4b0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : propertyName_ (string): Planck
Arg [1] : propertySymbol_ (string): PLK
Arg [2] : totalSupply_ (uint256): 1000000
Arg [3] : taxRate_ (uint256): 12
Arg [4] : treasuryShare_ (uint256): 0
Arg [5] : mintTax_ (uint256): 1000000000000000000
Arg [6] : currencyAddress_ (address): 0x264808855b0a6a5a318d238c6ee9f299179f27fc

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 00000000000000000000000000000000000000000000000000000000000f4240
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [6] : 000000000000000000000000264808855b0a6a5a318d238c6ee9f299179f27fc
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 506c616e636b0000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 504c4b0000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

78833:7582:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51529:224;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;51529:224:0;;;;;;;;37594:100;;;:::i;:::-;;;;;;;:::i;39153:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;39153:221:0;1528:203:1;38676:411:0;;;;;;:::i;:::-;;:::i;:::-;;82994:183;;;;;;:::i;:::-;;:::i;80816:137::-;80933:12;;80816:137;;;2646:25:1;;;2634:2;2619:18;80816:137:0;2500:177:1;79310:45:0;;;;;;:::i;:::-;;;;;;;;;;;;;;84819:196;;;;;;:::i;:::-;;:::i;82536:181::-;;;;;;:::i;:::-;;:::i;51837:256::-;;;;;;:::i;:::-;;:::i;83758:201::-;;;;;;:::i;:::-;;:::i;84006:85::-;;;;;;:::i;:::-;;:::i;84525:156::-;;;;;;:::i;:::-;;:::i;79548:36::-;;;;;;;;;;;;;;;;;3217:25:1;;;3273:2;3258:18;;3251:34;;;;3301:18;;;3294:34;3205:2;3190:18;79548:36:0;3015:319:1;84372:106:0;;;;;;:::i;:::-;;:::i;52359:233::-;;;;;;:::i;:::-;;:::i;83224:131::-;;;;;;:::i;:::-;;:::i;81541:272::-;;;;;;:::i;:::-;;:::i;84138:187::-;;;;;;:::i;:::-;;:::i;79199:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;37288:239;;;;;;:::i;:::-;;:::i;37018:208::-;;;;;;:::i;:::-;;:::i;59304:103::-;;;:::i;86223:189::-;;;;;;:::i;:::-;;:::i;83402:202::-;;;;;;:::i;:::-;;:::i;58653:87::-;58726:6;;-1:-1:-1;;;;;58726:6:0;58653:87;;37763:104;;;:::i;39446:155::-;;;;;;:::i;:::-;;:::i;82175:216::-;;;;;;:::i;:::-;;:::i;81860:268::-;;;;;;:::i;:::-;;:::i;85089:557::-;;;;;;:::i;:::-;;:::i;85712:186::-;;;;;;:::i;:::-;;:::i;82764:183::-;;;;;;:::i;:::-;;:::i;86051:125::-;;;;;;:::i;:::-;;:::i;79080:31::-;;;;;79424:50;;;;;;:::i;:::-;;;;;;;;;;;;;;39672:164;;;;;;:::i;:::-;-1:-1:-1;;;;;39793:25:0;;;39769:4;39793:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;39672:164;81327:167;;;;;;:::i;:::-;;:::i;59562:201::-;;;;;;:::i;:::-;;:::i;81112:168::-;;;;;;:::i;:::-;;:::i;51529:224::-;51631:4;-1:-1:-1;;;;;;51655:50:0;;-1:-1:-1;;;51655:50:0;;:90;;;51709:36;51733:11;51709:23;:36::i;:::-;51648:97;51529:224;-1:-1:-1;;51529:224:0:o;37594:100::-;37648:13;37681:5;37674:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37594:100;:::o;39153:221::-;39229:7;42496:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42496:16:0;39249:73;;;;-1:-1:-1;;;39249:73:0;;8649:2:1;39249:73:0;;;8631:21:1;8688:2;8668:18;;;8661:30;8727:34;8707:18;;;8700:62;-1:-1:-1;;;8778:18:1;;;8771:42;8830:19;;39249:73:0;;;;;;;;;-1:-1:-1;39342:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;39342:24:0;;39153:221::o;38676:411::-;38757:13;38773:23;38788:7;38773:14;:23::i;:::-;38757:39;;38821:5;-1:-1:-1;;;;;38815:11:0;:2;-1:-1:-1;;;;;38815:11:0;;38807:57;;;;-1:-1:-1;;;38807:57:0;;9062:2:1;38807:57:0;;;9044:21:1;9101:2;9081:18;;;9074:30;9140:34;9120:18;;;9113:62;-1:-1:-1;;;9191:18:1;;;9184:31;9232:19;;38807:57:0;8860:397:1;38807:57:0;4237:10;-1:-1:-1;;;;;38899:21:0;;;;:62;;-1:-1:-1;38924:37:0;38941:5;4237:10;39672:164;:::i;38924:37::-;38877:168;;;;-1:-1:-1;;;38877:168:0;;9464:2:1;38877:168:0;;;9446:21:1;9503:2;9483:18;;;9476:30;9542:34;9522:18;;;9515:62;9613:26;9593:18;;;9586:54;9657:19;;38877:168:0;9262:420:1;38877:168:0;39058:21;39067:2;39071:7;39058:8;:21::i;:::-;38746:341;38676:411;;:::o;82994:183::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;83149:10:::1;-1:-1:-1::0;;;;;83135:34:0::1;83139:8;83135:34;83161:7;83135:34;;;;2646:25:1::0;;2634:2;2619:18;;2500:177;83135:34:0::1;;;;;;;;82994:183:::0;;;:::o;84819:196::-;84965:42;84982:5;84989:3;84994:8;84965:42;;;;;;;;;;;;:16;:42::i;82536:181::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;82690:9:::1;-1:-1:-1::0;;;;;82676:33:0::1;82680:8;82676:33;82701:7;82676:33;;;;2646:25:1::0;;2634:2;2619:18;;2500:177;51837:256:0;51934:7;51970:23;51987:5;51970:16;:23::i;:::-;51962:5;:31;51954:87;;;;-1:-1:-1;;;51954:87:0;;10250:2:1;51954:87:0;;;10232:21:1;10289:2;10269:18;;;10262:30;10328:34;10308:18;;;10301:62;-1:-1:-1;;;10379:18:1;;;10372:41;10430:19;;51954:87:0;10048:407:1;51954:87:0;-1:-1:-1;;;;;;52059:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;51837:256::o;83758:201::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;83848:12:::1;;83837:8;:23;:39;;;;83875:1;83864:8;:12;83837:39;83833:83;;;83903:12;::::0;83885:31:::1;::::0;-1:-1:-1;;;83885:31:0;;83900:1:::1;83885:31;::::0;::::1;10642:25:1::0;10683:18;;;10676:34;;;;10615:18;;83885:31:0::1;10460:256:1::0;83833:83:0::1;83927:24;83937:3;83942:8;83927:9;:24::i;:::-;83758:201:::0;;:::o;84006:85::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;84068:15:::1;84074:8;84068:5;:15::i;:::-;84006:85:::0;:::o;84525:156::-;84611:4;84635:38;84654:8;84664;84635:18;:38::i;:::-;84628:45;84525:156;-1:-1:-1;;;84525:156:0:o;84372:106::-;84429:4;42496:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42496:16:0;:30;;84453:17;42407:127;52359:233;52434:7;52470:30;52257:10;:17;;52169:113;52470:30;52462:5;:38;52454:95;;;;-1:-1:-1;;;52454:95:0;;10923:2:1;52454:95:0;;;10905:21:1;10962:2;10942:18;;;10935:30;11001:34;10981:18;;;10974:62;-1:-1:-1;;;11052:18:1;;;11045:42;11104:19;;52454:95:0;10721:408:1;52454:95:0;52567:10;52578:5;52567:17;;;;;;;;:::i;:::-;;;;;;;;;52560:24;;52359:233;;;:::o;83224:131::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;83327:10:::1;-1:-1:-1::0;;;;;83318:29:0::1;;83339:7;83318:29;;;;2646:25:1::0;;2634:2;2619:18;;2500:177;83318:29:0::1;;;;;;;;83224:131:::0;;:::o;81541:272::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;81732:73:::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;81715:14:::1;:90:::0;;;;;;;;81541:272::o;84138:187::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;84278:39:::1;84292:5;84299:3;84304:8;84278:39;;;;;;;;;;;::::0;:13:::1;:39::i;37288:239::-:0;37360:7;37396:16;;;:7;:16;;;;;;-1:-1:-1;;;;;37396:16:0;;37423:73;;;;-1:-1:-1;;;37423:73:0;;11468:2:1;37423:73:0;;;11450:21:1;11507:2;11487:18;;;11480:30;11546:34;11526:18;;;11519:62;-1:-1:-1;;;11597:18:1;;;11590:39;11646:19;;37423:73:0;11266:405:1;37018:208:0;37090:7;-1:-1:-1;;;;;37118:19:0;;37110:74;;;;-1:-1:-1;;;37110:74:0;;11878:2:1;37110:74:0;;;11860:21:1;11917:2;11897:18;;;11890:30;11956:34;11936:18;;;11929:62;-1:-1:-1;;;12007:18:1;;;12000:40;12057:19;;37110:74:0;11676:406:1;37110:74:0;-1:-1:-1;;;;;;37202:16:0;;;;;:9;:16;;;;;;;37018:208::o;59304:103::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;59369:30:::1;59396:1;59369:18;:30::i;:::-;59304:103::o:0;86223:189::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;86362:42:::1;::::0;-1:-1:-1;;;86362:42:0;;-1:-1:-1;;;;;12345:15:1;;;86362:42:0::1;::::0;::::1;12327:34:1::0;12397:15;;;12377:18;;;12370:43;12429:18;;;12422:34;;;86362:8:0::1;:21;::::0;::::1;::::0;12262:18:1;;86362:42:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;86223:189:::0;;;:::o;83402:202::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;83583:3:::1;-1:-1:-1::0;;;;;83561:35:0::1;83576:5;-1:-1:-1::0;;;;;83561:35:0::1;83566:8;83561:35;83588:7;83561:35;;;;2646:25:1::0;;2634:2;2619:18;;2500:177;83561:35:0::1;;;;;;;;83402:202:::0;;;;:::o;37763:104::-;37819:13;37852:7;37845:14;;;;;:::i;39446:155::-;39541:52;4237:10;39574:8;39584;39541:18;:52::i;82175:216::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;82307:20:::1;::::0;;;:10:::1;:20;::::0;;;;;:29;;;82352:31;-1:-1:-1;;;;;82352:31:0;::::1;::::0;82330:6;;82318:8;;82352:31:::1;::::0;::::1;82175:216:::0;;;:::o;81860:268::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;82066:54:::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;;;;;;;;;-1:-1:-1;82042:21:0;;;:11:::1;:21:::0;;;;;:78;;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;::::1;::::0;81860:268::o;85089:557::-;85330:40;85349:10;85361:8;85330:18;:40::i;:::-;85322:102;;;;-1:-1:-1;;;85322:102:0;;12919:2:1;85322:102:0;;;12901:21:1;12958:2;12938:18;;;12931:30;12997:34;12977:18;;;12970:62;-1:-1:-1;;;13048:18:1;;;13041:47;13105:19;;85322:102:0;12717:413:1;85322:102:0;85437:16;85466:7;58726:6;;-1:-1:-1;;;;;58726:6:0;;58653:87;85466:7;85502:42;;-1:-1:-1;;;85502:42:0;;;;;2646:25:1;;;85437:37:0;;-1:-1:-1;85487:12:0;;-1:-1:-1;;;;;85502:32:0;;;;;2619:18:1;;85502:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;85487:57;;85561:7;85557:82;;;85585:42;85599:5;85606:3;85611:8;85621:5;85585:13;:42::i;:::-;85257:389;;85089:557;;;;:::o;85712:186::-;85778:17;85808:16;85837:7;58726:6;;-1:-1:-1;;;;;58726:6:0;;58653:87;85837:7;85864:26;;-1:-1:-1;;;85864:26:0;;;;;2646:25:1;;;85808:37:0;;-1:-1:-1;;;;;;85864:16:0;;;;;2619:18:1;;85864:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;85864:26:0;;;;;;;;;;;;:::i;82764:183::-;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;82929:9:::1;-1:-1:-1::0;;;;;82905:34:0::1;82911:8;82905:34;82921:6;82905:34;;;;2646:25:1::0;;2634:2;2619:18;;2500:177;86051:125:0;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;86137:31:::1;::::0;-1:-1:-1;;;86137:31:0;;-1:-1:-1;;;;;13967:32:1;;;86137:31:0::1;::::0;::::1;13949:51:1::0;14016:18;;;14009:34;;;86137:8:0::1;:17;::::0;::::1;::::0;13922:18:1;;86137:31:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;81327:167::-:0;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;81439:6:::1;81418:9;:18;81428:7;81418:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;81418:18:0;:27;81470:7;81463:23:::1;::::0;::::1;;;;;;:::i;:::-;;::::0;2646:25:1;;;81463:23:0::1;::::0;2634:2:1;2619:18;81463:23:0::1;2500:177:1::0;59562:201:0;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;59651:22:0;::::1;59643:73;;;::::0;-1:-1:-1;;;59643:73:0;;14388:2:1;59643:73:0::1;::::0;::::1;14370:21:1::0;14427:2;14407:18;;;14400:30;14466:34;14446:18;;;14439:62;-1:-1:-1;;;14517:18:1;;;14510:36;14563:19;;59643:73:0::1;14186:402:1::0;59643:73:0::1;59727:28;59746:8;59727:18;:28::i;81112:168::-:0;58726:6;;-1:-1:-1;;;;;58726:6:0;4237:10;58873:23;58865:68;;;;-1:-1:-1;;;58865:68:0;;;;;;;:::i;:::-;81205:12:::1;::::0;81193:39:::1;::::0;;10642:25:1;;;10698:2;10683:18;;10676:34;;;81193:39:0::1;::::0;10615:18:1;81193:39:0::1;;;;;;;81245:12;:27:::0;81112:168::o;36649:305::-;36751:4;-1:-1:-1;;;;;;36788:40:0;;-1:-1:-1;;;36788:40:0;;:105;;-1:-1:-1;;;;;;;36845:48:0;;-1:-1:-1;;;36845:48:0;36788:105;:158;;;-1:-1:-1;;;;;;;;;;35367:40:0;;;36910:36;35258:157;46553:174;46628:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;46628:29:0;-1:-1:-1;;;;;46628:29:0;;;;;;;;:24;;46682:23;46628:24;46682:14;:23::i;:::-;-1:-1:-1;;;;;46673:46:0;;;;;;;;;;;46553:174;;:::o;43391:110::-;43467:26;43477:2;43481:7;43467:26;;;;;;;;;;;;:9;:26::i;45053:420::-;45113:13;45129:23;45144:7;45129:14;:23::i;:::-;45113:39;;45165:48;45186:5;45201:1;45205:7;45165:20;:48::i;:::-;45254:29;45271:1;45275:7;45254:8;:29::i;:::-;-1:-1:-1;;;;;45296:16:0;;;;;;:9;:16;;;;;:21;;45316:1;;45296:16;:21;;45316:1;;45296:21;:::i;:::-;;;;-1:-1:-1;;45335:16:0;;;;:7;:16;;;;;;45328:23;;-1:-1:-1;;;;;;45328:23:0;;;45369:36;45343:7;;45335:16;-1:-1:-1;;;;;45369:36:0;;;;;45335:16;;45369:36;83758:201;;:::o;42701:348::-;42794:4;42496:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42496:16:0;42811:73;;;;-1:-1:-1;;;42811:73:0;;15310:2:1;42811:73:0;;;15292:21:1;15349:2;15329:18;;;15322:30;15388:34;15368:18;;;15361:62;-1:-1:-1;;;15439:18:1;;;15432:42;15491:19;;42811:73:0;15108:408:1;42811:73:0;42895:13;42911:23;42926:7;42911:14;:23::i;:::-;42895:39;;42964:5;-1:-1:-1;;;;;42953:16:0;:7;-1:-1:-1;;;;;42953:16:0;;:51;;;;42997:7;-1:-1:-1;;;;;42973:31:0;:20;42985:7;42973:11;:20::i;:::-;-1:-1:-1;;;;;42973:31:0;;42953:51;:87;;;-1:-1:-1;;;;;;39793:25:0;;;39769:4;39793:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;43008:32;42945:96;42701:348;-1:-1:-1;;;;42701:348:0:o;41779:315::-;41936:28;41946:4;41952:2;41956:7;41936:9;:28::i;:::-;41983:48;42006:4;42012:2;42016:7;42025:5;41983:22;:48::i;:::-;41975:111;;;;-1:-1:-1;;;41975:111:0;;;;;;;:::i;59923:191::-;60016:6;;;-1:-1:-1;;;;;60033:17:0;;;-1:-1:-1;;;;;;60033:17:0;;;;;;;60066:40;;60016:6;;;60033:17;60016:6;;60066:40;;59997:16;;60066:40;59986:128;59923:191;:::o;46869:315::-;47024:8;-1:-1:-1;;;;;47015:17:0;:5;-1:-1:-1;;;;;47015:17:0;;47007:55;;;;-1:-1:-1;;;47007:55:0;;16142:2:1;47007:55:0;;;16124:21:1;16181:2;16161:18;;;16154:30;16220:27;16200:18;;;16193:55;16265:18;;47007:55:0;15940:349:1;47007:55:0;-1:-1:-1;;;;;47073:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;47073:46:0;;;;;;;;;;47135:41;;540::1;;;47135::0;;513:18:1;47135:41:0;400:187:1;43728:321:0;43858:18;43864:2;43868:7;43858:5;:18::i;:::-;43909:54;43940:1;43944:2;43948:7;43957:5;43909:22;:54::i;:::-;43887:154;;;;-1:-1:-1;;;43887:154:0;;;;;;;:::i;53205:589::-;-1:-1:-1;;;;;53411:18:0;;53407:187;;53446:40;53478:7;54621:10;:17;;54594:24;;;;:15;:24;;;;;:44;;;54649:24;;;;;;;;;;;;54517:164;53446:40;53407:187;;;53516:2;-1:-1:-1;;;;;53508:10:0;:4;-1:-1:-1;;;;;53508:10:0;;53504:90;;53535:47;53568:4;53574:7;53535:32;:47::i;:::-;-1:-1:-1;;;;;53608:16:0;;53604:183;;53641:45;53678:7;53641:36;:45::i;53604:183::-;53714:4;-1:-1:-1;;;;;53708:10:0;:2;-1:-1:-1;;;;;53708:10:0;;53704:83;;53735:40;53763:2;53767:7;53735:27;:40::i;45810:625::-;45969:4;-1:-1:-1;;;;;45942:31:0;:23;45957:7;45942:14;:23::i;:::-;-1:-1:-1;;;;;45942:31:0;;45934:81;;;;-1:-1:-1;;;45934:81:0;;16496:2:1;45934:81:0;;;16478:21:1;16535:2;16515:18;;;16508:30;16574:34;16554:18;;;16547:62;-1:-1:-1;;;16625:18:1;;;16618:35;16670:19;;45934:81:0;16294:401:1;45934:81:0;-1:-1:-1;;;;;46034:16:0;;46026:65;;;;-1:-1:-1;;;46026:65:0;;16902:2:1;46026:65:0;;;16884:21:1;16941:2;16921:18;;;16914:30;16980:34;16960:18;;;16953:62;-1:-1:-1;;;17031:18:1;;;17024:34;17075:19;;46026:65:0;16700:400:1;46026:65:0;46104:39;46125:4;46131:2;46135:7;46104:20;:39::i;:::-;46208:29;46225:1;46229:7;46208:8;:29::i;:::-;-1:-1:-1;;;;;46250:15:0;;;;;;:9;:15;;;;;:20;;46269:1;;46250:15;:20;;46269:1;;46250:20;:::i;:::-;;;;-1:-1:-1;;;;;;;46281:13:0;;;;;;:9;:13;;;;;:18;;46298:1;;46281:13;:18;;46298:1;;46281:18;:::i;:::-;;;;-1:-1:-1;;46310:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;46310:21:0;-1:-1:-1;;;;;46310:21:0;;;;;;;;;46349:27;;46310:16;;46349:27;;;;;;;38746:341;38676:411;;:::o;47749:799::-;47904:4;-1:-1:-1;;;;;47925:13:0;;25475:19;:23;47921:620;;47961:72;;-1:-1:-1;;;47961:72:0;;-1:-1:-1;;;;;47961:36:0;;;;;:72;;4237:10;;48012:4;;48018:7;;48027:5;;47961:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47961:72:0;;;;;;;;-1:-1:-1;;47961:72:0;;;;;;;;;;;;:::i;:::-;;;47957:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48203:6;:13;48220:1;48203:18;48199:272;;48246:60;;-1:-1:-1;;;48246:60:0;;;;;;;:::i;48199:272::-;48421:6;48415:13;48406:6;48402:2;48398:15;48391:38;47957:529;-1:-1:-1;;;;;;48084:51:0;-1:-1:-1;;;48084:51:0;;-1:-1:-1;48077:58:0;;47921:620;-1:-1:-1;48525:4:0;47749:799;;;;;;:::o;44385:439::-;-1:-1:-1;;;;;44465:16:0;;44457:61;;;;-1:-1:-1;;;44457:61:0;;18188:2:1;44457:61:0;;;18170:21:1;;;18207:18;;;18200:30;18266:34;18246:18;;;18239:62;18318:18;;44457:61:0;17986:356:1;44457:61:0;42472:4;42496:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42496:16:0;:30;44529:58;;;;-1:-1:-1;;;44529:58:0;;18549:2:1;44529:58:0;;;18531:21:1;18588:2;18568:18;;;18561:30;18627;18607:18;;;18600:58;18675:18;;44529:58:0;18347:352:1;44529:58:0;44600:45;44629:1;44633:2;44637:7;44600:20;:45::i;:::-;-1:-1:-1;;;;;44658:13:0;;;;;;:9;:13;;;;;:18;;44675:1;;44658:13;:18;;44675:1;;44658:18;:::i;:::-;;;;-1:-1:-1;;44687:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;44687:21:0;-1:-1:-1;;;;;44687:21:0;;;;;;;;44726:33;;44687:16;;;44726:33;;44687:16;;44726:33;83758:201;;:::o;55308:988::-;55574:22;55624:1;55599:22;55616:4;55599:16;:22::i;:::-;:26;;;;:::i;:::-;55636:18;55657:26;;;:17;:26;;;;;;55574:51;;-1:-1:-1;55790:28:0;;;55786:328;;-1:-1:-1;;;;;55857:18:0;;55835:19;55857:18;;;:12;:18;;;;;;;;:34;;;;;;;;;55908:30;;;;;;:44;;;56025:30;;:17;:30;;;;;:43;;;55786:328;-1:-1:-1;56210:26:0;;;;:17;:26;;;;;;;;56203:33;;;-1:-1:-1;;;;;56254:18:0;;;;;:12;:18;;;;;:34;;;;;;;56247:41;55308:988::o;56591:1079::-;56869:10;:17;56844:22;;56869:21;;56889:1;;56869:21;:::i;:::-;56901:18;56922:24;;;:15;:24;;;;;;57295:10;:26;;56844:46;;-1:-1:-1;56922:24:0;;56844:46;;57295:26;;;;;;:::i;:::-;;;;;;;;;57273:48;;57359:11;57334:10;57345;57334:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;57439:28;;;:15;:28;;;;;;;:41;;;57611:24;;;;;57604:31;57646:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;56662:1008;;;56591:1079;:::o;54095:221::-;54180:14;54197:20;54214:2;54197:16;:20::i;:::-;-1:-1:-1;;;;;54228:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;54273:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;54095:221:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2173:322::-;2250:6;2258;2266;2319:2;2307:9;2298:7;2294:23;2290:32;2287:52;;;2335:1;2332;2325:12;2287:52;2371:9;2358:23;2348:33;;2400:38;2434:2;2423:9;2419:18;2400:38;:::i;:::-;2390:48;;2485:2;2474:9;2470:18;2457:32;2447:42;;2173:322;;;;;:::o;2682:328::-;2759:6;2767;2775;2828:2;2816:9;2807:7;2803:23;2799:32;2796:52;;;2844:1;2841;2834:12;2796:52;2867:29;2886:9;2867:29;:::i;:::-;2857:39;;2915:38;2949:2;2938:9;2934:18;2915:38;:::i;3339:316::-;3416:6;3424;3432;3485:2;3473:9;3464:7;3460:23;3456:32;3453:52;;;3501:1;3498;3491:12;3453:52;-1:-1:-1;;3524:23:1;;;3594:2;3579:18;;3566:32;;-1:-1:-1;3645:2:1;3630:18;;;3617:32;;3339:316;-1:-1:-1;3339:316:1:o;3660:186::-;3719:6;3772:2;3760:9;3751:7;3747:23;3743:32;3740:52;;;3788:1;3785;3778:12;3740:52;3811:29;3830:9;3811:29;:::i;3851:397::-;3937:6;3945;3953;3961;4014:3;4002:9;3993:7;3989:23;3985:33;3982:53;;;4031:1;4028;4021:12;3982:53;4067:9;4054:23;4044:33;;4096:38;4130:2;4119:9;4115:18;4096:38;:::i;:::-;4086:48;;4153:38;4187:2;4176:9;4172:18;4153:38;:::i;:::-;3851:397;;;;-1:-1:-1;4143:48:1;;4238:2;4223:18;4210:32;;-1:-1:-1;;3851:397:1:o;4253:118::-;4339:5;4332:13;4325:21;4318:5;4315:32;4305:60;;4361:1;4358;4351:12;4376:315;4441:6;4449;4502:2;4490:9;4481:7;4477:23;4473:32;4470:52;;;4518:1;4515;4508:12;4470:52;4541:29;4560:9;4541:29;:::i;:::-;4531:39;;4620:2;4609:9;4605:18;4592:32;4633:28;4655:5;4633:28;:::i;:::-;4680:5;4670:15;;;4376:315;;;;;:::o;4696:322::-;4773:6;4781;4789;4842:2;4830:9;4821:7;4817:23;4813:32;4810:52;;;4858:1;4855;4848:12;4810:52;4894:9;4881:23;4871:33;;4951:2;4940:9;4936:18;4923:32;4913:42;;4974:38;5008:2;4997:9;4993:18;4974:38;:::i;:::-;4964:48;;4696:322;;;;;:::o;5023:385::-;5109:6;5117;5125;5133;5186:3;5174:9;5165:7;5161:23;5157:33;5154:53;;;5203:1;5200;5193:12;5154:53;-1:-1:-1;;5226:23:1;;;5296:2;5281:18;;5268:32;;-1:-1:-1;5347:2:1;5332:18;;5319:32;;5398:2;5383:18;5370:32;;-1:-1:-1;5023:385:1;-1:-1:-1;5023:385:1:o;5413:127::-;5474:10;5469:3;5465:20;5462:1;5455:31;5505:4;5502:1;5495:15;5529:4;5526:1;5519:15;5545:275;5616:2;5610:9;5681:2;5662:13;;-1:-1:-1;;5658:27:1;5646:40;;5716:18;5701:34;;5737:22;;;5698:62;5695:88;;;5763:18;;:::i;:::-;5799:2;5792:22;5545:275;;-1:-1:-1;5545:275:1:o;5825:186::-;5873:4;5906:18;5898:6;5895:30;5892:56;;;5928:18;;:::i;:::-;-1:-1:-1;5994:2:1;5973:15;-1:-1:-1;;5969:29:1;6000:4;5965:40;;5825:186::o;6016:888::-;6111:6;6119;6127;6135;6188:3;6176:9;6167:7;6163:23;6159:33;6156:53;;;6205:1;6202;6195:12;6156:53;6228:29;6247:9;6228:29;:::i;:::-;6218:39;;6276:38;6310:2;6299:9;6295:18;6276:38;:::i;:::-;6266:48;;6361:2;6350:9;6346:18;6333:32;6323:42;;6416:2;6405:9;6401:18;6388:32;6443:18;6435:6;6432:30;6429:50;;;6475:1;6472;6465:12;6429:50;6498:22;;6551:4;6543:13;;6539:27;-1:-1:-1;6529:55:1;;6580:1;6577;6570:12;6529:55;6616:2;6603:16;6641:48;6657:31;6685:2;6657:31;:::i;:::-;6641:48;:::i;:::-;6712:2;6705:5;6698:17;6752:7;6747:2;6742;6738;6734:11;6730:20;6727:33;6724:53;;;6773:1;6770;6763:12;6724:53;6828:2;6823;6819;6815:11;6810:2;6803:5;6799:14;6786:45;6872:1;6867:2;6862;6855:5;6851:14;6847:23;6840:34;6893:5;6883:15;;;;;6016:888;;;;;;;:::o;7130:154::-;7209:20;;7258:1;7248:12;;7238:40;;7274:1;7271;7264:12;7289:215;7366:6;7419:2;7407:9;7398:7;7394:23;7390:32;7387:52;;;7435:1;7432;7425:12;7387:52;7458:40;7488:9;7458:40;:::i;7509:260::-;7577:6;7585;7638:2;7626:9;7617:7;7613:23;7609:32;7606:52;;;7654:1;7651;7644:12;7606:52;7677:29;7696:9;7677:29;:::i;:::-;7667:39;;7725:38;7759:2;7748:9;7744:18;7725:38;:::i;:::-;7715:48;;7509:260;;;;;:::o;7774:283::-;7860:6;7868;7921:2;7909:9;7900:7;7896:23;7892:32;7889:52;;;7937:1;7934;7927:12;7889:52;7960:40;7990:9;7960:40;:::i;8062:380::-;8141:1;8137:12;;;;8184;;;8205:61;;8259:4;8251:6;8247:17;8237:27;;8205:61;8312:2;8304:6;8301:14;8281:18;8278:38;8275:161;;8358:10;8353:3;8349:20;8346:1;8339:31;8393:4;8390:1;8383:15;8421:4;8418:1;8411:15;8275:161;;8062:380;;;:::o;9687:356::-;9889:2;9871:21;;;9908:18;;;9901:30;9967:34;9962:2;9947:18;;9940:62;10034:2;10019:18;;9687:356::o;11134:127::-;11195:10;11190:3;11186:20;11183:1;11176:31;11226:4;11223:1;11216:15;11250:4;11247:1;11240:15;12467:245;12534:6;12587:2;12575:9;12566:7;12562:23;12558:32;12555:52;;;12603:1;12600;12593:12;12555:52;12635:9;12629:16;12654:28;12676:5;12654:28;:::i;13135:635::-;13215:6;13268:2;13256:9;13247:7;13243:23;13239:32;13236:52;;;13284:1;13281;13274:12;13236:52;13317:9;13311:16;13350:18;13342:6;13339:30;13336:50;;;13382:1;13379;13372:12;13336:50;13405:22;;13458:4;13450:13;;13446:27;-1:-1:-1;13436:55:1;;13487:1;13484;13477:12;13436:55;13516:2;13510:9;13541:48;13557:31;13585:2;13557:31;:::i;13541:48::-;13612:2;13605:5;13598:17;13652:7;13647:2;13642;13638;13634:11;13630:20;13627:33;13624:53;;;13673:1;13670;13663:12;13624:53;13686:54;13737:2;13732;13725:5;13721:14;13716:2;13712;13708:11;13686:54;:::i;:::-;13759:5;13135:635;-1:-1:-1;;;;;13135:635:1:o;14054:127::-;14115:10;14110:3;14106:20;14103:1;14096:31;14146:4;14143:1;14136:15;14170:4;14167:1;14160:15;14846:127;14907:10;14902:3;14898:20;14895:1;14888:31;14938:4;14935:1;14928:15;14962:4;14959:1;14952:15;14978:125;15018:4;15046:1;15043;15040:8;15037:34;;;15051:18;;:::i;:::-;-1:-1:-1;15088:9:1;;14978:125::o;15521:414::-;15723:2;15705:21;;;15762:2;15742:18;;;15735:30;15801:34;15796:2;15781:18;;15774:62;-1:-1:-1;;;15867:2:1;15852:18;;15845:48;15925:3;15910:19;;15521:414::o;17105:128::-;17145:3;17176:1;17172:6;17169:1;17166:13;17163:39;;;17182:18;;:::i;:::-;-1:-1:-1;17218:9:1;;17105:128::o;17238:489::-;-1:-1:-1;;;;;17507:15:1;;;17489:34;;17559:15;;17554:2;17539:18;;17532:43;17606:2;17591:18;;17584:34;;;17654:3;17649:2;17634:18;;17627:31;;;17432:4;;17675:46;;17701:19;;17693:6;17675:46;:::i;:::-;17667:54;17238:489;-1:-1:-1;;;;;;17238:489:1:o;17732:249::-;17801:6;17854:2;17842:9;17833:7;17829:23;17825:32;17822:52;;;17870:1;17867;17860:12;17822:52;17902:9;17896:16;17921:30;17945:5;17921:30;:::i;18704:127::-;18765:10;18760:3;18756:20;18753:1;18746:31;18796:4;18793:1;18786:15;18820:4;18817:1;18810:15

Swarm Source

ipfs://a4486a95fb302039e97091d89901e50103de8ad02f52ad032b2dd5f1a436dae8
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.