Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15495430 | 722 days ago | IN | 0 ETH | 0.06043807 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ERC1155CollectionV2
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; /// @dev Theia ERC1155 Collection Version 2 /// Added "mint price" and "treasury" contract ERC1155CollectionV2 is ERC1155Upgradeable, OwnableUpgradeable, PausableUpgradeable { struct MintInfo { bytes32 merkleRoot; uint256 maxPerUser; uint256 mintAmount; } string public name; string public symbol; uint256 public nextTokenId; mapping(uint256 => uint256) private _totalSupply; mapping(uint256 => string) private _tokenURIs; mapping(uint256 => MintInfo) private _mintInfos; mapping(uint256 => mapping(address => uint256)) private _mintedAmount; mapping(uint256 => uint256) public mintPrice; address public treasury; // ********************** Errors ********************** error NonExistentToken(); error WhitelistMint(); error PublicMint(); error MaxMintAmount(); error MaxMintPerUser(); error InvalidInWhitelist(); error MaxMintWhitelist(); error InvalidETH(); error InvalidTreasury(); // ********************** Events ********************** event AddCollection(uint256 tokenId, string uri, MintInfo mintInfo, uint256 mintPrice); event SetMintInfo(MintInfo mintInfo, uint256 tokenId); event SetTreasury(address treasury); // ********************** Modifiers ********************** modifier existTokenId(uint256 tokenId) { if (tokenId >= nextTokenId) revert NonExistentToken(); _; } // ********************** Constructor ********************** function initialize(string memory name_, string memory symbol_) public initializer { name = name_; symbol = symbol_; // Ownable Initialize __Ownable_init(); // Pausable Initialize __Pausable_init(); // ERC1155 Initialize __ERC1155_init(""); } /** * @dev Add sub collection * if merkleRoot_ is zero, sub collection will be public-mint, or not will be whitelist-mint */ function addCollection( string memory uri_, bytes32 merkleRoot_, uint256 maxPerUser_, uint256 mintAmount_, uint256 mintPrice_ ) external onlyOwner { uint256 tokenId = nextTokenId; nextTokenId++; _tokenURIs[tokenId] = uri_; _mintInfos[tokenId] = MintInfo({merkleRoot: merkleRoot_, maxPerUser: maxPerUser_, mintAmount: mintAmount_}); mintPrice[tokenId] = mintPrice_; emit AddCollection(tokenId, uri(tokenId), mintInfo(tokenId), mintPrice_); } /** * @dev Public mint * if owner mint, there is no limit */ function publicMint( address to_, uint256 tokenId_, uint256 quantity_, bytes memory data_ ) external existTokenId(tokenId_) whenNotPaused payable { uint256 totalSupply_ = _totalSupply[tokenId_]; if (_msgSender() != owner()) { uint256 _mintPrice = mintPrice[tokenId_]; if(_mintPrice != 0 && msg.value != _mintPrice) revert InvalidETH(); MintInfo memory mi = mintInfo(tokenId_); if (mi.merkleRoot != 0) revert WhitelistMint(); if (totalSupply_ + quantity_ > mi.mintAmount) revert MaxMintAmount(); uint256 mintedAmount_ = _mintedAmount[tokenId_][_msgSender()]; if (mintedAmount_ + quantity_ > mi.maxPerUser) revert MaxMintPerUser(); _mintedAmount[tokenId_][_msgSender()] = mintedAmount_ + quantity_; } _totalSupply[tokenId_] = totalSupply_ + quantity_; _mint(to_, tokenId_, quantity_, data_); if(treasury != address(0)) { payable(treasury).transfer(msg.value); } } /** * @dev Whitelist mint * if account is not exist in whitelist, he can not mint */ function whitelistMint( address to_, uint256 tokenId_, uint256 quantity_, bytes memory data_, uint256 index_, bytes32[] calldata _proofs, uint256 maxAmount ) external existTokenId(tokenId_) whenNotPaused payable { MintInfo memory mi = mintInfo(tokenId_); if (mi.merkleRoot == 0) revert PublicMint(); uint256 _mintPrice = mintPrice[tokenId_]; if(_mintPrice != 0 && msg.value != _mintPrice) revert InvalidETH(); bytes32 leaf = keccak256(abi.encodePacked(index_, _msgSender(), maxAmount)); if (!MerkleProof.verify(_proofs, mi.merkleRoot, leaf)) revert InvalidInWhitelist(); uint256 totalSupply_ = _totalSupply[tokenId_]; if (totalSupply_ + quantity_ > mi.mintAmount) revert MaxMintAmount(); uint256 mintedAmount_ = _mintedAmount[tokenId_][_msgSender()]; if (mintedAmount_ + quantity_ > mi.maxPerUser) revert MaxMintPerUser(); if (mintedAmount_ + quantity_ > maxAmount) revert MaxMintWhitelist(); unchecked { _mintedAmount[tokenId_][_msgSender()] = mintedAmount_ + quantity_; _totalSupply[tokenId_] = totalSupply_ + quantity_; } _mint(to_, tokenId_, quantity_, data_); if(treasury != address(0)) { payable(treasury).transfer(msg.value); } } /** * @dev Public batch mint * Any one can mint several nfts at once. If owner mint, there is no limit */ function mintBatch( address to_, uint256[] memory tokenIds_, uint256[] memory quantities_, bytes memory data_ ) external whenNotPaused payable { uint256 totalMintPrice = 0; for (uint256 i = 0; i < tokenIds_.length; i++) { uint256 tokenId = tokenIds_[i]; if (tokenId >= nextTokenId) revert NonExistentToken(); uint256 quantity = quantities_[i]; uint256 totalSupply_ = _totalSupply[tokenId]; if (_msgSender() != owner()) { uint256 _mintPrice = mintPrice[tokenId]; if(_mintPrice != 0) { totalMintPrice += _mintPrice; } MintInfo memory mi = mintInfo(tokenId); if (mi.merkleRoot != 0) revert WhitelistMint(); if (totalSupply_ + quantity > mi.mintAmount) revert MaxMintAmount(); uint256 mintedAmount_ = _mintedAmount[tokenId][_msgSender()]; if (mintedAmount_ + quantity > mi.maxPerUser) revert MaxMintPerUser(); _mintedAmount[tokenId][_msgSender()] = mintedAmount_ + quantity; } _totalSupply[tokenId] = totalSupply_ + quantity; } if(msg.value != totalMintPrice) revert InvalidETH(); _mintBatch(to_, tokenIds_, quantities_, data_); if(treasury != address(0)) { payable(treasury).transfer(totalMintPrice); } } /** * @dev Get token uri by token id */ function uri(uint256 tokenId) public view override returns (string memory) { string memory tokenURI = _tokenURIs[tokenId]; return bytes(tokenURI).length > 0 ? tokenURI : super.uri(tokenId); } /** * @dev Set token uri by token id */ function setURI(uint256 tokenId, string memory tokenURI) external onlyOwner existTokenId(tokenId) { _tokenURIs[tokenId] = tokenURI; emit URI(uri(tokenId), tokenId); } /** * @dev Get token supply by token id */ function totalSupply(uint256 tokenId) external view returns (uint256) { return _totalSupply[tokenId]; } /** * @dev Get mint info of sub collection by token id */ function mintInfo(uint256 tokenId) public view returns (MintInfo memory) { return _mintInfos[tokenId]; } /** * @dev Set mint info of sub collection */ function setMintInfo( uint256 tokenId_, bytes32 merkleRoot_, uint256 maxPerUser_, uint256 mintAmount_, uint256 mintPrice_ ) external onlyOwner existTokenId(tokenId_) { _mintInfos[tokenId_] = MintInfo({merkleRoot: merkleRoot_, maxPerUser: maxPerUser_, mintAmount: mintAmount_}); mintPrice[tokenId_] = mintPrice_; emit SetMintInfo(mintInfo(tokenId_), tokenId_); } /** * @dev Get the minted amount of user in sub collection. */ function mintedAmountOf(address account, uint256 tokenId) external view returns (uint256) { return _mintedAmount[tokenId][account]; } /** * @dev Set treasury. */ function setTreasury(address _treasury) external onlyOwner { if(_treasury == address(0)) revert InvalidTreasury(); treasury = _treasury; emit SetTreasury(_treasury); } // ********************** Pausable ********************** function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155Upgradeable.sol"; import "./IERC1155ReceiverUpgradeable.sol"; import "./extensions/IERC1155MetadataURIUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable { using AddressUpgradeable for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ function __ERC1155_init(string memory uri_) internal onlyInitializing { __ERC1155_init_unchained(uri_); } function __ERC1155_init_unchained(string memory uri_) internal onlyInitializing { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155Upgradeable).interfaceId || interfaceId == type(IERC1155MetadataURIUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155ReceiverUpgradeable.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155ReceiverUpgradeable.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[47] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155Upgradeable.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"InvalidETH","type":"error"},{"inputs":[],"name":"InvalidInWhitelist","type":"error"},{"inputs":[],"name":"InvalidTreasury","type":"error"},{"inputs":[],"name":"MaxMintAmount","type":"error"},{"inputs":[],"name":"MaxMintPerUser","type":"error"},{"inputs":[],"name":"MaxMintWhitelist","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"PublicMint","type":"error"},{"inputs":[],"name":"WhitelistMint","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"uri","type":"string"},{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxPerUser","type":"uint256"},{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"indexed":false,"internalType":"struct ERC1155CollectionV2.MintInfo","name":"mintInfo","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"mintPrice","type":"uint256"}],"name":"AddCollection","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxPerUser","type":"uint256"},{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"indexed":false,"internalType":"struct ERC1155CollectionV2.MintInfo","name":"mintInfo","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"SetMintInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"SetTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"},{"internalType":"uint256","name":"maxPerUser_","type":"uint256"},{"internalType":"uint256","name":"mintAmount_","type":"uint256"},{"internalType":"uint256","name":"mintPrice_","type":"uint256"}],"name":"addCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities_","type":"uint256[]"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintInfo","outputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxPerUser","type":"uint256"},{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"internalType":"struct ERC1155CollectionV2.MintInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintedAmountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"},{"internalType":"uint256","name":"maxPerUser_","type":"uint256"},{"internalType":"uint256","name":"mintAmount_","type":"uint256"},{"internalType":"uint256","name":"mintPrice_","type":"uint256"}],"name":"setMintInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"setURI","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"},{"internalType":"uint256","name":"index_","type":"uint256"},{"internalType":"bytes32[]","name":"_proofs","type":"bytes32[]"},{"internalType":"uint256","name":"maxAmount","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506154d1806100206000396000f3fe6080604052600436106101cc5760003560e01c8063734bf30a116100f7578063bd85b03911610095578063f0f4426011610064578063f0f442601461065e578063f242432a14610687578063f2701787146106b0578063f2fde38b146106d9576101cc565b8063bd85b0391461058b578063d6316d42146105c8578063e6a72acf146105e4578063e985e9c514610621576101cc565b8063862440e2116100d1578063862440e2146104e35780638da5cb5b1461050c57806395d89b4114610537578063a22cb46514610562576101cc565b8063734bf30a1461046457806375794a3c146104a15780638456cb59146104cc576101cc565b80632eb2c2d61161016f5780634e1273f41161013e5780634e1273f4146103ba5780635c975abb146103f757806361d027b314610422578063715018a61461044d576101cc565b80632eb2c2d6146103145780633f4ba83a1461033d578063443aa533146103545780634cd88b7614610391576101cc565b806308184a18116101ab57806308184a18146102765780630e89341c1461029f5780631f7fdffa146102dc578063227dca58146102f8576101cc565b8062fdd58e146101d157806301ffc9a71461020e57806306fdde031461024b575b600080fd5b3480156101dd57600080fd5b506101f860048036038101906101f3919061385b565b610702565b60405161020591906138aa565b60405180910390f35b34801561021a57600080fd5b506102356004803603810190610230919061391d565b6107cc565b6040516102429190613965565b60405180910390f35b34801561025757600080fd5b506102606108ae565b60405161026d9190613a19565b60405180910390f35b34801561028257600080fd5b5061029d60048036038101906102989190613ba6565b61093c565b005b3480156102ab57600080fd5b506102c660048036038101906102c19190613c3d565b610a49565b6040516102d39190613a19565b60405180910390f35b6102f660048036038101906102f19190613dd3565b610b0c565b005b610312600480360381019061030d9190613ee9565b610f13565b005b34801561032057600080fd5b5061033b60048036038101906103369190613fc7565b611365565b005b34801561034957600080fd5b50610352611406565b005b34801561036057600080fd5b5061037b60048036038101906103769190613c3d565b611418565b60405161038891906140f6565b60405180910390f35b34801561039d57600080fd5b506103b860048036038101906103b39190614111565b611464565b005b3480156103c657600080fd5b506103e160048036038101906103dc919061424c565b6115f2565b6040516103ee9190614373565b60405180910390f35b34801561040357600080fd5b5061040c61170b565b6040516104199190613965565b60405180910390f35b34801561042e57600080fd5b50610437611722565b60405161044491906143a4565b60405180910390f35b34801561045957600080fd5b50610462611749565b005b34801561047057600080fd5b5061048b6004803603810190610486919061385b565b61175d565b60405161049891906138aa565b60405180910390f35b3480156104ad57600080fd5b506104b66117b9565b6040516104c391906138aa565b60405180910390f35b3480156104d857600080fd5b506104e16117bf565b005b3480156104ef57600080fd5b5061050a600480360381019061050591906143bf565b6117d1565b005b34801561051857600080fd5b50610521611882565b60405161052e91906143a4565b60405180910390f35b34801561054357600080fd5b5061054c6118ac565b6040516105599190613a19565b60405180910390f35b34801561056e57600080fd5b5061058960048036038101906105849190614447565b61193a565b005b34801561059757600080fd5b506105b260048036038101906105ad9190613c3d565b611950565b6040516105bf91906138aa565b60405180910390f35b6105e260048036038101906105dd9190614487565b61196d565b005b3480156105f057600080fd5b5061060b60048036038101906106069190613c3d565b611d0c565b60405161061891906138aa565b60405180910390f35b34801561062d57600080fd5b506106486004803603810190610643919061450a565b611d25565b6040516106559190613965565b60405180910390f35b34801561066a57600080fd5b506106856004803603810190610680919061454a565b611db9565b005b34801561069357600080fd5b506106ae60048036038101906106a99190614577565b611ea4565b005b3480156106bc57600080fd5b506106d760048036038101906106d2919061460e565b611f45565b005b3480156106e557600080fd5b5061070060048036038101906106fb919061454a565b61203b565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610773576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076a906146fb565b60405180910390fd5b6065600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108a757506108a6826120bf565b5b9050919050565b60fb80546108bb9061474a565b80601f01602080910402602001604051908101604052809291908181526020018280546108e79061474a565b80156109345780601f1061090957610100808354040283529160200191610934565b820191906000526020600020905b81548152906001019060200180831161091757829003601f168201915b505050505081565b610944612129565b600060fd54905060fd600081548092919061095e906147ab565b91905055508560ff6000838152602001908152602001600020908051906020019061098a9291906136ec565b506040518060600160405280868152602001858152602001848152506101006000838152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050816101026000838152602001908152602001600020819055507ff8cb56257234ef710cfa8c30218bb947c3dbf3f956508521091acfbbf838067981610a1f83610a49565b610a2884611418565b85604051610a3994939291906147f4565b60405180910390a1505050505050565b6060600060ff60008481526020019081526020016000208054610a6b9061474a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a979061474a565b8015610ae45780601f10610ab957610100808354040283529160200191610ae4565b820191906000526020600020905b815481529060010190602001808311610ac757829003601f168201915b505050505090506000815111610b0257610afd836121a7565b610b04565b805b915050919050565b610b1461223b565b6000805b8451811015610e04576000858281518110610b3657610b35614840565b5b6020026020010151905060fd548110610b7b576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858381518110610b9057610b8f614840565b5b60200260200101519050600060fe6000848152602001908152602001600020549050610bba611882565b73ffffffffffffffffffffffffffffffffffffffff16610bd8612285565b73ffffffffffffffffffffffffffffffffffffffff1614610dcb576000610102600085815260200190815260200160002054905060008114610c23578086610c20919061486f565b95505b6000610c2e85611418565b90506000801b816000015114610c70576040517fedcbb4a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80604001518484610c81919061486f565b1115610cb9576040517fcaeeffdb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061010160008781526020019081526020016000206000610cd9612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081602001518582610d27919061486f565b1115610d5f576040517f5922110b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8481610d6b919061486f565b61010160008881526020019081526020016000206000610d89612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b8181610dd7919061486f565b60fe6000858152602001908152602001600020819055505050508080610dfc906147ab565b915050610b18565b50803414610e3e576040517f9e1708bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4a8585858561228d565b600073ffffffffffffffffffffffffffffffffffffffff1661010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f0c5761010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610f0a573d6000803e3d6000fd5b505b5050505050565b8660fd548110610f4f576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f5761223b565b6000610f6289611418565b90506000801b81600001511415610fa5576040517ffe1881c400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061010260008b815260200190815260200160002054905060008114158015610fcf5750803414155b15611006576040517f9e1708bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600087611011612285565b866040516020016110249392919061492e565b60405160208183030381529060405280519060200120905061108c878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508460000151836124bb565b6110c2576040517ff3dbe77400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060fe60008d815260200190815260200160002054905083604001518b826110eb919061486f565b1115611123576040517fcaeeffdb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061010160008e81526020019081526020016000206000611143612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084602001518c82611191919061486f565b11156111c9576040517f5922110b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b868c826111d6919061486f565b111561120e576040517fc8d882ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8b810161010160008f8152602001908152602001600020600061122f612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508b820160fe60008f8152602001908152602001600020819055506112938e8e8e8e6124d2565b600073ffffffffffffffffffffffffffffffffffffffff1661010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113555761010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611353573d6000803e3d6000fd5b505b5050505050505050505050505050565b61136d612285565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806113b357506113b2856113ad612285565b611d25565b5b6113f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e9906149dd565b60405180910390fd5b6113ff8585858585612684565b5050505050565b61140e612129565b6114166129a9565b565b611420613772565b610100600083815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b60008060019054906101000a900460ff161590508080156114955750600160008054906101000a900460ff1660ff16105b806114c257506114a430612a0c565b1580156114c15750600160008054906101000a900460ff1660ff16145b5b611501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f890614a6f565b60405180910390fd5b60016000806101000a81548160ff021916908360ff160217905550801561153e576001600060016101000a81548160ff0219169083151502179055505b8260fb90805190602001906115549291906136ec565b508160fc908051906020019061156b9291906136ec565b50611574612a2f565b61157c612a88565b61159460405180602001604052806000815250612ae1565b80156115ed5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516115e49190614ae1565b60405180910390a15b505050565b60608151835114611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162f90614b6e565b60405180910390fd5b6000835167ffffffffffffffff81111561165557611654613a45565b5b6040519080825280602002602001820160405280156116835781602001602082028036833780820191505090505b50905060005b8451811015611700576116d08582815181106116a8576116a7614840565b5b60200260200101518583815181106116c3576116c2614840565b5b6020026020010151610702565b8282815181106116e3576116e2614840565b5b602002602001018181525050806116f9906147ab565b9050611689565b508091505092915050565b600060c960009054906101000a900460ff16905090565b61010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611751612129565b61175b6000612b3c565b565b6000610101600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60fd5481565b6117c7612129565b6117cf612c02565b565b6117d9612129565b8160fd548110611815576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160ff6000858152602001908152602001600020908051906020019061183c9291906136ec565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61186885610a49565b6040516118759190613a19565b60405180910390a2505050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60fc80546118b99061474a565b80601f01602080910402602001604051908101604052809291908181526020018280546118e59061474a565b80156119325780601f1061190757610100808354040283529160200191611932565b820191906000526020600020905b81548152906001019060200180831161191557829003601f168201915b505050505081565b61194c611945612285565b8383612c65565b5050565b600060fe6000838152602001908152602001600020549050919050565b8260fd5481106119a9576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119b161223b565b600060fe60008681526020019081526020016000205490506119d1611882565b73ffffffffffffffffffffffffffffffffffffffff166119ef612285565b73ffffffffffffffffffffffffffffffffffffffff1614611c13576000610102600087815260200190815260200160002054905060008114158015611a345750803414155b15611a6b576040517f9e1708bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611a7687611418565b90506000801b816000015114611ab8576040517fedcbb4a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80604001518684611ac9919061486f565b1115611b01576040517fcaeeffdb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061010160008981526020019081526020016000206000611b21612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081602001518782611b6f919061486f565b1115611ba7576040517f5922110b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8681611bb3919061486f565b61010160008a81526020019081526020016000206000611bd1612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b8381611c1f919061486f565b60fe600087815260200190815260200160002081905550611c42868686866124d2565b600073ffffffffffffffffffffffffffffffffffffffff1661010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d045761010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611d02573d6000803e3d6000fd5b505b505050505050565b6101026020528060005260406000206000915090505481565b6000606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611dc1612129565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e28576040517f14bcf5c800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8061010360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef381604051611e9991906143a4565b60405180910390a150565b611eac612285565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611ef25750611ef185611eec612285565b611d25565b5b611f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f28906149dd565b60405180910390fd5b611f3e8585858585612dd2565b5050505050565b611f4d612129565b8460fd548110611f89576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060600160405280868152602001858152602001848152506101006000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050816101026000888152602001908152602001600020819055507f3ce1046088814cbf2c0fce92f389114dc878d88d6f1e90727ad778decf3bb8d661201c87611418565b8760405161202b929190614b8e565b60405180910390a1505050505050565b612043612129565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120aa90614c29565b60405180910390fd5b6120bc81612b3c565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612131612285565b73ffffffffffffffffffffffffffffffffffffffff1661214f611882565b73ffffffffffffffffffffffffffffffffffffffff16146121a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219c90614c95565b60405180910390fd5b565b6060606780546121b69061474a565b80601f01602080910402602001604051908101604052809291908181526020018280546121e29061474a565b801561222f5780601f106122045761010080835404028352916020019161222f565b820191906000526020600020905b81548152906001019060200180831161221257829003601f168201915b50505050509050919050565b61224361170b565b15612283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227a90614d01565b60405180910390fd5b565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156122fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f490614d93565b60405180910390fd5b8151835114612341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233890614e25565b60405180910390fd5b600061234b612285565b905061235c81600087878787613071565b60005b84518110156124165783818151811061237b5761237a614840565b5b60200260200101516065600087848151811061239a57612399614840565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123fc919061486f565b92505081905550808061240e906147ab565b91505061235f565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161248e929190614e45565b60405180910390a46124a581600087878787613079565b6124b481600087878787613081565b5050505050565b6000826124c88584613268565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612542576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253990614d93565b60405180910390fd5b600061254c612285565b90506000612559856132be565b90506000612566856132be565b905061257783600089858589613071565b846065600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125d7919061486f565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612655929190614e7c565b60405180910390a461266c83600089858589613079565b61267b83600089898989613338565b50505050505050565b81518351146126c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126bf90614e25565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272f90614f17565b60405180910390fd5b6000612742612285565b9050612752818787878787613071565b60005b845181101561290657600085828151811061277357612772614840565b5b60200260200101519050600085838151811061279257612791614840565b5b6020026020010151905060006065600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282b90614fa9565b60405180910390fd5b8181036065600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816065600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128eb919061486f565b92505081905550505050806128ff906147ab565b9050612755565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161297d929190614e45565b60405180910390a4612993818787878787613079565b6129a1818787878787613081565b505050505050565b6129b161351f565b600060c960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6129f5612285565b604051612a0291906143a4565b60405180910390a1565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a759061503b565b60405180910390fd5b612a86613568565b565b600060019054906101000a900460ff16612ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ace9061503b565b60405180910390fd5b612adf6135c9565b565b600060019054906101000a900460ff16612b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b279061503b565b60405180910390fd5b612b3981613635565b50565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c0a61223b565b600160c960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c4e612285565b604051612c5b91906143a4565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ccb906150cd565b60405180910390fd5b80606660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612dc59190613965565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3990614f17565b60405180910390fd5b6000612e4c612285565b90506000612e59856132be565b90506000612e66856132be565b9050612e76838989858589613071565b60006065600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0590614fa9565b60405180910390fd5b8581036065600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856065600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fc5919061486f565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051613042929190614e7c565b60405180910390a4613058848a8a86868a613079565b613066848a8a8a8a8a613338565b505050505050505050565b505050505050565b505050505050565b6130a08473ffffffffffffffffffffffffffffffffffffffff16612a0c565b15613260578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016130e6959493929190615142565b602060405180830381600087803b15801561310057600080fd5b505af192505050801561313157506040513d601f19601f8201168201806040525081019061312e91906151bf565b60015b6131d75761313d6151f9565b806308c379a0141561319a575061315261521b565b8061315d575061319c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131919190613a19565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ce90615323565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461325e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613255906153b5565b60405180910390fd5b505b505050505050565b60008082905060005b84518110156132b35761329e8286838151811061329157613290614840565b5b6020026020010151613690565b915080806132ab906147ab565b915050613271565b508091505092915050565b60606000600167ffffffffffffffff8111156132dd576132dc613a45565b5b60405190808252806020026020018201604052801561330b5781602001602082028036833780820191505090505b509050828160008151811061332357613322614840565b5b60200260200101818152505080915050919050565b6133578473ffffffffffffffffffffffffffffffffffffffff16612a0c565b15613517578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161339d9594939291906153d5565b602060405180830381600087803b1580156133b757600080fd5b505af19250505080156133e857506040513d601f19601f820116820180604052508101906133e591906151bf565b60015b61348e576133f46151f9565b806308c379a01415613451575061340961521b565b806134145750613453565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134489190613a19565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348590615323565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350c906153b5565b60405180910390fd5b505b505050505050565b61352761170b565b613566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161355d9061547b565b60405180910390fd5b565b600060019054906101000a900460ff166135b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ae9061503b565b60405180910390fd5b6135c76135c2612285565b612b3c565b565b600060019054906101000a900460ff16613618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360f9061503b565b60405180910390fd5b600060c960006101000a81548160ff021916908315150217905550565b600060019054906101000a900460ff16613684576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161367b9061503b565b60405180910390fd5b61368d816136bb565b50565b60008183106136a8576136a382846136d5565b6136b3565b6136b283836136d5565b5b905092915050565b80606790805190602001906136d19291906136ec565b5050565b600082600052816020526040600020905092915050565b8280546136f89061474a565b90600052602060002090601f01602090048101928261371a5760008555613761565b82601f1061373357805160ff1916838001178555613761565b82800160010185558215613761579182015b82811115613760578251825591602001919060010190613745565b5b50905061376e9190613796565b5090565b60405180606001604052806000801916815260200160008152602001600081525090565b5b808211156137af576000816000905550600101613797565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137f2826137c7565b9050919050565b613802816137e7565b811461380d57600080fd5b50565b60008135905061381f816137f9565b92915050565b6000819050919050565b61383881613825565b811461384357600080fd5b50565b6000813590506138558161382f565b92915050565b60008060408385031215613872576138716137bd565b5b600061388085828601613810565b925050602061389185828601613846565b9150509250929050565b6138a481613825565b82525050565b60006020820190506138bf600083018461389b565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138fa816138c5565b811461390557600080fd5b50565b600081359050613917816138f1565b92915050565b600060208284031215613933576139326137bd565b5b600061394184828501613908565b91505092915050565b60008115159050919050565b61395f8161394a565b82525050565b600060208201905061397a6000830184613956565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139ba57808201518184015260208101905061399f565b838111156139c9576000848401525b50505050565b6000601f19601f8301169050919050565b60006139eb82613980565b6139f5818561398b565b9350613a0581856020860161399c565b613a0e816139cf565b840191505092915050565b60006020820190508181036000830152613a3381846139e0565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a7d826139cf565b810181811067ffffffffffffffff82111715613a9c57613a9b613a45565b5b80604052505050565b6000613aaf6137b3565b9050613abb8282613a74565b919050565b600067ffffffffffffffff821115613adb57613ada613a45565b5b613ae4826139cf565b9050602081019050919050565b82818337600083830152505050565b6000613b13613b0e84613ac0565b613aa5565b905082815260208101848484011115613b2f57613b2e613a40565b5b613b3a848285613af1565b509392505050565b600082601f830112613b5757613b56613a3b565b5b8135613b67848260208601613b00565b91505092915050565b6000819050919050565b613b8381613b70565b8114613b8e57600080fd5b50565b600081359050613ba081613b7a565b92915050565b600080600080600060a08688031215613bc257613bc16137bd565b5b600086013567ffffffffffffffff811115613be057613bdf6137c2565b5b613bec88828901613b42565b9550506020613bfd88828901613b91565b9450506040613c0e88828901613846565b9350506060613c1f88828901613846565b9250506080613c3088828901613846565b9150509295509295909350565b600060208284031215613c5357613c526137bd565b5b6000613c6184828501613846565b91505092915050565b600067ffffffffffffffff821115613c8557613c84613a45565b5b602082029050602081019050919050565b600080fd5b6000613cae613ca984613c6a565b613aa5565b90508083825260208201905060208402830185811115613cd157613cd0613c96565b5b835b81811015613cfa5780613ce68882613846565b845260208401935050602081019050613cd3565b5050509392505050565b600082601f830112613d1957613d18613a3b565b5b8135613d29848260208601613c9b565b91505092915050565b600067ffffffffffffffff821115613d4d57613d4c613a45565b5b613d56826139cf565b9050602081019050919050565b6000613d76613d7184613d32565b613aa5565b905082815260208101848484011115613d9257613d91613a40565b5b613d9d848285613af1565b509392505050565b600082601f830112613dba57613db9613a3b565b5b8135613dca848260208601613d63565b91505092915050565b60008060008060808587031215613ded57613dec6137bd565b5b6000613dfb87828801613810565b945050602085013567ffffffffffffffff811115613e1c57613e1b6137c2565b5b613e2887828801613d04565b935050604085013567ffffffffffffffff811115613e4957613e486137c2565b5b613e5587828801613d04565b925050606085013567ffffffffffffffff811115613e7657613e756137c2565b5b613e8287828801613da5565b91505092959194509250565b600080fd5b60008083601f840112613ea957613ea8613a3b565b5b8235905067ffffffffffffffff811115613ec657613ec5613e8e565b5b602083019150836020820283011115613ee257613ee1613c96565b5b9250929050565b60008060008060008060008060e0898b031215613f0957613f086137bd565b5b6000613f178b828c01613810565b9850506020613f288b828c01613846565b9750506040613f398b828c01613846565b965050606089013567ffffffffffffffff811115613f5a57613f596137c2565b5b613f668b828c01613da5565b9550506080613f778b828c01613846565b94505060a089013567ffffffffffffffff811115613f9857613f976137c2565b5b613fa48b828c01613e93565b935093505060c0613fb78b828c01613846565b9150509295985092959890939650565b600080600080600060a08688031215613fe357613fe26137bd565b5b6000613ff188828901613810565b955050602061400288828901613810565b945050604086013567ffffffffffffffff811115614023576140226137c2565b5b61402f88828901613d04565b935050606086013567ffffffffffffffff8111156140505761404f6137c2565b5b61405c88828901613d04565b925050608086013567ffffffffffffffff81111561407d5761407c6137c2565b5b61408988828901613da5565b9150509295509295909350565b61409f81613b70565b82525050565b6140ae81613825565b82525050565b6060820160008201516140ca6000850182614096565b5060208201516140dd60208501826140a5565b5060408201516140f060408501826140a5565b50505050565b600060608201905061410b60008301846140b4565b92915050565b60008060408385031215614128576141276137bd565b5b600083013567ffffffffffffffff811115614146576141456137c2565b5b61415285828601613b42565b925050602083013567ffffffffffffffff811115614173576141726137c2565b5b61417f85828601613b42565b9150509250929050565b600067ffffffffffffffff8211156141a4576141a3613a45565b5b602082029050602081019050919050565b60006141c86141c384614189565b613aa5565b905080838252602082019050602084028301858111156141eb576141ea613c96565b5b835b8181101561421457806142008882613810565b8452602084019350506020810190506141ed565b5050509392505050565b600082601f83011261423357614232613a3b565b5b81356142438482602086016141b5565b91505092915050565b60008060408385031215614263576142626137bd565b5b600083013567ffffffffffffffff811115614281576142806137c2565b5b61428d8582860161421e565b925050602083013567ffffffffffffffff8111156142ae576142ad6137c2565b5b6142ba85828601613d04565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006142fc83836140a5565b60208301905092915050565b6000602082019050919050565b6000614320826142c4565b61432a81856142cf565b9350614335836142e0565b8060005b8381101561436657815161434d88826142f0565b975061435883614308565b925050600181019050614339565b5085935050505092915050565b6000602082019050818103600083015261438d8184614315565b905092915050565b61439e816137e7565b82525050565b60006020820190506143b96000830184614395565b92915050565b600080604083850312156143d6576143d56137bd565b5b60006143e485828601613846565b925050602083013567ffffffffffffffff811115614405576144046137c2565b5b61441185828601613b42565b9150509250929050565b6144248161394a565b811461442f57600080fd5b50565b6000813590506144418161441b565b92915050565b6000806040838503121561445e5761445d6137bd565b5b600061446c85828601613810565b925050602061447d85828601614432565b9150509250929050565b600080600080608085870312156144a1576144a06137bd565b5b60006144af87828801613810565b94505060206144c087828801613846565b93505060406144d187828801613846565b925050606085013567ffffffffffffffff8111156144f2576144f16137c2565b5b6144fe87828801613da5565b91505092959194509250565b60008060408385031215614521576145206137bd565b5b600061452f85828601613810565b925050602061454085828601613810565b9150509250929050565b6000602082840312156145605761455f6137bd565b5b600061456e84828501613810565b91505092915050565b600080600080600060a08688031215614593576145926137bd565b5b60006145a188828901613810565b95505060206145b288828901613810565b94505060406145c388828901613846565b93505060606145d488828901613846565b925050608086013567ffffffffffffffff8111156145f5576145f46137c2565b5b61460188828901613da5565b9150509295509295909350565b600080600080600060a0868803121561462a576146296137bd565b5b600061463888828901613846565b955050602061464988828901613b91565b945050604061465a88828901613846565b935050606061466b88828901613846565b925050608061467c88828901613846565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006146e5602a8361398b565b91506146f082614689565b604082019050919050565b60006020820190508181036000830152614714816146d8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061476257607f821691505b602082108114156147765761477561471b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147b682613825565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156147e9576147e861477c565b5b600182019050919050565b600060c082019050614809600083018761389b565b818103602083015261481b81866139e0565b905061482a60408301856140b4565b61483760a083018461389b565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061487a82613825565b915061488583613825565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156148ba576148b961477c565b5b828201905092915050565b6000819050919050565b6148e06148db82613825565b6148c5565b82525050565b60008160601b9050919050565b60006148fe826148e6565b9050919050565b6000614910826148f3565b9050919050565b614928614923826137e7565b614905565b82525050565b600061493a82866148cf565b60208201915061494a8285614917565b60148201915061495a82846148cf565b602082019150819050949350505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b60006149c7602f8361398b565b91506149d28261496b565b604082019050919050565b600060208201905081810360008301526149f6816149ba565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000614a59602e8361398b565b9150614a64826149fd565b604082019050919050565b60006020820190508181036000830152614a8881614a4c565b9050919050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b6000614acb614ac6614ac184614a8f565b614aa6565b614a99565b9050919050565b614adb81614ab0565b82525050565b6000602082019050614af66000830184614ad2565b92915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614b5860298361398b565b9150614b6382614afc565b604082019050919050565b60006020820190508181036000830152614b8781614b4b565b9050919050565b6000608082019050614ba360008301856140b4565b614bb0606083018461389b565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c1360268361398b565b9150614c1e82614bb7565b604082019050919050565b60006020820190508181036000830152614c4281614c06565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614c7f60208361398b565b9150614c8a82614c49565b602082019050919050565b60006020820190508181036000830152614cae81614c72565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614ceb60108361398b565b9150614cf682614cb5565b602082019050919050565b60006020820190508181036000830152614d1a81614cde565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d7d60218361398b565b9150614d8882614d21565b604082019050919050565b60006020820190508181036000830152614dac81614d70565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614e0f60288361398b565b9150614e1a82614db3565b604082019050919050565b60006020820190508181036000830152614e3e81614e02565b9050919050565b60006040820190508181036000830152614e5f8185614315565b90508181036020830152614e738184614315565b90509392505050565b6000604082019050614e91600083018561389b565b614e9e602083018461389b565b9392505050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614f0160258361398b565b9150614f0c82614ea5565b604082019050919050565b60006020820190508181036000830152614f3081614ef4565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614f93602a8361398b565b9150614f9e82614f37565b604082019050919050565b60006020820190508181036000830152614fc281614f86565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000615025602b8361398b565b915061503082614fc9565b604082019050919050565b6000602082019050818103600083015261505481615018565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006150b760298361398b565b91506150c28261505b565b604082019050919050565b600060208201905081810360008301526150e6816150aa565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615114826150ed565b61511e81856150f8565b935061512e81856020860161399c565b615137816139cf565b840191505092915050565b600060a0820190506151576000830188614395565b6151646020830187614395565b81810360408301526151768186614315565b9050818103606083015261518a8185614315565b9050818103608083015261519e8184615109565b90509695505050505050565b6000815190506151b9816138f1565b92915050565b6000602082840312156151d5576151d46137bd565b5b60006151e3848285016151aa565b91505092915050565b60008160e01c9050919050565b600060033d11156152185760046000803e6152156000516151ec565b90505b90565b600060443d101561522b576152ae565b6152336137b3565b60043d036004823e80513d602482011167ffffffffffffffff8211171561525b5750506152ae565b808201805167ffffffffffffffff81111561527957505050506152ae565b80602083010160043d0385018111156152965750505050506152ae565b6152a582602001850186613a74565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061530d60348361398b565b9150615318826152b1565b604082019050919050565b6000602082019050818103600083015261533c81615300565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061539f60288361398b565b91506153aa82615343565b604082019050919050565b600060208201905081810360008301526153ce81615392565b9050919050565b600060a0820190506153ea6000830188614395565b6153f76020830187614395565b615404604083018661389b565b615411606083018561389b565b81810360808301526154238184615109565b90509695505050505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061546560148361398b565b91506154708261542f565b602082019050919050565b6000602082019050818103600083015261549481615458565b905091905056fea2646970667358221220a12d92b379742ca36b74745a5efa1a8753b920da5c40e132f61effdbe6a69d2264736f6c63430008090033
Deployed Bytecode
0x6080604052600436106101cc5760003560e01c8063734bf30a116100f7578063bd85b03911610095578063f0f4426011610064578063f0f442601461065e578063f242432a14610687578063f2701787146106b0578063f2fde38b146106d9576101cc565b8063bd85b0391461058b578063d6316d42146105c8578063e6a72acf146105e4578063e985e9c514610621576101cc565b8063862440e2116100d1578063862440e2146104e35780638da5cb5b1461050c57806395d89b4114610537578063a22cb46514610562576101cc565b8063734bf30a1461046457806375794a3c146104a15780638456cb59146104cc576101cc565b80632eb2c2d61161016f5780634e1273f41161013e5780634e1273f4146103ba5780635c975abb146103f757806361d027b314610422578063715018a61461044d576101cc565b80632eb2c2d6146103145780633f4ba83a1461033d578063443aa533146103545780634cd88b7614610391576101cc565b806308184a18116101ab57806308184a18146102765780630e89341c1461029f5780631f7fdffa146102dc578063227dca58146102f8576101cc565b8062fdd58e146101d157806301ffc9a71461020e57806306fdde031461024b575b600080fd5b3480156101dd57600080fd5b506101f860048036038101906101f3919061385b565b610702565b60405161020591906138aa565b60405180910390f35b34801561021a57600080fd5b506102356004803603810190610230919061391d565b6107cc565b6040516102429190613965565b60405180910390f35b34801561025757600080fd5b506102606108ae565b60405161026d9190613a19565b60405180910390f35b34801561028257600080fd5b5061029d60048036038101906102989190613ba6565b61093c565b005b3480156102ab57600080fd5b506102c660048036038101906102c19190613c3d565b610a49565b6040516102d39190613a19565b60405180910390f35b6102f660048036038101906102f19190613dd3565b610b0c565b005b610312600480360381019061030d9190613ee9565b610f13565b005b34801561032057600080fd5b5061033b60048036038101906103369190613fc7565b611365565b005b34801561034957600080fd5b50610352611406565b005b34801561036057600080fd5b5061037b60048036038101906103769190613c3d565b611418565b60405161038891906140f6565b60405180910390f35b34801561039d57600080fd5b506103b860048036038101906103b39190614111565b611464565b005b3480156103c657600080fd5b506103e160048036038101906103dc919061424c565b6115f2565b6040516103ee9190614373565b60405180910390f35b34801561040357600080fd5b5061040c61170b565b6040516104199190613965565b60405180910390f35b34801561042e57600080fd5b50610437611722565b60405161044491906143a4565b60405180910390f35b34801561045957600080fd5b50610462611749565b005b34801561047057600080fd5b5061048b6004803603810190610486919061385b565b61175d565b60405161049891906138aa565b60405180910390f35b3480156104ad57600080fd5b506104b66117b9565b6040516104c391906138aa565b60405180910390f35b3480156104d857600080fd5b506104e16117bf565b005b3480156104ef57600080fd5b5061050a600480360381019061050591906143bf565b6117d1565b005b34801561051857600080fd5b50610521611882565b60405161052e91906143a4565b60405180910390f35b34801561054357600080fd5b5061054c6118ac565b6040516105599190613a19565b60405180910390f35b34801561056e57600080fd5b5061058960048036038101906105849190614447565b61193a565b005b34801561059757600080fd5b506105b260048036038101906105ad9190613c3d565b611950565b6040516105bf91906138aa565b60405180910390f35b6105e260048036038101906105dd9190614487565b61196d565b005b3480156105f057600080fd5b5061060b60048036038101906106069190613c3d565b611d0c565b60405161061891906138aa565b60405180910390f35b34801561062d57600080fd5b506106486004803603810190610643919061450a565b611d25565b6040516106559190613965565b60405180910390f35b34801561066a57600080fd5b506106856004803603810190610680919061454a565b611db9565b005b34801561069357600080fd5b506106ae60048036038101906106a99190614577565b611ea4565b005b3480156106bc57600080fd5b506106d760048036038101906106d2919061460e565b611f45565b005b3480156106e557600080fd5b5061070060048036038101906106fb919061454a565b61203b565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610773576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076a906146fb565b60405180910390fd5b6065600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108a757506108a6826120bf565b5b9050919050565b60fb80546108bb9061474a565b80601f01602080910402602001604051908101604052809291908181526020018280546108e79061474a565b80156109345780601f1061090957610100808354040283529160200191610934565b820191906000526020600020905b81548152906001019060200180831161091757829003601f168201915b505050505081565b610944612129565b600060fd54905060fd600081548092919061095e906147ab565b91905055508560ff6000838152602001908152602001600020908051906020019061098a9291906136ec565b506040518060600160405280868152602001858152602001848152506101006000838152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050816101026000838152602001908152602001600020819055507ff8cb56257234ef710cfa8c30218bb947c3dbf3f956508521091acfbbf838067981610a1f83610a49565b610a2884611418565b85604051610a3994939291906147f4565b60405180910390a1505050505050565b6060600060ff60008481526020019081526020016000208054610a6b9061474a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a979061474a565b8015610ae45780601f10610ab957610100808354040283529160200191610ae4565b820191906000526020600020905b815481529060010190602001808311610ac757829003601f168201915b505050505090506000815111610b0257610afd836121a7565b610b04565b805b915050919050565b610b1461223b565b6000805b8451811015610e04576000858281518110610b3657610b35614840565b5b6020026020010151905060fd548110610b7b576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858381518110610b9057610b8f614840565b5b60200260200101519050600060fe6000848152602001908152602001600020549050610bba611882565b73ffffffffffffffffffffffffffffffffffffffff16610bd8612285565b73ffffffffffffffffffffffffffffffffffffffff1614610dcb576000610102600085815260200190815260200160002054905060008114610c23578086610c20919061486f565b95505b6000610c2e85611418565b90506000801b816000015114610c70576040517fedcbb4a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80604001518484610c81919061486f565b1115610cb9576040517fcaeeffdb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061010160008781526020019081526020016000206000610cd9612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081602001518582610d27919061486f565b1115610d5f576040517f5922110b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8481610d6b919061486f565b61010160008881526020019081526020016000206000610d89612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b8181610dd7919061486f565b60fe6000858152602001908152602001600020819055505050508080610dfc906147ab565b915050610b18565b50803414610e3e576040517f9e1708bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4a8585858561228d565b600073ffffffffffffffffffffffffffffffffffffffff1661010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f0c5761010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610f0a573d6000803e3d6000fd5b505b5050505050565b8660fd548110610f4f576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f5761223b565b6000610f6289611418565b90506000801b81600001511415610fa5576040517ffe1881c400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061010260008b815260200190815260200160002054905060008114158015610fcf5750803414155b15611006576040517f9e1708bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600087611011612285565b866040516020016110249392919061492e565b60405160208183030381529060405280519060200120905061108c878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508460000151836124bb565b6110c2576040517ff3dbe77400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060fe60008d815260200190815260200160002054905083604001518b826110eb919061486f565b1115611123576040517fcaeeffdb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061010160008e81526020019081526020016000206000611143612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084602001518c82611191919061486f565b11156111c9576040517f5922110b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b868c826111d6919061486f565b111561120e576040517fc8d882ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8b810161010160008f8152602001908152602001600020600061122f612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508b820160fe60008f8152602001908152602001600020819055506112938e8e8e8e6124d2565b600073ffffffffffffffffffffffffffffffffffffffff1661010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113555761010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611353573d6000803e3d6000fd5b505b5050505050505050505050505050565b61136d612285565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806113b357506113b2856113ad612285565b611d25565b5b6113f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e9906149dd565b60405180910390fd5b6113ff8585858585612684565b5050505050565b61140e612129565b6114166129a9565b565b611420613772565b610100600083815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b60008060019054906101000a900460ff161590508080156114955750600160008054906101000a900460ff1660ff16105b806114c257506114a430612a0c565b1580156114c15750600160008054906101000a900460ff1660ff16145b5b611501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f890614a6f565b60405180910390fd5b60016000806101000a81548160ff021916908360ff160217905550801561153e576001600060016101000a81548160ff0219169083151502179055505b8260fb90805190602001906115549291906136ec565b508160fc908051906020019061156b9291906136ec565b50611574612a2f565b61157c612a88565b61159460405180602001604052806000815250612ae1565b80156115ed5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516115e49190614ae1565b60405180910390a15b505050565b60608151835114611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162f90614b6e565b60405180910390fd5b6000835167ffffffffffffffff81111561165557611654613a45565b5b6040519080825280602002602001820160405280156116835781602001602082028036833780820191505090505b50905060005b8451811015611700576116d08582815181106116a8576116a7614840565b5b60200260200101518583815181106116c3576116c2614840565b5b6020026020010151610702565b8282815181106116e3576116e2614840565b5b602002602001018181525050806116f9906147ab565b9050611689565b508091505092915050565b600060c960009054906101000a900460ff16905090565b61010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611751612129565b61175b6000612b3c565b565b6000610101600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60fd5481565b6117c7612129565b6117cf612c02565b565b6117d9612129565b8160fd548110611815576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160ff6000858152602001908152602001600020908051906020019061183c9291906136ec565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61186885610a49565b6040516118759190613a19565b60405180910390a2505050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60fc80546118b99061474a565b80601f01602080910402602001604051908101604052809291908181526020018280546118e59061474a565b80156119325780601f1061190757610100808354040283529160200191611932565b820191906000526020600020905b81548152906001019060200180831161191557829003601f168201915b505050505081565b61194c611945612285565b8383612c65565b5050565b600060fe6000838152602001908152602001600020549050919050565b8260fd5481106119a9576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119b161223b565b600060fe60008681526020019081526020016000205490506119d1611882565b73ffffffffffffffffffffffffffffffffffffffff166119ef612285565b73ffffffffffffffffffffffffffffffffffffffff1614611c13576000610102600087815260200190815260200160002054905060008114158015611a345750803414155b15611a6b576040517f9e1708bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611a7687611418565b90506000801b816000015114611ab8576040517fedcbb4a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80604001518684611ac9919061486f565b1115611b01576040517fcaeeffdb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061010160008981526020019081526020016000206000611b21612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081602001518782611b6f919061486f565b1115611ba7576040517f5922110b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8681611bb3919061486f565b61010160008a81526020019081526020016000206000611bd1612285565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b8381611c1f919061486f565b60fe600087815260200190815260200160002081905550611c42868686866124d2565b600073ffffffffffffffffffffffffffffffffffffffff1661010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d045761010360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611d02573d6000803e3d6000fd5b505b505050505050565b6101026020528060005260406000206000915090505481565b6000606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611dc1612129565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e28576040517f14bcf5c800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8061010360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef381604051611e9991906143a4565b60405180910390a150565b611eac612285565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611ef25750611ef185611eec612285565b611d25565b5b611f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f28906149dd565b60405180910390fd5b611f3e8585858585612dd2565b5050505050565b611f4d612129565b8460fd548110611f89576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060600160405280868152602001858152602001848152506101006000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050816101026000888152602001908152602001600020819055507f3ce1046088814cbf2c0fce92f389114dc878d88d6f1e90727ad778decf3bb8d661201c87611418565b8760405161202b929190614b8e565b60405180910390a1505050505050565b612043612129565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120aa90614c29565b60405180910390fd5b6120bc81612b3c565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612131612285565b73ffffffffffffffffffffffffffffffffffffffff1661214f611882565b73ffffffffffffffffffffffffffffffffffffffff16146121a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219c90614c95565b60405180910390fd5b565b6060606780546121b69061474a565b80601f01602080910402602001604051908101604052809291908181526020018280546121e29061474a565b801561222f5780601f106122045761010080835404028352916020019161222f565b820191906000526020600020905b81548152906001019060200180831161221257829003601f168201915b50505050509050919050565b61224361170b565b15612283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227a90614d01565b60405180910390fd5b565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156122fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f490614d93565b60405180910390fd5b8151835114612341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233890614e25565b60405180910390fd5b600061234b612285565b905061235c81600087878787613071565b60005b84518110156124165783818151811061237b5761237a614840565b5b60200260200101516065600087848151811061239a57612399614840565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123fc919061486f565b92505081905550808061240e906147ab565b91505061235f565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161248e929190614e45565b60405180910390a46124a581600087878787613079565b6124b481600087878787613081565b5050505050565b6000826124c88584613268565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612542576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253990614d93565b60405180910390fd5b600061254c612285565b90506000612559856132be565b90506000612566856132be565b905061257783600089858589613071565b846065600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125d7919061486f565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612655929190614e7c565b60405180910390a461266c83600089858589613079565b61267b83600089898989613338565b50505050505050565b81518351146126c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126bf90614e25565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272f90614f17565b60405180910390fd5b6000612742612285565b9050612752818787878787613071565b60005b845181101561290657600085828151811061277357612772614840565b5b60200260200101519050600085838151811061279257612791614840565b5b6020026020010151905060006065600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282b90614fa9565b60405180910390fd5b8181036065600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816065600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128eb919061486f565b92505081905550505050806128ff906147ab565b9050612755565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161297d929190614e45565b60405180910390a4612993818787878787613079565b6129a1818787878787613081565b505050505050565b6129b161351f565b600060c960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6129f5612285565b604051612a0291906143a4565b60405180910390a1565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a759061503b565b60405180910390fd5b612a86613568565b565b600060019054906101000a900460ff16612ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ace9061503b565b60405180910390fd5b612adf6135c9565b565b600060019054906101000a900460ff16612b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b279061503b565b60405180910390fd5b612b3981613635565b50565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c0a61223b565b600160c960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c4e612285565b604051612c5b91906143a4565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ccb906150cd565b60405180910390fd5b80606660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612dc59190613965565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3990614f17565b60405180910390fd5b6000612e4c612285565b90506000612e59856132be565b90506000612e66856132be565b9050612e76838989858589613071565b60006065600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0590614fa9565b60405180910390fd5b8581036065600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856065600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fc5919061486f565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051613042929190614e7c565b60405180910390a4613058848a8a86868a613079565b613066848a8a8a8a8a613338565b505050505050505050565b505050505050565b505050505050565b6130a08473ffffffffffffffffffffffffffffffffffffffff16612a0c565b15613260578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016130e6959493929190615142565b602060405180830381600087803b15801561310057600080fd5b505af192505050801561313157506040513d601f19601f8201168201806040525081019061312e91906151bf565b60015b6131d75761313d6151f9565b806308c379a0141561319a575061315261521b565b8061315d575061319c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131919190613a19565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ce90615323565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461325e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613255906153b5565b60405180910390fd5b505b505050505050565b60008082905060005b84518110156132b35761329e8286838151811061329157613290614840565b5b6020026020010151613690565b915080806132ab906147ab565b915050613271565b508091505092915050565b60606000600167ffffffffffffffff8111156132dd576132dc613a45565b5b60405190808252806020026020018201604052801561330b5781602001602082028036833780820191505090505b509050828160008151811061332357613322614840565b5b60200260200101818152505080915050919050565b6133578473ffffffffffffffffffffffffffffffffffffffff16612a0c565b15613517578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161339d9594939291906153d5565b602060405180830381600087803b1580156133b757600080fd5b505af19250505080156133e857506040513d601f19601f820116820180604052508101906133e591906151bf565b60015b61348e576133f46151f9565b806308c379a01415613451575061340961521b565b806134145750613453565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134489190613a19565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348590615323565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350c906153b5565b60405180910390fd5b505b505050505050565b61352761170b565b613566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161355d9061547b565b60405180910390fd5b565b600060019054906101000a900460ff166135b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ae9061503b565b60405180910390fd5b6135c76135c2612285565b612b3c565b565b600060019054906101000a900460ff16613618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360f9061503b565b60405180910390fd5b600060c960006101000a81548160ff021916908315150217905550565b600060019054906101000a900460ff16613684576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161367b9061503b565b60405180910390fd5b61368d816136bb565b50565b60008183106136a8576136a382846136d5565b6136b3565b6136b283836136d5565b5b905092915050565b80606790805190602001906136d19291906136ec565b5050565b600082600052816020526040600020905092915050565b8280546136f89061474a565b90600052602060002090601f01602090048101928261371a5760008555613761565b82601f1061373357805160ff1916838001178555613761565b82800160010185558215613761579182015b82811115613760578251825591602001919060010190613745565b5b50905061376e9190613796565b5090565b60405180606001604052806000801916815260200160008152602001600081525090565b5b808211156137af576000816000905550600101613797565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137f2826137c7565b9050919050565b613802816137e7565b811461380d57600080fd5b50565b60008135905061381f816137f9565b92915050565b6000819050919050565b61383881613825565b811461384357600080fd5b50565b6000813590506138558161382f565b92915050565b60008060408385031215613872576138716137bd565b5b600061388085828601613810565b925050602061389185828601613846565b9150509250929050565b6138a481613825565b82525050565b60006020820190506138bf600083018461389b565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138fa816138c5565b811461390557600080fd5b50565b600081359050613917816138f1565b92915050565b600060208284031215613933576139326137bd565b5b600061394184828501613908565b91505092915050565b60008115159050919050565b61395f8161394a565b82525050565b600060208201905061397a6000830184613956565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139ba57808201518184015260208101905061399f565b838111156139c9576000848401525b50505050565b6000601f19601f8301169050919050565b60006139eb82613980565b6139f5818561398b565b9350613a0581856020860161399c565b613a0e816139cf565b840191505092915050565b60006020820190508181036000830152613a3381846139e0565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a7d826139cf565b810181811067ffffffffffffffff82111715613a9c57613a9b613a45565b5b80604052505050565b6000613aaf6137b3565b9050613abb8282613a74565b919050565b600067ffffffffffffffff821115613adb57613ada613a45565b5b613ae4826139cf565b9050602081019050919050565b82818337600083830152505050565b6000613b13613b0e84613ac0565b613aa5565b905082815260208101848484011115613b2f57613b2e613a40565b5b613b3a848285613af1565b509392505050565b600082601f830112613b5757613b56613a3b565b5b8135613b67848260208601613b00565b91505092915050565b6000819050919050565b613b8381613b70565b8114613b8e57600080fd5b50565b600081359050613ba081613b7a565b92915050565b600080600080600060a08688031215613bc257613bc16137bd565b5b600086013567ffffffffffffffff811115613be057613bdf6137c2565b5b613bec88828901613b42565b9550506020613bfd88828901613b91565b9450506040613c0e88828901613846565b9350506060613c1f88828901613846565b9250506080613c3088828901613846565b9150509295509295909350565b600060208284031215613c5357613c526137bd565b5b6000613c6184828501613846565b91505092915050565b600067ffffffffffffffff821115613c8557613c84613a45565b5b602082029050602081019050919050565b600080fd5b6000613cae613ca984613c6a565b613aa5565b90508083825260208201905060208402830185811115613cd157613cd0613c96565b5b835b81811015613cfa5780613ce68882613846565b845260208401935050602081019050613cd3565b5050509392505050565b600082601f830112613d1957613d18613a3b565b5b8135613d29848260208601613c9b565b91505092915050565b600067ffffffffffffffff821115613d4d57613d4c613a45565b5b613d56826139cf565b9050602081019050919050565b6000613d76613d7184613d32565b613aa5565b905082815260208101848484011115613d9257613d91613a40565b5b613d9d848285613af1565b509392505050565b600082601f830112613dba57613db9613a3b565b5b8135613dca848260208601613d63565b91505092915050565b60008060008060808587031215613ded57613dec6137bd565b5b6000613dfb87828801613810565b945050602085013567ffffffffffffffff811115613e1c57613e1b6137c2565b5b613e2887828801613d04565b935050604085013567ffffffffffffffff811115613e4957613e486137c2565b5b613e5587828801613d04565b925050606085013567ffffffffffffffff811115613e7657613e756137c2565b5b613e8287828801613da5565b91505092959194509250565b600080fd5b60008083601f840112613ea957613ea8613a3b565b5b8235905067ffffffffffffffff811115613ec657613ec5613e8e565b5b602083019150836020820283011115613ee257613ee1613c96565b5b9250929050565b60008060008060008060008060e0898b031215613f0957613f086137bd565b5b6000613f178b828c01613810565b9850506020613f288b828c01613846565b9750506040613f398b828c01613846565b965050606089013567ffffffffffffffff811115613f5a57613f596137c2565b5b613f668b828c01613da5565b9550506080613f778b828c01613846565b94505060a089013567ffffffffffffffff811115613f9857613f976137c2565b5b613fa48b828c01613e93565b935093505060c0613fb78b828c01613846565b9150509295985092959890939650565b600080600080600060a08688031215613fe357613fe26137bd565b5b6000613ff188828901613810565b955050602061400288828901613810565b945050604086013567ffffffffffffffff811115614023576140226137c2565b5b61402f88828901613d04565b935050606086013567ffffffffffffffff8111156140505761404f6137c2565b5b61405c88828901613d04565b925050608086013567ffffffffffffffff81111561407d5761407c6137c2565b5b61408988828901613da5565b9150509295509295909350565b61409f81613b70565b82525050565b6140ae81613825565b82525050565b6060820160008201516140ca6000850182614096565b5060208201516140dd60208501826140a5565b5060408201516140f060408501826140a5565b50505050565b600060608201905061410b60008301846140b4565b92915050565b60008060408385031215614128576141276137bd565b5b600083013567ffffffffffffffff811115614146576141456137c2565b5b61415285828601613b42565b925050602083013567ffffffffffffffff811115614173576141726137c2565b5b61417f85828601613b42565b9150509250929050565b600067ffffffffffffffff8211156141a4576141a3613a45565b5b602082029050602081019050919050565b60006141c86141c384614189565b613aa5565b905080838252602082019050602084028301858111156141eb576141ea613c96565b5b835b8181101561421457806142008882613810565b8452602084019350506020810190506141ed565b5050509392505050565b600082601f83011261423357614232613a3b565b5b81356142438482602086016141b5565b91505092915050565b60008060408385031215614263576142626137bd565b5b600083013567ffffffffffffffff811115614281576142806137c2565b5b61428d8582860161421e565b925050602083013567ffffffffffffffff8111156142ae576142ad6137c2565b5b6142ba85828601613d04565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006142fc83836140a5565b60208301905092915050565b6000602082019050919050565b6000614320826142c4565b61432a81856142cf565b9350614335836142e0565b8060005b8381101561436657815161434d88826142f0565b975061435883614308565b925050600181019050614339565b5085935050505092915050565b6000602082019050818103600083015261438d8184614315565b905092915050565b61439e816137e7565b82525050565b60006020820190506143b96000830184614395565b92915050565b600080604083850312156143d6576143d56137bd565b5b60006143e485828601613846565b925050602083013567ffffffffffffffff811115614405576144046137c2565b5b61441185828601613b42565b9150509250929050565b6144248161394a565b811461442f57600080fd5b50565b6000813590506144418161441b565b92915050565b6000806040838503121561445e5761445d6137bd565b5b600061446c85828601613810565b925050602061447d85828601614432565b9150509250929050565b600080600080608085870312156144a1576144a06137bd565b5b60006144af87828801613810565b94505060206144c087828801613846565b93505060406144d187828801613846565b925050606085013567ffffffffffffffff8111156144f2576144f16137c2565b5b6144fe87828801613da5565b91505092959194509250565b60008060408385031215614521576145206137bd565b5b600061452f85828601613810565b925050602061454085828601613810565b9150509250929050565b6000602082840312156145605761455f6137bd565b5b600061456e84828501613810565b91505092915050565b600080600080600060a08688031215614593576145926137bd565b5b60006145a188828901613810565b95505060206145b288828901613810565b94505060406145c388828901613846565b93505060606145d488828901613846565b925050608086013567ffffffffffffffff8111156145f5576145f46137c2565b5b61460188828901613da5565b9150509295509295909350565b600080600080600060a0868803121561462a576146296137bd565b5b600061463888828901613846565b955050602061464988828901613b91565b945050604061465a88828901613846565b935050606061466b88828901613846565b925050608061467c88828901613846565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006146e5602a8361398b565b91506146f082614689565b604082019050919050565b60006020820190508181036000830152614714816146d8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061476257607f821691505b602082108114156147765761477561471b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147b682613825565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156147e9576147e861477c565b5b600182019050919050565b600060c082019050614809600083018761389b565b818103602083015261481b81866139e0565b905061482a60408301856140b4565b61483760a083018461389b565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061487a82613825565b915061488583613825565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156148ba576148b961477c565b5b828201905092915050565b6000819050919050565b6148e06148db82613825565b6148c5565b82525050565b60008160601b9050919050565b60006148fe826148e6565b9050919050565b6000614910826148f3565b9050919050565b614928614923826137e7565b614905565b82525050565b600061493a82866148cf565b60208201915061494a8285614917565b60148201915061495a82846148cf565b602082019150819050949350505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b60006149c7602f8361398b565b91506149d28261496b565b604082019050919050565b600060208201905081810360008301526149f6816149ba565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000614a59602e8361398b565b9150614a64826149fd565b604082019050919050565b60006020820190508181036000830152614a8881614a4c565b9050919050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b6000614acb614ac6614ac184614a8f565b614aa6565b614a99565b9050919050565b614adb81614ab0565b82525050565b6000602082019050614af66000830184614ad2565b92915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614b5860298361398b565b9150614b6382614afc565b604082019050919050565b60006020820190508181036000830152614b8781614b4b565b9050919050565b6000608082019050614ba360008301856140b4565b614bb0606083018461389b565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c1360268361398b565b9150614c1e82614bb7565b604082019050919050565b60006020820190508181036000830152614c4281614c06565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614c7f60208361398b565b9150614c8a82614c49565b602082019050919050565b60006020820190508181036000830152614cae81614c72565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614ceb60108361398b565b9150614cf682614cb5565b602082019050919050565b60006020820190508181036000830152614d1a81614cde565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d7d60218361398b565b9150614d8882614d21565b604082019050919050565b60006020820190508181036000830152614dac81614d70565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614e0f60288361398b565b9150614e1a82614db3565b604082019050919050565b60006020820190508181036000830152614e3e81614e02565b9050919050565b60006040820190508181036000830152614e5f8185614315565b90508181036020830152614e738184614315565b90509392505050565b6000604082019050614e91600083018561389b565b614e9e602083018461389b565b9392505050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614f0160258361398b565b9150614f0c82614ea5565b604082019050919050565b60006020820190508181036000830152614f3081614ef4565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614f93602a8361398b565b9150614f9e82614f37565b604082019050919050565b60006020820190508181036000830152614fc281614f86565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000615025602b8361398b565b915061503082614fc9565b604082019050919050565b6000602082019050818103600083015261505481615018565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006150b760298361398b565b91506150c28261505b565b604082019050919050565b600060208201905081810360008301526150e6816150aa565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615114826150ed565b61511e81856150f8565b935061512e81856020860161399c565b615137816139cf565b840191505092915050565b600060a0820190506151576000830188614395565b6151646020830187614395565b81810360408301526151768186614315565b9050818103606083015261518a8185614315565b9050818103608083015261519e8184615109565b90509695505050505050565b6000815190506151b9816138f1565b92915050565b6000602082840312156151d5576151d46137bd565b5b60006151e3848285016151aa565b91505092915050565b60008160e01c9050919050565b600060033d11156152185760046000803e6152156000516151ec565b90505b90565b600060443d101561522b576152ae565b6152336137b3565b60043d036004823e80513d602482011167ffffffffffffffff8211171561525b5750506152ae565b808201805167ffffffffffffffff81111561527957505050506152ae565b80602083010160043d0385018111156152965750505050506152ae565b6152a582602001850186613a74565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061530d60348361398b565b9150615318826152b1565b604082019050919050565b6000602082019050818103600083015261533c81615300565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061539f60288361398b565b91506153aa82615343565b604082019050919050565b600060208201905081810360008301526153ce81615392565b9050919050565b600060a0820190506153ea6000830188614395565b6153f76020830187614395565b615404604083018661389b565b615411606083018561389b565b81810360808301526154238184615109565b90509695505050505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061546560148361398b565b91506154708261542f565b602082019050919050565b6000602082019050818103600083015261549481615458565b905091905056fea2646970667358221220a12d92b379742ca36b74745a5efa1a8753b920da5c40e132f61effdbe6a69d2264736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.