Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15108989 | 779 days ago | IN | 0 ETH | 0.35855208 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BasedGhoulsv269
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.13; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/common/ERC2981Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "./interfaces/IBatchReveal.sol"; // ghouls rebased by @0xhanvalen contract BasedGhoulsv269 is ERC721Upgradeable, ERC2981Upgradeable, AccessControlUpgradeable { using StringsUpgradeable for uint256; mapping (address => bool) public EXPANSIONPAKRedemption; mapping (address => bool) public REBASERedemption; struct GhoulData { bool isMintable; uint16 totalSupply; uint16 maxGhouls; uint16 summonedGhouls; uint16 rebasedGhouls; uint16 maxRebasedGhouls; uint16 lastTokenRevealed; uint16 TOKEN_LIMIT; uint16 REVEAL_BATCH_SIZE; string baseURI; string unrevealedURI; bytes32 EXPANSION_PAK; bytes32 SUMMONER_LIST; address shufflerAddress; bool isHordeReleased; } GhoulData ghouldata; function initialize() initializer public { __ERC721_init("Based Ghouls", "GHLS"); ghouldata.maxGhouls = 6666; ghouldata.maxRebasedGhouls = 2529; ghouldata.baseURI = "https://ghlsprod.s3.amazonaws.com/json/"; ghouldata.unrevealedURI = "https://ghlsprereveal.s3.amazonaws.com/json/Shallow_Grave.json"; ghouldata.EXPANSION_PAK = 0x45b023b371a3c483c2f511b6647ab965a580f4f2eaa3f9240a74c50bd9af779f; ghouldata.SUMMONER_LIST = 0x0b2bcd41b8945cfd9ffe48a11ad38426bb2146bc95f2f2d35087037166f8cfec; ghouldata.lastTokenRevealed = 1; ghouldata.TOKEN_LIMIT = 6666; ghouldata.REVEAL_BATCH_SIZE = 66; ghouldata.isMintable = false; ghouldata.totalSupply = 0; _setDefaultRoyalty(0x475dcAA08A69fA462790F42DB4D3bbA1563cb474, 690); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); grantRole(DEFAULT_ADMIN_ROLE, 0x98CCf605c43A0bF9D6795C3cf3b5fEd836330511); } function getGhoulData() view public returns (GhoulData memory) { return ghouldata; } function updateBaseURI(string calldata _newURI) public onlyRole(DEFAULT_ADMIN_ROLE) { ghouldata.baseURI = _newURI; } function updateUnrevealedURI(string calldata _newURI) public onlyRole(DEFAULT_ADMIN_ROLE) { ghouldata.unrevealedURI = _newURI; } function setMintability(bool _mintability) public onlyRole(DEFAULT_ADMIN_ROLE) { ghouldata.isMintable = _mintability; } function setShufflerAddress(address _address) public onlyRole(DEFAULT_ADMIN_ROLE) { ghouldata.shufflerAddress = _address; } function setBatchSeed(uint _randomness) private { IBatchReveal(ghouldata.shufflerAddress).setBatchSeed(_randomness); } function setLastTokenRevealed(uint16 _index) private { IBatchReveal(ghouldata.shufflerAddress).setLastTokenRevealed(_index); } function getShuffledTokenId(uint _startId) view private returns (uint) { return IBatchReveal(ghouldata.shufflerAddress).getShuffledTokenId(_startId); } function insertExpansionPack(bytes32 _newMerkle) public onlyRole(DEFAULT_ADMIN_ROLE) { ghouldata.EXPANSION_PAK = _newMerkle; } function releaseTheHorde(bool _isHordeReleased) public onlyRole(DEFAULT_ADMIN_ROLE) { ghouldata.isHordeReleased = _isHordeReleased; } function insertRebasePack(bytes32 _newMerkle, uint16 _maxRebasedGhouls) public onlyRole(DEFAULT_ADMIN_ROLE) { ghouldata.SUMMONER_LIST = _newMerkle; ghouldata.maxRebasedGhouls = _maxRebasedGhouls; } // u gotta... GOTTA... send the merkleproof in w the mint request. function summon(bytes32[] calldata _merkleProof, bool _isRebase) public { require(ghouldata.isMintable, "NYM"); require(ghouldata.totalSupply <= ghouldata.maxGhouls, "OOG"); address minter = msg.sender; require(tx.origin == msg.sender, "NSCM"); if (_isRebase) { require(!REBASERedemption2[minter], "TMG"); require(ghouldata.rebasedGhouls + 3 <= ghouldata.maxRebasedGhouls, "NEG"); bytes32 leaf = keccak256(abi.encodePacked(minter)); bool isLeaf = MerkleProofUpgradeable.verify(_merkleProof, ghouldata.SUMMONER_LIST, leaf); require(isLeaf, "NBG"); REBASERedemption2[minter] = true; EXPANSIONPAKRedemption2[minter] = true; ghouldata.totalSupply = ghouldata.totalSupply + 3; ghouldata.rebasedGhouls += 3; _mint(minter, ghouldata.totalSupply - 3); _mint(minter, ghouldata.totalSupply - 2); _mint(minter, ghouldata.totalSupply - 1); } if (!ghouldata.isHordeReleased && !_isRebase) { require(!EXPANSIONPAKRedemption2[minter], "TMG"); require(ghouldata.summonedGhouls + 1 + ghouldata.maxRebasedGhouls <= ghouldata.maxGhouls, "NEG"); bytes32 leaf = keccak256(abi.encodePacked(minter)); bool isLeaf = MerkleProofUpgradeable.verify(_merkleProof, ghouldata.EXPANSION_PAK, leaf); require(isLeaf, "NBG"); EXPANSIONPAKRedemption2[minter] = true; ghouldata.totalSupply = ghouldata.totalSupply + 1; ghouldata.summonedGhouls += 1; _mint(minter, ghouldata.totalSupply - 1); } if (ghouldata.isHordeReleased) { require(ghouldata.summonedGhouls + 1 + ghouldata.maxRebasedGhouls <= ghouldata.maxGhouls, "NEG"); ghouldata.summonedGhouls += 1; ghouldata.totalSupply = ghouldata.totalSupply + 1; _mint(minter, ghouldata.totalSupply - 1); } if(ghouldata.totalSupply >= (ghouldata.lastTokenRevealed + ghouldata.REVEAL_BATCH_SIZE)) { ghouldata.lastTokenRevealed = ghouldata.totalSupply; setLastTokenRevealed(ghouldata.totalSupply); uint256 seed; unchecked { seed = uint256(blockhash(block.number - 69)) * uint256(block.timestamp % 69); } setBatchSeed(seed); } } function tokenURI(uint256 id) public view override returns (string memory) { if(id >= ghouldata.lastTokenRevealed){ return ghouldata.unrevealedURI; } else { return string(abi.encodePacked(ghouldata.baseURI, getShuffledTokenId(id).toString(), ".json")); } } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlUpgradeable, ERC2981Upgradeable, ERC721Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || interfaceId == type(IAccessControlUpgradeable).interfaceId || interfaceId == type(IERC2981Upgradeable).interfaceId || super.supportsInterface(interfaceId); } mapping (address => bool) public EXPANSIONPAKRedemption2; mapping (address => bool) public REBASERedemption2; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[44] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981Upgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981Upgradeable is Initializable, IERC2981Upgradeable, ERC165Upgradeable { function __ERC2981_init() internal onlyInitializing { } function __ERC2981_init_unchained() internal onlyInitializing { } struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165Upgradeable, ERC165Upgradeable) returns (bool) { return interfaceId == type(IERC2981Upgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981Upgradeable */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[48] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControlUpgradeable.sol"; import "../utils/ContextUpgradeable.sol"; import "../utils/StringsUpgradeable.sol"; import "../utils/introspection/ERC165Upgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable { function __AccessControl_init() internal onlyInitializing { } function __AccessControl_init_unchained() internal onlyInitializing { } struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", StringsUpgradeable.toHexString(uint160(account), 20), " is missing role ", StringsUpgradeable.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees 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 MerkleProofUpgradeable { /** * @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 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++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
//SPDX-License-Identifier: CC0 pragma solidity ^0.8.13; interface IBatchReveal { struct Range { int128 start; int128 end; } function getShuffledTokenId(uint startId) view external returns (uint); function setBatchSeed(uint randomness) external; function setLastTokenRevealed(uint _index) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981Upgradeable is IERC165Upgradeable { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControlUpgradeable { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"EXPANSIONPAKRedemption","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"EXPANSIONPAKRedemption2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"REBASERedemption","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"REBASERedemption2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGhoulData","outputs":[{"components":[{"internalType":"bool","name":"isMintable","type":"bool"},{"internalType":"uint16","name":"totalSupply","type":"uint16"},{"internalType":"uint16","name":"maxGhouls","type":"uint16"},{"internalType":"uint16","name":"summonedGhouls","type":"uint16"},{"internalType":"uint16","name":"rebasedGhouls","type":"uint16"},{"internalType":"uint16","name":"maxRebasedGhouls","type":"uint16"},{"internalType":"uint16","name":"lastTokenRevealed","type":"uint16"},{"internalType":"uint16","name":"TOKEN_LIMIT","type":"uint16"},{"internalType":"uint16","name":"REVEAL_BATCH_SIZE","type":"uint16"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"unrevealedURI","type":"string"},{"internalType":"bytes32","name":"EXPANSION_PAK","type":"bytes32"},{"internalType":"bytes32","name":"SUMMONER_LIST","type":"bytes32"},{"internalType":"address","name":"shufflerAddress","type":"address"},{"internalType":"bool","name":"isHordeReleased","type":"bool"}],"internalType":"struct BasedGhoulsv269.GhoulData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkle","type":"bytes32"}],"name":"insertExpansionPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkle","type":"bytes32"},{"internalType":"uint16","name":"_maxRebasedGhouls","type":"uint16"}],"name":"insertRebasePack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"_isHordeReleased","type":"bool"}],"name":"releaseTheHorde","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"bool","name":"_mintability","type":"bool"}],"name":"setMintability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setShufflerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bool","name":"_isRebase","type":"bool"}],"name":"summon","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":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"updateUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50615d8080620000216000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c8063931688cb1161011a578063b88d4fde116100ad578063d547741f1161007c578063d547741f1461061e578063e5ef873d1461063a578063e985e9c514610656578063eb4e732614610686578063f8b16cfb146106a257610206565b8063b88d4fde1461059a578063b8e0bdf9146105b6578063c87b56dd146105d2578063cc8c241a1461060257610206565b8063a304970c116100e9578063a304970c14610500578063a4650a141461051e578063aa11f8481461053a578063b21fd34e1461056a57610206565b8063931688cb1461048c57806395d89b41146104a8578063a217fddf146104c6578063a22cb465146104e457610206565b806336568abe1161019d5780636352211e1161016c5780636352211e146103c257806363c371bd146103f257806370a08231146104225780638129fc1c1461045257806391d148541461045c57610206565b806336568abe1461033e57806342842e0e1461035a5780634e429f131461037657806359ea929f1461039257610206565b806323b872dd116101d957806323b872dd146102a5578063248a9ca3146102c15780632a55205a146102f15780632f2ff15d1461032257610206565b806301ffc9a71461020b57806306fdde031461023b578063081812fc14610259578063095ea7b314610289575b600080fd5b61022560048036038101906102209190613e4e565b6106be565b6040516102329190613e96565b60405180910390f35b610243610870565b6040516102509190613f4a565b60405180910390f35b610273600480360381019061026e9190613fa2565b610902565b6040516102809190614010565b60405180910390f35b6102a3600480360381019061029e9190614057565b610987565b005b6102bf60048036038101906102ba9190614097565b610a9e565b005b6102db60048036038101906102d69190614120565b610afe565b6040516102e8919061415c565b60405180910390f35b61030b60048036038101906103069190614177565b610b1e565b6040516103199291906141c6565b60405180910390f35b61033c600480360381019061033791906141ef565b610d08565b005b610358600480360381019061035391906141ef565b610d29565b005b610374600480360381019061036f9190614097565b610dac565b005b610390600480360381019061038b919061425b565b610dcc565b005b6103ac60048036038101906103a79190614288565b610dfa565b6040516103b99190613e96565b60405180910390f35b6103dc60048036038101906103d79190613fa2565b610e1a565b6040516103e99190614010565b60405180910390f35b61040c60048036038101906104079190614288565b610ecb565b6040516104199190613e96565b60405180910390f35b61043c60048036038101906104379190614288565b610eec565b60405161044991906142b5565b60405180910390f35b61045a610fa3565b005b610476600480360381019061047191906141ef565b611296565b6040516104839190613e96565b60405180910390f35b6104a660048036038101906104a19190614335565b611301565b005b6104b0611328565b6040516104bd9190613f4a565b60405180910390f35b6104ce6113ba565b6040516104db919061415c565b60405180910390f35b6104fe60048036038101906104f99190614382565b6113c1565b005b6105086113d7565b60405161051591906145a0565b60405180910390f35b6105386004803603810190610533919061425b565b6116b6565b005b610554600480360381019061054f9190614288565b6116e4565b6040516105619190613e96565b60405180910390f35b610584600480360381019061057f9190614288565b611704565b6040516105919190613e96565b60405180910390f35b6105b460048036038101906105af91906146f2565b611725565b005b6105d060048036038101906105cb91906147a1565b611787565b005b6105ec60048036038101906105e79190613fa2565b6117c3565b6040516105f99190613f4a565b60405180910390f35b61061c60048036038101906106179190614288565b6118b6565b005b610638600480360381019061063391906141ef565b61190b565b005b610654600480360381019061064f9190614335565b61192c565b005b610670600480360381019061066b91906147e1565b611953565b60405161067d9190613e96565b60405180910390f35b6106a0600480360381019061069b9190614877565b6119e7565b005b6106bc60048036038101906106b79190614120565b6123e6565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061078957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107f157507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061085957507f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610869575061086882612401565b5b9050919050565b60606065805461087f90614906565b80601f01602080910402602001604051908101604052809291908181526020018280546108ab90614906565b80156108f85780601f106108cd576101008083540402835291602001916108f8565b820191906000526020600020905b8154815290600101906020018083116108db57829003601f168201915b5050505050905090565b600061090d8261247b565b61094c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610943906149a9565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061099282610e1a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f990614a3b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a216124e7565b73ffffffffffffffffffffffffffffffffffffffff161480610a505750610a4f81610a4a6124e7565b611953565b5b610a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8690614acd565b60405180910390fd5b610a9983836124ef565b505050565b610aaf610aa96124e7565b826125a8565b610aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae590614b5f565b60405180910390fd5b610af9838383612686565b505050565b600060c96000838152602001908152602001600020600101549050919050565b6000806000609860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610cb35760976040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cbd6128ec565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ce99190614bae565b610cf39190614c37565b90508160000151819350935050509250929050565b610d1182610afe565b610d1a816128f6565b610d24838361290a565b505050565b610d316124e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9590614cda565b60405180910390fd5b610da882826129eb565b5050565b610dc783838360405180602001604052806000815250611725565b505050565b6000801b610dd9816128f6565b8160fd60000160006101000a81548160ff0219169083151502179055505050565b60fb6020528060005260406000206000915054906101000a900460ff1681565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990614d6c565b60405180910390fd5b80915050919050565b6101036020528060005260406000206000915054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5390614dfe565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610faf6001612acd565b90508015610fd3576001600060016101000a81548160ff0219169083151502179055505b6110476040518060400160405280600c81526020017f42617365642047686f756c7300000000000000000000000000000000000000008152506040518060400160405280600481526020017f47484c5300000000000000000000000000000000000000000000000000000000815250612bbd565b611a0a60fd60000160036101000a81548161ffff021916908361ffff1602179055506109e160fd60000160096101000a81548161ffff021916908361ffff160217905550604051806060016040528060278152602001615ce66027913960fd60010190805190602001906110bc929190613c03565b506040518060600160405280603e8152602001615d0d603e913960fd60020190805190602001906110ee929190613c03565b507f45b023b371a3c483c2f511b6647ab965a580f4f2eaa3f9240a74c50bd9af779f60001b60fd600301819055507f0b2bcd41b8945cfd9ffe48a11ad38426bb2146bc95f2f2d35087037166f8cfec60001b60fd60040181905550600160fd600001600b6101000a81548161ffff021916908361ffff160217905550611a0a60fd600001600d6101000a81548161ffff021916908361ffff160217905550604260fd600001600f6101000a81548161ffff021916908361ffff160217905550600060fd60000160006101000a81548160ff021916908315150217905550600060fd60000160016101000a81548161ffff021916908361ffff16021790555061120c73475dcaa08a69fa462790f42db4d3bba1563cb4746102b2612c1a565b6112196000801b33612daf565b61123a6000801b7398ccf605c43a0bf9d6795c3cf3b5fed836330511610d08565b80156112935760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405161128a9190614e70565b60405180910390a15b50565b600060c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b61130e816128f6565b828260fd6001019190611322929190613c89565b50505050565b60606066805461133790614906565b80601f016020809104026020016040519081016040528092919081815260200182805461136390614906565b80156113b05780601f10611385576101008083540402835291602001916113b0565b820191906000526020600020905b81548152906001019060200180831161139357829003601f168201915b5050505050905090565b6000801b81565b6113d36113cc6124e7565b8383612dbd565b5050565b6113df613d0f565b60fd604051806101e00160405290816000820160009054906101000a900460ff161515151581526020016000820160019054906101000a900461ffff1661ffff1661ffff1681526020016000820160039054906101000a900461ffff1661ffff1661ffff1681526020016000820160059054906101000a900461ffff1661ffff1661ffff1681526020016000820160079054906101000a900461ffff1661ffff1661ffff1681526020016000820160099054906101000a900461ffff1661ffff1661ffff16815260200160008201600b9054906101000a900461ffff1661ffff1661ffff16815260200160008201600d9054906101000a900461ffff1661ffff1661ffff16815260200160008201600f9054906101000a900461ffff1661ffff1661ffff16815260200160018201805461151890614906565b80601f016020809104026020016040519081016040528092919081815260200182805461154490614906565b80156115915780601f1061156657610100808354040283529160200191611591565b820191906000526020600020905b81548152906001019060200180831161157457829003601f168201915b505050505081526020016002820180546115aa90614906565b80601f01602080910402602001604051908101604052809291908181526020018280546115d690614906565b80156116235780601f106115f857610100808354040283529160200191611623565b820191906000526020600020905b81548152906001019060200180831161160657829003601f168201915b5050505050815260200160038201548152602001600482015481526020016005820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016005820160149054906101000a900460ff161515151581525050905090565b6000801b6116c3816128f6565b8160fd60050160146101000a81548160ff0219169083151502179055505050565b60fc6020528060005260406000206000915054906101000a900460ff1681565b6101046020528060005260406000206000915054906101000a900460ff1681565b6117366117306124e7565b836125a8565b611775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176c90614b5f565b60405180910390fd5b61178184848484612f29565b50505050565b6000801b611794816128f6565b8260fd600401819055508160fd60000160096101000a81548161ffff021916908361ffff160217905550505050565b606060fd600001600b9054906101000a900461ffff1661ffff1682106118785760fd60020180546117f390614906565b80601f016020809104026020016040519081016040528092919081815260200182805461181f90614906565b801561186c5780601f106118415761010080835404028352916020019161186c565b820191906000526020600020905b81548152906001019060200180831161184f57829003601f168201915b505050505090506118b1565b60fd60010161188e61188984612f85565b61302d565b60405160200161189f929190614fa7565b60405160208183030381529060405290505b919050565b6000801b6118c3816128f6565b8160fd60050160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61191482610afe565b61191d816128f6565b61192783836129eb565b505050565b6000801b611939816128f6565b828260fd600201919061194d929190613c89565b50505050565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60fd60000160009054906101000a900460ff16611a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3090615022565b60405180910390fd5b60fd60000160039054906101000a900461ffff1661ffff1660fd60000160019054906101000a900461ffff1661ffff161115611aaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa19061508e565b60405180910390fd5b60003390503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611b1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b14906150fa565b60405180910390fd5b8115611ea65761010460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba890615166565b60405180910390fd5b60fd60000160099054906101000a900461ffff1661ffff16600360fd60000160079054906101000a900461ffff16611be99190615186565b61ffff161115611c2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c259061520a565b60405180910390fd5b600081604051602001611c419190615272565b6040516020818303038152906040528051906020012090506000611cac868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060fd600401548461318d565b905080611cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce5906152d9565b60405180910390fd5b600161010460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600161010360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600360fd60000160019054906101000a900461ffff16611dc09190615186565b60fd60000160016101000a81548161ffff021916908361ffff160217905550600360fd60000160078282829054906101000a900461ffff16611e029190615186565b92506101000a81548161ffff021916908361ffff160217905550611e4983600360fd60000160019054906101000a900461ffff16611e4091906152f9565b61ffff166131a4565b611e7683600260fd60000160019054906101000a900461ffff16611e6d91906152f9565b61ffff166131a4565b611ea383600160fd60000160019054906101000a900461ffff16611e9a91906152f9565b61ffff166131a4565b50505b60fd60050160149054906101000a900460ff16158015611ec4575081155b156121b75761010360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4e90615166565b60405180910390fd5b60fd60000160039054906101000a900461ffff1661ffff1660fd60000160099054906101000a900461ffff16600160fd60000160059054906101000a900461ffff16611fa39190615186565b611fad9190615186565b61ffff161115611ff2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe99061520a565b60405180910390fd5b6000816040516020016120059190615272565b6040516020818303038152906040528051906020012090506000612070868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060fd600301548461318d565b9050806120b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a9906152d9565b60405180910390fd5b600161010360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160fd60000160019054906101000a900461ffff1661212b9190615186565b60fd60000160016101000a81548161ffff021916908361ffff160217905550600160fd60000160058282829054906101000a900461ffff1661216d9190615186565b92506101000a81548161ffff021916908361ffff1602179055506121b483600160fd60000160019054906101000a900461ffff166121ab91906152f9565b61ffff166131a4565b50505b60fd60050160149054906101000a900460ff16156123145760fd60000160039054906101000a900461ffff1661ffff1660fd60000160099054906101000a900461ffff16600160fd60000160059054906101000a900461ffff1661221b9190615186565b6122259190615186565b61ffff16111561226a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122619061520a565b60405180910390fd5b600160fd60000160058282829054906101000a900461ffff1661228d9190615186565b92506101000a81548161ffff021916908361ffff160217905550600160fd60000160019054906101000a900461ffff166122c79190615186565b60fd60000160016101000a81548161ffff021916908361ffff16021790555061231381600160fd60000160019054906101000a900461ffff1661230a91906152f9565b61ffff166131a4565b5b60fd600001600f9054906101000a900461ffff1660fd600001600b9054906101000a900461ffff166123469190615186565b61ffff1660fd60000160019054906101000a900461ffff1661ffff16106123e05760fd60000160019054906101000a900461ffff1660fd600001600b6101000a81548161ffff021916908361ffff1602179055506123b660fd60000160019054906101000a900461ffff1661337d565b6000604542816123c9576123c8614c08565b5b06604543034060001c0290506123de81613410565b505b50505050565b6000801b6123f3816128f6565b8160fd600301819055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124745750612473826134a3565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661256283610e1a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006125b38261247b565b6125f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e99061539f565b60405180910390fd5b60006125fd83610e1a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061263f575061263e8185611953565b5b8061267d57508373ffffffffffffffffffffffffffffffffffffffff1661266584610902565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166126a682610e1a565b73ffffffffffffffffffffffffffffffffffffffff16146126fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f390615431565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361276b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612762906154c3565b60405180910390fd5b61277683838361351d565b6127816000826124ef565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127d191906154e3565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128289190615517565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128e7838383613522565b505050565b6000612710905090565b612907816129026124e7565b613527565b50565b6129148282611296565b6129e757600160c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061298c6124e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6129f58282611296565b15612ac957600060c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612a6e6124e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008060019054906101000a900460ff1615612b445760018260ff16148015612afc5750612afa306135c4565b155b612b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b32906155df565b60405180910390fd5b60009050612bb8565b8160ff1660008054906101000a900460ff1660ff1610612b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b90906155df565b60405180910390fd5b816000806101000a81548160ff021916908360ff160217905550600190505b919050565b600060019054906101000a900460ff16612c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0390615671565b60405180910390fd5b612c1682826135e7565b5050565b612c226128ec565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7790615703565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce69061576f565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250609760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b612db9828261290a565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e22906157db565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f1c9190613e96565b60405180910390a3505050565b612f34848484612686565b612f4084848484613668565b612f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f769061586d565b60405180910390fd5b50505050565b600060fd60050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cfedd61b836040518263ffffffff1660e01b8152600401612fe591906142b5565b602060405180830381865afa158015613002573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061302691906158a2565b9050919050565b606060008203613074576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613188565b600082905060005b600082146130a657808061308f906158cf565b915050600a8261309f9190614c37565b915061307c565b60008167ffffffffffffffff8111156130c2576130c16145c7565b5b6040519080825280601f01601f1916602001820160405280156130f45781602001600182028036833780820191505090505b5090505b600085146131815760018261310d91906154e3565b9150600a8561311c9190615917565b60306131289190615517565b60f81b81838151811061313e5761313d615948565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561317a9190614c37565b94506130f8565b8093505050505b919050565b60008261319a85846137ef565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320a906159c3565b60405180910390fd5b61321c8161247b565b1561325c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325390615a2f565b60405180910390fd5b6132686000838361351d565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132b89190615517565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461337960008383613522565b5050565b60fd60050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd35f093826040518263ffffffff1660e01b81526004016133db9190615a80565b600060405180830381600087803b1580156133f557600080fd5b505af1158015613409573d6000803e3d6000fd5b5050505050565b60fd60050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344d456c1826040518263ffffffff1660e01b815260040161346e91906142b5565b600060405180830381600087803b15801561348857600080fd5b505af115801561349c573d6000803e3d6000fd5b5050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613516575061351582613864565b5b9050919050565b505050565b505050565b6135318282611296565b6135c0576135568173ffffffffffffffffffffffffffffffffffffffff166014613946565b6135648360001c6020613946565b604051602001613575929190615b33565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135b79190613f4a565b60405180910390fd5b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16613636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362d90615671565b60405180910390fd5b816065908051906020019061364c929190613c03565b508060669080519060200190613663929190613c03565b505050565b60006136898473ffffffffffffffffffffffffffffffffffffffff166135c4565b156137e2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136b26124e7565b8786866040518563ffffffff1660e01b81526004016136d49493929190615bc2565b6020604051808303816000875af192505050801561371057506040513d601f19601f8201168201806040525081019061370d9190615c23565b60015b613792573d8060008114613740576040519150601f19603f3d011682016040523d82523d6000602084013e613745565b606091505b50600081510361378a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137819061586d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137e7565b600190505b949350505050565b60008082905060005b845181101561385957600085828151811061381657613815615948565b5b60200260200101519050808311613838576138318382613b82565b9250613845565b6138428184613b82565b92505b508080613851906158cf565b9150506137f8565b508091505092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061392f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061393f575061393e82613b99565b5b9050919050565b6060600060028360026139599190614bae565b6139639190615517565b67ffffffffffffffff81111561397c5761397b6145c7565b5b6040519080825280601f01601f1916602001820160405280156139ae5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106139e6576139e5615948565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613a4a57613a49615948565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613a8a9190614bae565b613a949190615517565b90505b6001811115613b34577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613ad657613ad5615948565b5b1a60f81b828281518110613aed57613aec615948565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613b2d90615c50565b9050613a97565b5060008414613b78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b6f90615cc5565b60405180910390fd5b8091505092915050565b600082600052816020526040600020905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b828054613c0f90614906565b90600052602060002090601f016020900481019282613c315760008555613c78565b82601f10613c4a57805160ff1916838001178555613c78565b82800160010185558215613c78579182015b82811115613c77578251825591602001919060010190613c5c565b5b509050613c859190613dc5565b5090565b828054613c9590614906565b90600052602060002090601f016020900481019282613cb75760008555613cfe565b82601f10613cd057803560ff1916838001178555613cfe565b82800160010185558215613cfe579182015b82811115613cfd578235825591602001919060010190613ce2565b5b509050613d0b9190613dc5565b5090565b604051806101e00160405280600015158152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff16815260200160608152602001606081526020016000801916815260200160008019168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000151581525090565b5b80821115613dde576000816000905550600101613dc6565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613e2b81613df6565b8114613e3657600080fd5b50565b600081359050613e4881613e22565b92915050565b600060208284031215613e6457613e63613dec565b5b6000613e7284828501613e39565b91505092915050565b60008115159050919050565b613e9081613e7b565b82525050565b6000602082019050613eab6000830184613e87565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613eeb578082015181840152602081019050613ed0565b83811115613efa576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f1c82613eb1565b613f268185613ebc565b9350613f36818560208601613ecd565b613f3f81613f00565b840191505092915050565b60006020820190508181036000830152613f648184613f11565b905092915050565b6000819050919050565b613f7f81613f6c565b8114613f8a57600080fd5b50565b600081359050613f9c81613f76565b92915050565b600060208284031215613fb857613fb7613dec565b5b6000613fc684828501613f8d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ffa82613fcf565b9050919050565b61400a81613fef565b82525050565b60006020820190506140256000830184614001565b92915050565b61403481613fef565b811461403f57600080fd5b50565b6000813590506140518161402b565b92915050565b6000806040838503121561406e5761406d613dec565b5b600061407c85828601614042565b925050602061408d85828601613f8d565b9150509250929050565b6000806000606084860312156140b0576140af613dec565b5b60006140be86828701614042565b93505060206140cf86828701614042565b92505060406140e086828701613f8d565b9150509250925092565b6000819050919050565b6140fd816140ea565b811461410857600080fd5b50565b60008135905061411a816140f4565b92915050565b60006020828403121561413657614135613dec565b5b60006141448482850161410b565b91505092915050565b614156816140ea565b82525050565b6000602082019050614171600083018461414d565b92915050565b6000806040838503121561418e5761418d613dec565b5b600061419c85828601613f8d565b92505060206141ad85828601613f8d565b9150509250929050565b6141c081613f6c565b82525050565b60006040820190506141db6000830185614001565b6141e860208301846141b7565b9392505050565b6000806040838503121561420657614205613dec565b5b60006142148582860161410b565b925050602061422585828601614042565b9150509250929050565b61423881613e7b565b811461424357600080fd5b50565b6000813590506142558161422f565b92915050565b60006020828403121561427157614270613dec565b5b600061427f84828501614246565b91505092915050565b60006020828403121561429e5761429d613dec565b5b60006142ac84828501614042565b91505092915050565b60006020820190506142ca60008301846141b7565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126142f5576142f46142d0565b5b8235905067ffffffffffffffff811115614312576143116142d5565b5b60208301915083600182028301111561432e5761432d6142da565b5b9250929050565b6000806020838503121561434c5761434b613dec565b5b600083013567ffffffffffffffff81111561436a57614369613df1565b5b614376858286016142df565b92509250509250929050565b6000806040838503121561439957614398613dec565b5b60006143a785828601614042565b92505060206143b885828601614246565b9150509250929050565b6143cb81613e7b565b82525050565b600061ffff82169050919050565b6143e8816143d1565b82525050565b600082825260208201905092915050565b600061440a82613eb1565b61441481856143ee565b9350614424818560208601613ecd565b61442d81613f00565b840191505092915050565b614441816140ea565b82525050565b61445081613fef565b82525050565b60006101e08301600083015161446f60008601826143c2565b50602083015161448260208601826143df565b50604083015161449560408601826143df565b5060608301516144a860608601826143df565b5060808301516144bb60808601826143df565b5060a08301516144ce60a08601826143df565b5060c08301516144e160c08601826143df565b5060e08301516144f460e08601826143df565b506101008301516145096101008601826143df565b5061012083015184820361012086015261452382826143ff565b91505061014083015184820361014086015261453f82826143ff565b915050610160830151614556610160860182614438565b5061018083015161456b610180860182614438565b506101a08301516145806101a0860182614447565b506101c08301516145956101c08601826143c2565b508091505092915050565b600060208201905081810360008301526145ba8184614456565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6145ff82613f00565b810181811067ffffffffffffffff8211171561461e5761461d6145c7565b5b80604052505050565b6000614631613de2565b905061463d82826145f6565b919050565b600067ffffffffffffffff82111561465d5761465c6145c7565b5b61466682613f00565b9050602081019050919050565b82818337600083830152505050565b600061469561469084614642565b614627565b9050828152602081018484840111156146b1576146b06145c2565b5b6146bc848285614673565b509392505050565b600082601f8301126146d9576146d86142d0565b5b81356146e9848260208601614682565b91505092915050565b6000806000806080858703121561470c5761470b613dec565b5b600061471a87828801614042565b945050602061472b87828801614042565b935050604061473c87828801613f8d565b925050606085013567ffffffffffffffff81111561475d5761475c613df1565b5b614769878288016146c4565b91505092959194509250565b61477e816143d1565b811461478957600080fd5b50565b60008135905061479b81614775565b92915050565b600080604083850312156147b8576147b7613dec565b5b60006147c68582860161410b565b92505060206147d78582860161478c565b9150509250929050565b600080604083850312156147f8576147f7613dec565b5b600061480685828601614042565b925050602061481785828601614042565b9150509250929050565b60008083601f840112614837576148366142d0565b5b8235905067ffffffffffffffff811115614854576148536142d5565b5b6020830191508360208202830111156148705761486f6142da565b5b9250929050565b6000806000604084860312156148905761488f613dec565b5b600084013567ffffffffffffffff8111156148ae576148ad613df1565b5b6148ba86828701614821565b935093505060206148cd86828701614246565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061491e57607f821691505b602082108103614931576149306148d7565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614993602c83613ebc565b915061499e82614937565b604082019050919050565b600060208201905081810360008301526149c281614986565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a25602183613ebc565b9150614a30826149c9565b604082019050919050565b60006020820190508181036000830152614a5481614a18565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614ab7603883613ebc565b9150614ac282614a5b565b604082019050919050565b60006020820190508181036000830152614ae681614aaa565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614b49603183613ebc565b9150614b5482614aed565b604082019050919050565b60006020820190508181036000830152614b7881614b3c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614bb982613f6c565b9150614bc483613f6c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bfd57614bfc614b7f565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614c4282613f6c565b9150614c4d83613f6c565b925082614c5d57614c5c614c08565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614cc4602f83613ebc565b9150614ccf82614c68565b604082019050919050565b60006020820190508181036000830152614cf381614cb7565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614d56602983613ebc565b9150614d6182614cfa565b604082019050919050565b60006020820190508181036000830152614d8581614d49565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614de8602a83613ebc565b9150614df382614d8c565b604082019050919050565b60006020820190508181036000830152614e1781614ddb565b9050919050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b6000614e5a614e55614e5084614e1e565b614e35565b614e28565b9050919050565b614e6a81614e3f565b82525050565b6000602082019050614e856000830184614e61565b92915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614eb881614906565b614ec28186614e8b565b94506001821660008114614edd5760018114614eee57614f21565b60ff19831686528186019350614f21565b614ef785614e96565b60005b83811015614f1957815481890152600182019150602081019050614efa565b838801955050505b50505092915050565b6000614f3582613eb1565b614f3f8185614e8b565b9350614f4f818560208601613ecd565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614f91600583614e8b565b9150614f9c82614f5b565b600582019050919050565b6000614fb38285614eab565b9150614fbf8284614f2a565b9150614fca82614f84565b91508190509392505050565b7f4e594d0000000000000000000000000000000000000000000000000000000000600082015250565b600061500c600383613ebc565b915061501782614fd6565b602082019050919050565b6000602082019050818103600083015261503b81614fff565b9050919050565b7f4f4f470000000000000000000000000000000000000000000000000000000000600082015250565b6000615078600383613ebc565b915061508382615042565b602082019050919050565b600060208201905081810360008301526150a78161506b565b9050919050565b7f4e53434d00000000000000000000000000000000000000000000000000000000600082015250565b60006150e4600483613ebc565b91506150ef826150ae565b602082019050919050565b60006020820190508181036000830152615113816150d7565b9050919050565b7f544d470000000000000000000000000000000000000000000000000000000000600082015250565b6000615150600383613ebc565b915061515b8261511a565b602082019050919050565b6000602082019050818103600083015261517f81615143565b9050919050565b6000615191826143d1565b915061519c836143d1565b92508261ffff038211156151b3576151b2614b7f565b5b828201905092915050565b7f4e45470000000000000000000000000000000000000000000000000000000000600082015250565b60006151f4600383613ebc565b91506151ff826151be565b602082019050919050565b60006020820190508181036000830152615223816151e7565b9050919050565b60008160601b9050919050565b60006152428261522a565b9050919050565b600061525482615237565b9050919050565b61526c61526782613fef565b615249565b82525050565b600061527e828461525b565b60148201915081905092915050565b7f4e42470000000000000000000000000000000000000000000000000000000000600082015250565b60006152c3600383613ebc565b91506152ce8261528d565b602082019050919050565b600060208201905081810360008301526152f2816152b6565b9050919050565b6000615304826143d1565b915061530f836143d1565b92508282101561532257615321614b7f565b5b828203905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000615389602c83613ebc565b91506153948261532d565b604082019050919050565b600060208201905081810360008301526153b88161537c565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061541b602583613ebc565b9150615426826153bf565b604082019050919050565b6000602082019050818103600083015261544a8161540e565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006154ad602483613ebc565b91506154b882615451565b604082019050919050565b600060208201905081810360008301526154dc816154a0565b9050919050565b60006154ee82613f6c565b91506154f983613f6c565b92508282101561550c5761550b614b7f565b5b828203905092915050565b600061552282613f6c565b915061552d83613f6c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561556257615561614b7f565b5b828201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006155c9602e83613ebc565b91506155d48261556d565b604082019050919050565b600060208201905081810360008301526155f8816155bc565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b600061565b602b83613ebc565b9150615666826155ff565b604082019050919050565b6000602082019050818103600083015261568a8161564e565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006156ed602a83613ebc565b91506156f882615691565b604082019050919050565b6000602082019050818103600083015261571c816156e0565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615759601983613ebc565b915061576482615723565b602082019050919050565b600060208201905081810360008301526157888161574c565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006157c5601983613ebc565b91506157d08261578f565b602082019050919050565b600060208201905081810360008301526157f4816157b8565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615857603283613ebc565b9150615862826157fb565b604082019050919050565b600060208201905081810360008301526158868161584a565b9050919050565b60008151905061589c81613f76565b92915050565b6000602082840312156158b8576158b7613dec565b5b60006158c68482850161588d565b91505092915050565b60006158da82613f6c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361590c5761590b614b7f565b5b600182019050919050565b600061592282613f6c565b915061592d83613f6c565b92508261593d5761593c614c08565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006159ad602083613ebc565b91506159b882615977565b602082019050919050565b600060208201905081810360008301526159dc816159a0565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615a19601c83613ebc565b9150615a24826159e3565b602082019050919050565b60006020820190508181036000830152615a4881615a0c565b9050919050565b6000615a6a615a65615a60846143d1565b614e35565b613f6c565b9050919050565b615a7a81615a4f565b82525050565b6000602082019050615a956000830184615a71565b92915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615ad1601783614e8b565b9150615adc82615a9b565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615b1d601183614e8b565b9150615b2882615ae7565b601182019050919050565b6000615b3e82615ac4565b9150615b4a8285614f2a565b9150615b5582615b10565b9150615b618284614f2a565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000615b9482615b6d565b615b9e8185615b78565b9350615bae818560208601613ecd565b615bb781613f00565b840191505092915050565b6000608082019050615bd76000830187614001565b615be46020830186614001565b615bf160408301856141b7565b8181036060830152615c038184615b89565b905095945050505050565b600081519050615c1d81613e22565b92915050565b600060208284031215615c3957615c38613dec565b5b6000615c4784828501615c0e565b91505092915050565b6000615c5b82613f6c565b915060008203615c6e57615c6d614b7f565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615caf602083613ebc565b9150615cba82615c79565b602082019050919050565b60006020820190508181036000830152615cde81615ca2565b905091905056fe68747470733a2f2f67686c7370726f642e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f68747470733a2f2f67686c7370726572657665616c2e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f5368616c6c6f775f47726176652e6a736f6ea2646970667358221220419bb3c86e377eb1dd408307611071a055d351b29add0822e7fdc38657c8974c64736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c8063931688cb1161011a578063b88d4fde116100ad578063d547741f1161007c578063d547741f1461061e578063e5ef873d1461063a578063e985e9c514610656578063eb4e732614610686578063f8b16cfb146106a257610206565b8063b88d4fde1461059a578063b8e0bdf9146105b6578063c87b56dd146105d2578063cc8c241a1461060257610206565b8063a304970c116100e9578063a304970c14610500578063a4650a141461051e578063aa11f8481461053a578063b21fd34e1461056a57610206565b8063931688cb1461048c57806395d89b41146104a8578063a217fddf146104c6578063a22cb465146104e457610206565b806336568abe1161019d5780636352211e1161016c5780636352211e146103c257806363c371bd146103f257806370a08231146104225780638129fc1c1461045257806391d148541461045c57610206565b806336568abe1461033e57806342842e0e1461035a5780634e429f131461037657806359ea929f1461039257610206565b806323b872dd116101d957806323b872dd146102a5578063248a9ca3146102c15780632a55205a146102f15780632f2ff15d1461032257610206565b806301ffc9a71461020b57806306fdde031461023b578063081812fc14610259578063095ea7b314610289575b600080fd5b61022560048036038101906102209190613e4e565b6106be565b6040516102329190613e96565b60405180910390f35b610243610870565b6040516102509190613f4a565b60405180910390f35b610273600480360381019061026e9190613fa2565b610902565b6040516102809190614010565b60405180910390f35b6102a3600480360381019061029e9190614057565b610987565b005b6102bf60048036038101906102ba9190614097565b610a9e565b005b6102db60048036038101906102d69190614120565b610afe565b6040516102e8919061415c565b60405180910390f35b61030b60048036038101906103069190614177565b610b1e565b6040516103199291906141c6565b60405180910390f35b61033c600480360381019061033791906141ef565b610d08565b005b610358600480360381019061035391906141ef565b610d29565b005b610374600480360381019061036f9190614097565b610dac565b005b610390600480360381019061038b919061425b565b610dcc565b005b6103ac60048036038101906103a79190614288565b610dfa565b6040516103b99190613e96565b60405180910390f35b6103dc60048036038101906103d79190613fa2565b610e1a565b6040516103e99190614010565b60405180910390f35b61040c60048036038101906104079190614288565b610ecb565b6040516104199190613e96565b60405180910390f35b61043c60048036038101906104379190614288565b610eec565b60405161044991906142b5565b60405180910390f35b61045a610fa3565b005b610476600480360381019061047191906141ef565b611296565b6040516104839190613e96565b60405180910390f35b6104a660048036038101906104a19190614335565b611301565b005b6104b0611328565b6040516104bd9190613f4a565b60405180910390f35b6104ce6113ba565b6040516104db919061415c565b60405180910390f35b6104fe60048036038101906104f99190614382565b6113c1565b005b6105086113d7565b60405161051591906145a0565b60405180910390f35b6105386004803603810190610533919061425b565b6116b6565b005b610554600480360381019061054f9190614288565b6116e4565b6040516105619190613e96565b60405180910390f35b610584600480360381019061057f9190614288565b611704565b6040516105919190613e96565b60405180910390f35b6105b460048036038101906105af91906146f2565b611725565b005b6105d060048036038101906105cb91906147a1565b611787565b005b6105ec60048036038101906105e79190613fa2565b6117c3565b6040516105f99190613f4a565b60405180910390f35b61061c60048036038101906106179190614288565b6118b6565b005b610638600480360381019061063391906141ef565b61190b565b005b610654600480360381019061064f9190614335565b61192c565b005b610670600480360381019061066b91906147e1565b611953565b60405161067d9190613e96565b60405180910390f35b6106a0600480360381019061069b9190614877565b6119e7565b005b6106bc60048036038101906106b79190614120565b6123e6565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061078957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107f157507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061085957507f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610869575061086882612401565b5b9050919050565b60606065805461087f90614906565b80601f01602080910402602001604051908101604052809291908181526020018280546108ab90614906565b80156108f85780601f106108cd576101008083540402835291602001916108f8565b820191906000526020600020905b8154815290600101906020018083116108db57829003601f168201915b5050505050905090565b600061090d8261247b565b61094c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610943906149a9565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061099282610e1a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f990614a3b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a216124e7565b73ffffffffffffffffffffffffffffffffffffffff161480610a505750610a4f81610a4a6124e7565b611953565b5b610a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8690614acd565b60405180910390fd5b610a9983836124ef565b505050565b610aaf610aa96124e7565b826125a8565b610aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae590614b5f565b60405180910390fd5b610af9838383612686565b505050565b600060c96000838152602001908152602001600020600101549050919050565b6000806000609860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610cb35760976040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cbd6128ec565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ce99190614bae565b610cf39190614c37565b90508160000151819350935050509250929050565b610d1182610afe565b610d1a816128f6565b610d24838361290a565b505050565b610d316124e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9590614cda565b60405180910390fd5b610da882826129eb565b5050565b610dc783838360405180602001604052806000815250611725565b505050565b6000801b610dd9816128f6565b8160fd60000160006101000a81548160ff0219169083151502179055505050565b60fb6020528060005260406000206000915054906101000a900460ff1681565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990614d6c565b60405180910390fd5b80915050919050565b6101036020528060005260406000206000915054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5390614dfe565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610faf6001612acd565b90508015610fd3576001600060016101000a81548160ff0219169083151502179055505b6110476040518060400160405280600c81526020017f42617365642047686f756c7300000000000000000000000000000000000000008152506040518060400160405280600481526020017f47484c5300000000000000000000000000000000000000000000000000000000815250612bbd565b611a0a60fd60000160036101000a81548161ffff021916908361ffff1602179055506109e160fd60000160096101000a81548161ffff021916908361ffff160217905550604051806060016040528060278152602001615ce66027913960fd60010190805190602001906110bc929190613c03565b506040518060600160405280603e8152602001615d0d603e913960fd60020190805190602001906110ee929190613c03565b507f45b023b371a3c483c2f511b6647ab965a580f4f2eaa3f9240a74c50bd9af779f60001b60fd600301819055507f0b2bcd41b8945cfd9ffe48a11ad38426bb2146bc95f2f2d35087037166f8cfec60001b60fd60040181905550600160fd600001600b6101000a81548161ffff021916908361ffff160217905550611a0a60fd600001600d6101000a81548161ffff021916908361ffff160217905550604260fd600001600f6101000a81548161ffff021916908361ffff160217905550600060fd60000160006101000a81548160ff021916908315150217905550600060fd60000160016101000a81548161ffff021916908361ffff16021790555061120c73475dcaa08a69fa462790f42db4d3bba1563cb4746102b2612c1a565b6112196000801b33612daf565b61123a6000801b7398ccf605c43a0bf9d6795c3cf3b5fed836330511610d08565b80156112935760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405161128a9190614e70565b60405180910390a15b50565b600060c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b61130e816128f6565b828260fd6001019190611322929190613c89565b50505050565b60606066805461133790614906565b80601f016020809104026020016040519081016040528092919081815260200182805461136390614906565b80156113b05780601f10611385576101008083540402835291602001916113b0565b820191906000526020600020905b81548152906001019060200180831161139357829003601f168201915b5050505050905090565b6000801b81565b6113d36113cc6124e7565b8383612dbd565b5050565b6113df613d0f565b60fd604051806101e00160405290816000820160009054906101000a900460ff161515151581526020016000820160019054906101000a900461ffff1661ffff1661ffff1681526020016000820160039054906101000a900461ffff1661ffff1661ffff1681526020016000820160059054906101000a900461ffff1661ffff1661ffff1681526020016000820160079054906101000a900461ffff1661ffff1661ffff1681526020016000820160099054906101000a900461ffff1661ffff1661ffff16815260200160008201600b9054906101000a900461ffff1661ffff1661ffff16815260200160008201600d9054906101000a900461ffff1661ffff1661ffff16815260200160008201600f9054906101000a900461ffff1661ffff1661ffff16815260200160018201805461151890614906565b80601f016020809104026020016040519081016040528092919081815260200182805461154490614906565b80156115915780601f1061156657610100808354040283529160200191611591565b820191906000526020600020905b81548152906001019060200180831161157457829003601f168201915b505050505081526020016002820180546115aa90614906565b80601f01602080910402602001604051908101604052809291908181526020018280546115d690614906565b80156116235780601f106115f857610100808354040283529160200191611623565b820191906000526020600020905b81548152906001019060200180831161160657829003601f168201915b5050505050815260200160038201548152602001600482015481526020016005820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016005820160149054906101000a900460ff161515151581525050905090565b6000801b6116c3816128f6565b8160fd60050160146101000a81548160ff0219169083151502179055505050565b60fc6020528060005260406000206000915054906101000a900460ff1681565b6101046020528060005260406000206000915054906101000a900460ff1681565b6117366117306124e7565b836125a8565b611775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176c90614b5f565b60405180910390fd5b61178184848484612f29565b50505050565b6000801b611794816128f6565b8260fd600401819055508160fd60000160096101000a81548161ffff021916908361ffff160217905550505050565b606060fd600001600b9054906101000a900461ffff1661ffff1682106118785760fd60020180546117f390614906565b80601f016020809104026020016040519081016040528092919081815260200182805461181f90614906565b801561186c5780601f106118415761010080835404028352916020019161186c565b820191906000526020600020905b81548152906001019060200180831161184f57829003601f168201915b505050505090506118b1565b60fd60010161188e61188984612f85565b61302d565b60405160200161189f929190614fa7565b60405160208183030381529060405290505b919050565b6000801b6118c3816128f6565b8160fd60050160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61191482610afe565b61191d816128f6565b61192783836129eb565b505050565b6000801b611939816128f6565b828260fd600201919061194d929190613c89565b50505050565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60fd60000160009054906101000a900460ff16611a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3090615022565b60405180910390fd5b60fd60000160039054906101000a900461ffff1661ffff1660fd60000160019054906101000a900461ffff1661ffff161115611aaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa19061508e565b60405180910390fd5b60003390503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611b1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b14906150fa565b60405180910390fd5b8115611ea65761010460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba890615166565b60405180910390fd5b60fd60000160099054906101000a900461ffff1661ffff16600360fd60000160079054906101000a900461ffff16611be99190615186565b61ffff161115611c2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c259061520a565b60405180910390fd5b600081604051602001611c419190615272565b6040516020818303038152906040528051906020012090506000611cac868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060fd600401548461318d565b905080611cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce5906152d9565b60405180910390fd5b600161010460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600161010360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600360fd60000160019054906101000a900461ffff16611dc09190615186565b60fd60000160016101000a81548161ffff021916908361ffff160217905550600360fd60000160078282829054906101000a900461ffff16611e029190615186565b92506101000a81548161ffff021916908361ffff160217905550611e4983600360fd60000160019054906101000a900461ffff16611e4091906152f9565b61ffff166131a4565b611e7683600260fd60000160019054906101000a900461ffff16611e6d91906152f9565b61ffff166131a4565b611ea383600160fd60000160019054906101000a900461ffff16611e9a91906152f9565b61ffff166131a4565b50505b60fd60050160149054906101000a900460ff16158015611ec4575081155b156121b75761010360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4e90615166565b60405180910390fd5b60fd60000160039054906101000a900461ffff1661ffff1660fd60000160099054906101000a900461ffff16600160fd60000160059054906101000a900461ffff16611fa39190615186565b611fad9190615186565b61ffff161115611ff2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe99061520a565b60405180910390fd5b6000816040516020016120059190615272565b6040516020818303038152906040528051906020012090506000612070868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060fd600301548461318d565b9050806120b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a9906152d9565b60405180910390fd5b600161010360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160fd60000160019054906101000a900461ffff1661212b9190615186565b60fd60000160016101000a81548161ffff021916908361ffff160217905550600160fd60000160058282829054906101000a900461ffff1661216d9190615186565b92506101000a81548161ffff021916908361ffff1602179055506121b483600160fd60000160019054906101000a900461ffff166121ab91906152f9565b61ffff166131a4565b50505b60fd60050160149054906101000a900460ff16156123145760fd60000160039054906101000a900461ffff1661ffff1660fd60000160099054906101000a900461ffff16600160fd60000160059054906101000a900461ffff1661221b9190615186565b6122259190615186565b61ffff16111561226a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122619061520a565b60405180910390fd5b600160fd60000160058282829054906101000a900461ffff1661228d9190615186565b92506101000a81548161ffff021916908361ffff160217905550600160fd60000160019054906101000a900461ffff166122c79190615186565b60fd60000160016101000a81548161ffff021916908361ffff16021790555061231381600160fd60000160019054906101000a900461ffff1661230a91906152f9565b61ffff166131a4565b5b60fd600001600f9054906101000a900461ffff1660fd600001600b9054906101000a900461ffff166123469190615186565b61ffff1660fd60000160019054906101000a900461ffff1661ffff16106123e05760fd60000160019054906101000a900461ffff1660fd600001600b6101000a81548161ffff021916908361ffff1602179055506123b660fd60000160019054906101000a900461ffff1661337d565b6000604542816123c9576123c8614c08565b5b06604543034060001c0290506123de81613410565b505b50505050565b6000801b6123f3816128f6565b8160fd600301819055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124745750612473826134a3565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661256283610e1a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006125b38261247b565b6125f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e99061539f565b60405180910390fd5b60006125fd83610e1a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061263f575061263e8185611953565b5b8061267d57508373ffffffffffffffffffffffffffffffffffffffff1661266584610902565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166126a682610e1a565b73ffffffffffffffffffffffffffffffffffffffff16146126fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f390615431565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361276b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612762906154c3565b60405180910390fd5b61277683838361351d565b6127816000826124ef565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127d191906154e3565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128289190615517565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128e7838383613522565b505050565b6000612710905090565b612907816129026124e7565b613527565b50565b6129148282611296565b6129e757600160c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061298c6124e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6129f58282611296565b15612ac957600060c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612a6e6124e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008060019054906101000a900460ff1615612b445760018260ff16148015612afc5750612afa306135c4565b155b612b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b32906155df565b60405180910390fd5b60009050612bb8565b8160ff1660008054906101000a900460ff1660ff1610612b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b90906155df565b60405180910390fd5b816000806101000a81548160ff021916908360ff160217905550600190505b919050565b600060019054906101000a900460ff16612c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0390615671565b60405180910390fd5b612c1682826135e7565b5050565b612c226128ec565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7790615703565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce69061576f565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250609760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b612db9828261290a565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e22906157db565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f1c9190613e96565b60405180910390a3505050565b612f34848484612686565b612f4084848484613668565b612f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f769061586d565b60405180910390fd5b50505050565b600060fd60050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cfedd61b836040518263ffffffff1660e01b8152600401612fe591906142b5565b602060405180830381865afa158015613002573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061302691906158a2565b9050919050565b606060008203613074576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613188565b600082905060005b600082146130a657808061308f906158cf565b915050600a8261309f9190614c37565b915061307c565b60008167ffffffffffffffff8111156130c2576130c16145c7565b5b6040519080825280601f01601f1916602001820160405280156130f45781602001600182028036833780820191505090505b5090505b600085146131815760018261310d91906154e3565b9150600a8561311c9190615917565b60306131289190615517565b60f81b81838151811061313e5761313d615948565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561317a9190614c37565b94506130f8565b8093505050505b919050565b60008261319a85846137ef565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320a906159c3565b60405180910390fd5b61321c8161247b565b1561325c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325390615a2f565b60405180910390fd5b6132686000838361351d565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132b89190615517565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461337960008383613522565b5050565b60fd60050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd35f093826040518263ffffffff1660e01b81526004016133db9190615a80565b600060405180830381600087803b1580156133f557600080fd5b505af1158015613409573d6000803e3d6000fd5b5050505050565b60fd60050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344d456c1826040518263ffffffff1660e01b815260040161346e91906142b5565b600060405180830381600087803b15801561348857600080fd5b505af115801561349c573d6000803e3d6000fd5b5050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613516575061351582613864565b5b9050919050565b505050565b505050565b6135318282611296565b6135c0576135568173ffffffffffffffffffffffffffffffffffffffff166014613946565b6135648360001c6020613946565b604051602001613575929190615b33565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135b79190613f4a565b60405180910390fd5b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16613636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362d90615671565b60405180910390fd5b816065908051906020019061364c929190613c03565b508060669080519060200190613663929190613c03565b505050565b60006136898473ffffffffffffffffffffffffffffffffffffffff166135c4565b156137e2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136b26124e7565b8786866040518563ffffffff1660e01b81526004016136d49493929190615bc2565b6020604051808303816000875af192505050801561371057506040513d601f19601f8201168201806040525081019061370d9190615c23565b60015b613792573d8060008114613740576040519150601f19603f3d011682016040523d82523d6000602084013e613745565b606091505b50600081510361378a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137819061586d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137e7565b600190505b949350505050565b60008082905060005b845181101561385957600085828151811061381657613815615948565b5b60200260200101519050808311613838576138318382613b82565b9250613845565b6138428184613b82565b92505b508080613851906158cf565b9150506137f8565b508091505092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061392f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061393f575061393e82613b99565b5b9050919050565b6060600060028360026139599190614bae565b6139639190615517565b67ffffffffffffffff81111561397c5761397b6145c7565b5b6040519080825280601f01601f1916602001820160405280156139ae5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106139e6576139e5615948565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613a4a57613a49615948565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613a8a9190614bae565b613a949190615517565b90505b6001811115613b34577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613ad657613ad5615948565b5b1a60f81b828281518110613aed57613aec615948565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613b2d90615c50565b9050613a97565b5060008414613b78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b6f90615cc5565b60405180910390fd5b8091505092915050565b600082600052816020526040600020905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b828054613c0f90614906565b90600052602060002090601f016020900481019282613c315760008555613c78565b82601f10613c4a57805160ff1916838001178555613c78565b82800160010185558215613c78579182015b82811115613c77578251825591602001919060010190613c5c565b5b509050613c859190613dc5565b5090565b828054613c9590614906565b90600052602060002090601f016020900481019282613cb75760008555613cfe565b82601f10613cd057803560ff1916838001178555613cfe565b82800160010185558215613cfe579182015b82811115613cfd578235825591602001919060010190613ce2565b5b509050613d0b9190613dc5565b5090565b604051806101e00160405280600015158152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff16815260200160608152602001606081526020016000801916815260200160008019168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000151581525090565b5b80821115613dde576000816000905550600101613dc6565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613e2b81613df6565b8114613e3657600080fd5b50565b600081359050613e4881613e22565b92915050565b600060208284031215613e6457613e63613dec565b5b6000613e7284828501613e39565b91505092915050565b60008115159050919050565b613e9081613e7b565b82525050565b6000602082019050613eab6000830184613e87565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613eeb578082015181840152602081019050613ed0565b83811115613efa576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f1c82613eb1565b613f268185613ebc565b9350613f36818560208601613ecd565b613f3f81613f00565b840191505092915050565b60006020820190508181036000830152613f648184613f11565b905092915050565b6000819050919050565b613f7f81613f6c565b8114613f8a57600080fd5b50565b600081359050613f9c81613f76565b92915050565b600060208284031215613fb857613fb7613dec565b5b6000613fc684828501613f8d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ffa82613fcf565b9050919050565b61400a81613fef565b82525050565b60006020820190506140256000830184614001565b92915050565b61403481613fef565b811461403f57600080fd5b50565b6000813590506140518161402b565b92915050565b6000806040838503121561406e5761406d613dec565b5b600061407c85828601614042565b925050602061408d85828601613f8d565b9150509250929050565b6000806000606084860312156140b0576140af613dec565b5b60006140be86828701614042565b93505060206140cf86828701614042565b92505060406140e086828701613f8d565b9150509250925092565b6000819050919050565b6140fd816140ea565b811461410857600080fd5b50565b60008135905061411a816140f4565b92915050565b60006020828403121561413657614135613dec565b5b60006141448482850161410b565b91505092915050565b614156816140ea565b82525050565b6000602082019050614171600083018461414d565b92915050565b6000806040838503121561418e5761418d613dec565b5b600061419c85828601613f8d565b92505060206141ad85828601613f8d565b9150509250929050565b6141c081613f6c565b82525050565b60006040820190506141db6000830185614001565b6141e860208301846141b7565b9392505050565b6000806040838503121561420657614205613dec565b5b60006142148582860161410b565b925050602061422585828601614042565b9150509250929050565b61423881613e7b565b811461424357600080fd5b50565b6000813590506142558161422f565b92915050565b60006020828403121561427157614270613dec565b5b600061427f84828501614246565b91505092915050565b60006020828403121561429e5761429d613dec565b5b60006142ac84828501614042565b91505092915050565b60006020820190506142ca60008301846141b7565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126142f5576142f46142d0565b5b8235905067ffffffffffffffff811115614312576143116142d5565b5b60208301915083600182028301111561432e5761432d6142da565b5b9250929050565b6000806020838503121561434c5761434b613dec565b5b600083013567ffffffffffffffff81111561436a57614369613df1565b5b614376858286016142df565b92509250509250929050565b6000806040838503121561439957614398613dec565b5b60006143a785828601614042565b92505060206143b885828601614246565b9150509250929050565b6143cb81613e7b565b82525050565b600061ffff82169050919050565b6143e8816143d1565b82525050565b600082825260208201905092915050565b600061440a82613eb1565b61441481856143ee565b9350614424818560208601613ecd565b61442d81613f00565b840191505092915050565b614441816140ea565b82525050565b61445081613fef565b82525050565b60006101e08301600083015161446f60008601826143c2565b50602083015161448260208601826143df565b50604083015161449560408601826143df565b5060608301516144a860608601826143df565b5060808301516144bb60808601826143df565b5060a08301516144ce60a08601826143df565b5060c08301516144e160c08601826143df565b5060e08301516144f460e08601826143df565b506101008301516145096101008601826143df565b5061012083015184820361012086015261452382826143ff565b91505061014083015184820361014086015261453f82826143ff565b915050610160830151614556610160860182614438565b5061018083015161456b610180860182614438565b506101a08301516145806101a0860182614447565b506101c08301516145956101c08601826143c2565b508091505092915050565b600060208201905081810360008301526145ba8184614456565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6145ff82613f00565b810181811067ffffffffffffffff8211171561461e5761461d6145c7565b5b80604052505050565b6000614631613de2565b905061463d82826145f6565b919050565b600067ffffffffffffffff82111561465d5761465c6145c7565b5b61466682613f00565b9050602081019050919050565b82818337600083830152505050565b600061469561469084614642565b614627565b9050828152602081018484840111156146b1576146b06145c2565b5b6146bc848285614673565b509392505050565b600082601f8301126146d9576146d86142d0565b5b81356146e9848260208601614682565b91505092915050565b6000806000806080858703121561470c5761470b613dec565b5b600061471a87828801614042565b945050602061472b87828801614042565b935050604061473c87828801613f8d565b925050606085013567ffffffffffffffff81111561475d5761475c613df1565b5b614769878288016146c4565b91505092959194509250565b61477e816143d1565b811461478957600080fd5b50565b60008135905061479b81614775565b92915050565b600080604083850312156147b8576147b7613dec565b5b60006147c68582860161410b565b92505060206147d78582860161478c565b9150509250929050565b600080604083850312156147f8576147f7613dec565b5b600061480685828601614042565b925050602061481785828601614042565b9150509250929050565b60008083601f840112614837576148366142d0565b5b8235905067ffffffffffffffff811115614854576148536142d5565b5b6020830191508360208202830111156148705761486f6142da565b5b9250929050565b6000806000604084860312156148905761488f613dec565b5b600084013567ffffffffffffffff8111156148ae576148ad613df1565b5b6148ba86828701614821565b935093505060206148cd86828701614246565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061491e57607f821691505b602082108103614931576149306148d7565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614993602c83613ebc565b915061499e82614937565b604082019050919050565b600060208201905081810360008301526149c281614986565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a25602183613ebc565b9150614a30826149c9565b604082019050919050565b60006020820190508181036000830152614a5481614a18565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614ab7603883613ebc565b9150614ac282614a5b565b604082019050919050565b60006020820190508181036000830152614ae681614aaa565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614b49603183613ebc565b9150614b5482614aed565b604082019050919050565b60006020820190508181036000830152614b7881614b3c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614bb982613f6c565b9150614bc483613f6c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bfd57614bfc614b7f565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614c4282613f6c565b9150614c4d83613f6c565b925082614c5d57614c5c614c08565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614cc4602f83613ebc565b9150614ccf82614c68565b604082019050919050565b60006020820190508181036000830152614cf381614cb7565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614d56602983613ebc565b9150614d6182614cfa565b604082019050919050565b60006020820190508181036000830152614d8581614d49565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614de8602a83613ebc565b9150614df382614d8c565b604082019050919050565b60006020820190508181036000830152614e1781614ddb565b9050919050565b6000819050919050565b600060ff82169050919050565b6000819050919050565b6000614e5a614e55614e5084614e1e565b614e35565b614e28565b9050919050565b614e6a81614e3f565b82525050565b6000602082019050614e856000830184614e61565b92915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614eb881614906565b614ec28186614e8b565b94506001821660008114614edd5760018114614eee57614f21565b60ff19831686528186019350614f21565b614ef785614e96565b60005b83811015614f1957815481890152600182019150602081019050614efa565b838801955050505b50505092915050565b6000614f3582613eb1565b614f3f8185614e8b565b9350614f4f818560208601613ecd565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614f91600583614e8b565b9150614f9c82614f5b565b600582019050919050565b6000614fb38285614eab565b9150614fbf8284614f2a565b9150614fca82614f84565b91508190509392505050565b7f4e594d0000000000000000000000000000000000000000000000000000000000600082015250565b600061500c600383613ebc565b915061501782614fd6565b602082019050919050565b6000602082019050818103600083015261503b81614fff565b9050919050565b7f4f4f470000000000000000000000000000000000000000000000000000000000600082015250565b6000615078600383613ebc565b915061508382615042565b602082019050919050565b600060208201905081810360008301526150a78161506b565b9050919050565b7f4e53434d00000000000000000000000000000000000000000000000000000000600082015250565b60006150e4600483613ebc565b91506150ef826150ae565b602082019050919050565b60006020820190508181036000830152615113816150d7565b9050919050565b7f544d470000000000000000000000000000000000000000000000000000000000600082015250565b6000615150600383613ebc565b915061515b8261511a565b602082019050919050565b6000602082019050818103600083015261517f81615143565b9050919050565b6000615191826143d1565b915061519c836143d1565b92508261ffff038211156151b3576151b2614b7f565b5b828201905092915050565b7f4e45470000000000000000000000000000000000000000000000000000000000600082015250565b60006151f4600383613ebc565b91506151ff826151be565b602082019050919050565b60006020820190508181036000830152615223816151e7565b9050919050565b60008160601b9050919050565b60006152428261522a565b9050919050565b600061525482615237565b9050919050565b61526c61526782613fef565b615249565b82525050565b600061527e828461525b565b60148201915081905092915050565b7f4e42470000000000000000000000000000000000000000000000000000000000600082015250565b60006152c3600383613ebc565b91506152ce8261528d565b602082019050919050565b600060208201905081810360008301526152f2816152b6565b9050919050565b6000615304826143d1565b915061530f836143d1565b92508282101561532257615321614b7f565b5b828203905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000615389602c83613ebc565b91506153948261532d565b604082019050919050565b600060208201905081810360008301526153b88161537c565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061541b602583613ebc565b9150615426826153bf565b604082019050919050565b6000602082019050818103600083015261544a8161540e565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006154ad602483613ebc565b91506154b882615451565b604082019050919050565b600060208201905081810360008301526154dc816154a0565b9050919050565b60006154ee82613f6c565b91506154f983613f6c565b92508282101561550c5761550b614b7f565b5b828203905092915050565b600061552282613f6c565b915061552d83613f6c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561556257615561614b7f565b5b828201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006155c9602e83613ebc565b91506155d48261556d565b604082019050919050565b600060208201905081810360008301526155f8816155bc565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b600061565b602b83613ebc565b9150615666826155ff565b604082019050919050565b6000602082019050818103600083015261568a8161564e565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006156ed602a83613ebc565b91506156f882615691565b604082019050919050565b6000602082019050818103600083015261571c816156e0565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615759601983613ebc565b915061576482615723565b602082019050919050565b600060208201905081810360008301526157888161574c565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006157c5601983613ebc565b91506157d08261578f565b602082019050919050565b600060208201905081810360008301526157f4816157b8565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615857603283613ebc565b9150615862826157fb565b604082019050919050565b600060208201905081810360008301526158868161584a565b9050919050565b60008151905061589c81613f76565b92915050565b6000602082840312156158b8576158b7613dec565b5b60006158c68482850161588d565b91505092915050565b60006158da82613f6c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361590c5761590b614b7f565b5b600182019050919050565b600061592282613f6c565b915061592d83613f6c565b92508261593d5761593c614c08565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006159ad602083613ebc565b91506159b882615977565b602082019050919050565b600060208201905081810360008301526159dc816159a0565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615a19601c83613ebc565b9150615a24826159e3565b602082019050919050565b60006020820190508181036000830152615a4881615a0c565b9050919050565b6000615a6a615a65615a60846143d1565b614e35565b613f6c565b9050919050565b615a7a81615a4f565b82525050565b6000602082019050615a956000830184615a71565b92915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615ad1601783614e8b565b9150615adc82615a9b565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615b1d601183614e8b565b9150615b2882615ae7565b601182019050919050565b6000615b3e82615ac4565b9150615b4a8285614f2a565b9150615b5582615b10565b9150615b618284614f2a565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000615b9482615b6d565b615b9e8185615b78565b9350615bae818560208601613ecd565b615bb781613f00565b840191505092915050565b6000608082019050615bd76000830187614001565b615be46020830186614001565b615bf160408301856141b7565b8181036060830152615c038184615b89565b905095945050505050565b600081519050615c1d81613e22565b92915050565b600060208284031215615c3957615c38613dec565b5b6000615c4784828501615c0e565b91505092915050565b6000615c5b82613f6c565b915060008203615c6e57615c6d614b7f565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615caf602083613ebc565b9150615cba82615c79565b602082019050919050565b60006020820190508181036000830152615cde81615ca2565b905091905056fe68747470733a2f2f67686c7370726f642e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f68747470733a2f2f67686c7370726572657665616c2e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f5368616c6c6f775f47726176652e6a736f6ea2646970667358221220419bb3c86e377eb1dd408307611071a055d351b29add0822e7fdc38657c8974c64736f6c634300080d0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.