ERC-721
Overview
Max Total Supply
10,270 RAZZ
Holders
838
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 RAZZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FallPremiereRazz
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "./TradingCard.sol"; contract FallPremiereRazz is TradingCard { constructor( string memory name_, string memory symbol_, string memory metadataRoot_, string memory contractMetadata_ ) TradingCard(name_, symbol_, metadataRoot_, contractMetadata_) {} }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "./AccessToken.sol"; import "./Config.sol"; import "./EthUsdOracle.sol"; contract TradingCard is ERC721A, Ownable, ReentrancyGuard, Pausable { string private _name; string private _symbol; string private _metadataRoot; string private _contractMetadata; bool private _supplyLocked = false; Config private _config; mapping(bytes32 => bool) private _usedLeaves; address private _ethUsdOracle; address payable private _mintPayableAddress; constructor( string memory name_, string memory symbol_, string memory metadataRoot_, string memory contractMetadata_ ) ERC721A(name_, symbol_) { _name = name_; _symbol = symbol_; _metadataRoot = metadataRoot_; _contractMetadata = contractMetadata_; } function updateTokenInfo( string memory name_, string memory symbol_, string memory metadataRoot_, string memory contractMetadata_ ) public onlyOwner { _name = name_; _symbol = symbol_; _metadataRoot = metadataRoot_; _contractMetadata = contractMetadata_; } function name() public view override returns (string memory) { return _name; } function symbol() public view override returns (string memory) { return _symbol; } function _baseURI() internal view override returns (string memory) { return _metadataRoot; } function setBaseURI(string memory uri) public onlyOwner { _metadataRoot = uri; } function contractURI() public view returns (string memory) { return _contractMetadata; } function setContractURI(string memory uri) public onlyOwner { _contractMetadata = uri; } function mintEnabled() public view returns (bool) { return _config.enabled; } function setMintPayableAddress(address payable addr) public onlyOwner { _mintPayableAddress = addr; } function walletLimit() public view returns (uint256) { return _config.walletLimit; } function pause(bool pause_) public onlyOwner { if (pause_) { _pause(); } else { _unpause(); } } function setConfig(Config memory cfg) public onlyOwner { _config = cfg; } function config() public view returns (Config memory) { return _config; } function setEthUsdOracle(address addr) public onlyOwner { _ethUsdOracle = addr; } function lockSupply() public onlyOwner { _supplyLocked = true; _config.enabled = false; } function totalMinted() public view returns (uint256) { return _totalMinted(); } function numberMinted(address wallet) public view returns (uint256) { return _numberMinted(wallet); } function quote(uint64 quantity) public view returns (uint256) { if (_config.mintPriceUSD == 0) { return 0; } require(_ethUsdOracle != address(0), "Missing ETH/USD Oracle"); EthUsdOracle oracle = EthUsdOracle(_ethUsdOracle); int256 spotPrice = oracle.latestAnswer(); if (spotPrice <= 0) { revert("Spot price invalid"); } uint256 num = uint256(quantity) * uint256(_config.mintPriceUSD) * 1e6 * 1 ether; uint256 denom = uint256(spotPrice); return uint256(num / denom) - (uint256(num / denom) % 1000 gwei); } function mint(uint64 quantity) public payable nonReentrant { require(!_supplyLocked, "Supply is locked"); require(_config.enabled, "Minting not open"); require( _config.startTime > 0 && _config.startTime <= block.timestamp, "Minting hasn't started" ); if ( _config.accessToken != address(0) && _config.minAccessTokenBalance > 0 ) { AccessToken accessToken = AccessToken(_config.accessToken); uint256 balance = accessToken.balanceOf(_msgSender()); require( balance >= uint256(_config.minAccessTokenBalance), "Minimum access token threshold not reached" ); } require( _config.walletLimit == 0 || (_numberMinted(_msgSender()) + quantity) <= uint256(_config.walletLimit), "Mint limit reached" ); uint256 needed = quote(quantity); require(msg.value >= needed, "Insufficient funds"); require( _mintPayableAddress != address(0), "No payable destination set" ); (bool sent, ) = _mintPayableAddress.call{value: msg.value}(""); require(sent, "Failed to send ether"); _safeMint(_msgSender(), quantity); } function freeMint(uint64 quantity, bytes32[] memory proof) public nonReentrant { require(!_supplyLocked, "Supply is locked"); require(_config.enabled, "Minting not open"); require( _config.startTime > 0 && _config.startTime <= block.timestamp, "Minting hasn't started" ); require( MerkleProof.verify( proof, _config.merkleRoot, makeMerkleLeaf(_msgSender(), quantity) ), "Address/quantity combination not on allowlist" ); require( _usedLeaves[makeMerkleLeaf(_msgSender(), quantity)] == false, "Proof already used" ); require(_numberMinted(_msgSender()) == 0, "Already minted"); markLeafUsed(makeMerkleLeaf(_msgSender(), quantity)); _safeMint(_msgSender(), quantity); } function adminMint(address[] calldata owners, uint64[] calldata quantities) public nonReentrant onlyOwner { require(!_supplyLocked, "Supply is locked"); require(owners.length == quantities.length, "Array mismatch"); for (uint256 i = 0; i < owners.length; i++) { _safeMint(owners[i], quantities[i]); } } function makeMerkleLeaf(address wallet, uint64 quantity) public pure returns (bytes32) { return keccak256(abi.encodePacked(wallet, quantity)); } function markLeafUsed(bytes32 leaf) private { _usedLeaves[leaf] = true; } function leafUsed(bytes32 leaf) public view returns (bool) { return _usedLeaves[leaf]; } function _beforeTokenTransfers( address, address, uint256, uint256 ) internal view override { _requireNotPaused(); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; interface EthUsdOracle { function latestAnswer() external view returns (int256); }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; struct Config { // Set to true to enable minting, provided all other valid conditions are met. If this is false, minting is // globally disabled except for admins. bool enabled; // // The root of the Merkle tree which contains an allowlist of wallets and quantities (address,uint64) that // can mint for free. bytes32 merkleRoot; // // When is minting allowed to begin. uint32 startTime; // // The mint price, in USD cents, per token. ($25.00 = 2500) uint64 mintPriceUSD; // // The amount of tokens a user can mint in this phase. This value not // checked before a free mint, but free mint totals are included // when calculating the remaining mints against a wallet limit. uint32 walletLimit; // // Access tokens can be used to gate access to public minting. The // access token must implement `balanceOf` for a given wallet. // // The access token check is ignored if accessToken is the null address // or minAccessTokenBalance == 0. address accessToken; uint32 minAccessTokenBalance; }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; interface AccessToken { function balanceOf(address wallet) external returns (uint256); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev 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()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"metadataRoot_","type":"string"},{"internalType":"string","name":"contractMetadata_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint64[]","name":"quantities","type":"uint64[]"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"components":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint64","name":"mintPriceUSD","type":"uint64"},{"internalType":"uint32","name":"walletLimit","type":"uint32"},{"internalType":"address","name":"accessToken","type":"address"},{"internalType":"uint32","name":"minAccessTokenBalance","type":"uint32"}],"internalType":"struct Config","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"quantity","type":"uint64"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"leafUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint64","name":"quantity","type":"uint64"}],"name":"makeMerkleLeaf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint64","name":"quantity","type":"uint64"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pause_","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"quantity","type":"uint64"}],"name":"quote","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint64","name":"mintPriceUSD","type":"uint64"},{"internalType":"uint32","name":"walletLimit","type":"uint32"},{"internalType":"address","name":"accessToken","type":"address"},{"internalType":"uint32","name":"minAccessTokenBalance","type":"uint32"}],"internalType":"struct Config","name":"cfg","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setEthUsdOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"addr","type":"address"}],"name":"setMintPayableAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"metadataRoot_","type":"string"},{"internalType":"string","name":"contractMetadata_","type":"string"}],"name":"updateTokenInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526000600f60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040516200535d3803806200535d833981810160405281019062000052919062000477565b8383838383838160029080519060200190620000709291906200022a565b508060039080519060200190620000899291906200022a565b506200009a6200015760201b60201c565b6000819055505050620000c2620000b66200015c60201b60201c565b6200016460201b60201c565b60016009819055506000600a60006101000a81548160ff02191690831515021790555083600b9080519060200190620000fd9291906200022a565b5082600c9080519060200190620001169291906200022a565b5081600d90805190602001906200012f9291906200022a565b5080600e9080519060200190620001489291906200022a565b505050505050505050620005c9565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002389062000594565b90600052602060002090601f0160209004810192826200025c5760008555620002a8565b82601f106200027757805160ff1916838001178555620002a8565b82800160010185558215620002a8579182015b82811115620002a75782518255916020019190600101906200028a565b5b509050620002b79190620002bb565b5090565b5b80821115620002d6576000816000905550600101620002bc565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200034382620002f8565b810181811067ffffffffffffffff8211171562000365576200036462000309565b5b80604052505050565b60006200037a620002da565b905062000388828262000338565b919050565b600067ffffffffffffffff821115620003ab57620003aa62000309565b5b620003b682620002f8565b9050602081019050919050565b60005b83811015620003e3578082015181840152602081019050620003c6565b83811115620003f3576000848401525b50505050565b6000620004106200040a846200038d565b6200036e565b9050828152602081018484840111156200042f576200042e620002f3565b5b6200043c848285620003c3565b509392505050565b600082601f8301126200045c576200045b620002ee565b5b81516200046e848260208601620003f9565b91505092915050565b60008060008060808587031215620004945762000493620002e4565b5b600085015167ffffffffffffffff811115620004b557620004b4620002e9565b5b620004c38782880162000444565b945050602085015167ffffffffffffffff811115620004e757620004e6620002e9565b5b620004f58782880162000444565b935050604085015167ffffffffffffffff811115620005195762000518620002e9565b5b620005278782880162000444565b925050606085015167ffffffffffffffff8111156200054b576200054a620002e9565b5b620005598782880162000444565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005ad57607f821691505b602082108103620005c357620005c262000565565b5b50919050565b614d8480620005d96000396000f3fe6080604052600436106102255760003560e01c8063938e3d7b11610123578063dc33e681116100ab578063e985e9c51161006f578063e985e9c514610803578063f2fde38b14610840578063f825ee3414610869578063fb9d09c814610892578063fffc0f5c146108ae57610225565b8063dc33e68114610720578063dd1049ab1461075d578063e6b349b314610786578063e739bc68146107af578063e8a3d485146107d857610225565b8063a875e4be116100f2578063a875e4be14610629578063ad4b8f8f14610652578063b88d4fde1461068f578063c87b56dd146106b8578063d1239730146106f557610225565b8063938e3d7b1461058157806395d89b41146105aa578063a22cb465146105d5578063a2309ff8146105fe57610225565b806342842e0e116101b1578063715018a611610175578063715018a6146104c057806379502c55146104d757806381eaf99b146105025780638da5cb5b146105195780638ff62c961461054457610225565b806342842e0e146103c957806355f804b3146103f25780635c975abb1461041b5780636352211e1461044657806370a082311461048357610225565b8063095ea7b3116101f8578063095ea7b3146102f857806318160ddd1461032157806323b872dd1461034c578063351bb709146103755780633c8463a11461039e57610225565b806301ffc9a71461022a57806302329a291461026757806306fdde0314610290578063081812fc146102bb575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c919061322f565b6108eb565b60405161025e9190613277565b60405180910390f35b34801561027357600080fd5b5061028e600480360381019061028991906132be565b61097d565b005b34801561029c57600080fd5b506102a56109a4565b6040516102b29190613384565b60405180910390f35b3480156102c757600080fd5b506102e260048036038101906102dd91906133dc565b610a36565b6040516102ef919061344a565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a9190613491565b610ab5565b005b34801561032d57600080fd5b50610336610bf9565b60405161034391906134e0565b60405180910390f35b34801561035857600080fd5b50610373600480360381019061036e91906134fb565b610c10565b005b34801561038157600080fd5b5061039c60048036038101906103979190613734565b610f32565b005b3480156103aa57600080fd5b506103b3611058565b6040516103c091906134e0565b60405180910390f35b3480156103d557600080fd5b506103f060048036038101906103eb91906134fb565b61107b565b005b3480156103fe57600080fd5b506104196004803603810190610414919061381b565b61109b565b005b34801561042757600080fd5b506104306110bd565b60405161043d9190613277565b60405180910390f35b34801561045257600080fd5b5061046d600480360381019061046891906133dc565b6110d4565b60405161047a919061344a565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a59190613864565b6110e6565b6040516104b791906134e0565b60405180910390f35b3480156104cc57600080fd5b506104d561119e565b005b3480156104e357600080fd5b506104ec6111b2565b6040516104f9919061396a565b60405180910390f35b34801561050e57600080fd5b506105176112eb565b005b34801561052557600080fd5b5061052e61132e565b60405161053b919061344a565b60405180910390f35b34801561055057600080fd5b5061056b60048036038101906105669190613985565b611358565b60405161057891906134e0565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a3919061381b565b61159c565b005b3480156105b657600080fd5b506105bf6115be565b6040516105cc9190613384565b60405180910390f35b3480156105e157600080fd5b506105fc60048036038101906105f791906139b2565b611650565b005b34801561060a57600080fd5b506106136117c7565b60405161062091906134e0565b60405180910390f35b34801561063557600080fd5b50610650600480360381019061064b91906139f2565b6117d6565b005b34801561065e57600080fd5b5061067960048036038101906106749190613ac9565b611840565b6040516106869190613b18565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b19190613bd4565b611873565b005b3480156106c457600080fd5b506106df60048036038101906106da91906133dc565b6118e6565b6040516106ec9190613384565b60405180910390f35b34801561070157600080fd5b5061070a611984565b6040516107179190613277565b60405180910390f35b34801561072c57600080fd5b5061074760048036038101906107429190613864565b61199e565b60405161075491906134e0565b60405180910390f35b34801561076957600080fd5b50610784600480360381019061077f9190613d0d565b6119b0565b005b34801561079257600080fd5b506107ad60048036038101906107a89190613864565b611b2f565b005b3480156107bb57600080fd5b506107d660048036038101906107d19190613e51565b611b7b565b005b3480156107e457600080fd5b506107ed611e57565b6040516107fa9190613384565b60405180910390f35b34801561080f57600080fd5b5061082a60048036038101906108259190613ead565b611ee9565b6040516108379190613277565b60405180910390f35b34801561084c57600080fd5b5061086760048036038101906108629190613864565b611f7d565b005b34801561087557600080fd5b50610890600480360381019061088b9190613f2b565b612000565b005b6108ac60048036038101906108a79190613985565b61204c565b005b3480156108ba57600080fd5b506108d560048036038101906108d09190613f58565b6125d3565b6040516108e29190613277565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109765750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6109856125fd565b80156109985761099361267b565b6109a1565b6109a06126de565b5b50565b6060600b80546109b390613fb4565b80601f01602080910402602001604051908101604052809291908181526020018280546109df90613fb4565b8015610a2c5780601f10610a0157610100808354040283529160200191610a2c565b820191906000526020600020905b815481529060010190602001808311610a0f57829003601f168201915b5050505050905090565b6000610a4182612741565b610a77576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ac0826110d4565b90508073ffffffffffffffffffffffffffffffffffffffff16610ae16127a0565b73ffffffffffffffffffffffffffffffffffffffff1614610b4457610b0d81610b086127a0565b611ee9565b610b43576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610c036127a8565b6001546000540303905090565b6000610c1b826127ad565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c82576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610c8e84612879565b91509150610ca48187610c9f6127a0565b6128a0565b610cf057610cb986610cb46127a0565b611ee9565b610cef576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610d56576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d6386868660016128e4565b8015610d6e57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e3c85610e188888876128f2565b7c02000000000000000000000000000000000000000000000000000000001761291a565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610ec25760006001850190506000600460008381526020019081526020016000205403610ec0576000548114610ebf578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f2a8686866001612945565b505050505050565b610f3a6125fd565b80601060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a81548163ffffffff021916908363ffffffff16021790555060608201518160020160046101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550608082015181600201600c6101000a81548163ffffffff021916908363ffffffff16021790555060a08201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c08201518160030160146101000a81548163ffffffff021916908363ffffffff16021790555090505050565b60006010600201600c9054906101000a900463ffffffff1663ffffffff16905090565b61109683838360405180602001604052806000815250611873565b505050565b6110a36125fd565b80600d90805190602001906110b99291906130ac565b5050565b6000600a60009054906101000a900460ff16905090565b60006110df826127ad565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361114d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6111a66125fd565b6111b0600061294b565b565b6111ba613132565b60106040518060e00160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016002820160049054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160028201600c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016003820160149054906101000a900463ffffffff1663ffffffff1663ffffffff1681525050905090565b6112f36125fd565b6001600f60006101000a81548160ff0219169083151502179055506000601060000160006101000a81548160ff021916908315150217905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080601060020160049054906101000a900467ffffffffffffffff1667ffffffffffffffff160361138d5760009050611597565b600073ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361141e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141590614031565b60405180910390fd5b6000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611492573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b69190614087565b9050600081136114fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f290614100565b60405180910390fd5b6000670de0b6b3a7640000620f4240601060020160049054906101000a900467ffffffffffffffff1667ffffffffffffffff168767ffffffffffffffff16611543919061414f565b61154d919061414f565b611557919061414f565b9050600082905064e8d4a51000818361157091906141d8565b61157a9190614209565b818361158691906141d8565b611590919061423a565b9450505050505b919050565b6115a46125fd565b80600e90805190602001906115ba9291906130ac565b5050565b6060600c80546115cd90613fb4565b80601f01602080910402602001604051908101604052809291908181526020018280546115f990613fb4565b80156116465780601f1061161b57610100808354040283529160200191611646565b820191906000526020600020905b81548152906001019060200180831161162957829003601f168201915b5050505050905090565b6116586127a0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116bc576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006116c96127a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117766127a0565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117bb9190613277565b60405180910390a35050565b60006117d1612a11565b905090565b6117de6125fd565b83600b90805190602001906117f49291906130ac565b5082600c908051906020019061180b9291906130ac565b5081600d90805190602001906118229291906130ac565b5080600e90805190602001906118399291906130ac565b5050505050565b600082826040516020016118559291906142ec565b60405160208183030381529060405280519060200120905092915050565b61187e848484610c10565b60008373ffffffffffffffffffffffffffffffffffffffff163b146118e0576118a984848484612a24565b6118df576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606118f182612741565b611927576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611931612b74565b90506000815103611951576040518060200160405280600081525061197c565b8061195b84612c06565b60405160200161196c929190614354565b6040516020818303038152906040525b915050919050565b6000601060000160009054906101000a900460ff16905090565b60006119a982612c4d565b9050919050565b6002600954036119f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ec906143c4565b60405180910390fd5b6002600981905550611a056125fd565b600f60009054906101000a900460ff1615611a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4c90614430565b60405180910390fd5b818190508484905014611a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a949061449c565b60405180910390fd5b60005b84849050811015611b2057611b0d858583818110611ac157611ac06144bc565b5b9050602002016020810190611ad69190613864565b848484818110611ae957611ae86144bc565b5b9050602002016020810190611afe9190613985565b67ffffffffffffffff16612ca4565b8080611b18906144eb565b915050611aa0565b50600160098190555050505050565b611b376125fd565b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260095403611bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb7906143c4565b60405180910390fd5b6002600981905550600f60009054906101000a900460ff1615611c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0f90614430565b60405180910390fd5b601060000160009054906101000a900460ff16611c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c619061457f565b60405180910390fd5b6000601060020160009054906101000a900463ffffffff1663ffffffff16118015611cb0575042601060020160009054906101000a900463ffffffff1663ffffffff1611155b611cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce6906145eb565b60405180910390fd5b611d0f81601060010154611d0a611d04612cc2565b86611840565b612cca565b611d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d459061467d565b60405180910390fd5b6000151560146000611d67611d61612cc2565b86611840565b815260200190815260200160002060009054906101000a900460ff16151514611dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbc906146e9565b60405180910390fd5b6000611dd7611dd2612cc2565b612c4d565b14611e17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0e90614755565b60405180910390fd5b611e30611e2b611e25612cc2565b84611840565b612ce1565b611e4b611e3b612cc2565b8367ffffffffffffffff16612ca4565b60016009819055505050565b6060600e8054611e6690613fb4565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9290613fb4565b8015611edf5780601f10611eb457610100808354040283529160200191611edf565b820191906000526020600020905b815481529060010190602001808311611ec257829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f856125fd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611feb906147e7565b60405180910390fd5b611ffd8161294b565b50565b6120086125fd565b80601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260095403612091576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612088906143c4565b60405180910390fd5b6002600981905550600f60009054906101000a900460ff16156120e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e090614430565b60405180910390fd5b601060000160009054906101000a900460ff1661213b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121329061457f565b60405180910390fd5b6000601060020160009054906101000a900463ffffffff1663ffffffff16118015612181575042601060020160009054906101000a900463ffffffff1663ffffffff1611155b6121c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b7906145eb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415801561223d57506000601060030160149054906101000a900463ffffffff1663ffffffff16115b15612354576000601060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231612292612cc2565b6040518263ffffffff1660e01b81526004016122ae919061344a565b6020604051808303816000875af11580156122cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122f1919061481c565b9050601060030160149054906101000a900463ffffffff1663ffffffff16811015612351576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612348906148bb565b60405180910390fd5b50505b60006010600201600c9054906101000a900463ffffffff1663ffffffff1614806123bd57506010600201600c9054906101000a900463ffffffff1663ffffffff168167ffffffffffffffff166123b06123ab612cc2565b612c4d565b6123ba91906148db565b11155b6123fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f39061497d565b60405180910390fd5b600061240782611358565b90508034101561244c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612443906149e9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036124dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d490614a55565b60405180910390fd5b6000601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161252590614aa6565b60006040518083038185875af1925050503d8060008114612562576040519150601f19603f3d011682016040523d82523d6000602084013e612567565b606091505b50509050806125ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a290614b07565b60405180910390fd5b6125c66125b6612cc2565b8467ffffffffffffffff16612ca4565b5050600160098190555050565b60006014600083815260200190815260200160002060009054906101000a900460ff169050919050565b612605612cc2565b73ffffffffffffffffffffffffffffffffffffffff1661262361132e565b73ffffffffffffffffffffffffffffffffffffffff1614612679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267090614b73565b60405180910390fd5b565b612683612d10565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126c7612cc2565b6040516126d4919061344a565b60405180910390a1565b6126e6612d5a565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61272a612cc2565b604051612737919061344a565b60405180910390a1565b60008161274c6127a8565b1115801561275b575060005482105b8015612799575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b600080829050806127bc6127a8565b11612842576000548110156128415760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361283f575b6000810361283557600460008360019003935083815260200190815260200160002054905061280b565b8092505050612874565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b6128ec612d10565b50505050565b60008060e883901c905060e8612909868684612da3565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612a1b6127a8565b60005403905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a4a6127a0565b8786866040518563ffffffff1660e01b8152600401612a6c9493929190614be8565b6020604051808303816000875af1925050508015612aa857506040513d601f19601f82011682018060405250810190612aa59190614c49565b60015b612b21573d8060008114612ad8576040519150601f19603f3d011682016040523d82523d6000602084013e612add565b606091505b506000815103612b19576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054612b8390613fb4565b80601f0160208091040260200160405190810160405280929190818152602001828054612baf90613fb4565b8015612bfc5780601f10612bd157610100808354040283529160200191612bfc565b820191906000526020600020905b815481529060010190602001808311612bdf57829003601f168201915b5050505050905090565b606060806040510190508060405280825b600115612c3957600183039250600a81066030018353600a8104905080612c17575b508181036020830392508083525050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b612cbe828260405180602001604052806000815250612dac565b5050565b600033905090565b600082612cd78584612e49565b1490509392505050565b60016014600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b612d186110bd565b15612d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4f90614cc2565b60405180910390fd5b565b612d626110bd565b612da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9890614d2e565b60405180910390fd5b565b60009392505050565b612db68383612e9f565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612e4457600080549050600083820390505b612df66000868380600101945086612a24565b612e2c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612de3578160005414612e4157600080fd5b50505b505050565b60008082905060005b8451811015612e9457612e7f82868381518110612e7257612e716144bc565b5b602002602001015161305a565b91508080612e8c906144eb565b915050612e52565b508091505092915050565b60008054905060008203612edf576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612eec60008483856128e4565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612f6383612f5460008660006128f2565b612f5d85613085565b1761291a565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461300457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612fc9565b506000820361303f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506130556000848385612945565b505050565b60008183106130725761306d8284613095565b61307d565b61307c8383613095565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b8280546130b890613fb4565b90600052602060002090601f0160209004810192826130da5760008555613121565b82601f106130f357805160ff1916838001178555613121565b82800160010185558215613121579182015b82811115613120578251825591602001919060010190613105565b5b50905061312e91906131a6565b5090565b6040518060e0016040528060001515815260200160008019168152602001600063ffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600063ffffffff1681525090565b5b808211156131bf5760008160009055506001016131a7565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61320c816131d7565b811461321757600080fd5b50565b60008135905061322981613203565b92915050565b600060208284031215613245576132446131cd565b5b60006132538482850161321a565b91505092915050565b60008115159050919050565b6132718161325c565b82525050565b600060208201905061328c6000830184613268565b92915050565b61329b8161325c565b81146132a657600080fd5b50565b6000813590506132b881613292565b92915050565b6000602082840312156132d4576132d36131cd565b5b60006132e2848285016132a9565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561332557808201518184015260208101905061330a565b83811115613334576000848401525b50505050565b6000601f19601f8301169050919050565b6000613356826132eb565b61336081856132f6565b9350613370818560208601613307565b6133798161333a565b840191505092915050565b6000602082019050818103600083015261339e818461334b565b905092915050565b6000819050919050565b6133b9816133a6565b81146133c457600080fd5b50565b6000813590506133d6816133b0565b92915050565b6000602082840312156133f2576133f16131cd565b5b6000613400848285016133c7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061343482613409565b9050919050565b61344481613429565b82525050565b600060208201905061345f600083018461343b565b92915050565b61346e81613429565b811461347957600080fd5b50565b60008135905061348b81613465565b92915050565b600080604083850312156134a8576134a76131cd565b5b60006134b68582860161347c565b92505060206134c7858286016133c7565b9150509250929050565b6134da816133a6565b82525050565b60006020820190506134f560008301846134d1565b92915050565b600080600060608486031215613514576135136131cd565b5b60006135228682870161347c565b93505060206135338682870161347c565b9250506040613544868287016133c7565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61358b8261333a565b810181811067ffffffffffffffff821117156135aa576135a9613553565b5b80604052505050565b60006135bd6131c3565b90506135c98282613582565b919050565b6000819050919050565b6135e1816135ce565b81146135ec57600080fd5b50565b6000813590506135fe816135d8565b92915050565b600063ffffffff82169050919050565b61361d81613604565b811461362857600080fd5b50565b60008135905061363a81613614565b92915050565b600067ffffffffffffffff82169050919050565b61365d81613640565b811461366857600080fd5b50565b60008135905061367a81613654565b92915050565b600060e082840312156136965761369561354e565b5b6136a060e06135b3565b905060006136b0848285016132a9565b60008301525060206136c4848285016135ef565b60208301525060406136d88482850161362b565b60408301525060606136ec8482850161366b565b60608301525060806137008482850161362b565b60808301525060a06137148482850161347c565b60a08301525060c06137288482850161362b565b60c08301525092915050565b600060e0828403121561374a576137496131cd565b5b600061375884828501613680565b91505092915050565b600080fd5b600080fd5b600067ffffffffffffffff82111561378657613785613553565b5b61378f8261333a565b9050602081019050919050565b82818337600083830152505050565b60006137be6137b98461376b565b6135b3565b9050828152602081018484840111156137da576137d9613766565b5b6137e584828561379c565b509392505050565b600082601f83011261380257613801613761565b5b81356138128482602086016137ab565b91505092915050565b600060208284031215613831576138306131cd565b5b600082013567ffffffffffffffff81111561384f5761384e6131d2565b5b61385b848285016137ed565b91505092915050565b60006020828403121561387a576138796131cd565b5b60006138888482850161347c565b91505092915050565b61389a8161325c565b82525050565b6138a9816135ce565b82525050565b6138b881613604565b82525050565b6138c781613640565b82525050565b6138d681613429565b82525050565b60e0820160008201516138f26000850182613891565b50602082015161390560208501826138a0565b50604082015161391860408501826138af565b50606082015161392b60608501826138be565b50608082015161393e60808501826138af565b5060a082015161395160a08501826138cd565b5060c082015161396460c08501826138af565b50505050565b600060e08201905061397f60008301846138dc565b92915050565b60006020828403121561399b5761399a6131cd565b5b60006139a98482850161366b565b91505092915050565b600080604083850312156139c9576139c86131cd565b5b60006139d78582860161347c565b92505060206139e8858286016132a9565b9150509250929050565b60008060008060808587031215613a0c57613a0b6131cd565b5b600085013567ffffffffffffffff811115613a2a57613a296131d2565b5b613a36878288016137ed565b945050602085013567ffffffffffffffff811115613a5757613a566131d2565b5b613a63878288016137ed565b935050604085013567ffffffffffffffff811115613a8457613a836131d2565b5b613a90878288016137ed565b925050606085013567ffffffffffffffff811115613ab157613ab06131d2565b5b613abd878288016137ed565b91505092959194509250565b60008060408385031215613ae057613adf6131cd565b5b6000613aee8582860161347c565b9250506020613aff8582860161366b565b9150509250929050565b613b12816135ce565b82525050565b6000602082019050613b2d6000830184613b09565b92915050565b600067ffffffffffffffff821115613b4e57613b4d613553565b5b613b578261333a565b9050602081019050919050565b6000613b77613b7284613b33565b6135b3565b905082815260208101848484011115613b9357613b92613766565b5b613b9e84828561379c565b509392505050565b600082601f830112613bbb57613bba613761565b5b8135613bcb848260208601613b64565b91505092915050565b60008060008060808587031215613bee57613bed6131cd565b5b6000613bfc8782880161347c565b9450506020613c0d8782880161347c565b9350506040613c1e878288016133c7565b925050606085013567ffffffffffffffff811115613c3f57613c3e6131d2565b5b613c4b87828801613ba6565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613c7757613c76613761565b5b8235905067ffffffffffffffff811115613c9457613c93613c57565b5b602083019150836020820283011115613cb057613caf613c5c565b5b9250929050565b60008083601f840112613ccd57613ccc613761565b5b8235905067ffffffffffffffff811115613cea57613ce9613c57565b5b602083019150836020820283011115613d0657613d05613c5c565b5b9250929050565b60008060008060408587031215613d2757613d266131cd565b5b600085013567ffffffffffffffff811115613d4557613d446131d2565b5b613d5187828801613c61565b9450945050602085013567ffffffffffffffff811115613d7457613d736131d2565b5b613d8087828801613cb7565b925092505092959194509250565b600067ffffffffffffffff821115613da957613da8613553565b5b602082029050602081019050919050565b6000613dcd613dc884613d8e565b6135b3565b90508083825260208201905060208402830185811115613df057613def613c5c565b5b835b81811015613e195780613e0588826135ef565b845260208401935050602081019050613df2565b5050509392505050565b600082601f830112613e3857613e37613761565b5b8135613e48848260208601613dba565b91505092915050565b60008060408385031215613e6857613e676131cd565b5b6000613e768582860161366b565b925050602083013567ffffffffffffffff811115613e9757613e966131d2565b5b613ea385828601613e23565b9150509250929050565b60008060408385031215613ec457613ec36131cd565b5b6000613ed28582860161347c565b9250506020613ee38582860161347c565b9150509250929050565b6000613ef882613409565b9050919050565b613f0881613eed565b8114613f1357600080fd5b50565b600081359050613f2581613eff565b92915050565b600060208284031215613f4157613f406131cd565b5b6000613f4f84828501613f16565b91505092915050565b600060208284031215613f6e57613f6d6131cd565b5b6000613f7c848285016135ef565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613fcc57607f821691505b602082108103613fdf57613fde613f85565b5b50919050565b7f4d697373696e67204554482f555344204f7261636c6500000000000000000000600082015250565b600061401b6016836132f6565b915061402682613fe5565b602082019050919050565b6000602082019050818103600083015261404a8161400e565b9050919050565b6000819050919050565b61406481614051565b811461406f57600080fd5b50565b6000815190506140818161405b565b92915050565b60006020828403121561409d5761409c6131cd565b5b60006140ab84828501614072565b91505092915050565b7f53706f7420707269636520696e76616c69640000000000000000000000000000600082015250565b60006140ea6012836132f6565b91506140f5826140b4565b602082019050919050565b60006020820190508181036000830152614119816140dd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061415a826133a6565b9150614165836133a6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561419e5761419d614120565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141e3826133a6565b91506141ee836133a6565b9250826141fe576141fd6141a9565b5b828204905092915050565b6000614214826133a6565b915061421f836133a6565b92508261422f5761422e6141a9565b5b828206905092915050565b6000614245826133a6565b9150614250836133a6565b92508282101561426357614262614120565b5b828203905092915050565b60008160601b9050919050565b60006142868261426e565b9050919050565b60006142988261427b565b9050919050565b6142b06142ab82613429565b61428d565b82525050565b60008160c01b9050919050565b60006142ce826142b6565b9050919050565b6142e66142e182613640565b6142c3565b82525050565b60006142f8828561429f565b60148201915061430882846142d5565b6008820191508190509392505050565b600081905092915050565b600061432e826132eb565b6143388185614318565b9350614348818560208601613307565b80840191505092915050565b60006143608285614323565b915061436c8284614323565b91508190509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006143ae601f836132f6565b91506143b982614378565b602082019050919050565b600060208201905081810360008301526143dd816143a1565b9050919050565b7f537570706c79206973206c6f636b656400000000000000000000000000000000600082015250565b600061441a6010836132f6565b9150614425826143e4565b602082019050919050565b600060208201905081810360008301526144498161440d565b9050919050565b7f4172726179206d69736d61746368000000000000000000000000000000000000600082015250565b6000614486600e836132f6565b915061449182614450565b602082019050919050565b600060208201905081810360008301526144b581614479565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006144f6826133a6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361452857614527614120565b5b600182019050919050565b7f4d696e74696e67206e6f74206f70656e00000000000000000000000000000000600082015250565b60006145696010836132f6565b915061457482614533565b602082019050919050565b600060208201905081810360008301526145988161455c565b9050919050565b7f4d696e74696e67206861736e2774207374617274656400000000000000000000600082015250565b60006145d56016836132f6565b91506145e08261459f565b602082019050919050565b60006020820190508181036000830152614604816145c8565b9050919050565b7f416464726573732f7175616e7469747920636f6d62696e6174696f6e206e6f7460008201527f206f6e20616c6c6f776c69737400000000000000000000000000000000000000602082015250565b6000614667602d836132f6565b91506146728261460b565b604082019050919050565b600060208201905081810360008301526146968161465a565b9050919050565b7f50726f6f6620616c726561647920757365640000000000000000000000000000600082015250565b60006146d36012836132f6565b91506146de8261469d565b602082019050919050565b60006020820190508181036000830152614702816146c6565b9050919050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b600061473f600e836132f6565b915061474a82614709565b602082019050919050565b6000602082019050818103600083015261476e81614732565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147d16026836132f6565b91506147dc82614775565b604082019050919050565b60006020820190508181036000830152614800816147c4565b9050919050565b600081519050614816816133b0565b92915050565b600060208284031215614832576148316131cd565b5b600061484084828501614807565b91505092915050565b7f4d696e696d756d2061636365737320746f6b656e207468726573686f6c64206e60008201527f6f74207265616368656400000000000000000000000000000000000000000000602082015250565b60006148a5602a836132f6565b91506148b082614849565b604082019050919050565b600060208201905081810360008301526148d481614898565b9050919050565b60006148e6826133a6565b91506148f1836133a6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561492657614925614120565b5b828201905092915050565b7f4d696e74206c696d697420726561636865640000000000000000000000000000600082015250565b60006149676012836132f6565b915061497282614931565b602082019050919050565b600060208201905081810360008301526149968161495a565b9050919050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b60006149d36012836132f6565b91506149de8261499d565b602082019050919050565b60006020820190508181036000830152614a02816149c6565b9050919050565b7f4e6f2070617961626c652064657374696e6174696f6e20736574000000000000600082015250565b6000614a3f601a836132f6565b9150614a4a82614a09565b602082019050919050565b60006020820190508181036000830152614a6e81614a32565b9050919050565b600081905092915050565b50565b6000614a90600083614a75565b9150614a9b82614a80565b600082019050919050565b6000614ab182614a83565b9150819050919050565b7f4661696c656420746f2073656e64206574686572000000000000000000000000600082015250565b6000614af16014836132f6565b9150614afc82614abb565b602082019050919050565b60006020820190508181036000830152614b2081614ae4565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b5d6020836132f6565b9150614b6882614b27565b602082019050919050565b60006020820190508181036000830152614b8c81614b50565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614bba82614b93565b614bc48185614b9e565b9350614bd4818560208601613307565b614bdd8161333a565b840191505092915050565b6000608082019050614bfd600083018761343b565b614c0a602083018661343b565b614c1760408301856134d1565b8181036060830152614c298184614baf565b905095945050505050565b600081519050614c4381613203565b92915050565b600060208284031215614c5f57614c5e6131cd565b5b6000614c6d84828501614c34565b91505092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614cac6010836132f6565b9150614cb782614c76565b602082019050919050565b60006020820190508181036000830152614cdb81614c9f565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614d186014836132f6565b9150614d2382614ce2565b602082019050919050565b60006020820190508181036000830152614d4781614d0b565b905091905056fea26469706673582212209c7eda98c56c28cbf7d27d24115e23d078fa841af5e197e5f2429a1783d1685064736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000001146616c6c205072656d6965722052617a7a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000452415a5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6170702e626c6f6b7061782e636f6d2f6d657461646174612f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003668747470733a2f2f66616c6c2d7072656d6965722d6d657461646174612e626c6f6b7061782e636f6d2f6f70656e7365612e6a736f6e00000000000000000000
Deployed Bytecode
0x6080604052600436106102255760003560e01c8063938e3d7b11610123578063dc33e681116100ab578063e985e9c51161006f578063e985e9c514610803578063f2fde38b14610840578063f825ee3414610869578063fb9d09c814610892578063fffc0f5c146108ae57610225565b8063dc33e68114610720578063dd1049ab1461075d578063e6b349b314610786578063e739bc68146107af578063e8a3d485146107d857610225565b8063a875e4be116100f2578063a875e4be14610629578063ad4b8f8f14610652578063b88d4fde1461068f578063c87b56dd146106b8578063d1239730146106f557610225565b8063938e3d7b1461058157806395d89b41146105aa578063a22cb465146105d5578063a2309ff8146105fe57610225565b806342842e0e116101b1578063715018a611610175578063715018a6146104c057806379502c55146104d757806381eaf99b146105025780638da5cb5b146105195780638ff62c961461054457610225565b806342842e0e146103c957806355f804b3146103f25780635c975abb1461041b5780636352211e1461044657806370a082311461048357610225565b8063095ea7b3116101f8578063095ea7b3146102f857806318160ddd1461032157806323b872dd1461034c578063351bb709146103755780633c8463a11461039e57610225565b806301ffc9a71461022a57806302329a291461026757806306fdde0314610290578063081812fc146102bb575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c919061322f565b6108eb565b60405161025e9190613277565b60405180910390f35b34801561027357600080fd5b5061028e600480360381019061028991906132be565b61097d565b005b34801561029c57600080fd5b506102a56109a4565b6040516102b29190613384565b60405180910390f35b3480156102c757600080fd5b506102e260048036038101906102dd91906133dc565b610a36565b6040516102ef919061344a565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a9190613491565b610ab5565b005b34801561032d57600080fd5b50610336610bf9565b60405161034391906134e0565b60405180910390f35b34801561035857600080fd5b50610373600480360381019061036e91906134fb565b610c10565b005b34801561038157600080fd5b5061039c60048036038101906103979190613734565b610f32565b005b3480156103aa57600080fd5b506103b3611058565b6040516103c091906134e0565b60405180910390f35b3480156103d557600080fd5b506103f060048036038101906103eb91906134fb565b61107b565b005b3480156103fe57600080fd5b506104196004803603810190610414919061381b565b61109b565b005b34801561042757600080fd5b506104306110bd565b60405161043d9190613277565b60405180910390f35b34801561045257600080fd5b5061046d600480360381019061046891906133dc565b6110d4565b60405161047a919061344a565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a59190613864565b6110e6565b6040516104b791906134e0565b60405180910390f35b3480156104cc57600080fd5b506104d561119e565b005b3480156104e357600080fd5b506104ec6111b2565b6040516104f9919061396a565b60405180910390f35b34801561050e57600080fd5b506105176112eb565b005b34801561052557600080fd5b5061052e61132e565b60405161053b919061344a565b60405180910390f35b34801561055057600080fd5b5061056b60048036038101906105669190613985565b611358565b60405161057891906134e0565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a3919061381b565b61159c565b005b3480156105b657600080fd5b506105bf6115be565b6040516105cc9190613384565b60405180910390f35b3480156105e157600080fd5b506105fc60048036038101906105f791906139b2565b611650565b005b34801561060a57600080fd5b506106136117c7565b60405161062091906134e0565b60405180910390f35b34801561063557600080fd5b50610650600480360381019061064b91906139f2565b6117d6565b005b34801561065e57600080fd5b5061067960048036038101906106749190613ac9565b611840565b6040516106869190613b18565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b19190613bd4565b611873565b005b3480156106c457600080fd5b506106df60048036038101906106da91906133dc565b6118e6565b6040516106ec9190613384565b60405180910390f35b34801561070157600080fd5b5061070a611984565b6040516107179190613277565b60405180910390f35b34801561072c57600080fd5b5061074760048036038101906107429190613864565b61199e565b60405161075491906134e0565b60405180910390f35b34801561076957600080fd5b50610784600480360381019061077f9190613d0d565b6119b0565b005b34801561079257600080fd5b506107ad60048036038101906107a89190613864565b611b2f565b005b3480156107bb57600080fd5b506107d660048036038101906107d19190613e51565b611b7b565b005b3480156107e457600080fd5b506107ed611e57565b6040516107fa9190613384565b60405180910390f35b34801561080f57600080fd5b5061082a60048036038101906108259190613ead565b611ee9565b6040516108379190613277565b60405180910390f35b34801561084c57600080fd5b5061086760048036038101906108629190613864565b611f7d565b005b34801561087557600080fd5b50610890600480360381019061088b9190613f2b565b612000565b005b6108ac60048036038101906108a79190613985565b61204c565b005b3480156108ba57600080fd5b506108d560048036038101906108d09190613f58565b6125d3565b6040516108e29190613277565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109765750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6109856125fd565b80156109985761099361267b565b6109a1565b6109a06126de565b5b50565b6060600b80546109b390613fb4565b80601f01602080910402602001604051908101604052809291908181526020018280546109df90613fb4565b8015610a2c5780601f10610a0157610100808354040283529160200191610a2c565b820191906000526020600020905b815481529060010190602001808311610a0f57829003601f168201915b5050505050905090565b6000610a4182612741565b610a77576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ac0826110d4565b90508073ffffffffffffffffffffffffffffffffffffffff16610ae16127a0565b73ffffffffffffffffffffffffffffffffffffffff1614610b4457610b0d81610b086127a0565b611ee9565b610b43576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610c036127a8565b6001546000540303905090565b6000610c1b826127ad565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c82576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610c8e84612879565b91509150610ca48187610c9f6127a0565b6128a0565b610cf057610cb986610cb46127a0565b611ee9565b610cef576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610d56576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d6386868660016128e4565b8015610d6e57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e3c85610e188888876128f2565b7c02000000000000000000000000000000000000000000000000000000001761291a565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610ec25760006001850190506000600460008381526020019081526020016000205403610ec0576000548114610ebf578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f2a8686866001612945565b505050505050565b610f3a6125fd565b80601060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a81548163ffffffff021916908363ffffffff16021790555060608201518160020160046101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550608082015181600201600c6101000a81548163ffffffff021916908363ffffffff16021790555060a08201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c08201518160030160146101000a81548163ffffffff021916908363ffffffff16021790555090505050565b60006010600201600c9054906101000a900463ffffffff1663ffffffff16905090565b61109683838360405180602001604052806000815250611873565b505050565b6110a36125fd565b80600d90805190602001906110b99291906130ac565b5050565b6000600a60009054906101000a900460ff16905090565b60006110df826127ad565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361114d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6111a66125fd565b6111b0600061294b565b565b6111ba613132565b60106040518060e00160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016002820160049054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160028201600c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016003820160149054906101000a900463ffffffff1663ffffffff1663ffffffff1681525050905090565b6112f36125fd565b6001600f60006101000a81548160ff0219169083151502179055506000601060000160006101000a81548160ff021916908315150217905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080601060020160049054906101000a900467ffffffffffffffff1667ffffffffffffffff160361138d5760009050611597565b600073ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361141e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141590614031565b60405180910390fd5b6000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611492573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b69190614087565b9050600081136114fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f290614100565b60405180910390fd5b6000670de0b6b3a7640000620f4240601060020160049054906101000a900467ffffffffffffffff1667ffffffffffffffff168767ffffffffffffffff16611543919061414f565b61154d919061414f565b611557919061414f565b9050600082905064e8d4a51000818361157091906141d8565b61157a9190614209565b818361158691906141d8565b611590919061423a565b9450505050505b919050565b6115a46125fd565b80600e90805190602001906115ba9291906130ac565b5050565b6060600c80546115cd90613fb4565b80601f01602080910402602001604051908101604052809291908181526020018280546115f990613fb4565b80156116465780601f1061161b57610100808354040283529160200191611646565b820191906000526020600020905b81548152906001019060200180831161162957829003601f168201915b5050505050905090565b6116586127a0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116bc576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006116c96127a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117766127a0565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117bb9190613277565b60405180910390a35050565b60006117d1612a11565b905090565b6117de6125fd565b83600b90805190602001906117f49291906130ac565b5082600c908051906020019061180b9291906130ac565b5081600d90805190602001906118229291906130ac565b5080600e90805190602001906118399291906130ac565b5050505050565b600082826040516020016118559291906142ec565b60405160208183030381529060405280519060200120905092915050565b61187e848484610c10565b60008373ffffffffffffffffffffffffffffffffffffffff163b146118e0576118a984848484612a24565b6118df576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606118f182612741565b611927576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611931612b74565b90506000815103611951576040518060200160405280600081525061197c565b8061195b84612c06565b60405160200161196c929190614354565b6040516020818303038152906040525b915050919050565b6000601060000160009054906101000a900460ff16905090565b60006119a982612c4d565b9050919050565b6002600954036119f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ec906143c4565b60405180910390fd5b6002600981905550611a056125fd565b600f60009054906101000a900460ff1615611a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4c90614430565b60405180910390fd5b818190508484905014611a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a949061449c565b60405180910390fd5b60005b84849050811015611b2057611b0d858583818110611ac157611ac06144bc565b5b9050602002016020810190611ad69190613864565b848484818110611ae957611ae86144bc565b5b9050602002016020810190611afe9190613985565b67ffffffffffffffff16612ca4565b8080611b18906144eb565b915050611aa0565b50600160098190555050505050565b611b376125fd565b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260095403611bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb7906143c4565b60405180910390fd5b6002600981905550600f60009054906101000a900460ff1615611c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0f90614430565b60405180910390fd5b601060000160009054906101000a900460ff16611c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c619061457f565b60405180910390fd5b6000601060020160009054906101000a900463ffffffff1663ffffffff16118015611cb0575042601060020160009054906101000a900463ffffffff1663ffffffff1611155b611cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce6906145eb565b60405180910390fd5b611d0f81601060010154611d0a611d04612cc2565b86611840565b612cca565b611d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d459061467d565b60405180910390fd5b6000151560146000611d67611d61612cc2565b86611840565b815260200190815260200160002060009054906101000a900460ff16151514611dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbc906146e9565b60405180910390fd5b6000611dd7611dd2612cc2565b612c4d565b14611e17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0e90614755565b60405180910390fd5b611e30611e2b611e25612cc2565b84611840565b612ce1565b611e4b611e3b612cc2565b8367ffffffffffffffff16612ca4565b60016009819055505050565b6060600e8054611e6690613fb4565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9290613fb4565b8015611edf5780601f10611eb457610100808354040283529160200191611edf565b820191906000526020600020905b815481529060010190602001808311611ec257829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f856125fd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611feb906147e7565b60405180910390fd5b611ffd8161294b565b50565b6120086125fd565b80601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260095403612091576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612088906143c4565b60405180910390fd5b6002600981905550600f60009054906101000a900460ff16156120e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e090614430565b60405180910390fd5b601060000160009054906101000a900460ff1661213b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121329061457f565b60405180910390fd5b6000601060020160009054906101000a900463ffffffff1663ffffffff16118015612181575042601060020160009054906101000a900463ffffffff1663ffffffff1611155b6121c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b7906145eb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415801561223d57506000601060030160149054906101000a900463ffffffff1663ffffffff16115b15612354576000601060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231612292612cc2565b6040518263ffffffff1660e01b81526004016122ae919061344a565b6020604051808303816000875af11580156122cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122f1919061481c565b9050601060030160149054906101000a900463ffffffff1663ffffffff16811015612351576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612348906148bb565b60405180910390fd5b50505b60006010600201600c9054906101000a900463ffffffff1663ffffffff1614806123bd57506010600201600c9054906101000a900463ffffffff1663ffffffff168167ffffffffffffffff166123b06123ab612cc2565b612c4d565b6123ba91906148db565b11155b6123fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f39061497d565b60405180910390fd5b600061240782611358565b90508034101561244c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612443906149e9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036124dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d490614a55565b60405180910390fd5b6000601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161252590614aa6565b60006040518083038185875af1925050503d8060008114612562576040519150601f19603f3d011682016040523d82523d6000602084013e612567565b606091505b50509050806125ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a290614b07565b60405180910390fd5b6125c66125b6612cc2565b8467ffffffffffffffff16612ca4565b5050600160098190555050565b60006014600083815260200190815260200160002060009054906101000a900460ff169050919050565b612605612cc2565b73ffffffffffffffffffffffffffffffffffffffff1661262361132e565b73ffffffffffffffffffffffffffffffffffffffff1614612679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267090614b73565b60405180910390fd5b565b612683612d10565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126c7612cc2565b6040516126d4919061344a565b60405180910390a1565b6126e6612d5a565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61272a612cc2565b604051612737919061344a565b60405180910390a1565b60008161274c6127a8565b1115801561275b575060005482105b8015612799575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b600080829050806127bc6127a8565b11612842576000548110156128415760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361283f575b6000810361283557600460008360019003935083815260200190815260200160002054905061280b565b8092505050612874565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b6128ec612d10565b50505050565b60008060e883901c905060e8612909868684612da3565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612a1b6127a8565b60005403905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a4a6127a0565b8786866040518563ffffffff1660e01b8152600401612a6c9493929190614be8565b6020604051808303816000875af1925050508015612aa857506040513d601f19601f82011682018060405250810190612aa59190614c49565b60015b612b21573d8060008114612ad8576040519150601f19603f3d011682016040523d82523d6000602084013e612add565b606091505b506000815103612b19576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054612b8390613fb4565b80601f0160208091040260200160405190810160405280929190818152602001828054612baf90613fb4565b8015612bfc5780601f10612bd157610100808354040283529160200191612bfc565b820191906000526020600020905b815481529060010190602001808311612bdf57829003601f168201915b5050505050905090565b606060806040510190508060405280825b600115612c3957600183039250600a81066030018353600a8104905080612c17575b508181036020830392508083525050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b612cbe828260405180602001604052806000815250612dac565b5050565b600033905090565b600082612cd78584612e49565b1490509392505050565b60016014600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b612d186110bd565b15612d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4f90614cc2565b60405180910390fd5b565b612d626110bd565b612da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9890614d2e565b60405180910390fd5b565b60009392505050565b612db68383612e9f565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612e4457600080549050600083820390505b612df66000868380600101945086612a24565b612e2c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612de3578160005414612e4157600080fd5b50505b505050565b60008082905060005b8451811015612e9457612e7f82868381518110612e7257612e716144bc565b5b602002602001015161305a565b91508080612e8c906144eb565b915050612e52565b508091505092915050565b60008054905060008203612edf576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612eec60008483856128e4565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612f6383612f5460008660006128f2565b612f5d85613085565b1761291a565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461300457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612fc9565b506000820361303f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506130556000848385612945565b505050565b60008183106130725761306d8284613095565b61307d565b61307c8383613095565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b8280546130b890613fb4565b90600052602060002090601f0160209004810192826130da5760008555613121565b82601f106130f357805160ff1916838001178555613121565b82800160010185558215613121579182015b82811115613120578251825591602001919060010190613105565b5b50905061312e91906131a6565b5090565b6040518060e0016040528060001515815260200160008019168152602001600063ffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600063ffffffff1681525090565b5b808211156131bf5760008160009055506001016131a7565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61320c816131d7565b811461321757600080fd5b50565b60008135905061322981613203565b92915050565b600060208284031215613245576132446131cd565b5b60006132538482850161321a565b91505092915050565b60008115159050919050565b6132718161325c565b82525050565b600060208201905061328c6000830184613268565b92915050565b61329b8161325c565b81146132a657600080fd5b50565b6000813590506132b881613292565b92915050565b6000602082840312156132d4576132d36131cd565b5b60006132e2848285016132a9565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561332557808201518184015260208101905061330a565b83811115613334576000848401525b50505050565b6000601f19601f8301169050919050565b6000613356826132eb565b61336081856132f6565b9350613370818560208601613307565b6133798161333a565b840191505092915050565b6000602082019050818103600083015261339e818461334b565b905092915050565b6000819050919050565b6133b9816133a6565b81146133c457600080fd5b50565b6000813590506133d6816133b0565b92915050565b6000602082840312156133f2576133f16131cd565b5b6000613400848285016133c7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061343482613409565b9050919050565b61344481613429565b82525050565b600060208201905061345f600083018461343b565b92915050565b61346e81613429565b811461347957600080fd5b50565b60008135905061348b81613465565b92915050565b600080604083850312156134a8576134a76131cd565b5b60006134b68582860161347c565b92505060206134c7858286016133c7565b9150509250929050565b6134da816133a6565b82525050565b60006020820190506134f560008301846134d1565b92915050565b600080600060608486031215613514576135136131cd565b5b60006135228682870161347c565b93505060206135338682870161347c565b9250506040613544868287016133c7565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61358b8261333a565b810181811067ffffffffffffffff821117156135aa576135a9613553565b5b80604052505050565b60006135bd6131c3565b90506135c98282613582565b919050565b6000819050919050565b6135e1816135ce565b81146135ec57600080fd5b50565b6000813590506135fe816135d8565b92915050565b600063ffffffff82169050919050565b61361d81613604565b811461362857600080fd5b50565b60008135905061363a81613614565b92915050565b600067ffffffffffffffff82169050919050565b61365d81613640565b811461366857600080fd5b50565b60008135905061367a81613654565b92915050565b600060e082840312156136965761369561354e565b5b6136a060e06135b3565b905060006136b0848285016132a9565b60008301525060206136c4848285016135ef565b60208301525060406136d88482850161362b565b60408301525060606136ec8482850161366b565b60608301525060806137008482850161362b565b60808301525060a06137148482850161347c565b60a08301525060c06137288482850161362b565b60c08301525092915050565b600060e0828403121561374a576137496131cd565b5b600061375884828501613680565b91505092915050565b600080fd5b600080fd5b600067ffffffffffffffff82111561378657613785613553565b5b61378f8261333a565b9050602081019050919050565b82818337600083830152505050565b60006137be6137b98461376b565b6135b3565b9050828152602081018484840111156137da576137d9613766565b5b6137e584828561379c565b509392505050565b600082601f83011261380257613801613761565b5b81356138128482602086016137ab565b91505092915050565b600060208284031215613831576138306131cd565b5b600082013567ffffffffffffffff81111561384f5761384e6131d2565b5b61385b848285016137ed565b91505092915050565b60006020828403121561387a576138796131cd565b5b60006138888482850161347c565b91505092915050565b61389a8161325c565b82525050565b6138a9816135ce565b82525050565b6138b881613604565b82525050565b6138c781613640565b82525050565b6138d681613429565b82525050565b60e0820160008201516138f26000850182613891565b50602082015161390560208501826138a0565b50604082015161391860408501826138af565b50606082015161392b60608501826138be565b50608082015161393e60808501826138af565b5060a082015161395160a08501826138cd565b5060c082015161396460c08501826138af565b50505050565b600060e08201905061397f60008301846138dc565b92915050565b60006020828403121561399b5761399a6131cd565b5b60006139a98482850161366b565b91505092915050565b600080604083850312156139c9576139c86131cd565b5b60006139d78582860161347c565b92505060206139e8858286016132a9565b9150509250929050565b60008060008060808587031215613a0c57613a0b6131cd565b5b600085013567ffffffffffffffff811115613a2a57613a296131d2565b5b613a36878288016137ed565b945050602085013567ffffffffffffffff811115613a5757613a566131d2565b5b613a63878288016137ed565b935050604085013567ffffffffffffffff811115613a8457613a836131d2565b5b613a90878288016137ed565b925050606085013567ffffffffffffffff811115613ab157613ab06131d2565b5b613abd878288016137ed565b91505092959194509250565b60008060408385031215613ae057613adf6131cd565b5b6000613aee8582860161347c565b9250506020613aff8582860161366b565b9150509250929050565b613b12816135ce565b82525050565b6000602082019050613b2d6000830184613b09565b92915050565b600067ffffffffffffffff821115613b4e57613b4d613553565b5b613b578261333a565b9050602081019050919050565b6000613b77613b7284613b33565b6135b3565b905082815260208101848484011115613b9357613b92613766565b5b613b9e84828561379c565b509392505050565b600082601f830112613bbb57613bba613761565b5b8135613bcb848260208601613b64565b91505092915050565b60008060008060808587031215613bee57613bed6131cd565b5b6000613bfc8782880161347c565b9450506020613c0d8782880161347c565b9350506040613c1e878288016133c7565b925050606085013567ffffffffffffffff811115613c3f57613c3e6131d2565b5b613c4b87828801613ba6565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613c7757613c76613761565b5b8235905067ffffffffffffffff811115613c9457613c93613c57565b5b602083019150836020820283011115613cb057613caf613c5c565b5b9250929050565b60008083601f840112613ccd57613ccc613761565b5b8235905067ffffffffffffffff811115613cea57613ce9613c57565b5b602083019150836020820283011115613d0657613d05613c5c565b5b9250929050565b60008060008060408587031215613d2757613d266131cd565b5b600085013567ffffffffffffffff811115613d4557613d446131d2565b5b613d5187828801613c61565b9450945050602085013567ffffffffffffffff811115613d7457613d736131d2565b5b613d8087828801613cb7565b925092505092959194509250565b600067ffffffffffffffff821115613da957613da8613553565b5b602082029050602081019050919050565b6000613dcd613dc884613d8e565b6135b3565b90508083825260208201905060208402830185811115613df057613def613c5c565b5b835b81811015613e195780613e0588826135ef565b845260208401935050602081019050613df2565b5050509392505050565b600082601f830112613e3857613e37613761565b5b8135613e48848260208601613dba565b91505092915050565b60008060408385031215613e6857613e676131cd565b5b6000613e768582860161366b565b925050602083013567ffffffffffffffff811115613e9757613e966131d2565b5b613ea385828601613e23565b9150509250929050565b60008060408385031215613ec457613ec36131cd565b5b6000613ed28582860161347c565b9250506020613ee38582860161347c565b9150509250929050565b6000613ef882613409565b9050919050565b613f0881613eed565b8114613f1357600080fd5b50565b600081359050613f2581613eff565b92915050565b600060208284031215613f4157613f406131cd565b5b6000613f4f84828501613f16565b91505092915050565b600060208284031215613f6e57613f6d6131cd565b5b6000613f7c848285016135ef565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613fcc57607f821691505b602082108103613fdf57613fde613f85565b5b50919050565b7f4d697373696e67204554482f555344204f7261636c6500000000000000000000600082015250565b600061401b6016836132f6565b915061402682613fe5565b602082019050919050565b6000602082019050818103600083015261404a8161400e565b9050919050565b6000819050919050565b61406481614051565b811461406f57600080fd5b50565b6000815190506140818161405b565b92915050565b60006020828403121561409d5761409c6131cd565b5b60006140ab84828501614072565b91505092915050565b7f53706f7420707269636520696e76616c69640000000000000000000000000000600082015250565b60006140ea6012836132f6565b91506140f5826140b4565b602082019050919050565b60006020820190508181036000830152614119816140dd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061415a826133a6565b9150614165836133a6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561419e5761419d614120565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141e3826133a6565b91506141ee836133a6565b9250826141fe576141fd6141a9565b5b828204905092915050565b6000614214826133a6565b915061421f836133a6565b92508261422f5761422e6141a9565b5b828206905092915050565b6000614245826133a6565b9150614250836133a6565b92508282101561426357614262614120565b5b828203905092915050565b60008160601b9050919050565b60006142868261426e565b9050919050565b60006142988261427b565b9050919050565b6142b06142ab82613429565b61428d565b82525050565b60008160c01b9050919050565b60006142ce826142b6565b9050919050565b6142e66142e182613640565b6142c3565b82525050565b60006142f8828561429f565b60148201915061430882846142d5565b6008820191508190509392505050565b600081905092915050565b600061432e826132eb565b6143388185614318565b9350614348818560208601613307565b80840191505092915050565b60006143608285614323565b915061436c8284614323565b91508190509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006143ae601f836132f6565b91506143b982614378565b602082019050919050565b600060208201905081810360008301526143dd816143a1565b9050919050565b7f537570706c79206973206c6f636b656400000000000000000000000000000000600082015250565b600061441a6010836132f6565b9150614425826143e4565b602082019050919050565b600060208201905081810360008301526144498161440d565b9050919050565b7f4172726179206d69736d61746368000000000000000000000000000000000000600082015250565b6000614486600e836132f6565b915061449182614450565b602082019050919050565b600060208201905081810360008301526144b581614479565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006144f6826133a6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361452857614527614120565b5b600182019050919050565b7f4d696e74696e67206e6f74206f70656e00000000000000000000000000000000600082015250565b60006145696010836132f6565b915061457482614533565b602082019050919050565b600060208201905081810360008301526145988161455c565b9050919050565b7f4d696e74696e67206861736e2774207374617274656400000000000000000000600082015250565b60006145d56016836132f6565b91506145e08261459f565b602082019050919050565b60006020820190508181036000830152614604816145c8565b9050919050565b7f416464726573732f7175616e7469747920636f6d62696e6174696f6e206e6f7460008201527f206f6e20616c6c6f776c69737400000000000000000000000000000000000000602082015250565b6000614667602d836132f6565b91506146728261460b565b604082019050919050565b600060208201905081810360008301526146968161465a565b9050919050565b7f50726f6f6620616c726561647920757365640000000000000000000000000000600082015250565b60006146d36012836132f6565b91506146de8261469d565b602082019050919050565b60006020820190508181036000830152614702816146c6565b9050919050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b600061473f600e836132f6565b915061474a82614709565b602082019050919050565b6000602082019050818103600083015261476e81614732565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147d16026836132f6565b91506147dc82614775565b604082019050919050565b60006020820190508181036000830152614800816147c4565b9050919050565b600081519050614816816133b0565b92915050565b600060208284031215614832576148316131cd565b5b600061484084828501614807565b91505092915050565b7f4d696e696d756d2061636365737320746f6b656e207468726573686f6c64206e60008201527f6f74207265616368656400000000000000000000000000000000000000000000602082015250565b60006148a5602a836132f6565b91506148b082614849565b604082019050919050565b600060208201905081810360008301526148d481614898565b9050919050565b60006148e6826133a6565b91506148f1836133a6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561492657614925614120565b5b828201905092915050565b7f4d696e74206c696d697420726561636865640000000000000000000000000000600082015250565b60006149676012836132f6565b915061497282614931565b602082019050919050565b600060208201905081810360008301526149968161495a565b9050919050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b60006149d36012836132f6565b91506149de8261499d565b602082019050919050565b60006020820190508181036000830152614a02816149c6565b9050919050565b7f4e6f2070617961626c652064657374696e6174696f6e20736574000000000000600082015250565b6000614a3f601a836132f6565b9150614a4a82614a09565b602082019050919050565b60006020820190508181036000830152614a6e81614a32565b9050919050565b600081905092915050565b50565b6000614a90600083614a75565b9150614a9b82614a80565b600082019050919050565b6000614ab182614a83565b9150819050919050565b7f4661696c656420746f2073656e64206574686572000000000000000000000000600082015250565b6000614af16014836132f6565b9150614afc82614abb565b602082019050919050565b60006020820190508181036000830152614b2081614ae4565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b5d6020836132f6565b9150614b6882614b27565b602082019050919050565b60006020820190508181036000830152614b8c81614b50565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614bba82614b93565b614bc48185614b9e565b9350614bd4818560208601613307565b614bdd8161333a565b840191505092915050565b6000608082019050614bfd600083018761343b565b614c0a602083018661343b565b614c1760408301856134d1565b8181036060830152614c298184614baf565b905095945050505050565b600081519050614c4381613203565b92915050565b600060208284031215614c5f57614c5e6131cd565b5b6000614c6d84828501614c34565b91505092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614cac6010836132f6565b9150614cb782614c76565b602082019050919050565b60006020820190508181036000830152614cdb81614c9f565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614d186014836132f6565b9150614d2382614ce2565b602082019050919050565b60006020820190508181036000830152614d4781614d0b565b905091905056fea26469706673582212209c7eda98c56c28cbf7d27d24115e23d078fa841af5e197e5f2429a1783d1685064736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000001146616c6c205072656d6965722052617a7a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000452415a5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6170702e626c6f6b7061782e636f6d2f6d657461646174612f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003668747470733a2f2f66616c6c2d7072656d6965722d6d657461646174612e626c6f6b7061782e636f6d2f6f70656e7365612e6a736f6e00000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Fall Premier Razz
Arg [1] : symbol_ (string): RAZZ
Arg [2] : metadataRoot_ (string): https://app.blokpax.com/metadata/token/
Arg [3] : contractMetadata_ (string): https://fall-premier-metadata.blokpax.com/opensea.json
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 46616c6c205072656d6965722052617a7a000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 52415a5a00000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000027
Arg [9] : 68747470733a2f2f6170702e626c6f6b7061782e636f6d2f6d65746164617461
Arg [10] : 2f746f6b656e2f00000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [12] : 68747470733a2f2f66616c6c2d7072656d6965722d6d657461646174612e626c
Arg [13] : 6f6b7061782e636f6d2f6f70656e7365612e6a736f6e00000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.