Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
0 AHSY
Holders
980
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 AHSYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SuperyachtToken
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "hardhat/console.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; // import "@openzeppelin/contracts/utils/Counters.sol"; import "./NftDescriptor.sol"; contract SuperyachtToken is ERC721, ERC721Burnable, Ownable, VRFConsumerBase { // using Counters for Counters.Counter; // Counters.Counter private _tokenIds; // uint256 private yachtIds; // prettier-ignore // address private immutable ahyAddress; // prettier-ignore address private constant BURNER_ADDRESS = 0x000000000000000000000000000000000000dEaD; // prettier-ignore bytes32 private constant EMPTY_STRING_HASH = keccak256(abi.encodePacked("")); // prettier-ignore uint256 public constant MAX_SUPPLY_PLUS_ONE = 7778; mapping(uint256 => string) public names; mapping(bytes32 => bool) public nameTaken; IERC721 private immutable ahy; NftDescriptor private nftDescriptor; uint256 private immutable mintStart; uint256 private immutable mintEnd; string internal baseUrl; bool private frozen; // Random number generation uint256 public randomSeed; bytes32 internal keyHash; uint256 internal chainLinkFee; bytes32 public requestId; event NameChanged(uint256 indexed yachtId, string indexed name); event SetRandomSeed(uint256 randomSeed); modifier onlyInClaimingPhase() { require(block.timestamp > mintStart, "Claiming hasn't started"); require(block.timestamp < mintEnd, "Claiming has ended"); _; } modifier onlyAfterClaimingPhase() { require(block.timestamp > mintEnd, "Not in post claiming phase yet"); _; } modifier onlyNotFrozen() { require(!frozen, "Contract frozen, no changes possible"); _; } constructor( uint256 _mintStartTS, address _nftDescriptorAddress, address _ahyAddress, address _linkAddress, address _vrfCoordinatorAddress, bytes32 _keyHash, uint256 _chainLinkFee ) ERC721("Ape Harbour Superyachts", "AHSY") VRFConsumerBase(_vrfCoordinatorAddress, _linkAddress) { ahy = IERC721(_ahyAddress); mintStart = _mintStartTS; mintEnd = _mintStartTS + 30 days; nftDescriptor = NftDescriptor(_nftDescriptorAddress); keyHash = _keyHash; chainLinkFee = _chainLinkFee; frozen = false; baseUrl = "ipfs://<HASH>/"; } function claim(uint256[] memory ogYachts) external onlyInClaimingPhase returns (uint256) { for (uint256 i; i < ogYachts.length; i++) { require(!_exists(ogYachts[i]), "Yacht has been claimed already"); require( ahy.ownerOf(ogYachts[i]) == msg.sender, "You do not own a yacht" ); _mint(msg.sender, ogYachts[i]); } return ogYachts.length; } function claimAH(uint256[] memory _superyachtIds) external onlyOwner onlyAfterClaimingPhase returns (uint256) { for (uint256 i = 0; i < _superyachtIds.length; i++) { require( !_exists(_superyachtIds[i]), "Yacht has been claimed already" ); _mint(msg.sender, _superyachtIds[i]); } return _superyachtIds.length; } function exists(uint256 _tokenId) public view returns (bool) { return _exists(_tokenId); } function updateNftDescriptor(address _nftDescriptorAddress) external onlyOwner onlyNotFrozen { nftDescriptor = NftDescriptor(_nftDescriptorAddress); } function setBaseUrl(string memory _ipfsHash) external onlyOwner onlyNotFrozen { baseUrl = string(abi.encodePacked("ipfs://", _ipfsHash, "/")); } function freeze() external onlyOwner { frozen = true; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; address payable receiver = payable(msg.sender); receiver.transfer(balance); } function setName( uint256 _yachtId, string memory _yachtName, uint256 _ogYachtToBurn ) public { bytes32 hashedName = keccak256(abi.encodePacked(toLower(_yachtName))); require( keccak256(abi.encodePacked(names[_yachtId])) == EMPTY_STRING_HASH, "Yacht has already been named" ); require(!nameTaken[hashedName], "Name already taken"); ahy.safeTransferFrom(_msgSender(), BURNER_ADDRESS, _ogYachtToBurn); nameTaken[hashedName] = true; names[_yachtId] = _yachtName; emit NameChanged(_yachtId, _yachtName); } function tokenURI(uint256 _tokenId) public view override returns (string memory) { return nftDescriptor.tokenURI( _tokenId, names[_tokenId], randomSeed, baseUrl ); } function requestRandomSeed() external onlyOwner { require( LINK.balanceOf(address(this)) >= chainLinkFee, "Not enough LINK - fill contract with faucet" ); require(randomSeed == 0, "randomSeed has already been set"); requestId = requestRandomness(keyHash, chainLinkFee); } function fulfillRandomness(bytes32 _requestId, uint256 _randomness) internal override { require(requestId == _requestId, "Wrong request Id"); require(randomSeed == 0, "randomSeed has already been set"); randomSeed = _randomness; emit SetRandomSeed(_randomness); } /** * @dev Converts the string to lowercase */ function toLower(string memory str) private pure returns (string memory) { bytes memory bStr = bytes(str); bytes memory bLower = new bytes(bStr.length); for (uint256 i = 0; i < bStr.length; i++) { // Uppercase character if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) { bLower[i] = bytes1(uint8(bStr[i]) + 32); } else { bLower[i] = bStr[i]; } } return string(bLower); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 private constant USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface internal immutable LINK; address private immutable vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 => uint256) /* keyHash */ /* nonce */ private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor(address _vrfCoordinator, address _link) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.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 ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); 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); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// 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 IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/Strings.sol"; import "./base64.sol"; import "hardhat/console.sol"; contract NftDescriptor { uint16 private constant NULL_VALUE = 65535; uint256 private constant NUMBER_OF_TRAITS = 11; uint256 private constant NUMBER_OF_TYPES = 3; uint256 private constant TYPE1 = 0; uint256 private constant TYPE2 = 1; uint256 private constant TYPE3 = 2; uint16 constant MAX_RANGE = 100; uint16 constant MAX_SPEED = 99; uint16 private constant PROPS_INDEX = 2; uint16 private constant BACKGROUND_INDEX = 0; uint16 private constant TYPE_INDEX = 1; uint16 private constant ANCHOR_INDEX = 2; uint16 private constant HULL_INDEX = 3; uint16 private constant LIGHT_INDEX = 4; uint16 private constant BACK_INDEX = 5; uint16 private constant CABIN_INDEX = 6; uint16 private constant DECOR_INDEX = 7; uint16 private constant GRILL_INDEX = 8; // uint16 private constant BACKGROUND_OVERLAY_INDEX = 9; // uint16 private constant BACKGROUND_SHADOW_INDEX = 10; uint16 private constant SPEED_INDEX = 9; uint16 private constant RANGE_INDEX = 10; uint16 private constant PROPS_ANCHOR = 0; uint16 private constant PROPS_HULL = 1; uint16 private constant PROPS_LIGHT = 2; uint16 private constant PROPS_BACK = 3; uint16 private constant PROPS_CABIN = 4; uint16 private constant PROPS_DECOR = 5; uint16 private constant PROPS_GRILL = 6; // uint16 private constant PROPS_BACKGROUND_OVERLAY = 7; // uint16 private constant PROPS_BACKGROUND_SHADOW = 8; uint8 private constant BITMASK = 255; string[NUMBER_OF_TRAITS] private traitNames; string[][NUMBER_OF_TRAITS][NUMBER_OF_TYPES] private traitValues; uint16[] private cutoffsBackground; uint16[] private cutoffsType; uint16[][NUMBER_OF_TRAITS][NUMBER_OF_TYPES] private cutoffs; constructor() { // prettier-ignore traitNames = [string("Background"),"Type","Anchor","Hull","Lights","Equipment","Cabin","Equipment","Equipment", "Speed", "Range"]; // prettier-ignore traitValues[0][0] = [string("Everglades Ape Park"),"Ape Island","Ape Harbour Coast","Skyline Coast","Magic Islands","Mystic Sea","Orang Reef","Waterfall Bay","Apelaska","Twilight Bay","Monkey Port","Legendary Ocean","Pirate Coast"]; // prettier-ignore traitValues[0][1] = [string("Type 1"),"Type 2","Type 3"]; // prettier-ignore traitValues[0][2] = [string("Purple Moon"),"Long Gold","Big Iron","Silver Hook","Bronze Kraken","Purple Gold","Old Moon","Long Steel","Big Gold","Gem Hook","Purple Kraken"]; // prettier-ignore traitValues[0][3] = [string("Rottnest"),"Trobriand Neon","Normanby Neon","Savaii Neon","Fitzroy Neon","Bruny Neon","Boracay","Maui","Solomon","Apes","Pirate","Mauritius","Fraser","Palau","Fitzroy","Savaii","Voavah","Koh Samui","Bedarra","Yasawa","Siquijor","Faroe","Haida","Misool","Ios","Formentera","Principe","Gold","Madeira","Koh Yao Noi","Thanda","Normanby","Magnetic","Bawah","Soneva Jani","Orpheus","Kunfunadhoo","Bora Bora","Raymond","Pamalican","Nihi Sumba","Navarino","Pirate Neon","Apes Neon","Boracay Neon","Chiloe Neon","Navarino Neon","Gold Neon","Principe Neon","Haggerstone Neon","Madeira Neon","Magaruque Neon","Pamalican Neon","Raymond Neon","Bora Bora Neon","Nihi Sumba Neon","Kunfunadhoo Neon","Orpheus Neon","Soneva Jani Neon","Magnetic Neon","Thanda Neon","Koh Yao Noi Neon","Formentera Neon","Ios Neon","Faroe Neon","Siquijor Neon","Pangkor Laut Neon","Yasawa Neon","Bedarra Neon","Koh Samui Neon","Voavah Neon","Palau Neon","Fraser Neon","Mauritius Neon","Islay Neon","Solomon Neon","Maui Neon","Mayreau Neon","Rottnest Neon","Bawah Neon","Velaa Neon","Misool Neon","Haida Neon","Dominica Neon","Chiloe","Magaruque","Haggerstone","Dominica","Pangkor Laut","Trobriand"]; // prettier-ignore traitValues[0][4] = [string("White Stripes"),"Shiny Lights","Laser Light","Yellow Spots","Pink Spots","Blue Spots","Back Spots","Big Spots","Big Shine","Star Lights","Blue Stripes"]; // prettier-ignore traitValues[0][5] = [string("Rocket Back"),"Flag Back Black","Sea Hunter Back Green","Sea Hunter Back Red","Orange Platform","Gray Platform","Dock Back","Wings Special Back","Wings Back ","Rose Back","Long Orange Back","Long Black Back","Flag Back Blue","Anthracite Platform","Red Back"]; // prettier-ignore traitValues[0][6] = [string("Alien Alpha"),"Ark with Gold","Ark Gold","Ark Orange","Miami Red","Miami Orange","Explorer I","Explorer II","Explorer III","Cali Orange","Cali Ocean","Stealth","Vader","Vader Black","Vader Red","Cyber Gray","Navy","Sydney Green","Sydney Red","Sydney Orange","Gaya Red","Gaya Green","Futura","Weaver Teal","Weaver Red","Cyber Red","Shades Z","Shades X","Shades Y","Breeze Brown","Breeze Green","Breeze Orange","View Green","View Orange","View Rose","Sporty Red","Sporty Yellow","Mech 41","Mech 42","Mech 43","Monaco","Monaco Black","Macau","Sea Dog","Ember 2032","Ember 2033","Ember 2034","Cyber Blue","Ark Green","Predator RS","Predator GS"]; // prettier-ignore traitValues[0][7] = [string("AH Balloon Green"),"AH Balloon Red","Apes Balloon","AH Pirate Balloon","Bananas Balloon","Pirate Balloon","Red Heli Front","White Heli Front","Gold Heli Front","Red Heli Neon","White Heli Neon","Gold Heli Neon"]; // prettier-ignore traitValues[0][8] = [string("Short Black Railing"),"Long Light Railing","Long Neon Railing","Short Gray Railing","Long Gray Railing","Long Gray Railing RS","Gold Railing","Long Red Railing","Long Blue Railing"]; // prettier-ignore traitValues[1][0] = [string("Everglades Ape Park"),"Ape Island","Ape Harbour Coast","Skyline Coast","Magic Islands","Mystic Sea","Orang Reef","Waterfall Bay","Apelaska","Twilight Bay","Monkey Port","Legendary Ocean","Pirate Coast"]; // prettier-ignore traitValues[1][1] = [string("Type 1"),"Type 2","Type 3"]; // prettier-ignore traitValues[1][2] = [string("Sea Hammer"),"Apemiral Gold","Trident","Red Skipper","Cape","Sculpture","Cyber Anchor","Wave Breaker","Red Spikes","Ocean Tech","Crescent","Gold Wing","Iron RS","Teal Rock","Steel Star"]; // prettier-ignore traitValues[1][3] = [string("Ape Harbour"),"Fanjove","Gold Shark","Okinawa Neon","Raratonga Neon","Raratonga Black","Marshall","Galapagos","Crete","Moorea","Wagmi","Tonga","Hodl","Sentosa","Skye Neon","Skye","Santorini","Ilha Grande","AHvar","Jamaica","Gotland","Koh Rong","Mont Neon","Mont","Pemba","Hodl Stripes","Sommaroy","Okinawa","Matcha","Koh Rong Neon","Jamaica Neon","Ilha Grande Neon","Tonga Neon Beta","Santorini Neon","Sentosa Neon","Hodl Neon","Tonga Neon Alpha","Wagmi Neon","Moorea Neon","Crete Neon","Galapagos Neon","Marshall Neon","Gold Shark Neon","Fanjove Neon","Matcha Neon","Sommaroy Neon","AHvar Neon","Hodl Stripes Neon","Gotland Neon","Pemba Neon","Ape Harbour Neon","Gold Star","Thunder","Rockstar","Alien 2060 Green","Alien 2060 Green Neon","Alien 2060 Red Neon","Alien 2060 Red","Alien 2060 Blue Neon","Alien 2060 Blue","Alien 2060 Dmt Neon","Alien 2060 Dmt"]; // prettier-ignore traitValues[1][4] = [string("Long Laser Light"),"Red Purple LED","Blue Highlights","Blue Red LED","White LED","White Shine LED","Green Red Shine LED","Full Spotlights","Orange Cross Lights","White Cross Lights","Red Highlights"]; // prettier-ignore traitValues[1][5] = [string("Back Fin"),"Chrome Back","Steel Back","Steel Fin","Gold Fin","White Heli Back","Red Heli Back","Gold Heli Back "]; // prettier-ignore traitValues[1][6] = [string("Filippo Green"),"Maro Gold Deluxe","Glass Tower Y","Palancar Rose","Osprey South","Scorpion Y","Sula Red","Maro Gold","Alien GT","Ocean Hawk","Minerva Gray","Filippo Blue","Maro Green","Filippo Red","Sky Black","Maro Blue","Sky Red","Glass Tower T","Glass Tower A","Filippo Orange","Sea Master","Coral","Deep Sea Blue","Deep Sea Purple","Minerva Gold LED","Minerva Blue LED","Barrier ","Palancar Orange","Palancar Green","Atlantis Gold","Atlantis Green","Atlantis Blue","Osprey North","Scorpion G","Sula Rose","Minerva Purple"]; // prettier-ignore traitValues[1][7] = [string("Radar Fin"),"Fin","Sails","Golden Lightning","Orca","Manta Ray","Helipad","Helipad Gold Heli","Helipad White Heli","Helipad Red Heli","Sensor","Sensor Gold","Solar Panel Black","Solar Panel Blue"]; // prettier-ignore traitValues[1][8] = new string[](0); // prettier-ignore traitValues[2][0] = [string("Everglades Ape Park"),"Ape Island","Ape Harbour Coast","Skyline Coast","Magic Islands","Mystic Sea","Orang Reef","Waterfall Bay","Apelaska","Twilight Bay","Monkey Port","Legendary Ocean","Pirate Coast"]; // prettier-ignore traitValues[2][1] = [string("Type 1"),"Type 2","Type 3"]; // prettier-ignore traitValues[2][2] = [string("Sea Hammer"),"Apemiral Gold","Trident","Red Skipper","Cape","Sculpture","Cyber Anchor","Wave Breaker","Red Spikes","Ocean Tech","Crescent","Gold Wing","Iron RS","Teal Rock","Steel Star"]; // prettier-ignore traitValues[2][3] = [string("Gili"),"Rosario","Schnabel","Hayman","Ischia","Rosario Neon","Ischia Neon","Gili Neon","Hayman Neon","Schnabel Neon"]; // prettier-ignore traitValues[2][4] = [string("Red Highlights"),"Red Purple LED II","Blue Highlights","White Cross Lights","Orange Cross Lights","Full Spotlights II","Green Red Shine LED II","White Shine LED II","White LED II","Blue Red LED II"]; // prettier-ignore traitValues[2][5] = [string("Back Fin"),"Chrome Back","Steel Back","Steel Fin","Gold Fin","White Heli Back","Red Heli Back","Gold Heli Back "]; // prettier-ignore traitValues[2][6] = [string("Filippo Green"),"Maro Gold Deluxe","Glass Tower Y","Palancar Rose","Osprey South","Scorpion Y","Sula Red","Maro Gold","Alien GT","Ocean Hawk","Minerva Gray","Filippo Blue","Maro Green","Filippo Red","Sky Black","Maro Blue","Sky Red","Glass Tower T","Glass Tower A","Filippo Orange","Sea Master","Coral","Deep Sea Blue","Deep Sea Purple","Minerva Gold LED","Minerva Blue LED","Barrier ","Palancar Orange","Palancar Green","Atlantis Gold","Atlantis Green","Atlantis Blue","Osprey North","Scorpion G","Sula Rose","Minerva Purple"]; // prettier-ignore traitValues[2][7] = [string("Radar Fin"),"Fin","Sails","Golden Lightning","Orca","Manta Ray","Helipad","Helipad Gold Heli","Helipad White Heli","Helipad Red Heli","Sensor","Sensor Gold","Solar Panel Black","Solar Panel Blue"]; // prettier-ignore traitValues[2][8] = new string[](0); // prettier-ignore cutoffsBackground = [uint16(22),47,73,96,102,127,147,168,180,205,225,240,256]; // prettier-ignore cutoffsType = [uint16(123),243,256]; // prettier-ignore cutoffs[0][0] = [uint16(21),40,64,81,104,129,154,184,206,222,246]; // prettier-ignore cutoffs[0][1] = [uint16(3),6,8,11,13,16,19,22,25,28,31,35,38,42,45,49,52,55,58,61,64,67,70,73,75,78,80,81,84,87,89,91,94,98,101,104,107,111,114,117,120,124,127,131,134,137,140,141,143,146,149,152,155,158,162,165,167,170,173,176,178,181,184,186,189,191,194,196,199,202,205,208,211,214,216,219,221,224,226,229,232,235,238,241,243,246,249,252,254,256]; // prettier-ignore cutoffs[0][2] = [uint16(10),30,74,96,121,146,166,186,206,226,236]; // prettier-ignore cutoffs[0][3] = [uint16(10),28,42,56,71,86,97,117,138,158,170,182,200,215,236]; // prettier-ignore cutoffs[0][4] = [uint16(3),5,6,10,16,22,28,32,38,42,50,60,66,71,75,79,86,92,98,104,112,119,126,130,135,139,146,152,158,162,166,170,175,180,185,189,193,196,199,203,209,215,223,231,235,238,240,243,249,253,256]; // prettier-ignore cutoffs[0][5] = [uint16(15),30,43,52,62,72,89,104,114,131,146,156]; // prettier-ignore cutoffs[0][6] = [uint16(20),50,75,97,128,158,176,206,226]; // prettier-ignore cutoffs[1][0] = [uint16(20),32,46,64,79,95,113,131,145,165,185,197,214,230,246]; // prettier-ignore cutoffs[1][1] = [uint16(7),12,13,17,21,26,31,36,41,46,51,56,62,67,71,76,81,86,91,96,101,106,110,115,120,125,130,137,142,146,150,154,159,163,167,171,175,179,183,189,193,197,198,202,207,211,216,220,224,229,235,236,240,244,246,247,248,250,251,253,254,256]; // prettier-ignore cutoffs[1][2] = [uint16(43),61,81,101,121,141,161,176,196,216,236]; // prettier-ignore cutoffs[1][3] = [uint16(34),64,96,126,151,166,186,196]; // prettier-ignore cutoffs[1][4] = [uint16(5),7,16,25,32,37,46,50,58,69,73,77,87,92,101,111,119,128,135,138,147,158,166,173,178,185,190,200,209,213,222,229,237,242,251,256]; // prettier-ignore cutoffs[1][5] = [uint16(10),20,40,50,62,77,92,102,117,137,152,162,179,196]; // prettier-ignore cutoffs[1][6] = new uint16[](0); // prettier-ignore cutoffs[2][0] = [uint16(20),32,46,64,79,95,113,131,145,165,185,197,214,230,246]; // prettier-ignore cutoffs[2][1] = [uint16(35),70,75,110,145,175,202,227,252,256]; // prettier-ignore cutoffs[2][2] = [uint16(23),48,71,95,119,139,162,182,206,231]; // prettier-ignore cutoffs[2][3] = [uint16(34),64,96,126,151,166,186,196]; // prettier-ignore cutoffs[2][4] = [uint16(5),7,16,25,32,37,46,50,58,69,73,77,87,92,101,111,119,128,135,138,147,158,166,173,178,185,190,200,209,213,222,229,237,242,251,256]; // prettier-ignore cutoffs[2][5] = [uint16(10),20,40,50,62,77,92,102,117,137,152,162,179,196]; // prettier-ignore cutoffs[2][6] = new uint16[](0); } function generateInitialBoatString(uint256[NUMBER_OF_TRAITS] memory traits) public view returns (uint16[NUMBER_OF_TRAITS] memory) { uint16[NUMBER_OF_TRAITS] memory selection; // determine background for (uint16 i = 0; i < cutoffsBackground.length; i++) { if (traits[BACKGROUND_INDEX] <= cutoffsBackground[i]) { selection[BACKGROUND_INDEX] = i; break; } } // determine type for (uint16 i = 0; i < cutoffsType.length; i++) { if (traits[TYPE_INDEX] <= cutoffsType[i]) { selection[TYPE_INDEX] = i; break; } } // loop through traits, then loop through the cutoffs for the trait to find the correct value // loop through string values only, that's why the loop is - 2 for (uint256 i = PROPS_INDEX; i < NUMBER_OF_TRAITS - 2; i++) { uint256 yachtType = selection[TYPE_INDEX]; uint16 propIndex = uint16(i - PROPS_INDEX); selection[i] = NULL_VALUE; for (uint16 j = 0; j < cutoffs[yachtType][propIndex].length; j++) { if (traits[i] <= cutoffs[yachtType][propIndex][j]) { selection[i] = j; break; } } } selection[SPEED_INDEX] = uint16(traits[SPEED_INDEX]) % MAX_SPEED + 1; selection[RANGE_INDEX] = uint16(traits[RANGE_INDEX]) % MAX_RANGE + 1; return selection; } function applyRules(uint16[NUMBER_OF_TRAITS] memory _initialSelection) public pure returns (uint16[NUMBER_OF_TRAITS] memory) { uint16[NUMBER_OF_TRAITS] memory code = _initialSelection; // #2 pecker hull, turbine hull -> no front, no anchor, no large cabin if ( (code[TYPE_INDEX] == TYPE2 && (code[HULL_INDEX] == 45 || code[HULL_INDEX] == 26 || code[HULL_INDEX] == 0 || code[HULL_INDEX] == 50)) || (code[TYPE_INDEX] == TYPE3 && (code[HULL_INDEX] == 2 || code[HULL_INDEX] == 9)) ) { code[DECOR_INDEX] = NULL_VALUE; code[ANCHOR_INDEX] = NULL_VALUE; // no large cabin if (code[CABIN_INDEX] == 0) { code[CABIN_INDEX] += 1; } if (code[CABIN_INDEX] == 11) { code[CABIN_INDEX] += 1; } if (code[CABIN_INDEX] == 13) { code[CABIN_INDEX] -= 1; } if (code[CABIN_INDEX] == 14) { code[CABIN_INDEX] += 1; } if (code[CABIN_INDEX] == 16) { code[CABIN_INDEX] += 2; } if (code[CABIN_INDEX] == 19) { code[CABIN_INDEX] += 1; } if (code[CABIN_INDEX] == 23) { code[CABIN_INDEX] += 1; } } // #3 pecker hull -> no specific lights if ( code[TYPE_INDEX] == TYPE3 && (code[HULL_INDEX] == 2 || code[HULL_INDEX] == 9) && (code[LIGHT_INDEX] == 0 || code[LIGHT_INDEX] == 2) ) { code[LIGHT_INDEX] = NULL_VALUE; } // #4 no front, no anchor for larger cabins if ( code[CABIN_INDEX] == 0 || code[CABIN_INDEX] == 11 || code[CABIN_INDEX] == 13 || code[CABIN_INDEX] == 14 || code[CABIN_INDEX] == 16 || code[CABIN_INDEX] == 19 ) { code[DECOR_INDEX] = NULL_VALUE; code[ANCHOR_INDEX] = NULL_VALUE; } // #5 no front for glassy cabins if (code[CABIN_INDEX] == 5 || code[CABIN_INDEX] == 33) { code[DECOR_INDEX] = NULL_VALUE; } // #6 turbine hull, tron hull -> don't do specific cabins if ( (code[TYPE_INDEX] == TYPE2 && (code[HULL_INDEX] == 45 || code[HULL_INDEX] == 26 || code[HULL_INDEX] == 0 || code[HULL_INDEX] == 50 || (code[HULL_INDEX] >= 54 && code[HULL_INDEX] <= 61))) || (code[TYPE_INDEX] == TYPE3 && (code[HULL_INDEX] == 2 || code[HULL_INDEX] == 9)) ) { if (code[CABIN_INDEX] == 10) { code[CABIN_INDEX] -= 1; } if (code[CABIN_INDEX] == 35) { code[CABIN_INDEX] -= 1; } if (code[CABIN_INDEX] == 24) { code[CABIN_INDEX] -= 1; } if (code[CABIN_INDEX] == 25) { code[CABIN_INDEX] += 2; } if (code[CABIN_INDEX] == 26) { code[CABIN_INDEX] += 1; } if (code[CABIN_INDEX] == 20) { code[CABIN_INDEX] += 1; } } // #7 new hulls -> don't do specific cabins if ( code[TYPE_INDEX] == TYPE2 && (code[HULL_INDEX] == 51 || code[HULL_INDEX] == 52 || code[HULL_INDEX] == 53) ) { if (code[CABIN_INDEX] == 2) { code[CABIN_INDEX] -= 1; } if (code[CABIN_INDEX] == 17) { code[CABIN_INDEX] -= 1; } if (code[CABIN_INDEX] == 18) { code[CABIN_INDEX] += 1; } if (code[CABIN_INDEX] == 22) { code[CABIN_INDEX] -= 1; } if (code[CABIN_INDEX] == 23) { code[CABIN_INDEX] += 1; } } // #8 redish hull, strange hull, tron hull + glassy cabin -> other cabin if ( code[TYPE_INDEX] == TYPE2 && (code[HULL_INDEX] == 19 || code[HULL_INDEX] == 30 || (code[HULL_INDEX] >= 54 && code[HULL_INDEX] <= 61) || code[HULL_INDEX] == 16 || code[HULL_INDEX] == 33) && (code[CABIN_INDEX] == 14 || code[CABIN_INDEX] == 16) ) { code[CABIN_INDEX] -= 1; } // #9 redish hull -> no front if ( code[TYPE_INDEX] == TYPE2 && (code[HULL_INDEX] == 19 || code[HULL_INDEX] == 30) ) { code[DECOR_INDEX] = NULL_VALUE; } // #10 arch cabin, stairs back -> other back if ( code[TYPE_INDEX] == TYPE1 && code[CABIN_INDEX] == 0 && code[BACK_INDEX] == 10 ) { code[BACK_INDEX] -= 1; } if ( code[TYPE_INDEX] == TYPE1 && code[CABIN_INDEX] == 0 && code[BACK_INDEX] == 11 ) { code[BACK_INDEX] += 1; } // #11 special hull, glassy cabin -> other cabin if ( code[TYPE_INDEX] == TYPE2 && (code[HULL_INDEX] == 16 || code[HULL_INDEX] == 33) && (code[CABIN_INDEX] == 5 || code[CABIN_INDEX] == 33) ) { code[CABIN_INDEX] -= 1; } // #12 tron hull -> no sailing front if ( code[TYPE_INDEX] == TYPE2 && code[HULL_INDEX] >= 54 && code[HULL_INDEX] <= 61 && (code[DECOR_INDEX] == 4 || code[DECOR_INDEX] == 10 || code[DECOR_INDEX] == 11) ) { code[DECOR_INDEX] = NULL_VALUE; } // #13 special hull -> no front if ( code[TYPE_INDEX] == TYPE2 && (code[HULL_INDEX] == 16 || code[HULL_INDEX] == 33) ) { code[DECOR_INDEX] = NULL_VALUE; } return code; } function decodeTokenId(uint256 _seed, uint256 _id) public pure returns (uint256[NUMBER_OF_TRAITS] memory) { // prettier-ignore uint8[NUMBER_OF_TRAITS] memory shifts = [ 0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80 ]; uint256[NUMBER_OF_TRAITS] memory traits; uint256 dna = uint256(keccak256(abi.encode(_seed, _id))); for (uint256 i = 0; i < NUMBER_OF_TRAITS; i++) { traits[i] = uint8((dna >> shifts[i]) & BITMASK); } return traits; } function getAttributeBytes( uint16 _key, uint16 _value, uint16 _yachtType ) private view returns (bytes memory) { // prettier-ignore // solhint-disable-next-line quotes return ( abi.encodePacked( '{"trait_type": "', traitNames[_key], '", "value": "', traitValues[_yachtType][_key][_value], '"}' ) ); } function getNumericAttributeBytes(string memory _key, uint256 _value) private view returns (bytes memory) { // prettier-ignore // solhint-disable-next-line quotes return ( abi.encodePacked( '{"trait_type": "', _key, '", "value": ', Strings.toString(_value), "}" ) ); } function getAttributes(uint16[NUMBER_OF_TRAITS] memory code) private view returns (string memory) { // solhint-disable-next-line quotes bytes memory attributes = '"attributes": ['; for (uint16 i = 0; i < code.length; i++) { // loop through attributes // console.log("%s BEFORE: %s", i, string(attributes)); // ignore type and background shadows if (i == TYPE_INDEX) { continue; } if (code[i] == NULL_VALUE) { continue; } if (i == BACKGROUND_INDEX) { // if background do not add ',' to the array attributes = abi.encodePacked( attributes, getAttributeBytes(i, code[i], code[TYPE_INDEX]) ); continue; } if (i == SPEED_INDEX) { attributes = abi.encodePacked(attributes, ",", getNumericAttributeBytes(traitNames[SPEED_INDEX], code[SPEED_INDEX])); continue; } if (i == RANGE_INDEX) { attributes = abi.encodePacked(attributes, ",", getNumericAttributeBytes(traitNames[RANGE_INDEX], code[RANGE_INDEX])); continue; } attributes = abi.encodePacked( attributes, ",", getAttributeBytes(i, code[i], code[TYPE_INDEX]) ); // console.log("%s AFTER: %s", i, string(attributes)); } attributes = abi.encodePacked(attributes, "]"); return string(attributes); } function tokenURI( uint256 _tokenId, string memory _name, uint256 _seed, string memory _baseUrl ) public view returns (string memory) { // replace name with default if yacht has not been named yet if ( keccak256(abi.encodePacked(_name)) == keccak256(abi.encodePacked("")) ) { _name = string( abi.encodePacked("Superyacht ", Strings.toString(_tokenId)) ); } // decode boat code uint256[NUMBER_OF_TRAITS] memory traitsRndValues = decodeTokenId( _seed, _tokenId ); uint16[NUMBER_OF_TRAITS] memory code = generateInitialBoatString( traitsRndValues ); code = applyRules(code); // prettier-ignore // solhint-disable-next-line quotes bytes memory content = abi.encodePacked( '{"name": "', _name, '"', ', "description": "An Ape Harbour Superyacht"' ); // prettier-ignore // solhint-disable-next-line quotes content = abi.encodePacked( content, ", ", getAttributes(code), ", ", '"image": "', _baseUrl, Strings.toString(_tokenId), '.png"', "}" ); string memory result = string( abi.encodePacked( "data:application/json;base64,", Base64.encode(content) ) ); return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides a function for encoding some bytes in base64 library Base64 { string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and( input, 0x3F))))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": false, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_mintStartTS","type":"uint256"},{"internalType":"address","name":"_nftDescriptorAddress","type":"address"},{"internalType":"address","name":"_ahyAddress","type":"address"},{"internalType":"address","name":"_linkAddress","type":"address"},{"internalType":"address","name":"_vrfCoordinatorAddress","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_chainLinkFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"yachtId","type":"uint256"},{"indexed":true,"internalType":"string","name":"name","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"randomSeed","type":"uint256"}],"name":"SetRandomSeed","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":"MAX_SUPPLY_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ogYachts","type":"uint256[]"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_superyachtIds","type":"uint256[]"}],"name":"claimAH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nameTaken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"names","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"requestRandomSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"setBaseUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_yachtId","type":"uint256"},{"internalType":"string","name":"_yachtName","type":"string"},{"internalType":"uint256","name":"_ogYachtToBurn","type":"uint256"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftDescriptorAddress","type":"address"}],"name":"updateNftDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b506040516200552d3803806200552d83398181016040528101906200003891906200044a565b82846040518060400160405280601781526020017f41706520486172626f75722053757065727961636874730000000000000000008152506040518060400160405280600481526020017f41485359000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000be92919062000355565b508060019080519060200190620000d792919062000355565b505050620000fa620000ee6200028760201b60201c565b6200028f60201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050508473ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508660e0818152505062278d0087620001ba9190620004f7565b610100818152505085600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e8190555080600f819055506000600c60006101000a81548160ff0219169083151502179055506040518060400160405280600e81526020017f697066733a2f2f3c484153483e2f000000000000000000000000000000000000815250600b90805190602001906200027992919062000355565b50505050505050506200067e565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000363906200059c565b90600052602060002090601f016020900481019282620003875760008555620003d3565b82601f10620003a257805160ff1916838001178555620003d3565b82800160010185558215620003d3579182015b82811115620003d2578251825591602001919060010190620003b5565b5b509050620003e29190620003e6565b5090565b5b8082111562000401576000816000905550600101620003e7565b5090565b600081519050620004168162000630565b92915050565b6000815190506200042d816200064a565b92915050565b600081519050620004448162000664565b92915050565b600080600080600080600060e0888a0312156200046657600080fd5b6000620004768a828b0162000433565b9750506020620004898a828b0162000405565b96505060406200049c8a828b0162000405565b9550506060620004af8a828b0162000405565b9450506080620004c28a828b0162000405565b93505060a0620004d58a828b016200041c565b92505060c0620004e88a828b0162000433565b91505092959891949750929550565b6000620005048262000592565b9150620005118362000592565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620005495762000548620005d2565b5b828201905092915050565b6000620005618262000572565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620005b557607f821691505b60208210811415620005cc57620005cb62000601565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6200063b8162000554565b81146200064757600080fd5b50565b620006558162000568565b81146200066157600080fd5b50565b6200066f8162000592565b81146200067b57600080fd5b50565b60805160601c60a05160601c60c05160601c60e05161010051614e45620006e860003960008181610d4101526113a901526000610cdf015260008181610e4f0152611c7201526000818161118501526128ef01526000818161186f01526128b30152614e456000f3fe608060405234801561001057600080fd5b50600436106101ef5760003560e01c806370a082311161010f578063bc89e28a116100a2578063e1da26c611610071578063e1da26c6146105a2578063e985e9c5146105ac578063f2fde38b146105dc578063fb50cf90146105f8576101ef565b8063bc89e28a1461050a578063c7c3268b1461053a578063c87b56dd14610556578063e17ec3bc14610586576101ef565b806394985ddd116100de57806394985ddd1461049857806395d89b41146104b4578063a22cb465146104d2578063b88d4fde146104ee576101ef565b806370a0823114610422578063715018a61461045257806382d5b2491461045c5780638da5cb5b1461047a576101ef565b806342842e0e1161018757806362a5af3b1161015657806362a5af3b146103885780636352211e146103925780636ba4c138146103c25780636e935422146103f2576101ef565b806342842e0e146102f057806342966c681461030c5780634622ab03146103285780634f558e7914610358576101ef565b8063095ea7b3116101c3578063095ea7b3146102905780630b747d91146102ac57806323b872dd146102ca5780633ccfd60b146102e6576101ef565b80626d6cae146101f457806301ffc9a71461021257806306fdde0314610242578063081812fc14610260575b600080fd5b6101fc610614565b6040516102099190613e27565b60405180910390f35b61022c600480360381019061022791906134be565b61061a565b6040516102399190613e0c565b60405180910390f35b61024a6106fc565b6040516102579190613eb0565b60405180910390f35b61027a60048036038101906102759190613592565b61078e565b6040516102879190613d30565b60405180910390f35b6102aa60048036038101906102a591906133b3565b610813565b005b6102b461092b565b6040516102c19190614252565b60405180910390f35b6102e460048036038101906102df91906132ad565b610931565b005b6102ee610991565b005b61030a600480360381019061030591906132ad565b610a62565b005b61032660048036038101906103219190613592565b610a82565b005b610342600480360381019061033d9190613592565b610ade565b60405161034f9190613eb0565b60405180910390f35b610372600480360381019061036d9190613592565b610b7e565b60405161037f9190613e0c565b60405180910390f35b610390610b90565b005b6103ac60048036038101906103a79190613592565b610c29565b6040516103b99190613d30565b60405180910390f35b6103dc60048036038101906103d791906133ef565b610cdb565b6040516103e99190614252565b60405180910390f35b61040c60048036038101906104079190613459565b610ff3565b6040516104199190613e0c565b60405180910390f35b61043c6004803603810190610437919061321f565b611013565b6040516104499190614252565b60405180910390f35b61045a6110cb565b005b610464611153565b6040516104719190614252565b60405180910390f35b610482611159565b60405161048f9190613d30565b60405180910390f35b6104b260048036038101906104ad9190613482565b611183565b005b6104bc61121f565b6040516104c99190613eb0565b60405180910390f35b6104ec60048036038101906104e79190613377565b6112b1565b005b610508600480360381019061050391906132fc565b6112c7565b005b610524600480360381019061051f91906133ef565b611329565b6040516105319190614252565b60405180910390f35b610554600480360381019061054f9190613510565b611505565b005b610570600480360381019061056b9190613592565b61160a565b60405161057d9190613eb0565b60405180910390f35b6105a0600480360381019061059b919061321f565b6116de565b005b6105aa6117ee565b005b6105c660048036038101906105c19190613271565b6119b2565b6040516105d39190613e0c565b60405180910390f35b6105f660048036038101906105f1919061321f565b611a46565b005b610612600480360381019061060d91906135e4565b611b3e565b005b60105481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106f557506106f482611da5565b5b9050919050565b60606000805461070b90614559565b80601f016020809104026020016040519081016040528092919081815260200182805461073790614559565b80156107845780601f1061075957610100808354040283529160200191610784565b820191906000526020600020905b81548152906001019060200180831161076757829003601f168201915b5050505050905090565b600061079982611e0f565b6107d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107cf90614112565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061081e82610c29565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561088f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610886906141b2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108ae611e7b565b73ffffffffffffffffffffffffffffffffffffffff1614806108dd57506108dc816108d7611e7b565b6119b2565b5b61091c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091390614092565b60405180910390fd5b6109268383611e83565b505050565b600d5481565b61094261093c611e7b565b82611f3c565b610981576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610978906141f2565b60405180910390fd5b61098c83838361201a565b505050565b610999611e7b565b73ffffffffffffffffffffffffffffffffffffffff166109b7611159565b73ffffffffffffffffffffffffffffffffffffffff1614610a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0490614152565b60405180910390fd5b600047905060003390508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610a5d573d6000803e3d6000fd5b505050565b610a7d838383604051806020016040528060008152506112c7565b505050565b610a93610a8d611e7b565b82611f3c565b610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac990614232565b60405180910390fd5b610adb81612276565b50565b60086020528060005260406000206000915090508054610afd90614559565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2990614559565b8015610b765780601f10610b4b57610100808354040283529160200191610b76565b820191906000526020600020905b815481529060010190602001808311610b5957829003601f168201915b505050505081565b6000610b8982611e0f565b9050919050565b610b98611e7b565b73ffffffffffffffffffffffffffffffffffffffff16610bb6611159565b73ffffffffffffffffffffffffffffffffffffffff1614610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0390614152565b60405180910390fd5b6001600c60006101000a81548160ff021916908315150217905550565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc9906140d2565b60405180910390fd5b80915050919050565b60007f00000000000000000000000000000000000000000000000000000000000000004211610d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3690614212565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000004210610da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9890614132565b60405180910390fd5b60005b8251811015610fe957610df6838281518110610de9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611e0f565b15610e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2d906141d2565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e858481518110610ec2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610ee69190614252565b60206040518083038186803b158015610efe57600080fd5b505afa158015610f12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f369190613248565b73ffffffffffffffffffffffffffffffffffffffff1614610f8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8390613f72565b60405180910390fd5b610fd633848381518110610fc9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612387565b8080610fe1906145bc565b915050610da4565b5081519050919050565b60096020528060005260406000206000915054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107b906140b2565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110d3611e7b565b73ffffffffffffffffffffffffffffffffffffffff166110f1611159565b73ffffffffffffffffffffffffffffffffffffffff1614611147576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113e90614152565b60405180910390fd5b6111516000612555565b565b611e6281565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120890614192565b60405180910390fd5b61121b828261261b565b5050565b60606001805461122e90614559565b80601f016020809104026020016040519081016040528092919081815260200182805461125a90614559565b80156112a75780601f1061127c576101008083540402835291602001916112a7565b820191906000526020600020905b81548152906001019060200180831161128a57829003601f168201915b5050505050905090565b6112c36112bc611e7b565b83836126e6565b5050565b6112d86112d2611e7b565b83611f3c565b611317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130e906141f2565b60405180910390fd5b61132384848484612853565b50505050565b6000611333611e7b565b73ffffffffffffffffffffffffffffffffffffffff16611351611159565b73ffffffffffffffffffffffffffffffffffffffff16146113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e90614152565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000004211611409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140090613f12565b60405180910390fd5b60005b82518110156114fb5761145e838281518110611451577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611e0f565b1561149e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611495906141d2565b60405180910390fd5b6114e8338483815181106114db577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612387565b80806114f3906145bc565b91505061140c565b5081519050919050565b61150d611e7b565b73ffffffffffffffffffffffffffffffffffffffff1661152b611159565b73ffffffffffffffffffffffffffffffffffffffff1614611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890614152565b60405180910390fd5b600c60009054906101000a900460ff16156115d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c890613ff2565b60405180910390fd5b806040516020016115e29190613cee565b604051602081830303815290604052600b9080519060200190611606929190612ef1565b5050565b6060600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166387024e558360086000868152602001908152602001600020600d54600b6040518563ffffffff1660e01b8152600401611682949392919061426d565b60006040518083038186803b15801561169a57600080fd5b505afa1580156116ae573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116d79190613551565b9050919050565b6116e6611e7b565b73ffffffffffffffffffffffffffffffffffffffff16611704611159565b73ffffffffffffffffffffffffffffffffffffffff161461175a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175190614152565b60405180910390fd5b600c60009054906101000a900460ff16156117aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a190613ff2565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6117f6611e7b565b73ffffffffffffffffffffffffffffffffffffffff16611814611159565b73ffffffffffffffffffffffffffffffffffffffff161461186a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186190614152565b60405180910390fd5b600f547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118c69190613d30565b60206040518083038186803b1580156118de57600080fd5b505afa1580156118f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191691906135bb565b1015611957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194e90614052565b60405180910390fd5b6000600d541461199c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199390613ed2565b60405180910390fd5b6119aa600e54600f546128af565b601081905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a4e611e7b565b73ffffffffffffffffffffffffffffffffffffffff16611a6c611159565b73ffffffffffffffffffffffffffffffffffffffff1614611ac2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab990614152565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2990613fb2565b60405180910390fd5b611b3b81612555565b50565b6000611b4983612a11565b604051602001611b599190613cc0565b604051602081830303815290604052805190602001209050604051602001611b8090613d1b565b6040516020818303038152906040528051906020012060086000868152602001908152602001600020604051602001611bb99190613cd7565b6040516020818303038152906040528051906020012014611c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0690613f32565b60405180910390fd5b6009600082815260200190815260200160002060009054906101000a900460ff1615611c70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6790613ef2565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342842e0e611cb4611e7b565b61dead856040518463ffffffff1660e01b8152600401611cd693929190613d4b565b600060405180830381600087803b158015611cf057600080fd5b505af1158015611d04573d6000803e3d6000fd5b5050505060016009600083815260200190815260200160002060006101000a81548160ff02191690831515021790555082600860008681526020019081526020016000209080519060200190611d5b929190612ef1565b5082604051611d6a9190613cc0565b6040518091039020847f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b60405160405180910390a350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611ef683610c29565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611f4782611e0f565b611f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7d90614072565b60405180910390fd5b6000611f9183610c29565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061200057508373ffffffffffffffffffffffffffffffffffffffff16611fe88461078e565b73ffffffffffffffffffffffffffffffffffffffff16145b80612011575061201081856119b2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661203a82610c29565b73ffffffffffffffffffffffffffffffffffffffff1614612090576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208790614172565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612100576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f790614012565b60405180910390fd5b61210b838383612cd3565b612116600082611e83565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121669190614458565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121bd91906143cb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061228182610c29565b905061228f81600084612cd3565b61229a600083611e83565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122ea9190614458565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ee906140f2565b60405180910390fd5b61240081611e0f565b15612440576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243790613fd2565b60405180910390fd5b61244c60008383612cd3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461249c91906143cb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b816010541461265f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265690613f52565b60405180910390fd5b6000600d54146126a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269b90613ed2565b60405180910390fd5b80600d819055507fc8fd64377c5acb2eaaceb9dcd55447ba53987a5e3ec2e7026c3d8cfed582a92d816040516126da9190614252565b60405180910390a15050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274c90614032565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128469190613e0c565b60405180910390a3505050565b61285e84848461201a565b61286a84848484612cd8565b6128a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a090613f92565b60405180910390fd5b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612923929190613e42565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161295093929190613dce565b602060405180830381600087803b15801561296a57600080fd5b505af115801561297e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a29190613430565b5060006129c5846000306007600089815260200190815260200160002054612e6f565b9050600160076000868152602001908152602001600020546129e791906143cb565b6007600086815260200190815260200160002081905550612a088482612eab565b91505092915050565b606060008290506000815167ffffffffffffffff811115612a5b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a8d5781602001600182028036833780820191505090505b50905060005b8251811015612cc8576041838281518110612ad7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1610158015612b405750605a838281518110612b2c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b15612c08576020838281518110612b80577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c612b989190614421565b60f81b828281518110612bd4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612cb5565b828181518110612c41577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b828281518110612c85577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b8080612cc0906145bc565b915050612a93565b508092505050919050565b505050565b6000612cf98473ffffffffffffffffffffffffffffffffffffffff16612ede565b15612e62578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d22611e7b565b8786866040518563ffffffff1660e01b8152600401612d449493929190613d82565b602060405180830381600087803b158015612d5e57600080fd5b505af1925050508015612d8f57506040513d601f19601f82011682018060405250810190612d8c91906134e7565b60015b612e12573d8060008114612dbf576040519150601f19603f3d011682016040523d82523d6000602084013e612dc4565b606091505b50600081511415612e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0190613f92565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e67565b600190505b949350505050565b600084848484604051602001612e889493929190613e6b565b6040516020818303038152906040528051906020012060001c9050949350505050565b60008282604051602001612ec0929190613c94565b60405160208183030381529060405280519060200120905092915050565b600080823b905060008111915050919050565b828054612efd90614559565b90600052602060002090601f016020900481019282612f1f5760008555612f66565b82601f10612f3857805160ff1916838001178555612f66565b82800160010185558215612f66579182015b82811115612f65578251825591602001919060010190612f4a565b5b509050612f739190612f77565b5090565b5b80821115612f90576000816000905550600101612f78565b5090565b6000612fa7612fa2846142e5565b6142c0565b90508083825260208201905082856020860282011115612fc657600080fd5b60005b85811015612ff65781612fdc88826131f5565b845260208401935060208301925050600181019050612fc9565b5050509392505050565b600061301361300e84614311565b6142c0565b90508281526020810184848401111561302b57600080fd5b613036848285614517565b509392505050565b600061305161304c84614342565b6142c0565b90508281526020810184848401111561306957600080fd5b613074848285614517565b509392505050565b600061308f61308a84614342565b6142c0565b9050828152602081018484840111156130a757600080fd5b6130b2848285614526565b509392505050565b6000813590506130c981614d9c565b92915050565b6000815190506130de81614d9c565b92915050565b600082601f8301126130f557600080fd5b8135613105848260208601612f94565b91505092915050565b60008135905061311d81614db3565b92915050565b60008151905061313281614db3565b92915050565b60008135905061314781614dca565b92915050565b60008135905061315c81614de1565b92915050565b60008151905061317181614de1565b92915050565b600082601f83011261318857600080fd5b8135613198848260208601613000565b91505092915050565b600082601f8301126131b257600080fd5b81356131c284826020860161303e565b91505092915050565b600082601f8301126131dc57600080fd5b81516131ec84826020860161307c565b91505092915050565b60008135905061320481614df8565b92915050565b60008151905061321981614df8565b92915050565b60006020828403121561323157600080fd5b600061323f848285016130ba565b91505092915050565b60006020828403121561325a57600080fd5b6000613268848285016130cf565b91505092915050565b6000806040838503121561328457600080fd5b6000613292858286016130ba565b92505060206132a3858286016130ba565b9150509250929050565b6000806000606084860312156132c257600080fd5b60006132d0868287016130ba565b93505060206132e1868287016130ba565b92505060406132f2868287016131f5565b9150509250925092565b6000806000806080858703121561331257600080fd5b6000613320878288016130ba565b9450506020613331878288016130ba565b9350506040613342878288016131f5565b925050606085013567ffffffffffffffff81111561335f57600080fd5b61336b87828801613177565b91505092959194509250565b6000806040838503121561338a57600080fd5b6000613398858286016130ba565b92505060206133a98582860161310e565b9150509250929050565b600080604083850312156133c657600080fd5b60006133d4858286016130ba565b92505060206133e5858286016131f5565b9150509250929050565b60006020828403121561340157600080fd5b600082013567ffffffffffffffff81111561341b57600080fd5b613427848285016130e4565b91505092915050565b60006020828403121561344257600080fd5b600061345084828501613123565b91505092915050565b60006020828403121561346b57600080fd5b600061347984828501613138565b91505092915050565b6000806040838503121561349557600080fd5b60006134a385828601613138565b92505060206134b4858286016131f5565b9150509250929050565b6000602082840312156134d057600080fd5b60006134de8482850161314d565b91505092915050565b6000602082840312156134f957600080fd5b600061350784828501613162565b91505092915050565b60006020828403121561352257600080fd5b600082013567ffffffffffffffff81111561353c57600080fd5b613548848285016131a1565b91505092915050565b60006020828403121561356357600080fd5b600082015167ffffffffffffffff81111561357d57600080fd5b613589848285016131cb565b91505092915050565b6000602082840312156135a457600080fd5b60006135b2848285016131f5565b91505092915050565b6000602082840312156135cd57600080fd5b60006135db8482850161320a565b91505092915050565b6000806000606084860312156135f957600080fd5b6000613607868287016131f5565b935050602084013567ffffffffffffffff81111561362457600080fd5b613630868287016131a1565b9250506040613641868287016131f5565b9150509250925092565b6136548161448c565b82525050565b6136638161449e565b82525050565b613672816144aa565b82525050565b613689613684826144aa565b614605565b82525050565b600061369a82614388565b6136a4818561439e565b93506136b4818560208601614526565b6136bd816146a6565b840191505092915050565b60006136d382614393565b6136dd81856143af565b93506136ed818560208601614526565b6136f6816146a6565b840191505092915050565b600061370c82614393565b61371681856143c0565b9350613726818560208601614526565b80840191505092915050565b6000815461373f81614559565b61374981866143af565b945060018216600081146137645760018114613776576137a9565b60ff19831686526020860193506137a9565b61377f85614373565b60005b838110156137a157815481890152600182019150602081019050613782565b808801955050505b50505092915050565b600081546137bf81614559565b6137c981866143c0565b945060018216600081146137e457600181146137f557613828565b60ff19831686528186019350613828565b6137fe85614373565b60005b8381101561382057815481890152600182019150602081019050613801565b838801955050505b50505092915050565b600061383e601f836143af565b9150613849826146b7565b602082019050919050565b60006138616012836143af565b915061386c826146e0565b602082019050919050565b6000613884601e836143af565b915061388f82614709565b602082019050919050565b60006138a7601c836143af565b91506138b282614732565b602082019050919050565b60006138ca6010836143af565b91506138d58261475b565b602082019050919050565b60006138ed6016836143af565b91506138f882614784565b602082019050919050565b60006139106032836143af565b915061391b826147ad565b604082019050919050565b60006139336026836143af565b915061393e826147fc565b604082019050919050565b6000613956601c836143af565b91506139618261484b565b602082019050919050565b60006139796024836143af565b915061398482614874565b604082019050919050565b600061399c6024836143af565b91506139a7826148c3565b604082019050919050565b60006139bf6019836143af565b91506139ca82614912565b602082019050919050565b60006139e2602b836143af565b91506139ed8261493b565b604082019050919050565b6000613a05602c836143af565b9150613a108261498a565b604082019050919050565b6000613a286007836143c0565b9150613a33826149d9565b600782019050919050565b6000613a4b6038836143af565b9150613a5682614a02565b604082019050919050565b6000613a6e602a836143af565b9150613a7982614a51565b604082019050919050565b6000613a916029836143af565b9150613a9c82614aa0565b604082019050919050565b6000613ab46020836143af565b9150613abf82614aef565b602082019050919050565b6000613ad7602c836143af565b9150613ae282614b18565b604082019050919050565b6000613afa6012836143af565b9150613b0582614b67565b602082019050919050565b6000613b1d6020836143af565b9150613b2882614b90565b602082019050919050565b6000613b406029836143af565b9150613b4b82614bb9565b604082019050919050565b6000613b63601f836143af565b9150613b6e82614c08565b602082019050919050565b6000613b866021836143af565b9150613b9182614c31565b604082019050919050565b6000613ba9601e836143af565b9150613bb482614c80565b602082019050919050565b6000613bcc6000836143c0565b9150613bd782614ca9565b600082019050919050565b6000613bef6031836143af565b9150613bfa82614cac565b604082019050919050565b6000613c126017836143af565b9150613c1d82614cfb565b602082019050919050565b6000613c356030836143af565b9150613c4082614d24565b604082019050919050565b6000613c586001836143c0565b9150613c6382614d73565b600182019050919050565b613c7781614500565b82525050565b613c8e613c8982614500565b61460f565b82525050565b6000613ca08285613678565b602082019150613cb08284613c7d565b6020820191508190509392505050565b6000613ccc8284613701565b915081905092915050565b6000613ce382846137b2565b915081905092915050565b6000613cf982613a1b565b9150613d058284613701565b9150613d1082613c4b565b915081905092915050565b6000613d2682613bbf565b9150819050919050565b6000602082019050613d45600083018461364b565b92915050565b6000606082019050613d60600083018661364b565b613d6d602083018561364b565b613d7a6040830184613c6e565b949350505050565b6000608082019050613d97600083018761364b565b613da4602083018661364b565b613db16040830185613c6e565b8181036060830152613dc3818461368f565b905095945050505050565b6000606082019050613de3600083018661364b565b613df06020830185613c6e565b8181036040830152613e02818461368f565b9050949350505050565b6000602082019050613e21600083018461365a565b92915050565b6000602082019050613e3c6000830184613669565b92915050565b6000604082019050613e576000830185613669565b613e646020830184613c6e565b9392505050565b6000608082019050613e806000830187613669565b613e8d6020830186613c6e565b613e9a604083018561364b565b613ea76060830184613c6e565b95945050505050565b60006020820190508181036000830152613eca81846136c8565b905092915050565b60006020820190508181036000830152613eeb81613831565b9050919050565b60006020820190508181036000830152613f0b81613854565b9050919050565b60006020820190508181036000830152613f2b81613877565b9050919050565b60006020820190508181036000830152613f4b8161389a565b9050919050565b60006020820190508181036000830152613f6b816138bd565b9050919050565b60006020820190508181036000830152613f8b816138e0565b9050919050565b60006020820190508181036000830152613fab81613903565b9050919050565b60006020820190508181036000830152613fcb81613926565b9050919050565b60006020820190508181036000830152613feb81613949565b9050919050565b6000602082019050818103600083015261400b8161396c565b9050919050565b6000602082019050818103600083015261402b8161398f565b9050919050565b6000602082019050818103600083015261404b816139b2565b9050919050565b6000602082019050818103600083015261406b816139d5565b9050919050565b6000602082019050818103600083015261408b816139f8565b9050919050565b600060208201905081810360008301526140ab81613a3e565b9050919050565b600060208201905081810360008301526140cb81613a61565b9050919050565b600060208201905081810360008301526140eb81613a84565b9050919050565b6000602082019050818103600083015261410b81613aa7565b9050919050565b6000602082019050818103600083015261412b81613aca565b9050919050565b6000602082019050818103600083015261414b81613aed565b9050919050565b6000602082019050818103600083015261416b81613b10565b9050919050565b6000602082019050818103600083015261418b81613b33565b9050919050565b600060208201905081810360008301526141ab81613b56565b9050919050565b600060208201905081810360008301526141cb81613b79565b9050919050565b600060208201905081810360008301526141eb81613b9c565b9050919050565b6000602082019050818103600083015261420b81613be2565b9050919050565b6000602082019050818103600083015261422b81613c05565b9050919050565b6000602082019050818103600083015261424b81613c28565b9050919050565b60006020820190506142676000830184613c6e565b92915050565b60006080820190506142826000830187613c6e565b81810360208301526142948186613732565b90506142a36040830185613c6e565b81810360608301526142b58184613732565b905095945050505050565b60006142ca6142db565b90506142d6828261458b565b919050565b6000604051905090565b600067ffffffffffffffff821115614300576142ff614677565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561432c5761432b614677565b5b614335826146a6565b9050602081019050919050565b600067ffffffffffffffff82111561435d5761435c614677565b5b614366826146a6565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006143d682614500565b91506143e183614500565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561441657614415614619565b5b828201905092915050565b600061442c8261450a565b91506144378361450a565b92508260ff0382111561444d5761444c614619565b5b828201905092915050565b600061446382614500565b915061446e83614500565b92508282101561448157614480614619565b5b828203905092915050565b6000614497826144e0565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614544578082015181840152602081019050614529565b83811115614553576000848401525b50505050565b6000600282049050600182168061457157607f821691505b6020821081141561458557614584614648565b5b50919050565b614594826146a6565b810181811067ffffffffffffffff821117156145b3576145b2614677565b5b80604052505050565b60006145c782614500565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156145fa576145f9614619565b5b600182019050919050565b6000819050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f72616e646f6d536565642068617320616c7265616479206265656e2073657400600082015250565b7f4e616d6520616c72656164792074616b656e0000000000000000000000000000600082015250565b7f4e6f7420696e20706f737420636c61696d696e67207068617365207965740000600082015250565b7f59616368742068617320616c7265616479206265656e206e616d656400000000600082015250565b7f57726f6e67207265717565737420496400000000000000000000000000000000600082015250565b7f596f7520646f206e6f74206f776e206120796163687400000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f436f6e74726163742066726f7a656e2c206e6f206368616e67657320706f737360008201527f69626c6500000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060008201527f7769746820666175636574000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f436c61696d696e672068617320656e6465640000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f596163687420686173206265656e20636c61696d656420616c72656164790000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f436c61696d696e67206861736e27742073746172746564000000000000000000600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b614da58161448c565b8114614db057600080fd5b50565b614dbc8161449e565b8114614dc757600080fd5b50565b614dd3816144aa565b8114614dde57600080fd5b50565b614dea816144b4565b8114614df557600080fd5b50565b614e0181614500565b8114614e0c57600080fd5b5056fea26469706673582212201ae529f9fce4d761025a33499a48c22dda3feeeba651c10db5d49780122f052a64736f6c634300080400330000000000000000000000000000000000000000000000000000000061c4c730000000000000000000000000488ede56863d9730f8d9781b30818b6b0e262ec900000000000000000000000024d0cbd0d5d7b50212251c5dc7cb810e7af71f6a000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101ef5760003560e01c806370a082311161010f578063bc89e28a116100a2578063e1da26c611610071578063e1da26c6146105a2578063e985e9c5146105ac578063f2fde38b146105dc578063fb50cf90146105f8576101ef565b8063bc89e28a1461050a578063c7c3268b1461053a578063c87b56dd14610556578063e17ec3bc14610586576101ef565b806394985ddd116100de57806394985ddd1461049857806395d89b41146104b4578063a22cb465146104d2578063b88d4fde146104ee576101ef565b806370a0823114610422578063715018a61461045257806382d5b2491461045c5780638da5cb5b1461047a576101ef565b806342842e0e1161018757806362a5af3b1161015657806362a5af3b146103885780636352211e146103925780636ba4c138146103c25780636e935422146103f2576101ef565b806342842e0e146102f057806342966c681461030c5780634622ab03146103285780634f558e7914610358576101ef565b8063095ea7b3116101c3578063095ea7b3146102905780630b747d91146102ac57806323b872dd146102ca5780633ccfd60b146102e6576101ef565b80626d6cae146101f457806301ffc9a71461021257806306fdde0314610242578063081812fc14610260575b600080fd5b6101fc610614565b6040516102099190613e27565b60405180910390f35b61022c600480360381019061022791906134be565b61061a565b6040516102399190613e0c565b60405180910390f35b61024a6106fc565b6040516102579190613eb0565b60405180910390f35b61027a60048036038101906102759190613592565b61078e565b6040516102879190613d30565b60405180910390f35b6102aa60048036038101906102a591906133b3565b610813565b005b6102b461092b565b6040516102c19190614252565b60405180910390f35b6102e460048036038101906102df91906132ad565b610931565b005b6102ee610991565b005b61030a600480360381019061030591906132ad565b610a62565b005b61032660048036038101906103219190613592565b610a82565b005b610342600480360381019061033d9190613592565b610ade565b60405161034f9190613eb0565b60405180910390f35b610372600480360381019061036d9190613592565b610b7e565b60405161037f9190613e0c565b60405180910390f35b610390610b90565b005b6103ac60048036038101906103a79190613592565b610c29565b6040516103b99190613d30565b60405180910390f35b6103dc60048036038101906103d791906133ef565b610cdb565b6040516103e99190614252565b60405180910390f35b61040c60048036038101906104079190613459565b610ff3565b6040516104199190613e0c565b60405180910390f35b61043c6004803603810190610437919061321f565b611013565b6040516104499190614252565b60405180910390f35b61045a6110cb565b005b610464611153565b6040516104719190614252565b60405180910390f35b610482611159565b60405161048f9190613d30565b60405180910390f35b6104b260048036038101906104ad9190613482565b611183565b005b6104bc61121f565b6040516104c99190613eb0565b60405180910390f35b6104ec60048036038101906104e79190613377565b6112b1565b005b610508600480360381019061050391906132fc565b6112c7565b005b610524600480360381019061051f91906133ef565b611329565b6040516105319190614252565b60405180910390f35b610554600480360381019061054f9190613510565b611505565b005b610570600480360381019061056b9190613592565b61160a565b60405161057d9190613eb0565b60405180910390f35b6105a0600480360381019061059b919061321f565b6116de565b005b6105aa6117ee565b005b6105c660048036038101906105c19190613271565b6119b2565b6040516105d39190613e0c565b60405180910390f35b6105f660048036038101906105f1919061321f565b611a46565b005b610612600480360381019061060d91906135e4565b611b3e565b005b60105481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106f557506106f482611da5565b5b9050919050565b60606000805461070b90614559565b80601f016020809104026020016040519081016040528092919081815260200182805461073790614559565b80156107845780601f1061075957610100808354040283529160200191610784565b820191906000526020600020905b81548152906001019060200180831161076757829003601f168201915b5050505050905090565b600061079982611e0f565b6107d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107cf90614112565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061081e82610c29565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561088f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610886906141b2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108ae611e7b565b73ffffffffffffffffffffffffffffffffffffffff1614806108dd57506108dc816108d7611e7b565b6119b2565b5b61091c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091390614092565b60405180910390fd5b6109268383611e83565b505050565b600d5481565b61094261093c611e7b565b82611f3c565b610981576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610978906141f2565b60405180910390fd5b61098c83838361201a565b505050565b610999611e7b565b73ffffffffffffffffffffffffffffffffffffffff166109b7611159565b73ffffffffffffffffffffffffffffffffffffffff1614610a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0490614152565b60405180910390fd5b600047905060003390508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610a5d573d6000803e3d6000fd5b505050565b610a7d838383604051806020016040528060008152506112c7565b505050565b610a93610a8d611e7b565b82611f3c565b610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac990614232565b60405180910390fd5b610adb81612276565b50565b60086020528060005260406000206000915090508054610afd90614559565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2990614559565b8015610b765780601f10610b4b57610100808354040283529160200191610b76565b820191906000526020600020905b815481529060010190602001808311610b5957829003601f168201915b505050505081565b6000610b8982611e0f565b9050919050565b610b98611e7b565b73ffffffffffffffffffffffffffffffffffffffff16610bb6611159565b73ffffffffffffffffffffffffffffffffffffffff1614610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0390614152565b60405180910390fd5b6001600c60006101000a81548160ff021916908315150217905550565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc9906140d2565b60405180910390fd5b80915050919050565b60007f0000000000000000000000000000000000000000000000000000000061c4c7304211610d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3690614212565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000061ec54304210610da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9890614132565b60405180910390fd5b60005b8251811015610fe957610df6838281518110610de9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611e0f565b15610e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2d906141d2565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f00000000000000000000000024d0cbd0d5d7b50212251c5dc7cb810e7af71f6a73ffffffffffffffffffffffffffffffffffffffff16636352211e858481518110610ec2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610ee69190614252565b60206040518083038186803b158015610efe57600080fd5b505afa158015610f12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f369190613248565b73ffffffffffffffffffffffffffffffffffffffff1614610f8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8390613f72565b60405180910390fd5b610fd633848381518110610fc9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612387565b8080610fe1906145bc565b915050610da4565b5081519050919050565b60096020528060005260406000206000915054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107b906140b2565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110d3611e7b565b73ffffffffffffffffffffffffffffffffffffffff166110f1611159565b73ffffffffffffffffffffffffffffffffffffffff1614611147576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113e90614152565b60405180910390fd5b6111516000612555565b565b611e6281565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120890614192565b60405180910390fd5b61121b828261261b565b5050565b60606001805461122e90614559565b80601f016020809104026020016040519081016040528092919081815260200182805461125a90614559565b80156112a75780601f1061127c576101008083540402835291602001916112a7565b820191906000526020600020905b81548152906001019060200180831161128a57829003601f168201915b5050505050905090565b6112c36112bc611e7b565b83836126e6565b5050565b6112d86112d2611e7b565b83611f3c565b611317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130e906141f2565b60405180910390fd5b61132384848484612853565b50505050565b6000611333611e7b565b73ffffffffffffffffffffffffffffffffffffffff16611351611159565b73ffffffffffffffffffffffffffffffffffffffff16146113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e90614152565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000061ec54304211611409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140090613f12565b60405180910390fd5b60005b82518110156114fb5761145e838281518110611451577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611e0f565b1561149e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611495906141d2565b60405180910390fd5b6114e8338483815181106114db577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612387565b80806114f3906145bc565b91505061140c565b5081519050919050565b61150d611e7b565b73ffffffffffffffffffffffffffffffffffffffff1661152b611159565b73ffffffffffffffffffffffffffffffffffffffff1614611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890614152565b60405180910390fd5b600c60009054906101000a900460ff16156115d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c890613ff2565b60405180910390fd5b806040516020016115e29190613cee565b604051602081830303815290604052600b9080519060200190611606929190612ef1565b5050565b6060600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166387024e558360086000868152602001908152602001600020600d54600b6040518563ffffffff1660e01b8152600401611682949392919061426d565b60006040518083038186803b15801561169a57600080fd5b505afa1580156116ae573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116d79190613551565b9050919050565b6116e6611e7b565b73ffffffffffffffffffffffffffffffffffffffff16611704611159565b73ffffffffffffffffffffffffffffffffffffffff161461175a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175190614152565b60405180910390fd5b600c60009054906101000a900460ff16156117aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a190613ff2565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6117f6611e7b565b73ffffffffffffffffffffffffffffffffffffffff16611814611159565b73ffffffffffffffffffffffffffffffffffffffff161461186a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186190614152565b60405180910390fd5b600f547f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118c69190613d30565b60206040518083038186803b1580156118de57600080fd5b505afa1580156118f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191691906135bb565b1015611957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194e90614052565b60405180910390fd5b6000600d541461199c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199390613ed2565b60405180910390fd5b6119aa600e54600f546128af565b601081905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a4e611e7b565b73ffffffffffffffffffffffffffffffffffffffff16611a6c611159565b73ffffffffffffffffffffffffffffffffffffffff1614611ac2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab990614152565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2990613fb2565b60405180910390fd5b611b3b81612555565b50565b6000611b4983612a11565b604051602001611b599190613cc0565b604051602081830303815290604052805190602001209050604051602001611b8090613d1b565b6040516020818303038152906040528051906020012060086000868152602001908152602001600020604051602001611bb99190613cd7565b6040516020818303038152906040528051906020012014611c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0690613f32565b60405180910390fd5b6009600082815260200190815260200160002060009054906101000a900460ff1615611c70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6790613ef2565b60405180910390fd5b7f00000000000000000000000024d0cbd0d5d7b50212251c5dc7cb810e7af71f6a73ffffffffffffffffffffffffffffffffffffffff166342842e0e611cb4611e7b565b61dead856040518463ffffffff1660e01b8152600401611cd693929190613d4b565b600060405180830381600087803b158015611cf057600080fd5b505af1158015611d04573d6000803e3d6000fd5b5050505060016009600083815260200190815260200160002060006101000a81548160ff02191690831515021790555082600860008681526020019081526020016000209080519060200190611d5b929190612ef1565b5082604051611d6a9190613cc0565b6040518091039020847f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b60405160405180910390a350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611ef683610c29565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611f4782611e0f565b611f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7d90614072565b60405180910390fd5b6000611f9183610c29565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061200057508373ffffffffffffffffffffffffffffffffffffffff16611fe88461078e565b73ffffffffffffffffffffffffffffffffffffffff16145b80612011575061201081856119b2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661203a82610c29565b73ffffffffffffffffffffffffffffffffffffffff1614612090576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208790614172565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612100576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f790614012565b60405180910390fd5b61210b838383612cd3565b612116600082611e83565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121669190614458565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121bd91906143cb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061228182610c29565b905061228f81600084612cd3565b61229a600083611e83565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122ea9190614458565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ee906140f2565b60405180910390fd5b61240081611e0f565b15612440576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243790613fd2565b60405180910390fd5b61244c60008383612cd3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461249c91906143cb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b816010541461265f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265690613f52565b60405180910390fd5b6000600d54146126a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269b90613ed2565b60405180910390fd5b80600d819055507fc8fd64377c5acb2eaaceb9dcd55447ba53987a5e3ec2e7026c3d8cfed582a92d816040516126da9190614252565b60405180910390a15050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274c90614032565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128469190613e0c565b60405180910390a3505050565b61285e84848461201a565b61286a84848484612cd8565b6128a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a090613f92565b60405180910390fd5b50505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612923929190613e42565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161295093929190613dce565b602060405180830381600087803b15801561296a57600080fd5b505af115801561297e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a29190613430565b5060006129c5846000306007600089815260200190815260200160002054612e6f565b9050600160076000868152602001908152602001600020546129e791906143cb565b6007600086815260200190815260200160002081905550612a088482612eab565b91505092915050565b606060008290506000815167ffffffffffffffff811115612a5b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a8d5781602001600182028036833780820191505090505b50905060005b8251811015612cc8576041838281518110612ad7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1610158015612b405750605a838281518110612b2c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b15612c08576020838281518110612b80577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c612b989190614421565b60f81b828281518110612bd4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612cb5565b828181518110612c41577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b828281518110612c85577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b8080612cc0906145bc565b915050612a93565b508092505050919050565b505050565b6000612cf98473ffffffffffffffffffffffffffffffffffffffff16612ede565b15612e62578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d22611e7b565b8786866040518563ffffffff1660e01b8152600401612d449493929190613d82565b602060405180830381600087803b158015612d5e57600080fd5b505af1925050508015612d8f57506040513d601f19601f82011682018060405250810190612d8c91906134e7565b60015b612e12573d8060008114612dbf576040519150601f19603f3d011682016040523d82523d6000602084013e612dc4565b606091505b50600081511415612e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0190613f92565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e67565b600190505b949350505050565b600084848484604051602001612e889493929190613e6b565b6040516020818303038152906040528051906020012060001c9050949350505050565b60008282604051602001612ec0929190613c94565b60405160208183030381529060405280519060200120905092915050565b600080823b905060008111915050919050565b828054612efd90614559565b90600052602060002090601f016020900481019282612f1f5760008555612f66565b82601f10612f3857805160ff1916838001178555612f66565b82800160010185558215612f66579182015b82811115612f65578251825591602001919060010190612f4a565b5b509050612f739190612f77565b5090565b5b80821115612f90576000816000905550600101612f78565b5090565b6000612fa7612fa2846142e5565b6142c0565b90508083825260208201905082856020860282011115612fc657600080fd5b60005b85811015612ff65781612fdc88826131f5565b845260208401935060208301925050600181019050612fc9565b5050509392505050565b600061301361300e84614311565b6142c0565b90508281526020810184848401111561302b57600080fd5b613036848285614517565b509392505050565b600061305161304c84614342565b6142c0565b90508281526020810184848401111561306957600080fd5b613074848285614517565b509392505050565b600061308f61308a84614342565b6142c0565b9050828152602081018484840111156130a757600080fd5b6130b2848285614526565b509392505050565b6000813590506130c981614d9c565b92915050565b6000815190506130de81614d9c565b92915050565b600082601f8301126130f557600080fd5b8135613105848260208601612f94565b91505092915050565b60008135905061311d81614db3565b92915050565b60008151905061313281614db3565b92915050565b60008135905061314781614dca565b92915050565b60008135905061315c81614de1565b92915050565b60008151905061317181614de1565b92915050565b600082601f83011261318857600080fd5b8135613198848260208601613000565b91505092915050565b600082601f8301126131b257600080fd5b81356131c284826020860161303e565b91505092915050565b600082601f8301126131dc57600080fd5b81516131ec84826020860161307c565b91505092915050565b60008135905061320481614df8565b92915050565b60008151905061321981614df8565b92915050565b60006020828403121561323157600080fd5b600061323f848285016130ba565b91505092915050565b60006020828403121561325a57600080fd5b6000613268848285016130cf565b91505092915050565b6000806040838503121561328457600080fd5b6000613292858286016130ba565b92505060206132a3858286016130ba565b9150509250929050565b6000806000606084860312156132c257600080fd5b60006132d0868287016130ba565b93505060206132e1868287016130ba565b92505060406132f2868287016131f5565b9150509250925092565b6000806000806080858703121561331257600080fd5b6000613320878288016130ba565b9450506020613331878288016130ba565b9350506040613342878288016131f5565b925050606085013567ffffffffffffffff81111561335f57600080fd5b61336b87828801613177565b91505092959194509250565b6000806040838503121561338a57600080fd5b6000613398858286016130ba565b92505060206133a98582860161310e565b9150509250929050565b600080604083850312156133c657600080fd5b60006133d4858286016130ba565b92505060206133e5858286016131f5565b9150509250929050565b60006020828403121561340157600080fd5b600082013567ffffffffffffffff81111561341b57600080fd5b613427848285016130e4565b91505092915050565b60006020828403121561344257600080fd5b600061345084828501613123565b91505092915050565b60006020828403121561346b57600080fd5b600061347984828501613138565b91505092915050565b6000806040838503121561349557600080fd5b60006134a385828601613138565b92505060206134b4858286016131f5565b9150509250929050565b6000602082840312156134d057600080fd5b60006134de8482850161314d565b91505092915050565b6000602082840312156134f957600080fd5b600061350784828501613162565b91505092915050565b60006020828403121561352257600080fd5b600082013567ffffffffffffffff81111561353c57600080fd5b613548848285016131a1565b91505092915050565b60006020828403121561356357600080fd5b600082015167ffffffffffffffff81111561357d57600080fd5b613589848285016131cb565b91505092915050565b6000602082840312156135a457600080fd5b60006135b2848285016131f5565b91505092915050565b6000602082840312156135cd57600080fd5b60006135db8482850161320a565b91505092915050565b6000806000606084860312156135f957600080fd5b6000613607868287016131f5565b935050602084013567ffffffffffffffff81111561362457600080fd5b613630868287016131a1565b9250506040613641868287016131f5565b9150509250925092565b6136548161448c565b82525050565b6136638161449e565b82525050565b613672816144aa565b82525050565b613689613684826144aa565b614605565b82525050565b600061369a82614388565b6136a4818561439e565b93506136b4818560208601614526565b6136bd816146a6565b840191505092915050565b60006136d382614393565b6136dd81856143af565b93506136ed818560208601614526565b6136f6816146a6565b840191505092915050565b600061370c82614393565b61371681856143c0565b9350613726818560208601614526565b80840191505092915050565b6000815461373f81614559565b61374981866143af565b945060018216600081146137645760018114613776576137a9565b60ff19831686526020860193506137a9565b61377f85614373565b60005b838110156137a157815481890152600182019150602081019050613782565b808801955050505b50505092915050565b600081546137bf81614559565b6137c981866143c0565b945060018216600081146137e457600181146137f557613828565b60ff19831686528186019350613828565b6137fe85614373565b60005b8381101561382057815481890152600182019150602081019050613801565b838801955050505b50505092915050565b600061383e601f836143af565b9150613849826146b7565b602082019050919050565b60006138616012836143af565b915061386c826146e0565b602082019050919050565b6000613884601e836143af565b915061388f82614709565b602082019050919050565b60006138a7601c836143af565b91506138b282614732565b602082019050919050565b60006138ca6010836143af565b91506138d58261475b565b602082019050919050565b60006138ed6016836143af565b91506138f882614784565b602082019050919050565b60006139106032836143af565b915061391b826147ad565b604082019050919050565b60006139336026836143af565b915061393e826147fc565b604082019050919050565b6000613956601c836143af565b91506139618261484b565b602082019050919050565b60006139796024836143af565b915061398482614874565b604082019050919050565b600061399c6024836143af565b91506139a7826148c3565b604082019050919050565b60006139bf6019836143af565b91506139ca82614912565b602082019050919050565b60006139e2602b836143af565b91506139ed8261493b565b604082019050919050565b6000613a05602c836143af565b9150613a108261498a565b604082019050919050565b6000613a286007836143c0565b9150613a33826149d9565b600782019050919050565b6000613a4b6038836143af565b9150613a5682614a02565b604082019050919050565b6000613a6e602a836143af565b9150613a7982614a51565b604082019050919050565b6000613a916029836143af565b9150613a9c82614aa0565b604082019050919050565b6000613ab46020836143af565b9150613abf82614aef565b602082019050919050565b6000613ad7602c836143af565b9150613ae282614b18565b604082019050919050565b6000613afa6012836143af565b9150613b0582614b67565b602082019050919050565b6000613b1d6020836143af565b9150613b2882614b90565b602082019050919050565b6000613b406029836143af565b9150613b4b82614bb9565b604082019050919050565b6000613b63601f836143af565b9150613b6e82614c08565b602082019050919050565b6000613b866021836143af565b9150613b9182614c31565b604082019050919050565b6000613ba9601e836143af565b9150613bb482614c80565b602082019050919050565b6000613bcc6000836143c0565b9150613bd782614ca9565b600082019050919050565b6000613bef6031836143af565b9150613bfa82614cac565b604082019050919050565b6000613c126017836143af565b9150613c1d82614cfb565b602082019050919050565b6000613c356030836143af565b9150613c4082614d24565b604082019050919050565b6000613c586001836143c0565b9150613c6382614d73565b600182019050919050565b613c7781614500565b82525050565b613c8e613c8982614500565b61460f565b82525050565b6000613ca08285613678565b602082019150613cb08284613c7d565b6020820191508190509392505050565b6000613ccc8284613701565b915081905092915050565b6000613ce382846137b2565b915081905092915050565b6000613cf982613a1b565b9150613d058284613701565b9150613d1082613c4b565b915081905092915050565b6000613d2682613bbf565b9150819050919050565b6000602082019050613d45600083018461364b565b92915050565b6000606082019050613d60600083018661364b565b613d6d602083018561364b565b613d7a6040830184613c6e565b949350505050565b6000608082019050613d97600083018761364b565b613da4602083018661364b565b613db16040830185613c6e565b8181036060830152613dc3818461368f565b905095945050505050565b6000606082019050613de3600083018661364b565b613df06020830185613c6e565b8181036040830152613e02818461368f565b9050949350505050565b6000602082019050613e21600083018461365a565b92915050565b6000602082019050613e3c6000830184613669565b92915050565b6000604082019050613e576000830185613669565b613e646020830184613c6e565b9392505050565b6000608082019050613e806000830187613669565b613e8d6020830186613c6e565b613e9a604083018561364b565b613ea76060830184613c6e565b95945050505050565b60006020820190508181036000830152613eca81846136c8565b905092915050565b60006020820190508181036000830152613eeb81613831565b9050919050565b60006020820190508181036000830152613f0b81613854565b9050919050565b60006020820190508181036000830152613f2b81613877565b9050919050565b60006020820190508181036000830152613f4b8161389a565b9050919050565b60006020820190508181036000830152613f6b816138bd565b9050919050565b60006020820190508181036000830152613f8b816138e0565b9050919050565b60006020820190508181036000830152613fab81613903565b9050919050565b60006020820190508181036000830152613fcb81613926565b9050919050565b60006020820190508181036000830152613feb81613949565b9050919050565b6000602082019050818103600083015261400b8161396c565b9050919050565b6000602082019050818103600083015261402b8161398f565b9050919050565b6000602082019050818103600083015261404b816139b2565b9050919050565b6000602082019050818103600083015261406b816139d5565b9050919050565b6000602082019050818103600083015261408b816139f8565b9050919050565b600060208201905081810360008301526140ab81613a3e565b9050919050565b600060208201905081810360008301526140cb81613a61565b9050919050565b600060208201905081810360008301526140eb81613a84565b9050919050565b6000602082019050818103600083015261410b81613aa7565b9050919050565b6000602082019050818103600083015261412b81613aca565b9050919050565b6000602082019050818103600083015261414b81613aed565b9050919050565b6000602082019050818103600083015261416b81613b10565b9050919050565b6000602082019050818103600083015261418b81613b33565b9050919050565b600060208201905081810360008301526141ab81613b56565b9050919050565b600060208201905081810360008301526141cb81613b79565b9050919050565b600060208201905081810360008301526141eb81613b9c565b9050919050565b6000602082019050818103600083015261420b81613be2565b9050919050565b6000602082019050818103600083015261422b81613c05565b9050919050565b6000602082019050818103600083015261424b81613c28565b9050919050565b60006020820190506142676000830184613c6e565b92915050565b60006080820190506142826000830187613c6e565b81810360208301526142948186613732565b90506142a36040830185613c6e565b81810360608301526142b58184613732565b905095945050505050565b60006142ca6142db565b90506142d6828261458b565b919050565b6000604051905090565b600067ffffffffffffffff821115614300576142ff614677565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561432c5761432b614677565b5b614335826146a6565b9050602081019050919050565b600067ffffffffffffffff82111561435d5761435c614677565b5b614366826146a6565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006143d682614500565b91506143e183614500565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561441657614415614619565b5b828201905092915050565b600061442c8261450a565b91506144378361450a565b92508260ff0382111561444d5761444c614619565b5b828201905092915050565b600061446382614500565b915061446e83614500565b92508282101561448157614480614619565b5b828203905092915050565b6000614497826144e0565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614544578082015181840152602081019050614529565b83811115614553576000848401525b50505050565b6000600282049050600182168061457157607f821691505b6020821081141561458557614584614648565b5b50919050565b614594826146a6565b810181811067ffffffffffffffff821117156145b3576145b2614677565b5b80604052505050565b60006145c782614500565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156145fa576145f9614619565b5b600182019050919050565b6000819050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f72616e646f6d536565642068617320616c7265616479206265656e2073657400600082015250565b7f4e616d6520616c72656164792074616b656e0000000000000000000000000000600082015250565b7f4e6f7420696e20706f737420636c61696d696e67207068617365207965740000600082015250565b7f59616368742068617320616c7265616479206265656e206e616d656400000000600082015250565b7f57726f6e67207265717565737420496400000000000000000000000000000000600082015250565b7f596f7520646f206e6f74206f776e206120796163687400000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f436f6e74726163742066726f7a656e2c206e6f206368616e67657320706f737360008201527f69626c6500000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060008201527f7769746820666175636574000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f436c61696d696e672068617320656e6465640000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f596163687420686173206265656e20636c61696d656420616c72656164790000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f436c61696d696e67206861736e27742073746172746564000000000000000000600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b614da58161448c565b8114614db057600080fd5b50565b614dbc8161449e565b8114614dc757600080fd5b50565b614dd3816144aa565b8114614dde57600080fd5b50565b614dea816144b4565b8114614df557600080fd5b50565b614e0181614500565b8114614e0c57600080fd5b5056fea26469706673582212201ae529f9fce4d761025a33499a48c22dda3feeeba651c10db5d49780122f052a64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000061c4c730000000000000000000000000488ede56863d9730f8d9781b30818b6b0e262ec900000000000000000000000024d0cbd0d5d7b50212251c5dc7cb810e7af71f6a000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000
-----Decoded View---------------
Arg [0] : _mintStartTS (uint256): 1640286000
Arg [1] : _nftDescriptorAddress (address): 0x488eDE56863D9730F8D9781b30818b6B0E262ec9
Arg [2] : _ahyAddress (address): 0x24d0cbD0D5D7b50212251c5dc7cb810E7aF71F6a
Arg [3] : _linkAddress (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [4] : _vrfCoordinatorAddress (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [5] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [6] : _chainLinkFee (uint256): 2000000000000000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000061c4c730
Arg [1] : 000000000000000000000000488ede56863d9730f8d9781b30818b6b0e262ec9
Arg [2] : 00000000000000000000000024d0cbd0d5d7b50212251c5dc7cb810e7af71f6a
Arg [3] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [4] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [5] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [6] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.