ERC-721
Overview
Max Total Supply
1,032 PARTS
Holders
10
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PARTSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Partition
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Multiple files format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Clones.sol"; import "./ERC721A.sol"; import "./TokenStandard.sol"; contract Partition is ERC721A { address constant impl = 0x7D530Df63D5Cf437ABC223Ef341Ad626ce3D21B2; struct Instance { address delegate; address tokenAddr; string uri; } uint256 public numMinted; address payable private deployer; mapping (uint256 => Instance) instances; constructor() ERC721A("Partition", "PARTS") { deployer = payable(msg.sender); _mint(deployer, 1000); numMinted = 1000; } function mint(uint256 amount) external payable { require(amount <= 20); require((10000 - numMinted) >= amount); require(msg.value >= 0.02 ether * amount); _mint(msg.sender, amount); numMinted += amount; } function flush() external { deployer.call{value: address(this).balance}(""); } function tokenURI(uint256 tokenId) public view override returns (string memory) { return instances[tokenId].uri; } function getTokenAddr(uint256 id) public view returns (address) { return instances[id].tokenAddr; } function getDelegate(uint256 id) public view returns (address) { return instances[id].delegate; } function activate(uint256 id, address delegate, string calldata uri, string calldata name, string calldata symbol) external { require((ownerOf(id) == msg.sender) || (instances[id].delegate == msg.sender)); if (instances[id].tokenAddr == address(0)) { address tAddr = Clones.clone(impl); TokenStandard(tAddr).init(name, symbol); TokenStandard(tAddr).transfer(msg.sender, 1000000000000000000000000); instances[id].tokenAddr = tAddr; } else { if (bytes(name).length > 0) TokenStandard(instances[id].tokenAddr).changeName(name); if (bytes(symbol).length > 0) TokenStandard(instances[id].tokenAddr).changeSymbol(symbol); } if (delegate != address(0)) instances[id].delegate = delegate; if (bytes(uri).length > 0) instances[id].uri = uri; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/Clones.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./IERC20Metadata.sol"; import "./Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; constructor() {} /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } function setName(string calldata newName) internal { _name = newName; } function setSymbol(string calldata newSymbol) internal { _symbol = newSymbol; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
//Spdx-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC20.sol"; contract TokenStandard is ERC20 { address constant part = 0x8dD5e32685FB2046D20A407da726eb2aeDB1ab64; function init(string calldata name, string calldata symbol) external { require(totalSupply() == 0); _mint(msg.sender, 1000000000000000000000000); ERC20.setName(name); ERC20.setSymbol(symbol); } function changeName(string calldata newName) external { require(msg.sender == part); ERC20.setName(newName); } function changeSymbol(string calldata newSymbol) external { require(msg.sender == part); ERC20.setSymbol(newSymbol); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"delegate","type":"address"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flush","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getDelegate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getTokenAddr","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":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600981526020017f506172746974696f6e00000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f5041525453000000000000000000000000000000000000000000000000000000815250816002908051906020019062000096929190620003bc565b508060039080519060200190620000af929190620003bc565b50620000c06200014e60201b60201c565b600081905550505033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200013f600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166103e86200015360201b60201c565b6103e8600881905550620004d1565b600090565b600080549050600082141562000195576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620001aa60008483856200033c60201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555062000239836200021b60008660006200034260201b60201c565b6200022c856200037260201b60201c565b176200038260201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620002dc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506200029f565b50600082141562000319576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620003376000848385620003ad60201b60201c565b505050565b50505050565b60008060e883901c905060e862000361868684620003b360201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60009392505050565b828054620003ca906200046c565b90600052602060002090601f016020900481019282620003ee57600085556200043a565b82601f106200040957805160ff19168380011785556200043a565b828001600101855582156200043a579182015b82811115620004395782518255916020019190600101906200041c565b5b5090506200044991906200044d565b5090565b5b80821115620004685760008160009055506001016200044e565b5090565b600060028204905060018216806200048557607f821691505b602082108114156200049c576200049b620004a2565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61278880620004e16000396000f3fe60806040526004361061011f5760003560e01c806370a08231116100a0578063b88d4fde11610064578063b88d4fde146103d6578063c87b56dd146103ff578063d52079b41461043c578063dcc66cc214610467578063e985e9c5146104a45761011f565b806370a0823114610300578063818ed9a01461033d57806395d89b4114610366578063a0712d6814610391578063a22cb465146103ad5761011f565b806318160ddd116100e757806318160ddd1461022f57806323b872dd1461025a57806342842e0e146102835780636352211e146102ac5780636b9f96ea146102e95761011f565b806301ffc9a71461012457806304569f5f1461016157806306fdde031461019e578063081812fc146101c9578063095ea7b314610206575b600080fd5b34801561013057600080fd5b5061014b60048036038101906101469190611fa0565b6104e1565b60405161015891906122ad565b60405180910390f35b34801561016d57600080fd5b5061018860048036038101906101839190611ff2565b610573565b604051610195919061221d565b60405180910390f35b3480156101aa57600080fd5b506101b36105b3565b6040516101c09190612327565b60405180910390f35b3480156101d557600080fd5b506101f060048036038101906101eb9190611ff2565b610645565b6040516101fd919061221d565b60405180910390f35b34801561021257600080fd5b5061022d60048036038101906102289190611f3b565b6106c4565b005b34801561023b57600080fd5b50610244610808565b6040516102519190612369565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190611e35565b61081f565b005b34801561028f57600080fd5b506102aa60048036038101906102a59190611e35565b610b44565b005b3480156102b857600080fd5b506102d360048036038101906102ce9190611ff2565b610b64565b6040516102e0919061221d565b60405180910390f35b3480156102f557600080fd5b506102fe610b76565b005b34801561030c57600080fd5b5061032760048036038101906103229190611dd0565b610c03565b6040516103349190612369565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f919061201b565b610cbc565b005b34801561037257600080fd5b5061037b611180565b6040516103889190612327565b60405180910390f35b6103ab60048036038101906103a69190611ff2565b611212565b005b3480156103b957600080fd5b506103d460048036038101906103cf9190611eff565b611281565b005b3480156103e257600080fd5b506103fd60048036038101906103f89190611e84565b6113f9565b005b34801561040b57600080fd5b5061042660048036038101906104219190611ff2565b61146c565b6040516104339190612327565b60405180910390f35b34801561044857600080fd5b50610451611514565b60405161045e9190612369565b60405180910390f35b34801561047357600080fd5b5061048e60048036038101906104899190611ff2565b61151a565b60405161049b919061221d565b60405180910390f35b3480156104b057600080fd5b506104cb60048036038101906104c69190611df9565b61155a565b6040516104d891906122ad565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061053c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061056c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000600a600083815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6060600280546105c2906125c9565b80601f01602080910402602001604051908101604052809291908181526020018280546105ee906125c9565b801561063b5780601f106106105761010080835404028352916020019161063b565b820191906000526020600020905b81548152906001019060200180831161061e57829003601f168201915b5050505050905090565b6000610650826115ee565b610686576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106cf82610b64565b90508073ffffffffffffffffffffffffffffffffffffffff166106f061164d565b73ffffffffffffffffffffffffffffffffffffffff16146107535761071c8161071761164d565b61155a565b610752576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610812611655565b6001546000540303905090565b600061082a8261165a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610891576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061089d84611728565b915091506108b381876108ae61164d565b61174f565b6108ff576108c8866108c361164d565b61155a565b6108fe576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610966576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109738686866001611793565b801561097e57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610a4c85610a28888887611799565b7c0200000000000000000000000000000000000000000000000000000000176117c1565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610ad4576000600185019050600060046000838152602001908152602001600020541415610ad2576000548114610ad1578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610b3c86868660016117ec565b505050505050565b610b5f838383604051806020016040528060008152506113f9565b505050565b6000610b6f8261165a565b9050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610bbc90612208565b60006040518083038185875af1925050503d8060008114610bf9576040519150601f19603f3d011682016040523d82523d6000602084013e610bfe565b606091505b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c6b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b3373ffffffffffffffffffffffffffffffffffffffff16610cdc89610b64565b73ffffffffffffffffffffffffffffffffffffffff161480610d5f57503373ffffffffffffffffffffffffffffffffffffffff16600a60008a815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b610d6857600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60008a815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610f58576000610df2737d530df63d5cf437abc223ef341ad626ce3d21b26117f2565b90508073ffffffffffffffffffffffffffffffffffffffff16637029144c868686866040518563ffffffff1660e01b8152600401610e3394939291906122ec565b600060405180830381600087803b158015610e4d57600080fd5b505af1158015610e61573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3369d3c21bcecceda10000006040518363ffffffff1660e01b8152600401610eaa929190612284565b602060405180830381600087803b158015610ec457600080fd5b505af1158015610ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efc9190611f77565b5080600a60008b815260200190815260200160002060010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506110b9565b600084849050111561100857600a600089815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635353a2d885856040518363ffffffff1660e01b8152600401610fd59291906122c8565b600060405180830381600087803b158015610fef57600080fd5b505af1158015611003573d6000803e3d6000fd5b505050505b60008282905011156110b857600a600089815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a3895fff83836040518363ffffffff1660e01b81526004016110859291906122c8565b600060405180830381600087803b15801561109f57600080fd5b505af11580156110b3573d6000803e3d6000fd5b505050505b5b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16146111435786600a60008a815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6000868690501115611176578585600a60008b81526020019081526020016000206002019190611174929190611bfd565b505b5050505050505050565b60606003805461118f906125c9565b80601f01602080910402602001604051908101604052809291908181526020018280546111bb906125c9565b80156112085780601f106111dd57610100808354040283529160200191611208565b820191906000526020600020905b8154815290600101906020018083116111eb57829003601f168201915b5050505050905090565b601481111561122057600080fd5b8060085461271061123191906124cd565b101561123c57600080fd5b8066470de4df82000061124f9190612473565b34101561125b57600080fd5b61126533826118c7565b8060086000828254611277919061241d565b9250508190555050565b61128961164d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112ee576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006112fb61164d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166113a861164d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113ed91906122ad565b60405180910390a35050565b61140484848461081f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146114665761142f84848484611a84565b611465576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600a6000838152602001908152602001600020600201805461148f906125c9565b80601f01602080910402602001604051908101604052809291908181526020018280546114bb906125c9565b80156115085780601f106114dd57610100808354040283529160200191611508565b820191906000526020600020905b8154815290600101906020018083116114eb57829003601f168201915b50505050509050919050565b60085481565b6000600a600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000816115f9611655565b11158015611608575060005482105b8015611646575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080611669611655565b116116f1576000548110156116f05760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156116ee575b60008114156116e45760046000836001900393508381526020019081526020016000205490506116b9565b8092505050611723565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86117b0868684611be4565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f0915050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b990612349565b60405180910390fd5b919050565b6000805490506000821415611908576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119156000848385611793565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061198c8361197d6000866000611799565b61198685611bed565b176117c1565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611a2d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506119f2565b506000821415611a69576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611a7f60008483856117ec565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611aaa61164d565b8786866040518563ffffffff1660e01b8152600401611acc9493929190612238565b602060405180830381600087803b158015611ae657600080fd5b505af1925050508015611b1757506040513d601f19601f82011682018060405250810190611b149190611fc9565b60015b611b91573d8060008114611b47576040519150601f19603f3d011682016040523d82523d6000602084013e611b4c565b606091505b50600081511415611b89576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b60006001821460e11b9050919050565b828054611c09906125c9565b90600052602060002090601f016020900481019282611c2b5760008555611c72565b82601f10611c4457803560ff1916838001178555611c72565b82800160010185558215611c72579182015b82811115611c71578235825591602001919060010190611c56565b5b509050611c7f9190611c83565b5090565b5b80821115611c9c576000816000905550600101611c84565b5090565b6000611cb3611cae846123a9565b612384565b905082815260208101848484011115611ccb57600080fd5b611cd6848285612587565b509392505050565b600081359050611ced816126f6565b92915050565b600081359050611d028161270d565b92915050565b600081519050611d178161270d565b92915050565b600081359050611d2c81612724565b92915050565b600081519050611d4181612724565b92915050565b600082601f830112611d5857600080fd5b8135611d68848260208601611ca0565b91505092915050565b60008083601f840112611d8357600080fd5b8235905067ffffffffffffffff811115611d9c57600080fd5b602083019150836001820283011115611db457600080fd5b9250929050565b600081359050611dca8161273b565b92915050565b600060208284031215611de257600080fd5b6000611df084828501611cde565b91505092915050565b60008060408385031215611e0c57600080fd5b6000611e1a85828601611cde565b9250506020611e2b85828601611cde565b9150509250929050565b600080600060608486031215611e4a57600080fd5b6000611e5886828701611cde565b9350506020611e6986828701611cde565b9250506040611e7a86828701611dbb565b9150509250925092565b60008060008060808587031215611e9a57600080fd5b6000611ea887828801611cde565b9450506020611eb987828801611cde565b9350506040611eca87828801611dbb565b925050606085013567ffffffffffffffff811115611ee757600080fd5b611ef387828801611d47565b91505092959194509250565b60008060408385031215611f1257600080fd5b6000611f2085828601611cde565b9250506020611f3185828601611cf3565b9150509250929050565b60008060408385031215611f4e57600080fd5b6000611f5c85828601611cde565b9250506020611f6d85828601611dbb565b9150509250929050565b600060208284031215611f8957600080fd5b6000611f9784828501611d08565b91505092915050565b600060208284031215611fb257600080fd5b6000611fc084828501611d1d565b91505092915050565b600060208284031215611fdb57600080fd5b6000611fe984828501611d32565b91505092915050565b60006020828403121561200457600080fd5b600061201284828501611dbb565b91505092915050565b60008060008060008060008060a0898b03121561203757600080fd5b60006120458b828c01611dbb565b98505060206120568b828c01611cde565b975050604089013567ffffffffffffffff81111561207357600080fd5b61207f8b828c01611d71565b9650965050606089013567ffffffffffffffff81111561209e57600080fd5b6120aa8b828c01611d71565b9450945050608089013567ffffffffffffffff8111156120c957600080fd5b6120d58b828c01611d71565b92509250509295985092959890939650565b6120f081612501565b82525050565b6120ff81612513565b82525050565b6000612110826123da565b61211a81856123f0565b935061212a818560208601612596565b612133816126b9565b840191505092915050565b61214781612575565b82525050565b6000612159838561240c565b9350612166838584612587565b61216f836126b9565b840190509392505050565b6000612185826123e5565b61218f818561240c565b935061219f818560208601612596565b6121a8816126b9565b840191505092915050565b60006121c060168361240c565b91506121cb826126ca565b602082019050919050565b60006121e3600083612401565b91506121ee826126f3565b600082019050919050565b6122028161256b565b82525050565b6000612213826121d6565b9150819050919050565b600060208201905061223260008301846120e7565b92915050565b600060808201905061224d60008301876120e7565b61225a60208301866120e7565b61226760408301856121f9565b81810360608301526122798184612105565b905095945050505050565b600060408201905061229960008301856120e7565b6122a6602083018461213e565b9392505050565b60006020820190506122c260008301846120f6565b92915050565b600060208201905081810360008301526122e381848661214d565b90509392505050565b6000604082019050818103600083015261230781868861214d565b9050818103602083015261231c81848661214d565b905095945050505050565b60006020820190508181036000830152612341818461217a565b905092915050565b60006020820190508181036000830152612362816121b3565b9050919050565b600060208201905061237e60008301846121f9565b92915050565b600061238e61239f565b905061239a82826125fb565b919050565b6000604051905090565b600067ffffffffffffffff8211156123c4576123c361268a565b5b6123cd826126b9565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006124288261256b565b91506124338361256b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156124685761246761262c565b5b828201905092915050565b600061247e8261256b565b91506124898361256b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156124c2576124c161262c565b5b828202905092915050565b60006124d88261256b565b91506124e38361256b565b9250828210156124f6576124f561262c565b5b828203905092915050565b600061250c8261254b565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006125808261256b565b9050919050565b82818337600083830152505050565b60005b838110156125b4578082015181840152602081019050612599565b838111156125c3576000848401525b50505050565b600060028204905060018216806125e157607f821691505b602082108114156125f5576125f461265b565b5b50919050565b612604826126b9565b810181811067ffffffffffffffff821117156126235761262261268a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243313136373a20637265617465206661696c656400000000000000000000600082015250565b50565b6126ff81612501565b811461270a57600080fd5b50565b61271681612513565b811461272157600080fd5b50565b61272d8161251f565b811461273857600080fd5b50565b6127448161256b565b811461274f57600080fd5b5056fea26469706673582212201b74771594fff08f9735652ad7917b6cea4e1839b22b4e5eee880a1c7c07b13e64736f6c63430008040033
Deployed Bytecode
0x60806040526004361061011f5760003560e01c806370a08231116100a0578063b88d4fde11610064578063b88d4fde146103d6578063c87b56dd146103ff578063d52079b41461043c578063dcc66cc214610467578063e985e9c5146104a45761011f565b806370a0823114610300578063818ed9a01461033d57806395d89b4114610366578063a0712d6814610391578063a22cb465146103ad5761011f565b806318160ddd116100e757806318160ddd1461022f57806323b872dd1461025a57806342842e0e146102835780636352211e146102ac5780636b9f96ea146102e95761011f565b806301ffc9a71461012457806304569f5f1461016157806306fdde031461019e578063081812fc146101c9578063095ea7b314610206575b600080fd5b34801561013057600080fd5b5061014b60048036038101906101469190611fa0565b6104e1565b60405161015891906122ad565b60405180910390f35b34801561016d57600080fd5b5061018860048036038101906101839190611ff2565b610573565b604051610195919061221d565b60405180910390f35b3480156101aa57600080fd5b506101b36105b3565b6040516101c09190612327565b60405180910390f35b3480156101d557600080fd5b506101f060048036038101906101eb9190611ff2565b610645565b6040516101fd919061221d565b60405180910390f35b34801561021257600080fd5b5061022d60048036038101906102289190611f3b565b6106c4565b005b34801561023b57600080fd5b50610244610808565b6040516102519190612369565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190611e35565b61081f565b005b34801561028f57600080fd5b506102aa60048036038101906102a59190611e35565b610b44565b005b3480156102b857600080fd5b506102d360048036038101906102ce9190611ff2565b610b64565b6040516102e0919061221d565b60405180910390f35b3480156102f557600080fd5b506102fe610b76565b005b34801561030c57600080fd5b5061032760048036038101906103229190611dd0565b610c03565b6040516103349190612369565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f919061201b565b610cbc565b005b34801561037257600080fd5b5061037b611180565b6040516103889190612327565b60405180910390f35b6103ab60048036038101906103a69190611ff2565b611212565b005b3480156103b957600080fd5b506103d460048036038101906103cf9190611eff565b611281565b005b3480156103e257600080fd5b506103fd60048036038101906103f89190611e84565b6113f9565b005b34801561040b57600080fd5b5061042660048036038101906104219190611ff2565b61146c565b6040516104339190612327565b60405180910390f35b34801561044857600080fd5b50610451611514565b60405161045e9190612369565b60405180910390f35b34801561047357600080fd5b5061048e60048036038101906104899190611ff2565b61151a565b60405161049b919061221d565b60405180910390f35b3480156104b057600080fd5b506104cb60048036038101906104c69190611df9565b61155a565b6040516104d891906122ad565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061053c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061056c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000600a600083815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6060600280546105c2906125c9565b80601f01602080910402602001604051908101604052809291908181526020018280546105ee906125c9565b801561063b5780601f106106105761010080835404028352916020019161063b565b820191906000526020600020905b81548152906001019060200180831161061e57829003601f168201915b5050505050905090565b6000610650826115ee565b610686576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106cf82610b64565b90508073ffffffffffffffffffffffffffffffffffffffff166106f061164d565b73ffffffffffffffffffffffffffffffffffffffff16146107535761071c8161071761164d565b61155a565b610752576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610812611655565b6001546000540303905090565b600061082a8261165a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610891576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061089d84611728565b915091506108b381876108ae61164d565b61174f565b6108ff576108c8866108c361164d565b61155a565b6108fe576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610966576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109738686866001611793565b801561097e57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610a4c85610a28888887611799565b7c0200000000000000000000000000000000000000000000000000000000176117c1565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610ad4576000600185019050600060046000838152602001908152602001600020541415610ad2576000548114610ad1578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610b3c86868660016117ec565b505050505050565b610b5f838383604051806020016040528060008152506113f9565b505050565b6000610b6f8261165a565b9050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610bbc90612208565b60006040518083038185875af1925050503d8060008114610bf9576040519150601f19603f3d011682016040523d82523d6000602084013e610bfe565b606091505b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c6b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b3373ffffffffffffffffffffffffffffffffffffffff16610cdc89610b64565b73ffffffffffffffffffffffffffffffffffffffff161480610d5f57503373ffffffffffffffffffffffffffffffffffffffff16600a60008a815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b610d6857600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60008a815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610f58576000610df2737d530df63d5cf437abc223ef341ad626ce3d21b26117f2565b90508073ffffffffffffffffffffffffffffffffffffffff16637029144c868686866040518563ffffffff1660e01b8152600401610e3394939291906122ec565b600060405180830381600087803b158015610e4d57600080fd5b505af1158015610e61573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3369d3c21bcecceda10000006040518363ffffffff1660e01b8152600401610eaa929190612284565b602060405180830381600087803b158015610ec457600080fd5b505af1158015610ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efc9190611f77565b5080600a60008b815260200190815260200160002060010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506110b9565b600084849050111561100857600a600089815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635353a2d885856040518363ffffffff1660e01b8152600401610fd59291906122c8565b600060405180830381600087803b158015610fef57600080fd5b505af1158015611003573d6000803e3d6000fd5b505050505b60008282905011156110b857600a600089815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a3895fff83836040518363ffffffff1660e01b81526004016110859291906122c8565b600060405180830381600087803b15801561109f57600080fd5b505af11580156110b3573d6000803e3d6000fd5b505050505b5b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16146111435786600a60008a815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6000868690501115611176578585600a60008b81526020019081526020016000206002019190611174929190611bfd565b505b5050505050505050565b60606003805461118f906125c9565b80601f01602080910402602001604051908101604052809291908181526020018280546111bb906125c9565b80156112085780601f106111dd57610100808354040283529160200191611208565b820191906000526020600020905b8154815290600101906020018083116111eb57829003601f168201915b5050505050905090565b601481111561122057600080fd5b8060085461271061123191906124cd565b101561123c57600080fd5b8066470de4df82000061124f9190612473565b34101561125b57600080fd5b61126533826118c7565b8060086000828254611277919061241d565b9250508190555050565b61128961164d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112ee576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006112fb61164d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166113a861164d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113ed91906122ad565b60405180910390a35050565b61140484848461081f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146114665761142f84848484611a84565b611465576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600a6000838152602001908152602001600020600201805461148f906125c9565b80601f01602080910402602001604051908101604052809291908181526020018280546114bb906125c9565b80156115085780601f106114dd57610100808354040283529160200191611508565b820191906000526020600020905b8154815290600101906020018083116114eb57829003601f168201915b50505050509050919050565b60085481565b6000600a600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000816115f9611655565b11158015611608575060005482105b8015611646575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080611669611655565b116116f1576000548110156116f05760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156116ee575b60008114156116e45760046000836001900393508381526020019081526020016000205490506116b9565b8092505050611723565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86117b0868684611be4565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f0915050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b990612349565b60405180910390fd5b919050565b6000805490506000821415611908576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119156000848385611793565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061198c8361197d6000866000611799565b61198685611bed565b176117c1565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611a2d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506119f2565b506000821415611a69576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611a7f60008483856117ec565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611aaa61164d565b8786866040518563ffffffff1660e01b8152600401611acc9493929190612238565b602060405180830381600087803b158015611ae657600080fd5b505af1925050508015611b1757506040513d601f19601f82011682018060405250810190611b149190611fc9565b60015b611b91573d8060008114611b47576040519150601f19603f3d011682016040523d82523d6000602084013e611b4c565b606091505b50600081511415611b89576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b60006001821460e11b9050919050565b828054611c09906125c9565b90600052602060002090601f016020900481019282611c2b5760008555611c72565b82601f10611c4457803560ff1916838001178555611c72565b82800160010185558215611c72579182015b82811115611c71578235825591602001919060010190611c56565b5b509050611c7f9190611c83565b5090565b5b80821115611c9c576000816000905550600101611c84565b5090565b6000611cb3611cae846123a9565b612384565b905082815260208101848484011115611ccb57600080fd5b611cd6848285612587565b509392505050565b600081359050611ced816126f6565b92915050565b600081359050611d028161270d565b92915050565b600081519050611d178161270d565b92915050565b600081359050611d2c81612724565b92915050565b600081519050611d4181612724565b92915050565b600082601f830112611d5857600080fd5b8135611d68848260208601611ca0565b91505092915050565b60008083601f840112611d8357600080fd5b8235905067ffffffffffffffff811115611d9c57600080fd5b602083019150836001820283011115611db457600080fd5b9250929050565b600081359050611dca8161273b565b92915050565b600060208284031215611de257600080fd5b6000611df084828501611cde565b91505092915050565b60008060408385031215611e0c57600080fd5b6000611e1a85828601611cde565b9250506020611e2b85828601611cde565b9150509250929050565b600080600060608486031215611e4a57600080fd5b6000611e5886828701611cde565b9350506020611e6986828701611cde565b9250506040611e7a86828701611dbb565b9150509250925092565b60008060008060808587031215611e9a57600080fd5b6000611ea887828801611cde565b9450506020611eb987828801611cde565b9350506040611eca87828801611dbb565b925050606085013567ffffffffffffffff811115611ee757600080fd5b611ef387828801611d47565b91505092959194509250565b60008060408385031215611f1257600080fd5b6000611f2085828601611cde565b9250506020611f3185828601611cf3565b9150509250929050565b60008060408385031215611f4e57600080fd5b6000611f5c85828601611cde565b9250506020611f6d85828601611dbb565b9150509250929050565b600060208284031215611f8957600080fd5b6000611f9784828501611d08565b91505092915050565b600060208284031215611fb257600080fd5b6000611fc084828501611d1d565b91505092915050565b600060208284031215611fdb57600080fd5b6000611fe984828501611d32565b91505092915050565b60006020828403121561200457600080fd5b600061201284828501611dbb565b91505092915050565b60008060008060008060008060a0898b03121561203757600080fd5b60006120458b828c01611dbb565b98505060206120568b828c01611cde565b975050604089013567ffffffffffffffff81111561207357600080fd5b61207f8b828c01611d71565b9650965050606089013567ffffffffffffffff81111561209e57600080fd5b6120aa8b828c01611d71565b9450945050608089013567ffffffffffffffff8111156120c957600080fd5b6120d58b828c01611d71565b92509250509295985092959890939650565b6120f081612501565b82525050565b6120ff81612513565b82525050565b6000612110826123da565b61211a81856123f0565b935061212a818560208601612596565b612133816126b9565b840191505092915050565b61214781612575565b82525050565b6000612159838561240c565b9350612166838584612587565b61216f836126b9565b840190509392505050565b6000612185826123e5565b61218f818561240c565b935061219f818560208601612596565b6121a8816126b9565b840191505092915050565b60006121c060168361240c565b91506121cb826126ca565b602082019050919050565b60006121e3600083612401565b91506121ee826126f3565b600082019050919050565b6122028161256b565b82525050565b6000612213826121d6565b9150819050919050565b600060208201905061223260008301846120e7565b92915050565b600060808201905061224d60008301876120e7565b61225a60208301866120e7565b61226760408301856121f9565b81810360608301526122798184612105565b905095945050505050565b600060408201905061229960008301856120e7565b6122a6602083018461213e565b9392505050565b60006020820190506122c260008301846120f6565b92915050565b600060208201905081810360008301526122e381848661214d565b90509392505050565b6000604082019050818103600083015261230781868861214d565b9050818103602083015261231c81848661214d565b905095945050505050565b60006020820190508181036000830152612341818461217a565b905092915050565b60006020820190508181036000830152612362816121b3565b9050919050565b600060208201905061237e60008301846121f9565b92915050565b600061238e61239f565b905061239a82826125fb565b919050565b6000604051905090565b600067ffffffffffffffff8211156123c4576123c361268a565b5b6123cd826126b9565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006124288261256b565b91506124338361256b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156124685761246761262c565b5b828201905092915050565b600061247e8261256b565b91506124898361256b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156124c2576124c161262c565b5b828202905092915050565b60006124d88261256b565b91506124e38361256b565b9250828210156124f6576124f561262c565b5b828203905092915050565b600061250c8261254b565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006125808261256b565b9050919050565b82818337600083830152505050565b60005b838110156125b4578082015181840152602081019050612599565b838111156125c3576000848401525b50505050565b600060028204905060018216806125e157607f821691505b602082108114156125f5576125f461265b565b5b50919050565b612604826126b9565b810181811067ffffffffffffffff821117156126235761262261268a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243313136373a20637265617465206661696c656400000000000000000000600082015250565b50565b6126ff81612501565b811461270a57600080fd5b50565b61271681612513565b811461272157600080fd5b50565b61272d8161251f565b811461273857600080fd5b50565b6127448161256b565b811461274f57600080fd5b5056fea26469706673582212201b74771594fff08f9735652ad7917b6cea4e1839b22b4e5eee880a1c7c07b13e64736f6c63430008040033
Deployed Bytecode Sourcemap
134:2229:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9112:630:3;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1106:111:7;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;9996:98:3;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;16309:214;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;15769:390;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;5851:317;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;19918:2756;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;22765:179;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;11348:150;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;870:90:7;;;;;;;;;;;;;:::i;:::-;;7002:230:3;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1343:1018:7;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;10165:102:3;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;612:248:7;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;16850:303:3;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;23525:388;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;970:126:7;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;344:24;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1227:110;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;17303:162:3;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;9112:630;9197:4;9530:10;9515:25;;:11;:25;;;;:101;;;;9606:10;9591:25;;:11;:25;;;;9515:101;:177;;;;9682:10;9667:25;;:11;:25;;;;9515:177;9496:196;;9112:630;;;:::o;1106:111:7:-;1161:7;1187:9;:13;1197:2;1187:13;;;;;;;;;;;:23;;;;;;;;;;;;1180:30;;1106:111;;;:::o;9996:98:3:-;10050:13;10082:5;10075:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9996:98;:::o;16309:214::-;16385:7;16409:16;16417:7;16409;:16::i;:::-;16404:64;;16434:34;;;;;;;;;;;;;;16404:64;16486:15;:24;16502:7;16486:24;;;;;;;;;;;:30;;;;;;;;;;;;16479:37;;16309:214;;;:::o;15769:390::-;15849:13;15865:16;15873:7;15865;:16::i;:::-;15849:32;;15919:5;15896:28;;:19;:17;:19::i;:::-;:28;;;15892:172;;15943:44;15960:5;15967:19;:17;:19::i;:::-;15943:16;:44::i;:::-;15938:126;;16014:35;;;;;;;;;;;;;;15938:126;15892:172;16107:2;16074:15;:24;16090:7;16074:24;;;;;;;;;;;:30;;;:35;;;;;;;;;;;;;;;;;;16144:7;16140:2;16124:28;;16133:5;16124:28;;;;;;;;;;;;15769:390;;;:::o;5851:317::-;5912:7;6136:15;:13;:15::i;:::-;6121:12;;6105:13;;:28;:46;6098:53;;5851:317;:::o;19918:2756::-;20047:27;20077;20096:7;20077:18;:27::i;:::-;20047:57;;20160:4;20119:45;;20135:19;20119:45;;;20115:86;;20173:28;;;;;;;;;;;;;;20115:86;20213:27;20242:23;20269:35;20296:7;20269:26;:35::i;:::-;20212:92;;;;20401:68;20426:15;20443:4;20449:19;:17;:19::i;:::-;20401:24;:68::i;:::-;20396:179;;20488:43;20505:4;20511:19;:17;:19::i;:::-;20488:16;:43::i;:::-;20483:92;;20540:35;;;;;;;;;;;;;;20483:92;20396:179;20604:1;20590:16;;:2;:16;;;20586:52;;;20615:23;;;;;;;;;;;;;;20586:52;20649:43;20671:4;20677:2;20681:7;20690:1;20649:21;:43::i;:::-;20781:15;20778:2;;;20919:1;20898:19;20891:30;20778:2;21307:18;:24;21326:4;21307:24;;;;;;;;;;;;;;;;21305:26;;;;;;;;;;;;21375:18;:22;21394:2;21375:22;;;;;;;;;;;;;;;;21373:24;;;;;;;;;;;21690:143;21726:2;21774:45;21789:4;21795:2;21799:19;21774:14;:45::i;:::-;2349:8;21746:73;21690:18;:143::i;:::-;21661:17;:26;21679:7;21661:26;;;;;;;;;;;:172;;;;22001:1;2349:8;21950:19;:47;:52;21946:617;;;22022:19;22054:1;22044:7;:11;22022:33;;22209:1;22175:17;:30;22193:11;22175:30;;;;;;;;;;;;:35;22171:378;;;22311:13;;22296:11;:28;22292:239;;22489:19;22456:17;:30;22474:11;22456:30;;;;;;;;;;;:52;;;;22292:239;22171:378;21946:617;;22607:7;22603:2;22588:27;;22597:4;22588:27;;;;;;;;;;;;22625:42;22646:4;22652:2;22656:7;22665:1;22625:20;:42::i;:::-;19918:2756;;;;;;:::o;22765:179::-;22898:39;22915:4;22921:2;22925:7;22898:39;;;;;;;;;;;;:16;:39::i;:::-;22765:179;;;:::o;11348:150::-;11420:7;11462:27;11481:7;11462:18;:27::i;:::-;11439:52;;11348:150;;;:::o;870:90:7:-;906:8;;;;;;;;;;;:13;;927:21;906:47;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;870:90::o;7002:230:3:-;7074:7;7114:1;7097:19;;:5;:19;;;7093:60;;;7125:28;;;;;;;;;;;;;;7093:60;1317:13;7170:18;:25;7189:5;7170:25;;;;;;;;;;;;;;;;:55;7163:62;;7002:230;;;:::o;1343:1018:7:-;1589:10;1574:25;;:11;1582:2;1574:7;:11::i;:::-;:25;;;1573:85;;;;1647:10;1621:36;;:9;:13;1631:2;1621:13;;;;;;;;;;;:22;;;;;;;;;;;;:36;;;1573:85;1565:94;;;;;;1708:1;1673:37;;:9;:13;1683:2;1673:13;;;;;;;;;;;:23;;;;;;;;;;;;:37;;;1669:531;;;1726:13;1742:18;194:42;1742:12;:18::i;:::-;1726:34;;1788:5;1774:25;;;1800:4;;1806:6;;1774:39;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1841:5;1827:29;;;1857:10;1869:25;1827:68;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1935:5;1909:9;:13;1919:2;1909:13;;;;;;;;;;;:23;;;:31;;;;;;;;;;;;;;;;;;1669:531;;;;1996:1;1981:4;;1975:18;;:22;1971:99;;;2029:9;:13;2039:2;2029:13;;;;;;;;;;;:23;;;;;;;;;;;;2015:49;;;2065:4;;2015:55;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1971:99;2111:1;2094:6;;2088:20;;:24;2084:105;;;2144:9;:13;2154:2;2144:13;;;;;;;;;;;:23;;;;;;;;;;;;2130:51;;;2182:6;;2130:59;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2084:105;1669:531;2233:1;2213:22;;:8;:22;;;2209:73;;2274:8;2249:9;:13;2259:2;2249:13;;;;;;;;;;;:22;;;:33;;;;;;;;;;;;;;;;;;2209:73;2316:1;2302:3;;2296:17;;:21;2292:62;;;2351:3;;2331:9;:13;2341:2;2331:13;;;;;;;;;;;:17;;:23;;;;;;;:::i;:::-;;2292:62;1343:1018;;;;;;;;:::o;10165:102:3:-;10221:13;10253:7;10246:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10165:102;:::o;612:248:7:-;687:2;677:6;:12;;669:21;;;;;;731:6;717:9;;709:5;:17;;;;:::i;:::-;708:29;;700:38;;;;;;782:6;769:10;:19;;;;:::i;:::-;756:9;:32;;748:41;;;;;;799:25;805:10;817:6;799:5;:25::i;:::-;847:6;834:9;;:19;;;;;;;:::i;:::-;;;;;;;;612:248;:::o;16850:303:3:-;16960:19;:17;:19::i;:::-;16948:31;;:8;:31;;;16944:61;;;16988:17;;;;;;;;;;;;;;16944:61;17068:8;17016:18;:39;17035:19;:17;:19::i;:::-;17016:39;;;;;;;;;;;;;;;:49;17056:8;17016:49;;;;;;;;;;;;;;;;:60;;;;;;;;;;;;;;;;;;17127:8;17091:55;;17106:19;:17;:19::i;:::-;17091:55;;;17137:8;17091:55;;;;;;:::i;:::-;;;;;;;;16850:303;;:::o;23525:388::-;23686:31;23699:4;23705:2;23709:7;23686:12;:31::i;:::-;23749:1;23731:2;:14;;;:19;23727:180;;23769:56;23800:4;23806:2;23810:7;23819:5;23769:30;:56::i;:::-;23764:143;;23852:40;;;;;;;;;;;;;;23764:143;23727:180;23525:388;;;;:::o;970:126:7:-;1035:13;1067:9;:18;1077:7;1067:18;;;;;;;;;;;:22;;1060:29;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;970:126;;;:::o;344:24::-;;;;:::o;1227:110::-;1281:7;1308:9;:13;1318:2;1308:13;;;;;;;;;;;:22;;;;;;;;;;;;1301:29;;1227:110;;;:::o;17303:162:3:-;17400:4;17423:18;:25;17442:5;17423:25;;;;;;;;;;;;;;;:35;17449:8;17423:35;;;;;;;;;;;;;;;;;;;;;;;;;17416:42;;17303:162;;;;:::o;17714:277::-;17779:4;17833:7;17814:15;:13;:15::i;:::-;:26;;:65;;;;;17866:13;;17856:7;:23;17814:65;:151;;;;;17964:1;2075:8;17916:17;:26;17934:7;17916:26;;;;;;;;;;;;:44;:49;17814:151;17795:170;;17714:277;;;:::o;38922:103::-;38982:7;39008:10;39001:17;;38922:103;:::o;5383:90::-;5439:7;5383:90;:::o;12472:1249::-;12539:7;12558:12;12573:7;12558:22;;12638:4;12619:15;:13;:15::i;:::-;:23;12615:1042;;12671:13;;12664:4;:20;12660:997;;;12708:14;12725:17;:23;12743:4;12725:23;;;;;;;;;;;;12708:40;;12840:1;2075:8;12812:6;:24;:29;12808:831;;;13467:111;13484:1;13474:6;:11;13467:111;;;13526:17;:25;13544:6;;;;;;;13526:25;;;;;;;;;;;;13517:34;;13467:111;;;13610:6;13603:13;;;;;;12808:831;12660:997;;12615:1042;13683:31;;;;;;;;;;;;;;12472:1249;;;;:::o;18849:468::-;18948:27;18977:23;19016:38;19057:15;:24;19073:7;19057:24;;;;;;;;;;;19016:65;;19225:18;19202:41;;19281:19;19275:26;19256:45;;19188:123;;;;:::o;18095:646::-;18240:11;18402:16;18395:5;18391:28;18382:37;;18560:16;18549:9;18545:32;18532:45;;18708:15;18697:9;18694:30;18686:5;18675:9;18672:20;18669:56;18659:66;;18272:463;;;;;:::o;24557:154::-;;;;;:::o;38249:304::-;38380:7;38399:16;2470:3;38425:19;:41;;38399:68;;2470:3;38492:31;38503:4;38509:2;38513:9;38492:10;:31::i;:::-;38484:40;;:62;;38477:69;;;38249:304;;;;;:::o;14254:443::-;14334:14;14499:16;14492:5;14488:28;14479:37;;14674:5;14660:11;14635:23;14631:41;14628:52;14621:5;14618:63;14608:73;;14369:322;;;;:::o;25358:153::-;;;;;:::o;973:558:0:-;1030:16;1141:4;1135:11;1171:66;1166:3;1159:79;1284:14;1278:4;1274:25;1267:4;1262:3;1258:14;1251:49;1336:66;1329:4;1324:3;1320:14;1313:90;1443:4;1438:3;1435:1;1428:20;1416:32;;1110:348;1495:1;1475:22;;:8;:22;;;;1467:57;;;;;;;;;;;;:::i;:::-;;;;;;;;;973:558;;;:::o;27082:2396:3:-;27154:20;27177:13;;27154:36;;27216:1;27204:8;:13;27200:44;;;27226:18;;;;;;;;;;;;;;27200:44;27255:61;27285:1;27289:2;27293:12;27307:8;27255:21;:61::i;:::-;27788:1;1452:2;27758:1;:26;;27757:32;27745:8;:45;27719:18;:22;27738:2;27719:22;;;;;;;;;;;;;;;;:71;;;;;;;;;;;28060:136;28096:2;28149:33;28172:1;28176:2;28180:1;28149:14;:33::i;:::-;28116:30;28137:8;28116:20;:30::i;:::-;:66;28060:18;:136::i;:::-;28026:17;:31;28044:12;28026:31;;;;;;;;;;;:170;;;;28211:16;28241:11;28270:8;28255:12;:23;28241:37;;28520:16;28516:2;28512:25;28500:37;;28884:12;28845:8;28805:1;28744:25;28686:1;28626;28600:328;29005:1;28991:12;28987:20;28946:339;29045:3;29036:7;29033:16;28946:339;;29259:7;29249:8;29246:1;29219:25;29216:1;29213;29208:59;29097:1;29088:7;29084:15;29073:26;;28946:339;;;28950:75;29328:1;29316:8;:13;29312:45;;;29338:19;;;;;;;;;;;;;;29312:45;29388:3;29372:13;:19;;;;27082:2396;;29411:60;29440:1;29444:2;29448:12;29462:8;29411:20;:60::i;:::-;27082:2396;;;:::o;25939:697::-;26097:4;26142:2;26117:45;;;26163:19;:17;:19::i;:::-;26184:4;26190:7;26199:5;26117:88;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;26113:517;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26412:1;26395:6;:13;:18;26391:229;;;26440:40;;;;;;;;;;;;;;26391:229;26580:6;26574:13;26565:6;26561:2;26557:15;26550:38;26113:517;26283:54;;;26273:64;;;:6;:64;;;;26266:71;;;25939:697;;;;;;:::o;37960:143::-;38093:6;37960:143;;;;;:::o;14794:318::-;14864:14;15093:1;15083:8;15080:15;15054:24;15050:46;15040:56;;14964:142;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:343:9:-;84:5;109:65;125:48;166:6;125:48;:::i;:::-;109:65;:::i;:::-;100:74;;197:6;190:5;183:21;235:4;228:5;224:16;273:3;264:6;259:3;255:16;252:25;249:2;;;290:1;287;280:12;249:2;303:41;337:6;332:3;327;303:41;:::i;:::-;90:260;;;;;;:::o;356:139::-;402:5;440:6;427:20;418:29;;456:33;483:5;456:33;:::i;:::-;408:87;;;;:::o;501:133::-;544:5;582:6;569:20;560:29;;598:30;622:5;598:30;:::i;:::-;550:84;;;;:::o;640:137::-;694:5;725:6;719:13;710:22;;741:30;765:5;741:30;:::i;:::-;700:77;;;;:::o;783:137::-;828:5;866:6;853:20;844:29;;882:32;908:5;882:32;:::i;:::-;834:86;;;;:::o;926:141::-;982:5;1013:6;1007:13;998:22;;1029:32;1055:5;1029:32;:::i;:::-;988:79;;;;:::o;1086:271::-;1141:5;1190:3;1183:4;1175:6;1171:17;1167:27;1157:2;;1208:1;1205;1198:12;1157:2;1248:6;1235:20;1273:78;1347:3;1339:6;1332:4;1324:6;1320:17;1273:78;:::i;:::-;1264:87;;1147:210;;;;;:::o;1377:352::-;1435:8;1445:6;1495:3;1488:4;1480:6;1476:17;1472:27;1462:2;;1513:1;1510;1503:12;1462:2;1549:6;1536:20;1526:30;;1579:18;1571:6;1568:30;1565:2;;;1611:1;1608;1601:12;1565:2;1648:4;1640:6;1636:17;1624:29;;1702:3;1694:4;1686:6;1682:17;1672:8;1668:32;1665:41;1662:2;;;1719:1;1716;1709:12;1662:2;1452:277;;;;;:::o;1735:139::-;1781:5;1819:6;1806:20;1797:29;;1835:33;1862:5;1835:33;:::i;:::-;1787:87;;;;:::o;1880:262::-;1939:6;1988:2;1976:9;1967:7;1963:23;1959:32;1956:2;;;2004:1;2001;1994:12;1956:2;2047:1;2072:53;2117:7;2108:6;2097:9;2093:22;2072:53;:::i;:::-;2062:63;;2018:117;1946:196;;;;:::o;2148:407::-;2216:6;2224;2273:2;2261:9;2252:7;2248:23;2244:32;2241:2;;;2289:1;2286;2279:12;2241:2;2332:1;2357:53;2402:7;2393:6;2382:9;2378:22;2357:53;:::i;:::-;2347:63;;2303:117;2459:2;2485:53;2530:7;2521:6;2510:9;2506:22;2485:53;:::i;:::-;2475:63;;2430:118;2231:324;;;;;:::o;2561:552::-;2638:6;2646;2654;2703:2;2691:9;2682:7;2678:23;2674:32;2671:2;;;2719:1;2716;2709:12;2671:2;2762:1;2787:53;2832:7;2823:6;2812:9;2808:22;2787:53;:::i;:::-;2777:63;;2733:117;2889:2;2915:53;2960:7;2951:6;2940:9;2936:22;2915:53;:::i;:::-;2905:63;;2860:118;3017:2;3043:53;3088:7;3079:6;3068:9;3064:22;3043:53;:::i;:::-;3033:63;;2988:118;2661:452;;;;;:::o;3119:809::-;3214:6;3222;3230;3238;3287:3;3275:9;3266:7;3262:23;3258:33;3255:2;;;3304:1;3301;3294:12;3255:2;3347:1;3372:53;3417:7;3408:6;3397:9;3393:22;3372:53;:::i;:::-;3362:63;;3318:117;3474:2;3500:53;3545:7;3536:6;3525:9;3521:22;3500:53;:::i;:::-;3490:63;;3445:118;3602:2;3628:53;3673:7;3664:6;3653:9;3649:22;3628:53;:::i;:::-;3618:63;;3573:118;3758:2;3747:9;3743:18;3730:32;3789:18;3781:6;3778:30;3775:2;;;3821:1;3818;3811:12;3775:2;3849:62;3903:7;3894:6;3883:9;3879:22;3849:62;:::i;:::-;3839:72;;3701:220;3245:683;;;;;;;:::o;3934:401::-;3999:6;4007;4056:2;4044:9;4035:7;4031:23;4027:32;4024:2;;;4072:1;4069;4062:12;4024:2;4115:1;4140:53;4185:7;4176:6;4165:9;4161:22;4140:53;:::i;:::-;4130:63;;4086:117;4242:2;4268:50;4310:7;4301:6;4290:9;4286:22;4268:50;:::i;:::-;4258:60;;4213:115;4014:321;;;;;:::o;4341:407::-;4409:6;4417;4466:2;4454:9;4445:7;4441:23;4437:32;4434:2;;;4482:1;4479;4472:12;4434:2;4525:1;4550:53;4595:7;4586:6;4575:9;4571:22;4550:53;:::i;:::-;4540:63;;4496:117;4652:2;4678:53;4723:7;4714:6;4703:9;4699:22;4678:53;:::i;:::-;4668:63;;4623:118;4424:324;;;;;:::o;4754:278::-;4821:6;4870:2;4858:9;4849:7;4845:23;4841:32;4838:2;;;4886:1;4883;4876:12;4838:2;4929:1;4954:61;5007:7;4998:6;4987:9;4983:22;4954:61;:::i;:::-;4944:71;;4900:125;4828:204;;;;:::o;5038:260::-;5096:6;5145:2;5133:9;5124:7;5120:23;5116:32;5113:2;;;5161:1;5158;5151:12;5113:2;5204:1;5229:52;5273:7;5264:6;5253:9;5249:22;5229:52;:::i;:::-;5219:62;;5175:116;5103:195;;;;:::o;5304:282::-;5373:6;5422:2;5410:9;5401:7;5397:23;5393:32;5390:2;;;5438:1;5435;5428:12;5390:2;5481:1;5506:63;5561:7;5552:6;5541:9;5537:22;5506:63;:::i;:::-;5496:73;;5452:127;5380:206;;;;:::o;5592:262::-;5651:6;5700:2;5688:9;5679:7;5675:23;5671:32;5668:2;;;5716:1;5713;5706:12;5668:2;5759:1;5784:53;5829:7;5820:6;5809:9;5805:22;5784:53;:::i;:::-;5774:63;;5730:117;5658:196;;;;:::o;5860:1243::-;5991:6;5999;6007;6015;6023;6031;6039;6047;6096:3;6084:9;6075:7;6071:23;6067:33;6064:2;;;6113:1;6110;6103:12;6064:2;6156:1;6181:53;6226:7;6217:6;6206:9;6202:22;6181:53;:::i;:::-;6171:63;;6127:117;6283:2;6309:53;6354:7;6345:6;6334:9;6330:22;6309:53;:::i;:::-;6299:63;;6254:118;6439:2;6428:9;6424:18;6411:32;6470:18;6462:6;6459:30;6456:2;;;6502:1;6499;6492:12;6456:2;6538:65;6595:7;6586:6;6575:9;6571:22;6538:65;:::i;:::-;6520:83;;;;6382:231;6680:2;6669:9;6665:18;6652:32;6711:18;6703:6;6700:30;6697:2;;;6743:1;6740;6733:12;6697:2;6779:65;6836:7;6827:6;6816:9;6812:22;6779:65;:::i;:::-;6761:83;;;;6623:231;6921:3;6910:9;6906:19;6893:33;6953:18;6945:6;6942:30;6939:2;;;6985:1;6982;6975:12;6939:2;7021:65;7078:7;7069:6;7058:9;7054:22;7021:65;:::i;:::-;7003:83;;;;6864:232;6054:1049;;;;;;;;;;;:::o;7109:118::-;7196:24;7214:5;7196:24;:::i;:::-;7191:3;7184:37;7174:53;;:::o;7233:109::-;7314:21;7329:5;7314:21;:::i;:::-;7309:3;7302:34;7292:50;;:::o;7348:360::-;7434:3;7462:38;7494:5;7462:38;:::i;:::-;7516:70;7579:6;7574:3;7516:70;:::i;:::-;7509:77;;7595:52;7640:6;7635:3;7628:4;7621:5;7617:16;7595:52;:::i;:::-;7672:29;7694:6;7672:29;:::i;:::-;7667:3;7663:39;7656:46;;7438:270;;;;;:::o;7714:195::-;7833:69;7896:5;7833:69;:::i;:::-;7828:3;7821:82;7811:98;;:::o;7939:304::-;8037:3;8058:71;8122:6;8117:3;8058:71;:::i;:::-;8051:78;;8139:43;8175:6;8170:3;8163:5;8139:43;:::i;:::-;8207:29;8229:6;8207:29;:::i;:::-;8202:3;8198:39;8191:46;;8041:202;;;;;:::o;8249:364::-;8337:3;8365:39;8398:5;8365:39;:::i;:::-;8420:71;8484:6;8479:3;8420:71;:::i;:::-;8413:78;;8500:52;8545:6;8540:3;8533:4;8526:5;8522:16;8500:52;:::i;:::-;8577:29;8599:6;8577:29;:::i;:::-;8572:3;8568:39;8561:46;;8341:272;;;;;:::o;8619:366::-;8761:3;8782:67;8846:2;8841:3;8782:67;:::i;:::-;8775:74;;8858:93;8947:3;8858:93;:::i;:::-;8976:2;8971:3;8967:12;8960:19;;8765:220;;;:::o;8991:398::-;9150:3;9171:83;9252:1;9247:3;9171:83;:::i;:::-;9164:90;;9263:93;9352:3;9263:93;:::i;:::-;9381:1;9376:3;9372:11;9365:18;;9154:235;;;:::o;9395:118::-;9482:24;9500:5;9482:24;:::i;:::-;9477:3;9470:37;9460:53;;:::o;9519:379::-;9703:3;9725:147;9868:3;9725:147;:::i;:::-;9718:154;;9889:3;9882:10;;9707:191;;;:::o;9904:222::-;9997:4;10035:2;10024:9;10020:18;10012:26;;10048:71;10116:1;10105:9;10101:17;10092:6;10048:71;:::i;:::-;10002:124;;;;:::o;10132:640::-;10327:4;10365:3;10354:9;10350:19;10342:27;;10379:71;10447:1;10436:9;10432:17;10423:6;10379:71;:::i;:::-;10460:72;10528:2;10517:9;10513:18;10504:6;10460:72;:::i;:::-;10542;10610:2;10599:9;10595:18;10586:6;10542:72;:::i;:::-;10661:9;10655:4;10651:20;10646:2;10635:9;10631:18;10624:48;10689:76;10760:4;10751:6;10689:76;:::i;:::-;10681:84;;10332:440;;;;;;;:::o;10778:396::-;10931:4;10969:2;10958:9;10954:18;10946:26;;10982:71;11050:1;11039:9;11035:17;11026:6;10982:71;:::i;:::-;11063:104;11163:2;11152:9;11148:18;11139:6;11063:104;:::i;:::-;10936:238;;;;;:::o;11180:210::-;11267:4;11305:2;11294:9;11290:18;11282:26;;11318:65;11380:1;11369:9;11365:17;11356:6;11318:65;:::i;:::-;11272:118;;;;:::o;11396:333::-;11519:4;11557:2;11546:9;11542:18;11534:26;;11606:9;11600:4;11596:20;11592:1;11581:9;11577:17;11570:47;11634:88;11717:4;11708:6;11700;11634:88;:::i;:::-;11626:96;;11524:205;;;;;:::o;11735:554::-;11916:4;11954:2;11943:9;11939:18;11931:26;;12003:9;11997:4;11993:20;11989:1;11978:9;11974:17;11967:47;12031:88;12114:4;12105:6;12097;12031:88;:::i;:::-;12023:96;;12166:9;12160:4;12156:20;12151:2;12140:9;12136:18;12129:48;12194:88;12277:4;12268:6;12260;12194:88;:::i;:::-;12186:96;;11921:368;;;;;;;:::o;12295:313::-;12408:4;12446:2;12435:9;12431:18;12423:26;;12495:9;12489:4;12485:20;12481:1;12470:9;12466:17;12459:47;12523:78;12596:4;12587:6;12523:78;:::i;:::-;12515:86;;12413:195;;;;:::o;12614:419::-;12780:4;12818:2;12807:9;12803:18;12795:26;;12867:9;12861:4;12857:20;12853:1;12842:9;12838:17;12831:47;12895:131;13021:4;12895:131;:::i;:::-;12887:139;;12785:248;;;:::o;13039:222::-;13132:4;13170:2;13159:9;13155:18;13147:26;;13183:71;13251:1;13240:9;13236:17;13227:6;13183:71;:::i;:::-;13137:124;;;;:::o;13267:129::-;13301:6;13328:20;;:::i;:::-;13318:30;;13357:33;13385:4;13377:6;13357:33;:::i;:::-;13308:88;;;:::o;13402:75::-;13435:6;13468:2;13462:9;13452:19;;13442:35;:::o;13483:307::-;13544:4;13634:18;13626:6;13623:30;13620:2;;;13656:18;;:::i;:::-;13620:2;13694:29;13716:6;13694:29;:::i;:::-;13686:37;;13778:4;13772;13768:15;13760:23;;13549:241;;;:::o;13796:98::-;13847:6;13881:5;13875:12;13865:22;;13854:40;;;:::o;13900:99::-;13952:6;13986:5;13980:12;13970:22;;13959:40;;;:::o;14005:168::-;14088:11;14122:6;14117:3;14110:19;14162:4;14157:3;14153:14;14138:29;;14100:73;;;;:::o;14179:147::-;14280:11;14317:3;14302:18;;14292:34;;;;:::o;14332:169::-;14416:11;14450:6;14445:3;14438:19;14490:4;14485:3;14481:14;14466:29;;14428:73;;;;:::o;14507:305::-;14547:3;14566:20;14584:1;14566:20;:::i;:::-;14561:25;;14600:20;14618:1;14600:20;:::i;:::-;14595:25;;14754:1;14686:66;14682:74;14679:1;14676:81;14673:2;;;14760:18;;:::i;:::-;14673:2;14804:1;14801;14797:9;14790:16;;14551:261;;;;:::o;14818:348::-;14858:7;14881:20;14899:1;14881:20;:::i;:::-;14876:25;;14915:20;14933:1;14915:20;:::i;:::-;14910:25;;15103:1;15035:66;15031:74;15028:1;15025:81;15020:1;15013:9;15006:17;15002:105;14999:2;;;15110:18;;:::i;:::-;14999:2;15158:1;15155;15151:9;15140:20;;14866:300;;;;:::o;15172:191::-;15212:4;15232:20;15250:1;15232:20;:::i;:::-;15227:25;;15266:20;15284:1;15266:20;:::i;:::-;15261:25;;15305:1;15302;15299:8;15296:2;;;15310:18;;:::i;:::-;15296:2;15355:1;15352;15348:9;15340:17;;15217:146;;;;:::o;15369:96::-;15406:7;15435:24;15453:5;15435:24;:::i;:::-;15424:35;;15414:51;;;:::o;15471:90::-;15505:7;15548:5;15541:13;15534:21;15523:32;;15513:48;;;:::o;15567:149::-;15603:7;15643:66;15636:5;15632:78;15621:89;;15611:105;;;:::o;15722:126::-;15759:7;15799:42;15792:5;15788:54;15777:65;;15767:81;;;:::o;15854:77::-;15891:7;15920:5;15909:16;;15899:32;;;:::o;15937:145::-;16019:9;16052:24;16070:5;16052:24;:::i;:::-;16039:37;;16029:53;;;:::o;16088:154::-;16172:6;16167:3;16162;16149:30;16234:1;16225:6;16220:3;16216:16;16209:27;16139:103;;;:::o;16248:307::-;16316:1;16326:113;16340:6;16337:1;16334:13;16326:113;;;16425:1;16420:3;16416:11;16410:18;16406:1;16401:3;16397:11;16390:39;16362:2;16359:1;16355:10;16350:15;;16326:113;;;16457:6;16454:1;16451:13;16448:2;;;16537:1;16528:6;16523:3;16519:16;16512:27;16448:2;16297:258;;;;:::o;16561:320::-;16605:6;16642:1;16636:4;16632:12;16622:22;;16689:1;16683:4;16679:12;16710:18;16700:2;;16766:4;16758:6;16754:17;16744:27;;16700:2;16828;16820:6;16817:14;16797:18;16794:38;16791:2;;;16847:18;;:::i;:::-;16791:2;16612:269;;;;:::o;16887:281::-;16970:27;16992:4;16970:27;:::i;:::-;16962:6;16958:40;17100:6;17088:10;17085:22;17064:18;17052:10;17049:34;17046:62;17043:2;;;17111:18;;:::i;:::-;17043:2;17151:10;17147:2;17140:22;16930:238;;;:::o;17174:180::-;17222:77;17219:1;17212:88;17319:4;17316:1;17309:15;17343:4;17340:1;17333:15;17360:180;17408:77;17405:1;17398:88;17505:4;17502:1;17495:15;17529:4;17526:1;17519:15;17546:180;17594:77;17591:1;17584:88;17691:4;17688:1;17681:15;17715:4;17712:1;17705:15;17732:102;17773:6;17824:2;17820:7;17815:2;17808:5;17804:14;17800:28;17790:38;;17780:54;;;:::o;17840:172::-;17980:24;17976:1;17968:6;17964:14;17957:48;17946:66;:::o;18018:114::-;18124:8;:::o;18138:122::-;18211:24;18229:5;18211:24;:::i;:::-;18204:5;18201:35;18191:2;;18250:1;18247;18240:12;18191:2;18181:79;:::o;18266:116::-;18336:21;18351:5;18336:21;:::i;:::-;18329:5;18326:32;18316:2;;18372:1;18369;18362:12;18316:2;18306:76;:::o;18388:120::-;18460:23;18477:5;18460:23;:::i;:::-;18453:5;18450:34;18440:2;;18498:1;18495;18488:12;18440:2;18430:78;:::o;18514:122::-;18587:24;18605:5;18587:24;:::i;:::-;18580:5;18577:35;18567:2;;18626:1;18623;18616:12;18567:2;18557:79;:::o
Swarm Source
ipfs://1b74771594fff08f9735652ad7917b6cea4e1839b22b4e5eee880a1c7c07b13e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.