Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15223076 | 765 days ago | IN | 0 ETH | 0.05599174 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PackWoodERC721V1
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
petersburg EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.12; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/cryptography/SignatureCheckerUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "./PackWoodERC721StorageV1.sol"; /** * @dev Implementation of the {PackWoodERC721V2}. * */ contract PackWoodERC721V1 is ERC721URIStorageUpgradeable, OwnableUpgradeable, PackWoodERC721StorageV1 { using StringsUpgradeable for uint256; // constructor initialisation section function initialize() public initializer { __ERC721_init("Packwoods Bud", "PWBUD"); // Packwoods Bud (PWBUD) __Ownable_init(); tokenCounter = 1; _before = "https://liveassets.monsterbuds.io/Packwood-monster-uri/PACKWOOD"; _after = "-token-uri.json"; feeMargin = 10; pfpValue = 8000000000000000; breedValue = 8000000000000000; buyONorOFFstatus = true; selfBreedStatus = true; ERC1155Parent = IPackWoodERC1155( 0xadc5f935D9aFB186d4EF210B0F537Ddb0D6C524C ); MonsterParent = IERC721(0x6317C4CAB501655D7B85128A5868E98a094C0082); feeSKTWallet = payable(0x4E9dF54Ba3dB24a2647DB43Ca608E4486C93703A); // SKT fee wallet SmartContractCommunity = payable( 0x7f62Db798f29a6B074fE6b1B5027d883831cf1D7 ); // community wallet } // modifiers modifier onlyGenOne(uint256 tokenId) { require( (tokenId >= 866 && tokenId <= 10420) || checkToken[tokenId], "$MONSTERBUDS: Only generation 1 monsterbuds can process" ); _; } modifier onlyAllowed() { if (!publicAccess) { require(allowedAddress[msg.sender], "$MONSTERBUDS: Not allowed"); } _; } // functions /** * @dev view wheather token is from generation one or not * * @param tokenId token id. * * Returns: * - boolean */ function checkTokenId(uint256 tokenId) external view returns(bool) { if((tokenId >= 866 && tokenId <= 10420) || checkToken[tokenId]){ return true; } else{ return false; } } /** * @dev adds to generation one token list. * * @param _data array of token id. * * Requirements: * - only owner can update value. */ function updateGenerationOneTokens(uint256[] calldata _data) external virtual onlyOwner { for (uint256 i = 0; i < _data.length; i++) { checkToken[_data[i]] = true; } } /** * @dev updates access of all function details. * * @param _address array of address * @param _status allowed address status * @param _public_access_status public access status to all function * * Requirements: * - only owner can update value. */ function updateAllowedAddress( address[] calldata _address, bool _status, bool _public_access_status ) external virtual onlyOwner { for (uint256 i = 0; i < _address.length; i++) { allowedAddress[_address[i]] = _status; } publicAccess = _public_access_status; } /** * @dev concate the URI string for respective token ID. * * @param before_ before part of token URI * @param _token_id token id * @param after_ after part of token URI * * Requirements: * - only owner can update value. */ function uriConcate( string memory before_, uint256 _token_id, string memory after_ ) private pure returns (string memory) { string memory token_uri = string( abi.encodePacked(before_, _token_id.toString(), after_) ); return token_uri; } /** * @dev calculates the fee * * @param _totalPrice total price * */ function feeCalulation(uint256 _totalPrice) private view returns (uint256) { uint256 fee = feeMargin * _totalPrice; uint256 fees = fee / 1000; return fees; } /** * @dev update the fee margin. * * @param nextMargin fee margin percent * * Requirements: * - only owner can update value. */ function updateFeeMargin(uint256 nextMargin) external onlyOwner returns (uint256) { feeMargin = nextMargin; // update fee percent return feeMargin; } /** * @dev updates the monster buds contract address * * @param _address contract address * * Requirements: * - only owner can update value. */ function updateMonsterAddress(address _address) external onlyOwner returns (bool) { MonsterParent = IERC721(_address); return true; } /** * @dev updated the purchase status * * @param _status status in boolean * * Requirements: * - only owner can update value. */ function updateBuyStatus(bool _status) external onlyOwner returns (bool) { buyONorOFFstatus = _status; return buyONorOFFstatus; } /** * @dev updates the ERC1155 contract address * * @param _parentAddress contract address * * Requirements: * - only owner can update value. */ function updateParentAddress(address _parentAddress) external onlyOwner returns (bool) { ERC1155Parent = IPackWoodERC1155(_parentAddress); return true; } /** * @dev updates the PFP ETH value * * @param _value PFP price * * Requirements: * - only owner can update value. */ function updatePfpValue(uint256 _value) external onlyOwner returns (bool) { pfpValue = _value; return true; } /** * @dev updates the token URI before and after part. * * @param before_ before part of token URI * @param after_ after part of token URI * * Requirements: * - only owner can update value. */ function setTokenUri(string memory before_, string memory after_) external onlyOwner returns (bool) { _before = before_; _after = after_; return true; } /** * @dev updates the breed ETH value * * @param _ethValue eth value * * Requirements: * - only owner can update value. */ function updateBreedValue(uint256 _ethValue) external onlyOwner returns (uint256) { breedValue = _ethValue; // update the eth value of breed value return breedValue; } /** * @dev updates the status for breed. * * @param _status status in boolean. * * Requirements: * - only owner can update value. */ function updateSelfBreedStatus(bool _status) external onlyOwner returns (bool) { selfBreedStatus = _status; return selfBreedStatus; } /** * @dev updates the smartcontract community wallet address * * @param nextOwner wallet address * * Requirements: * - only owner can update value. */ function updateSmartContractCommunity(address payable nextOwner) external onlyOwner returns (address) { require( nextOwner != address(0x00), "$MONSTERBUDS: cannot be zero address" ); SmartContractCommunity = nextOwner; // update the fee wallet for SKT return SmartContractCommunity; } /** * @dev updates the SKT fee wallet * * @param nextOwner wallet address * * Requirements: * - only owner can update value. */ function updateFeeSKTWallet(address payable nextOwner) external onlyOwner returns (address) { require( nextOwner != address(0x00), "$MONSTERBUDS: cannot be zero address" ); feeSKTWallet = nextOwner; // update the fee wallet for SKT return feeSKTWallet; } /** * @dev Game process for creating new child monster buds * * @param _monsterTokenId monsterbud contract token id(generation one) * @param _packwoodERC1155TokenId sereum token Id * * returns: * - token id. * * Emits a {createChild} event. */ function process(uint256 _monsterTokenId, uint256 _packwoodERC1155TokenId) external virtual onlyAllowed onlyGenOne(_monsterTokenId) returns (uint256) { require( MonsterParent.ownerOf(_monsterTokenId) == msg.sender, "PackwoodERC721: You are not owner of token" ); // create new ERC721 packwood token newItemId = tokenCounter; string memory _uri = uriConcate(_before, newItemId, _after); _safeMint(msg.sender, newItemId); // mint new seed _setTokenURI(newItemId, _uri); // set uri to new seed tokenCounter += 1; // storing breed Information For child breedInfomation storage new_data = breedInfo[newItemId]; new_data.tokenId = newItemId; new_data.breedCount = 0; new_data.timstamp = block.timestamp + 4 days; // burn the ERC1155 packwood token ERC1155Parent.burnToken(msg.sender, _packwoodERC1155TokenId); // emit event emit createChild(_monsterTokenId, _packwoodERC1155TokenId, newItemId); return newItemId; } /** * @dev self breed between token ids to create new child token * * @param breed breed structure order * @param signature signature * * returns: * - bool. * * Emits a {breedSelf} event. */ function selfBreedCollectiable( SelfBreed calldata breed, bytes calldata signature ) external payable virtual onlyAllowed returns (uint256) { bool status = SignatureCheckerUpgradeable.isValidSignatureNow( owner(), breed.signKey, signature ); require(status == true, "$PackwoodERC721: cannot breed[ERROR]"); require( breedValue == msg.value, "$PackwoodERC721: Amount is incorrect" ); // owners of token id address owner_req = (ownerOf(breed.req_token_id)); address owner_accept = (ownerOf(breed.accept_token_id)); // require(selfBreedStatus == true, "$PackwoodERC721: Breeding is closed"); require( owner_req == owner_accept && owner_req == msg.sender && breed.req_token_id != breed.accept_token_id, "$PackwoodERC721: Cannot Self Breed" ); require( breedInfo[breed.req_token_id].breedCount < 2 && breedInfo[breed.accept_token_id].breedCount < 2, "$PackwoodERC721: Exceeds max breed count" ); require( block.timestamp >= breedInfo[breed.req_token_id].timstamp && block.timestamp >= breedInfo[breed.accept_token_id].timstamp, "$PackwoodERC721: cannot breed now" ); // setting token URI newItemId = tokenCounter; string memory seed_token_uri = uriConcate(_before, newItemId, _after); _safeMint(msg.sender, newItemId); // mint new child seed _setTokenURI(newItemId, seed_token_uri); // set child uri uint256 countOfReq = breedInfo[breed.req_token_id].breedCount; uint256 countOfAccept = breedInfo[breed.accept_token_id].breedCount; // breedInfomation storage new_data = breedInfo[newItemId]; new_data.tokenId = newItemId; new_data.breedCount = 0; new_data.timstamp = block.timestamp + 4 days; tokenCounter = tokenCounter + 1; breedInfomation storage req_data = breedInfo[breed.req_token_id]; req_data.tokenId = breed.req_token_id; req_data.breedCount = countOfReq + 1; req_data.timstamp = block.timestamp + 1512000; breedInfomation storage accept_data = breedInfo[breed.accept_token_id]; accept_data.tokenId = breed.accept_token_id; accept_data.breedCount = countOfAccept + 1; accept_data.timstamp = block.timestamp + 1512000; payable(feeSKTWallet).transfer(msg.value); // send 0.008 to skt fee wallet emit breedSelf( msg.sender, breed.req_token_id, breed.accept_token_id, seed_token_uri, newItemId, msg.value ); return newItemId; } /** * @dev order check where the purchase has been handled. */ function orderCheck(Order memory order) private returns (bool) { address payable owner = payable(ownerOf(order.token_id)); bytes32 hashS = keccak256(abi.encodePacked(msg.sender)); bytes32 hashR = keccak256(abi.encodePacked(owner)); bytes32 hashT = keccak256(abi.encodePacked(order.price)); bytes32 hashV = keccak256(abi.encodePacked(order.token_id)); bytes32 hashP = keccak256(abi.encodePacked(order.expiryTimestamp)); bytes32 sign = keccak256( abi.encodePacked(hashV, hashP, hashT, hashR, hashS) ); require( order.expiryTimestamp >= block.timestamp, "MONSTERBUDS: expired time" ); require(sign == order.signKey, "$MONSTERBUDS: ERROR"); require(order.price == msg.value, "MONSTERBUDS: Price is incorrect"); uint256 feeAmount = feeCalulation(msg.value); payable(feeSKTWallet).transfer(feeAmount); // transfer 5% ethers of msg.value to skt fee wallet payable(SmartContractCommunity).transfer(feeAmount); // transfer 5% ethers of msg.value to commuinty uint256 remainAmount = msg.value - (feeAmount + feeAmount); payable(order.owner).transfer(remainAmount); // transfer remaining 90% ethers of msg.value to owner of token _transfer(order.owner, msg.sender, order.token_id); // transfer the ownership of token to buyer emit buyTransfer(order.owner, msg.sender, order.token_id, msg.value); return true; } /** * @dev purchase function to buy listed token * * @param order order structure * @param signature signature * * returns: * - bool * * Emits a {buyTransfer} event. */ function purchase(Order memory order, bytes memory signature) external payable virtual onlyAllowed returns (bool) { require( buyONorOFFstatus == true, "$MONSTERBUDS: Marketplace for buying is closed" ); orderCheck(order); bool status = SignatureCheckerUpgradeable.isValidSignatureNow( owner(), order.signature, signature ); require(status == true, "$MONSTERBUDS: cannot purchase the token"); return true; } /** * @dev upgrade the token to PFP version * * @param token_id token id * * returns: * - bool. * * Emits a {PfpDetails} event. */ function createPfpVersion(uint256 token_id) external payable virtual onlyAllowed returns (bool) { require(msg.value == pfpValue, "$MONSTERBUDS: Price is incorrect"); require( ownerOf(token_id) == msg.sender, "$MONSTERBUDS: You are not owner of token" ); payable(feeSKTWallet).transfer(msg.value); emit PfpDetails(msg.sender, token_id, msg.value); return true; } /** * @dev self breed between token ids to create new child token * * @param breed breed structure order * @param signature signature * * returns: * - token id. * * Emits a {monsterPackwoodSelfBreed} event. */ function selfBreedMonsterBuds( SelfBreed calldata breed, bytes calldata signature ) external payable virtual onlyAllowed returns (uint256) { bool status = SignatureCheckerUpgradeable.isValidSignatureNow( owner(), breed.signKey, signature ); require(status == true, "$PackwoodERC721: cannot breed[ERROR]"); require( breedValue == msg.value, "$PackwoodERC721: Amount is incorrect" ); address owner_req = (MonsterParent.ownerOf(breed.req_token_id)); address owner_accept = (ownerOf(breed.accept_token_id)); require(selfBreedStatus == true, "$PackwoodERC721: Breeding is closed"); require( owner_req == owner_accept && owner_req == msg.sender, "$PackwoodERC721: Cannot Self Breed" ); require( breedInfo[breed.accept_token_id].breedCount < 2, "$PackwoodERC721: Exceeds max breed count" ); require( block.timestamp >= breedInfo[breed.accept_token_id].timstamp, "$PackwoodERC721: cannot breed now" ); uint256 countOfAccept = breedInfo[breed.accept_token_id].breedCount; breedInfomation storage accept_data = breedInfo[breed.accept_token_id]; accept_data.tokenId = breed.accept_token_id; accept_data.breedCount = countOfAccept + 1; accept_data.timstamp = block.timestamp + 1512000; uint256 newItem = MonsterParent.breedUpdation( breed.req_token_id, msg.sender ); payable(feeSKTWallet).transfer(msg.value); // send 0.008 to skt fee wallet emit monsterPackwoodSelfBreed( msg.sender, breed.req_token_id, breed.accept_token_id, MonsterParent.tokenURI(newItem), newItem, msg.value ); return newItemId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev 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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC1271 standard signature validation method for * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271]. * * _Available since v4.1._ */ interface IERC1271Upgradeable { /** * @dev Should return whether the signature provided is valid for the provided data * @param hash Hash of the data to be signed * @param signature Signature byte array associated with _data */ function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || 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); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[44] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `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/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721Upgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorageUpgradeable is Initializable, ERC721Upgradeable { function __ERC721URIStorage_init() internal onlyInitializing { } function __ERC721URIStorage_init_unchained() internal onlyInitializing { } using StringsUpgradeable for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../StringsUpgradeable.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSAUpgradeable { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", StringsUpgradeable.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/SignatureChecker.sol) pragma solidity ^0.8.0; import "./ECDSAUpgradeable.sol"; import "../AddressUpgradeable.sol"; import "../../interfaces/IERC1271Upgradeable.sol"; /** * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like * Argent and Gnosis Safe. * * _Available since v4.1._ */ library SignatureCheckerUpgradeable { /** * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`. * * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus * change through time. It could return true at block N and false at block N+1 (or the opposite). */ function isValidSignatureNow( address signer, bytes32 hash, bytes memory signature ) internal view returns (bool) { (address recovered, ECDSAUpgradeable.RecoverError error) = ECDSAUpgradeable.tryRecover(hash, signature); if (error == ECDSAUpgradeable.RecoverError.NoError && recovered == signer) { return true; } (bool success, bytes memory result) = signer.staticcall( abi.encodeWithSelector(IERC1271Upgradeable.isValidSignature.selector, hash, signature) ); return (success && result.length == 32 && abi.decode(result, (bytes4)) == IERC1271Upgradeable.isValidSignature.selector); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); /** * @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; /** @dev updates the breed information on monsterbud contract */ function breedUpdation(uint256 monsterbudId, address reciever) external returns(uint256); /** @dev structure for breed information */ struct breedInfomation{ uint256 tokenId; uint breedCount; uint256 timstamp; } /** @dev view the breeding information. */ function breedingInfo(uint256 tokenId) external view returns(breedInfomation memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IPackWoodERC1155 { event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); event ApprovalForAll(address indexed account, address indexed operator, bool approved); event URI(string value, uint256 indexed id); function balanceOf(address account, uint256 id) external view returns (uint256); function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); function setApprovalForAll(address operator, bool approved) external; function isApprovedForAll(address account, address operator) external view returns (bool); function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; function mintToken() external returns(uint256); function burnToken(address _account, uint256 _tokenId) external returns(bool); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.12; import "./IERC721.sol"; import "./IPackWoodERC1155V1.sol"; abstract contract PackWoodERC721StorageV1 { // token count uint256 public tokenCounter; // token URI string internal _before; string internal _after; // ERC 1155 sereum contract address IPackWoodERC1155 public ERC1155Parent; // ERC721 monster bud contract address IERC721 public MonsterParent; // child monster breed Information struct breedInfomation { uint256 tokenId; uint256 breedCount; uint256 timstamp; } // mapping of token id with breed structure mapping(uint256 => breedInfomation) public breedInfo; // self breed order structure struct SelfBreed { uint256 req_token_id; uint256 accept_token_id; bytes32 signKey; } // SKT fee wallet address payable feeSKTWallet; //new item id uint256 internal newItemId; // breed status bool public selfBreedStatus; // breed value in ETH uint256 public breedValue; // ORDER structure struct Order { address buyer; address owner; uint256 token_id; string tokenUri; uint256 expiryTimestamp; uint256 price; bytes32 signKey; bytes32 signature; } // fee margin percent uint256 feeMargin; // purchase status bool buyONorOFFstatus; // community wallet address address SmartContractCommunity; // pfp value uint256 pfpValue; // check whether from generation one or not mapping(uint256 => bool) internal checkToken; // allowed address mapping(address => bool) public allowedAddress; // all function access to public bool public publicAccess; /** * @dev Emitted when new token is breed from same owners. */ event breedSelf( address indexed selfAddress, // msg.sender address uint256 motherTokenId, uint256 donorTokenId, string tokenURI, // child seed uri uint256 newTokenId, // new minted child id uint256 sktFeePrice // fee to skt wallet ); /** * @dev Emitted when new token is created. */ event createChild( uint256 _monsterTokenId, uint256 _packwoodTokenId, uint256 childTokenId ); /** * @dev Emitted when new token is purchased. */ event buyTransfer( address indexed sellerAddress, // sender address address indexed buyerAddress, // buyer address uint256 indexed tokenId, // purchase token id uint256 price // price of token id ); /** * @dev Emitted when pfp is added. */ event PfpDetails(address tokenOwner, uint256 tokenId, uint256 price); /** * @dev Emitted when new token is breed from same owners. */ event monsterPackwoodSelfBreed( address indexed selfAddress, // msg.sender address uint256 motherTokenId, uint256 donorTokenId, string tokenURI, // child seed uri uint256 newTokenId, // new minted child id uint256 sktFeePrice // fee to skt wallet ); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "petersburg", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"PfpDetails","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"selfAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"motherTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"donorTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"uint256","name":"newTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sktFeePrice","type":"uint256"}],"name":"breedSelf","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sellerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"buyerAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"buyTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_monsterTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_packwoodTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"childTokenId","type":"uint256"}],"name":"createChild","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"selfAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"motherTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"donorTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"uint256","name":"newTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sktFeePrice","type":"uint256"}],"name":"monsterPackwoodSelfBreed","type":"event"},{"inputs":[],"name":"ERC1155Parent","outputs":[{"internalType":"contract IPackWoodERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MonsterParent","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"breedInfo","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"breedCount","type":"uint256"},{"internalType":"uint256","name":"timstamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"breedValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token_id","type":"uint256"}],"name":"createPfpVersion","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_monsterTokenId","type":"uint256"},{"internalType":"uint256","name":"_packwoodERC1155TokenId","type":"uint256"}],"name":"process","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicAccess","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"buyer","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"token_id","type":"uint256"},{"internalType":"string","name":"tokenUri","type":"string"},{"internalType":"uint256","name":"expiryTimestamp","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bytes32","name":"signKey","type":"bytes32"},{"internalType":"bytes32","name":"signature","type":"bytes32"}],"internalType":"struct PackWoodERC721StorageV1.Order","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"purchase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[{"components":[{"internalType":"uint256","name":"req_token_id","type":"uint256"},{"internalType":"uint256","name":"accept_token_id","type":"uint256"},{"internalType":"bytes32","name":"signKey","type":"bytes32"}],"internalType":"struct PackWoodERC721StorageV1.SelfBreed","name":"breed","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"selfBreedCollectiable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"req_token_id","type":"uint256"},{"internalType":"uint256","name":"accept_token_id","type":"uint256"},{"internalType":"bytes32","name":"signKey","type":"bytes32"}],"internalType":"struct PackWoodERC721StorageV1.SelfBreed","name":"breed","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"selfBreedMonsterBuds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"selfBreedStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"before_","type":"string"},{"internalType":"string","name":"after_","type":"string"}],"name":"setTokenUri","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_address","type":"address[]"},{"internalType":"bool","name":"_status","type":"bool"},{"internalType":"bool","name":"_public_access_status","type":"bool"}],"name":"updateAllowedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethValue","type":"uint256"}],"name":"updateBreedValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateBuyStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nextMargin","type":"uint256"}],"name":"updateFeeMargin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"nextOwner","type":"address"}],"name":"updateFeeSKTWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_data","type":"uint256[]"}],"name":"updateGenerationOneTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"updateMonsterAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_parentAddress","type":"address"}],"name":"updateParentAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"updatePfpValue","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateSelfBreedStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"nextOwner","type":"address"}],"name":"updateSmartContractCommunity","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50614290806100206000396000f3fe60806040526004361061025c5760003560e01c80636f790d2c11610144578063b88d4fde116100b6578063e5ca7c891161007a578063e5ca7c891461072f578063e985e9c514610742578063f2fde38b1461078b578063f4b22a60146107ab578063fa63dd3d146107be578063fd55e73c146107de57600080fd5b8063b88d4fde1461069e578063bb71561d146106be578063c87b56dd146106de578063ce008e6d146106fe578063d082e3811461071957600080fd5b806390b94a011161010857806390b94a01146105c7578063922c0439146105de578063940157b31461063657806395d89b41146106495780639c4f1d7b1461065e578063a22cb4651461067e57600080fd5b80636f790d2c1461053f57806370a082311461055f578063715018a61461057f5780638129fc1c146105945780638da5cb5b146105a957600080fd5b806323b872dd116101dd57806340908298116101a1578063409082981461046e57806342842e0e1461049f5780634881c72f146104bf5780634b2774c7146104df5780636352211e146104ff5780636d9471761461051f57600080fd5b806323b872dd146103c05780632d080ec5146103e057806333bd33021461040057806338e1294c146104205780633f5916561461044057600080fd5b8063081812fc11610224578063081812fc1461032d578063095a9c4f1461034d578063095ea7b31461036d5780630e230ff41461038d578063186338ed146103ad57600080fd5b806301ffc9a714610261578063023f01951461029657806306b8ff2c146102ce57806306fdde03146102f057806307560ae614610312575b600080fd5b34801561026d57600080fd5b5061028161027c3660046138a9565b6107fe565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b5060fe546102b6906001600160a01b031681565b6040516001600160a01b03909116815260200161028d565b3480156102da57600080fd5b506102ee6102e936600461382d565b610850565b005b3480156102fc57600080fd5b506103056108eb565b60405161028d9190613c7f565b34801561031e57600080fd5b5061010a546102819060ff1681565b34801561033957600080fd5b506102b6610348366004613b1b565b61097d565b34801561035957600080fd5b5060ff546102b6906001600160a01b031681565b34801561037957600080fd5b506102ee610388366004613799565b610a05565b34801561039957600080fd5b506102b66103a836600461364b565b610b16565b6102816103bb3660046139be565b610b8f565b3480156103cc57600080fd5b506102ee6103db3660046136be565b610cd6565b3480156103ec57600080fd5b506102816103fb36600461364b565b610d07565b34801561040c57600080fd5b5061028161041b36600461364b565b610d59565b34801561042c57600080fd5b5061028161043b36600461386f565b610dab565b34801561044c57600080fd5b5061046061045b366004613b4d565b610df0565b60405190815260200161028d565b34801561047a57600080fd5b5061028161048936600461364b565b6101096020526000908152604090205460ff1681565b3480156104ab57600080fd5b506102ee6104ba3660046136be565b611219565b3480156104cb57600080fd5b506104606104da366004613b1b565b611234565b3480156104eb57600080fd5b506102ee6104fa3660046137c5565b61126b565b34801561050b57600080fd5b506102b661051a366004613b1b565b61131f565b34801561052b57600080fd5b5061046061053a366004613b1b565b611396565b34801561054b57600080fd5b5061028161055a366004613b1b565b6113cd565b34801561056b57600080fd5b5061046061057a36600461364b565b611412565b34801561058b57600080fd5b506102ee611499565b3480156105a057600080fd5b506102ee6114cf565b3480156105b557600080fd5b5060c9546001600160a01b03166102b6565b3480156105d357600080fd5b506104606101045481565b3480156105ea57600080fd5b5061061b6105f9366004613b1b565b6101006020526000908152604090208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161028d565b610460610644366004613a90565b6116fc565b34801561065557600080fd5b50610305611b27565b34801561066a57600080fd5b506102b661067936600461364b565b611b36565b34801561068a57600080fd5b506102ee61069936600461376b565b611bb8565b3480156106aa57600080fd5b506102ee6106b93660046136ff565b611bc7565b3480156106ca57600080fd5b506102816106d936600461386f565b611bff565b3480156106ea57600080fd5b506103056106f9366004613b1b565b611c44565b34801561070a57600080fd5b50610103546102819060ff1681565b34801561072557600080fd5b5061046060fb5481565b61046061073d366004613a90565b611dbb565b34801561074e57600080fd5b5061028161075d366004613685565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561079757600080fd5b506102ee6107a636600461364b565b612153565b6102816107b9366004613b1b565b6121eb565b3480156107ca57600080fd5b506102816107d9366004613b1b565b61236e565b3480156107ea57600080fd5b506102816107f936600461395a565b6123a5565b60006001600160e01b031982166380ac58cd60e01b148061082f57506001600160e01b03198216635b5e139f60e01b145b8061084a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60c9546001600160a01b031633146108835760405162461bcd60e51b815260040161087a90613de7565b60405180910390fd5b60005b818110156108e657600161010860008585858181106108a7576108a76141b6565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806108de90614145565b915050610886565b505050565b6060606580546108fa9061410a565b80601f01602080910402602001604051908101604052809291908181526020018280546109269061410a565b80156109735780601f1061094857610100808354040283529160200191610973565b820191906000526020600020905b81548152906001019060200180831161095657829003601f168201915b5050505050905090565b6000610988826123f9565b6109e95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161087a565b506000908152606960205260409020546001600160a01b031690565b6000610a108261131f565b9050806001600160a01b0316836001600160a01b03161415610a7e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161087a565b336001600160a01b0382161480610a9a5750610a9a813361075d565b610b0c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161087a565b6108e68383612416565b60c9546000906001600160a01b03163314610b435760405162461bcd60e51b815260040161087a90613de7565b6001600160a01b038216610b695760405162461bcd60e51b815260040161087a90613efc565b5061010180546001600160a01b0319166001600160a01b0383169081179091555b919050565b61010a5460009060ff16610bcd57336000908152610109602052604090205460ff16610bcd5760405162461bcd60e51b815260040161087a90613d6d565b6101065460ff161515600114610c3c5760405162461bcd60e51b815260206004820152602e60248201527f244d4f4e53544552425544533a204d61726b6574706c61636520666f7220627560448201526d1e5a5b99c81a5cc818db1bdcd95960921b606482015260840161087a565b610c4583612484565b506000610c68610c5d60c9546001600160a01b031690565b8560e001518561282d565b9050600181151514610ccc5760405162461bcd60e51b815260206004820152602760248201527f244d4f4e53544552425544533a2063616e6e6f7420707572636861736520746860448201526632903a37b5b2b760c91b606482015260840161087a565b5060019392505050565b610ce03382612979565b610cfc5760405162461bcd60e51b815260040161087a90613e60565b6108e6838383612a5f565b60c9546000906001600160a01b03163314610d345760405162461bcd60e51b815260040161087a90613de7565b5060fe80546001600160a01b0383166001600160a01b03199091161790556001919050565b60c9546000906001600160a01b03163314610d865760405162461bcd60e51b815260040161087a90613de7565b5060ff80546001600160a01b0383166001600160a01b03199091161790556001919050565b60c9546000906001600160a01b03163314610dd85760405162461bcd60e51b815260040161087a90613de7565b50610106805460ff1916911515918217905560ff1690565b61010a5460009060ff16610e2e57336000908152610109602052604090205460ff16610e2e5760405162461bcd60e51b815260040161087a90613d6d565b826103628110158015610e4357506128b48111155b80610e5d57506000818152610108602052604090205460ff165b610ecf5760405162461bcd60e51b815260206004820152603760248201527f244d4f4e53544552425544533a204f6e6c792067656e65726174696f6e20312060448201527f6d6f6e73746572627564732063616e2070726f63657373000000000000000000606482015260840161087a565b60ff546040516331a9108f60e11b81526004810186905233916001600160a01b031690636352211e9060240160206040518083038186803b158015610f1357600080fd5b505afa158015610f27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4b9190613668565b6001600160a01b031614610fb45760405162461bcd60e51b815260206004820152602a60248201527f5061636b776f6f644552433732313a20596f7520617265206e6f74206f776e65604482015269391037b3103a37b5b2b760b11b606482015260840161087a565b60fb546101025560fc80546000916110e191610fcf9061410a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ffb9061410a565b80156110485780601f1061101d57610100808354040283529160200191611048565b820191906000526020600020905b81548152906001019060200180831161102b57829003601f168201915b50505050506101025460fd805461105e9061410a565b80601f016020809104026020016040519081016040528092919081815260200182805461108a9061410a565b80156110d75780601f106110ac576101008083540402835291602001916110d7565b820191906000526020600020905b8154815290600101906020018083116110ba57829003601f168201915b5050505050612bfb565b90506110f03361010254612c35565b6110fd6101025482612c4f565b600160fb6000828254611110919061407c565b909155505061010254600081815261010060205260408120918255600182015561113d426205460061407c565b600282015560fe54604051633477cc1b60e21b8152336004820152602481018790526001600160a01b039091169063d1df306c90604401602060405180830381600087803b15801561118e57600080fd5b505af11580156111a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c6919061388c565b5061010254604080518881526020810188905280820192909252517f935f21438b2c5262d082e309aa09d58f0729f411f1548b8b1404ab4d1d174c1f9181900360600190a1505061010254949350505050565b6108e683838360405180602001604052806000815250611bc7565b60c9546000906001600160a01b031633146112615760405162461bcd60e51b815260040161087a90613de7565b5061010481905590565b60c9546001600160a01b031633146112955760405162461bcd60e51b815260040161087a90613de7565b60005b83811015611307578261010960008787858181106112b8576112b86141b6565b90506020020160208101906112cd919061364b565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806112ff81614145565b915050611298565b5061010a805460ff1916911515919091179055505050565b6000818152606760205260408120546001600160a01b03168061084a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161087a565b60c9546000906001600160a01b031633146113c35760405162461bcd60e51b815260040161087a90613de7565b5061010581905590565b600061036282101580156113e357506128b48211155b806113fd57506000828152610108602052604090205460ff165b1561140a57506001919050565b506000919050565b60006001600160a01b03821661147d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161087a565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b031633146114c35760405162461bcd60e51b815260040161087a90613de7565b6114cd6000612cda565b565b600054610100900460ff166114ea5760005460ff16156114ee565b303b155b6115515760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161087a565b600054610100900460ff16158015611573576000805461ffff19166101011790555b6115bf6040518060400160405280600d81526020016c141858dadddbdbd91cc8109d59609a1b815250604051806040016040528060058152602001641415d0955160da1b815250612d2c565b6115c7612d5d565b600160fb556040805160608101909152603f80825261421c602083013980516115f89160fc9160209091019061350c565b5060408051808201909152600f8082526e16ba37b5b2b716bab934973539b7b760891b602090920191825261162f9160fd9161350c565b50600a61010555661c6bf526340000610107819055610104556101068054610103805460ff1916600117905560fe80546001600160a01b031990811673adc5f935d9afb186d4ef210b0f537ddb0d6c524c1790915560ff80548216736317c4cab501655d7b85128a5868e98a094c00821790556101018054909116734e9df54ba3db24a2647db43ca608e4486c93703a179055747f62db798f29a6b074fe6b1b5027d883831cf1d7016001600160a81b031990911617905580156116f9576000805461ff00191690555b50565b61010a5460009060ff1661173a57336000908152610109602052604090205460ff1661173a5760405162461bcd60e51b815260040161087a90613d6d565b600061179261175160c9546001600160a01b031690565b866040013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061282d92505050565b90506001811515146117b65760405162461bcd60e51b815260040161087a90613f40565b3461010454146117d85760405162461bcd60e51b815260040161087a90613e1c565b60ff546040516331a9108f60e11b8152863560048201526000916001600160a01b031690636352211e9060240160206040518083038186803b15801561181d57600080fd5b505afa158015611831573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118559190613668565b90506000611866876020013561131f565b6101035490915060ff1615156001146118915760405162461bcd60e51b815260040161087a90613da4565b806001600160a01b0316826001600160a01b03161480156118ba57506001600160a01b03821633145b6118d65760405162461bcd60e51b815260040161087a90613f84565b600261010060008960200135815260200190815260200160002060010154106119115760405162461bcd60e51b815260040161087a90613d25565b602080880135600090815261010090915260409020600201544210156119495760405162461bcd60e51b815260040161087a90613c92565b6020808801356000818152610100909252604090912060018082015492825561197390839061407c565b6001820155611985426217124061407c565b600282015560ff546040516315480c5560e01b81528a3560048201523360248201526000916001600160a01b0316906315480c5590604401602060405180830381600087803b1580156119d757600080fd5b505af11580156119eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0f9190613b34565b610101546040519192506001600160a01b0316903480156108fc02916000818181858888f19350505050158015611a4a573d6000803e3d6000fd5b5060ff5460405163c87b56dd60e01b81526004810183905233917ff862b2d898273a61a496a0e026e2f908bbc3fa8d484f75cd58a66a788382a619918d359160208f0135916001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611abc57600080fd5b505afa158015611ad0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611af891908101906138e3565b8534604051611b0b959493929190613fc6565b60405180910390a26101025496505050505050505b9392505050565b6060606680546108fa9061410a565b60c9546000906001600160a01b03163314611b635760405162461bcd60e51b815260040161087a90613de7565b6001600160a01b038216611b895760405162461bcd60e51b815260040161087a90613efc565b506101068054610100600160a81b0319166101006001600160a01b039384168102919091179182905590041690565b611bc3338383612d8c565b5050565b611bd13383612979565b611bed5760405162461bcd60e51b815260040161087a90613e60565b611bf984848484612e5b565b50505050565b60c9546000906001600160a01b03163314611c2c5760405162461bcd60e51b815260040161087a90613de7565b50610103805460ff1916911515918217905560ff1690565b6060611c4f826123f9565b611cb55760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161087a565b60008281526097602052604081208054611cce9061410a565b80601f0160208091040260200160405190810160405280929190818152602001828054611cfa9061410a565b8015611d475780601f10611d1c57610100808354040283529160200191611d47565b820191906000526020600020905b815481529060010190602001808311611d2a57829003601f168201915b505050505090506000611d6560408051602081019091526000815290565b9050805160001415611d78575092915050565b815115611daa578082604051602001611d92929190613bb7565b60405160208183030381529060405292505050919050565b611db384612e8e565b949350505050565b61010a5460009060ff16611df957336000908152610109602052604090205460ff16611df95760405162461bcd60e51b815260040161087a90613d6d565b6000611e1061175160c9546001600160a01b031690565b9050600181151514611e345760405162461bcd60e51b815260040161087a90613f40565b346101045414611e565760405162461bcd60e51b815260040161087a90613e1c565b6000611e62863561131f565b90506000611e73876020013561131f565b6101035490915060ff161515600114611e9e5760405162461bcd60e51b815260040161087a90613da4565b806001600160a01b0316826001600160a01b0316148015611ec757506001600160a01b03821633145b8015611ed857508635602088013514155b611ef45760405162461bcd60e51b815260040161087a90613f84565b8635600090815261010060205260409020600101546002118015611f335750600261010060008960200135815260200190815260200160002060010154105b611f4f5760405162461bcd60e51b815260040161087a90613d25565b8635600090815261010060205260409020600201544210801590611f8b5750602080880135600090815261010090915260409020600201544210155b611fa75760405162461bcd60e51b815260040161087a90613c92565b60fb546101025560fc8054600091611fc291610fcf9061410a565b9050611fd13361010254612c35565b611fde6101025482612c4f565b8735600090815261010060209081526040808320600190810154928c013584528184208101546101025480865292852092835590820193909355909190612028426205460061407c565b600282015560fb5461203b90600161407c565b60fb558a3560008181526101006020526040902090815561205d84600161407c565b600182015561206f426217124061407c565b60028201556020808d01356000818152610100909252604090912090815561209884600161407c565b60018201556120aa426217124061407c565b6002820155610101546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156120e9573d6000803e3d6000fd5b50336001600160a01b03167f7f80d0da4a3c3d788b343994246b1aa637d28008a65ce832a40cc31acd9a6e6a8e600001358f60200135896101025434604051612136959493929190613fc6565b60405180910390a25050610102549b9a5050505050505050505050565b60c9546001600160a01b0316331461217d5760405162461bcd60e51b815260040161087a90613de7565b6001600160a01b0381166121e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087a565b6116f981612cda565b61010a5460009060ff1661222957336000908152610109602052604090205460ff166122295760405162461bcd60e51b815260040161087a90613d6d565b61010754341461227b5760405162461bcd60e51b815260206004820181905260248201527f244d4f4e53544552425544533a20507269636520697320696e636f7272656374604482015260640161087a565b336122858361131f565b6001600160a01b0316146122ec5760405162461bcd60e51b815260206004820152602860248201527f244d4f4e53544552425544533a20596f7520617265206e6f74206f776e65722060448201526737b3103a37b5b2b760c11b606482015260840161087a565b610101546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015612326573d6000803e3d6000fd5b506040805133815260208101849052348183015290517f61bcb9d767fe5d2284f7e715d9380d99d91387c315b47506bd6bb4cb8e0dd81f9181900360600190a1506001919050565b60c9546000906001600160a01b0316331461239b5760405162461bcd60e51b815260040161087a90613de7565b5061010755600190565b60c9546000906001600160a01b031633146123d25760405162461bcd60e51b815260040161087a90613de7565b82516123e59060fc90602086019061350c565b508151610ccc9060fd90602085019061350c565b6000908152606760205260409020546001600160a01b0316151590565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061244b8261131f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612494836040015161131f565b6040516bffffffffffffffffffffffff193360601b1660208201529091506000906034016040516020818303038152906040528051906020012090506000826040516020016124fb919060609190911b6bffffffffffffffffffffffff1916815260140190565b60405160208183030381529060405280519060200120905060008560a0015160405160200161252c91815260200190565b6040516020818303038152906040528051906020012090506000866040015160405160200161255d91815260200190565b6040516020818303038152906040528051906020012090506000876080015160405160200161258e91815260200190565b60408051601f198184030181528282528051602091820120908301859052908201819052606082018590526080820186905260a08201879052915060009060c001604051602081830303815290604052805190602001209050428960800151101561263b5760405162461bcd60e51b815260206004820152601960248201527f4d4f4e53544552425544533a20657870697265642074696d6500000000000000604482015260640161087a565b8860c0015181146126845760405162461bcd60e51b81526020600482015260136024820152721226a7a729aa22a9212aa2299d1022a92927a960691b604482015260640161087a565b348960a00151146126d75760405162461bcd60e51b815260206004820152601f60248201527f4d4f4e53544552425544533a20507269636520697320696e636f727265637400604482015260640161087a565b60006126e234612f65565b610101546040519192506001600160a01b03169082156108fc029083906000818181858888f1935050505015801561271e573d6000803e3d6000fd5b50610106546040516101009091046001600160a01b0316906108fc8315029083906000818181858888f1935050505015801561275e573d6000803e3d6000fd5b50600061276b828061407c565b61277590346140c7565b60208c01516040519192506001600160a01b03169082156108fc029083906000818181858888f193505050501580156127b2573d6000803e3d6000fd5b506127c68b60200151338d60400151612a5f565b8a60400151336001600160a01b03168c602001516001600160a01b03167f4846bb92e4688018001b57c3be0b767a864854f677f24fc23f36ca1efd331f4d3460405161281491815260200190565b60405180910390a45060019a9950505050505050505050565b600080600061283c8585612f87565b90925090506000816004811115612855576128556141a0565b1480156128735750856001600160a01b0316826001600160a01b0316145b1561288357600192505050611b20565b600080876001600160a01b0316631626ba7e60e01b88886040516024016128ab929190613c66565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516128e99190613b9b565b600060405180830381855afa9150503d8060008114612924576040519150601f19603f3d011682016040523d82523d6000602084013e612929565b606091505b509150915081801561293c575080516020145b801561296d57508051630b135d3f60e11b9061296190830160209081019084016138c6565b6001600160e01b031916145b98975050505050505050565b6000612984826123f9565b6129e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161087a565b60006129f08361131f565b9050806001600160a01b0316846001600160a01b03161480612a2b5750836001600160a01b0316612a208461097d565b6001600160a01b0316145b80611db357506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff16611db3565b826001600160a01b0316612a728261131f565b6001600160a01b031614612ad65760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161087a565b6001600160a01b038216612b385760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161087a565b612b43600082612416565b6001600160a01b0383166000908152606860205260408120805460019290612b6c9084906140c7565b90915550506001600160a01b0382166000908152606860205260408120805460019290612b9a90849061407c565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6060600084612c0985612ff7565b84604051602001612c1c93929190613be6565b60408051808303601f1901815291905295945050505050565b611bc38282604051806020016040528060008152506130f5565b612c58826123f9565b612cbb5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161087a565b600082815260976020908152604090912082516108e69284019061350c565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612d535760405162461bcd60e51b815260040161087a90613eb1565b611bc38282613128565b600054610100900460ff16612d845760405162461bcd60e51b815260040161087a90613eb1565b6114cd613176565b816001600160a01b0316836001600160a01b03161415612dee5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161087a565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612e66848484612a5f565b612e72848484846131a6565b611bf95760405162461bcd60e51b815260040161087a90613cd3565b6060612e99826123f9565b612efd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161087a565b6000612f1460408051602081019091526000815290565b90506000815111612f345760405180602001604052806000815250611b20565b80612f3e84612ff7565b604051602001612f4f929190613bb7565b6040516020818303038152906040529392505050565b6000808261010554612f7791906140a8565b90506000611db36103e883614094565b600080825160411415612fbe5760208301516040840151606085015160001a612fb2878285856132b3565b94509450505050612ff0565b825160401415612fe85760208301516040840151612fdd8683836133a0565b935093505050612ff0565b506000905060025b9250929050565b60608161301b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613045578061302f81614145565b915061303e9050600a83614094565b915061301f565b60008167ffffffffffffffff811115613060576130606141cc565b6040519080825280601f01601f19166020018201604052801561308a576020820181803683370190505b5090505b8415611db35761309f6001836140c7565b91506130ac600a86614160565b6130b790603061407c565b60f81b8183815181106130cc576130cc6141b6565b60200101906001600160f81b031916908160001a9053506130ee600a86614094565b945061308e565b6130ff83836133d9565b61310c60008484846131a6565b6108e65760405162461bcd60e51b815260040161087a90613cd3565b600054610100900460ff1661314f5760405162461bcd60e51b815260040161087a90613eb1565b815161316290606590602085019061350c565b5080516108e690606690602084019061350c565b600054610100900460ff1661319d5760405162461bcd60e51b815260040161087a90613eb1565b6114cd33612cda565b60006001600160a01b0384163b156132a857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131ea903390899088908890600401613c29565b602060405180830381600087803b15801561320457600080fd5b505af1925050508015613234575060408051601f3d908101601f19168201909252613231918101906138c6565b60015b61328e573d808015613262576040519150601f19603f3d011682016040523d82523d6000602084013e613267565b606091505b5080516132865760405162461bcd60e51b815260040161087a90613cd3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611db3565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132ea5750600090506003613397565b8460ff16601b1415801561330257508460ff16601c14155b156133135750600090506004613397565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613367573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661339057600060019250925050613397565b9150600090505b94509492505050565b6000806001600160ff1b038316816133bd60ff86901c601b61407c565b90506133cb878288856132b3565b935093505050935093915050565b6001600160a01b03821661342f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161087a565b613438816123f9565b156134855760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161087a565b6001600160a01b03821660009081526068602052604081208054600192906134ae90849061407c565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546135189061410a565b90600052602060002090601f01602090048101928261353a5760008555613580565b82601f1061355357805160ff1916838001178555613580565b82800160010185558215613580579182015b82811115613580578251825591602001919060010190613565565b5061358c929150613590565b5090565b5b8082111561358c5760008155600101613591565b8035610b8a816141e2565b60008083601f8401126135c257600080fd5b50813567ffffffffffffffff8111156135da57600080fd5b6020830191508360208260051b8501011115612ff057600080fd5b600082601f83011261360657600080fd5b813561361961361482614054565b614023565b81815284602083860101111561362e57600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561365d57600080fd5b8135611b20816141e2565b60006020828403121561367a57600080fd5b8151611b20816141e2565b6000806040838503121561369857600080fd5b82356136a3816141e2565b915060208301356136b3816141e2565b809150509250929050565b6000806000606084860312156136d357600080fd5b83356136de816141e2565b925060208401356136ee816141e2565b929592945050506040919091013590565b6000806000806080858703121561371557600080fd5b8435613720816141e2565b93506020850135613730816141e2565b925060408501359150606085013567ffffffffffffffff81111561375357600080fd5b61375f878288016135f5565b91505092959194509250565b6000806040838503121561377e57600080fd5b8235613789816141e2565b915060208301356136b3816141f7565b600080604083850312156137ac57600080fd5b82356137b7816141e2565b946020939093013593505050565b600080600080606085870312156137db57600080fd5b843567ffffffffffffffff8111156137f257600080fd5b6137fe878288016135b0565b9095509350506020850135613812816141f7565b91506040850135613822816141f7565b939692955090935050565b6000806020838503121561384057600080fd5b823567ffffffffffffffff81111561385757600080fd5b613863858286016135b0565b90969095509350505050565b60006020828403121561388157600080fd5b8135611b20816141f7565b60006020828403121561389e57600080fd5b8151611b20816141f7565b6000602082840312156138bb57600080fd5b8135611b2081614205565b6000602082840312156138d857600080fd5b8151611b2081614205565b6000602082840312156138f557600080fd5b815167ffffffffffffffff81111561390c57600080fd5b8201601f8101841361391d57600080fd5b805161392b61361482614054565b81815285602083850101111561394057600080fd5b6139518260208301602086016140de565b95945050505050565b6000806040838503121561396d57600080fd5b823567ffffffffffffffff8082111561398557600080fd5b613991868387016135f5565b935060208501359150808211156139a757600080fd5b506139b4858286016135f5565b9150509250929050565b600080604083850312156139d157600080fd5b823567ffffffffffffffff808211156139e957600080fd5b9084019061010082870312156139fe57600080fd5b613a06613ff9565b613a0f836135a5565b8152613a1d602084016135a5565b602082015260408301356040820152606083013582811115613a3e57600080fd5b613a4a888286016135f5565b6060830152506080830135608082015260a083013560a082015260c083013560c082015260e083013560e08201528094505060208501359150808211156139a757600080fd5b60008060008385036080811215613aa657600080fd5b6060811215613ab457600080fd5b50839250606084013567ffffffffffffffff80821115613ad357600080fd5b818601915086601f830112613ae757600080fd5b813581811115613af657600080fd5b876020828501011115613b0857600080fd5b6020830194508093505050509250925092565b600060208284031215613b2d57600080fd5b5035919050565b600060208284031215613b4657600080fd5b5051919050565b60008060408385031215613b6057600080fd5b50508035926020909101359150565b60008151808452613b878160208601602086016140de565b601f01601f19169290920160200192915050565b60008251613bad8184602087016140de565b9190910192915050565b60008351613bc98184602088016140de565b835190830190613bdd8183602088016140de565b01949350505050565b60008451613bf88184602089016140de565b845190830190613c0c8183602089016140de565b8451910190613c1f8183602088016140de565b0195945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c5c90830184613b6f565b9695505050505050565b828152604060208201526000611db36040830184613b6f565b602081526000611b206020830184613b6f565b60208082526021908201527f245061636b776f6f644552433732313a2063616e6e6f74206272656564206e6f6040820152607760f81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526028908201527f245061636b776f6f644552433732313a2045786365656473206d61782062726560408201526719590818dbdd5b9d60c21b606082015260800190565b60208082526019908201527f244d4f4e53544552425544533a204e6f7420616c6c6f77656400000000000000604082015260600190565b60208082526023908201527f245061636b776f6f644552433732313a204272656564696e6720697320636c6f6040820152621cd95960ea1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f245061636b776f6f644552433732313a20416d6f756e7420697320696e636f726040820152631c9958dd60e21b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526024908201527f244d4f4e53544552425544533a2063616e6e6f74206265207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526024908201527f245061636b776f6f644552433732313a2063616e6e6f742062726565645b4552604082015263524f525d60e01b606082015260800190565b60208082526022908201527f245061636b776f6f644552433732313a2043616e6e6f742053656c6620427265604082015261195960f21b606082015260800190565b85815284602082015260a060408201526000613fe560a0830186613b6f565b606083019490945250608001529392505050565b604051610100810167ffffffffffffffff8111828210171561401d5761401d6141cc565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561404c5761404c6141cc565b604052919050565b600067ffffffffffffffff82111561406e5761406e6141cc565b50601f01601f191660200190565b6000821982111561408f5761408f614174565b500190565b6000826140a3576140a361418a565b500490565b60008160001904831182151516156140c2576140c2614174565b500290565b6000828210156140d9576140d9614174565b500390565b60005b838110156140f95781810151838201526020016140e1565b83811115611bf95750506000910152565b600181811c9082168061411e57607f821691505b6020821081141561413f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561415957614159614174565b5060010190565b60008261416f5761416f61418a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146116f957600080fd5b80151581146116f957600080fd5b6001600160e01b0319811681146116f957600080fdfe68747470733a2f2f6c6976656173736574732e6d6f6e73746572627564732e696f2f5061636b776f6f642d6d6f6e737465722d7572692f5041434b574f4f44a264697066735822122027988a37d8792c74620191bd5fe33eb204b33019ddd4d312289c20ba9b159d8664736f6c63430008070033
Deployed Bytecode
0x60806040526004361061025c5760003560e01c80636f790d2c11610144578063b88d4fde116100b6578063e5ca7c891161007a578063e5ca7c891461072f578063e985e9c514610742578063f2fde38b1461078b578063f4b22a60146107ab578063fa63dd3d146107be578063fd55e73c146107de57600080fd5b8063b88d4fde1461069e578063bb71561d146106be578063c87b56dd146106de578063ce008e6d146106fe578063d082e3811461071957600080fd5b806390b94a011161010857806390b94a01146105c7578063922c0439146105de578063940157b31461063657806395d89b41146106495780639c4f1d7b1461065e578063a22cb4651461067e57600080fd5b80636f790d2c1461053f57806370a082311461055f578063715018a61461057f5780638129fc1c146105945780638da5cb5b146105a957600080fd5b806323b872dd116101dd57806340908298116101a1578063409082981461046e57806342842e0e1461049f5780634881c72f146104bf5780634b2774c7146104df5780636352211e146104ff5780636d9471761461051f57600080fd5b806323b872dd146103c05780632d080ec5146103e057806333bd33021461040057806338e1294c146104205780633f5916561461044057600080fd5b8063081812fc11610224578063081812fc1461032d578063095a9c4f1461034d578063095ea7b31461036d5780630e230ff41461038d578063186338ed146103ad57600080fd5b806301ffc9a714610261578063023f01951461029657806306b8ff2c146102ce57806306fdde03146102f057806307560ae614610312575b600080fd5b34801561026d57600080fd5b5061028161027c3660046138a9565b6107fe565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b5060fe546102b6906001600160a01b031681565b6040516001600160a01b03909116815260200161028d565b3480156102da57600080fd5b506102ee6102e936600461382d565b610850565b005b3480156102fc57600080fd5b506103056108eb565b60405161028d9190613c7f565b34801561031e57600080fd5b5061010a546102819060ff1681565b34801561033957600080fd5b506102b6610348366004613b1b565b61097d565b34801561035957600080fd5b5060ff546102b6906001600160a01b031681565b34801561037957600080fd5b506102ee610388366004613799565b610a05565b34801561039957600080fd5b506102b66103a836600461364b565b610b16565b6102816103bb3660046139be565b610b8f565b3480156103cc57600080fd5b506102ee6103db3660046136be565b610cd6565b3480156103ec57600080fd5b506102816103fb36600461364b565b610d07565b34801561040c57600080fd5b5061028161041b36600461364b565b610d59565b34801561042c57600080fd5b5061028161043b36600461386f565b610dab565b34801561044c57600080fd5b5061046061045b366004613b4d565b610df0565b60405190815260200161028d565b34801561047a57600080fd5b5061028161048936600461364b565b6101096020526000908152604090205460ff1681565b3480156104ab57600080fd5b506102ee6104ba3660046136be565b611219565b3480156104cb57600080fd5b506104606104da366004613b1b565b611234565b3480156104eb57600080fd5b506102ee6104fa3660046137c5565b61126b565b34801561050b57600080fd5b506102b661051a366004613b1b565b61131f565b34801561052b57600080fd5b5061046061053a366004613b1b565b611396565b34801561054b57600080fd5b5061028161055a366004613b1b565b6113cd565b34801561056b57600080fd5b5061046061057a36600461364b565b611412565b34801561058b57600080fd5b506102ee611499565b3480156105a057600080fd5b506102ee6114cf565b3480156105b557600080fd5b5060c9546001600160a01b03166102b6565b3480156105d357600080fd5b506104606101045481565b3480156105ea57600080fd5b5061061b6105f9366004613b1b565b6101006020526000908152604090208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161028d565b610460610644366004613a90565b6116fc565b34801561065557600080fd5b50610305611b27565b34801561066a57600080fd5b506102b661067936600461364b565b611b36565b34801561068a57600080fd5b506102ee61069936600461376b565b611bb8565b3480156106aa57600080fd5b506102ee6106b93660046136ff565b611bc7565b3480156106ca57600080fd5b506102816106d936600461386f565b611bff565b3480156106ea57600080fd5b506103056106f9366004613b1b565b611c44565b34801561070a57600080fd5b50610103546102819060ff1681565b34801561072557600080fd5b5061046060fb5481565b61046061073d366004613a90565b611dbb565b34801561074e57600080fd5b5061028161075d366004613685565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561079757600080fd5b506102ee6107a636600461364b565b612153565b6102816107b9366004613b1b565b6121eb565b3480156107ca57600080fd5b506102816107d9366004613b1b565b61236e565b3480156107ea57600080fd5b506102816107f936600461395a565b6123a5565b60006001600160e01b031982166380ac58cd60e01b148061082f57506001600160e01b03198216635b5e139f60e01b145b8061084a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60c9546001600160a01b031633146108835760405162461bcd60e51b815260040161087a90613de7565b60405180910390fd5b60005b818110156108e657600161010860008585858181106108a7576108a76141b6565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806108de90614145565b915050610886565b505050565b6060606580546108fa9061410a565b80601f01602080910402602001604051908101604052809291908181526020018280546109269061410a565b80156109735780601f1061094857610100808354040283529160200191610973565b820191906000526020600020905b81548152906001019060200180831161095657829003601f168201915b5050505050905090565b6000610988826123f9565b6109e95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161087a565b506000908152606960205260409020546001600160a01b031690565b6000610a108261131f565b9050806001600160a01b0316836001600160a01b03161415610a7e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161087a565b336001600160a01b0382161480610a9a5750610a9a813361075d565b610b0c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161087a565b6108e68383612416565b60c9546000906001600160a01b03163314610b435760405162461bcd60e51b815260040161087a90613de7565b6001600160a01b038216610b695760405162461bcd60e51b815260040161087a90613efc565b5061010180546001600160a01b0319166001600160a01b0383169081179091555b919050565b61010a5460009060ff16610bcd57336000908152610109602052604090205460ff16610bcd5760405162461bcd60e51b815260040161087a90613d6d565b6101065460ff161515600114610c3c5760405162461bcd60e51b815260206004820152602e60248201527f244d4f4e53544552425544533a204d61726b6574706c61636520666f7220627560448201526d1e5a5b99c81a5cc818db1bdcd95960921b606482015260840161087a565b610c4583612484565b506000610c68610c5d60c9546001600160a01b031690565b8560e001518561282d565b9050600181151514610ccc5760405162461bcd60e51b815260206004820152602760248201527f244d4f4e53544552425544533a2063616e6e6f7420707572636861736520746860448201526632903a37b5b2b760c91b606482015260840161087a565b5060019392505050565b610ce03382612979565b610cfc5760405162461bcd60e51b815260040161087a90613e60565b6108e6838383612a5f565b60c9546000906001600160a01b03163314610d345760405162461bcd60e51b815260040161087a90613de7565b5060fe80546001600160a01b0383166001600160a01b03199091161790556001919050565b60c9546000906001600160a01b03163314610d865760405162461bcd60e51b815260040161087a90613de7565b5060ff80546001600160a01b0383166001600160a01b03199091161790556001919050565b60c9546000906001600160a01b03163314610dd85760405162461bcd60e51b815260040161087a90613de7565b50610106805460ff1916911515918217905560ff1690565b61010a5460009060ff16610e2e57336000908152610109602052604090205460ff16610e2e5760405162461bcd60e51b815260040161087a90613d6d565b826103628110158015610e4357506128b48111155b80610e5d57506000818152610108602052604090205460ff165b610ecf5760405162461bcd60e51b815260206004820152603760248201527f244d4f4e53544552425544533a204f6e6c792067656e65726174696f6e20312060448201527f6d6f6e73746572627564732063616e2070726f63657373000000000000000000606482015260840161087a565b60ff546040516331a9108f60e11b81526004810186905233916001600160a01b031690636352211e9060240160206040518083038186803b158015610f1357600080fd5b505afa158015610f27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4b9190613668565b6001600160a01b031614610fb45760405162461bcd60e51b815260206004820152602a60248201527f5061636b776f6f644552433732313a20596f7520617265206e6f74206f776e65604482015269391037b3103a37b5b2b760b11b606482015260840161087a565b60fb546101025560fc80546000916110e191610fcf9061410a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ffb9061410a565b80156110485780601f1061101d57610100808354040283529160200191611048565b820191906000526020600020905b81548152906001019060200180831161102b57829003601f168201915b50505050506101025460fd805461105e9061410a565b80601f016020809104026020016040519081016040528092919081815260200182805461108a9061410a565b80156110d75780601f106110ac576101008083540402835291602001916110d7565b820191906000526020600020905b8154815290600101906020018083116110ba57829003601f168201915b5050505050612bfb565b90506110f03361010254612c35565b6110fd6101025482612c4f565b600160fb6000828254611110919061407c565b909155505061010254600081815261010060205260408120918255600182015561113d426205460061407c565b600282015560fe54604051633477cc1b60e21b8152336004820152602481018790526001600160a01b039091169063d1df306c90604401602060405180830381600087803b15801561118e57600080fd5b505af11580156111a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c6919061388c565b5061010254604080518881526020810188905280820192909252517f935f21438b2c5262d082e309aa09d58f0729f411f1548b8b1404ab4d1d174c1f9181900360600190a1505061010254949350505050565b6108e683838360405180602001604052806000815250611bc7565b60c9546000906001600160a01b031633146112615760405162461bcd60e51b815260040161087a90613de7565b5061010481905590565b60c9546001600160a01b031633146112955760405162461bcd60e51b815260040161087a90613de7565b60005b83811015611307578261010960008787858181106112b8576112b86141b6565b90506020020160208101906112cd919061364b565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806112ff81614145565b915050611298565b5061010a805460ff1916911515919091179055505050565b6000818152606760205260408120546001600160a01b03168061084a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161087a565b60c9546000906001600160a01b031633146113c35760405162461bcd60e51b815260040161087a90613de7565b5061010581905590565b600061036282101580156113e357506128b48211155b806113fd57506000828152610108602052604090205460ff165b1561140a57506001919050565b506000919050565b60006001600160a01b03821661147d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161087a565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b031633146114c35760405162461bcd60e51b815260040161087a90613de7565b6114cd6000612cda565b565b600054610100900460ff166114ea5760005460ff16156114ee565b303b155b6115515760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161087a565b600054610100900460ff16158015611573576000805461ffff19166101011790555b6115bf6040518060400160405280600d81526020016c141858dadddbdbd91cc8109d59609a1b815250604051806040016040528060058152602001641415d0955160da1b815250612d2c565b6115c7612d5d565b600160fb556040805160608101909152603f80825261421c602083013980516115f89160fc9160209091019061350c565b5060408051808201909152600f8082526e16ba37b5b2b716bab934973539b7b760891b602090920191825261162f9160fd9161350c565b50600a61010555661c6bf526340000610107819055610104556101068054610103805460ff1916600117905560fe80546001600160a01b031990811673adc5f935d9afb186d4ef210b0f537ddb0d6c524c1790915560ff80548216736317c4cab501655d7b85128a5868e98a094c00821790556101018054909116734e9df54ba3db24a2647db43ca608e4486c93703a179055747f62db798f29a6b074fe6b1b5027d883831cf1d7016001600160a81b031990911617905580156116f9576000805461ff00191690555b50565b61010a5460009060ff1661173a57336000908152610109602052604090205460ff1661173a5760405162461bcd60e51b815260040161087a90613d6d565b600061179261175160c9546001600160a01b031690565b866040013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061282d92505050565b90506001811515146117b65760405162461bcd60e51b815260040161087a90613f40565b3461010454146117d85760405162461bcd60e51b815260040161087a90613e1c565b60ff546040516331a9108f60e11b8152863560048201526000916001600160a01b031690636352211e9060240160206040518083038186803b15801561181d57600080fd5b505afa158015611831573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118559190613668565b90506000611866876020013561131f565b6101035490915060ff1615156001146118915760405162461bcd60e51b815260040161087a90613da4565b806001600160a01b0316826001600160a01b03161480156118ba57506001600160a01b03821633145b6118d65760405162461bcd60e51b815260040161087a90613f84565b600261010060008960200135815260200190815260200160002060010154106119115760405162461bcd60e51b815260040161087a90613d25565b602080880135600090815261010090915260409020600201544210156119495760405162461bcd60e51b815260040161087a90613c92565b6020808801356000818152610100909252604090912060018082015492825561197390839061407c565b6001820155611985426217124061407c565b600282015560ff546040516315480c5560e01b81528a3560048201523360248201526000916001600160a01b0316906315480c5590604401602060405180830381600087803b1580156119d757600080fd5b505af11580156119eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0f9190613b34565b610101546040519192506001600160a01b0316903480156108fc02916000818181858888f19350505050158015611a4a573d6000803e3d6000fd5b5060ff5460405163c87b56dd60e01b81526004810183905233917ff862b2d898273a61a496a0e026e2f908bbc3fa8d484f75cd58a66a788382a619918d359160208f0135916001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611abc57600080fd5b505afa158015611ad0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611af891908101906138e3565b8534604051611b0b959493929190613fc6565b60405180910390a26101025496505050505050505b9392505050565b6060606680546108fa9061410a565b60c9546000906001600160a01b03163314611b635760405162461bcd60e51b815260040161087a90613de7565b6001600160a01b038216611b895760405162461bcd60e51b815260040161087a90613efc565b506101068054610100600160a81b0319166101006001600160a01b039384168102919091179182905590041690565b611bc3338383612d8c565b5050565b611bd13383612979565b611bed5760405162461bcd60e51b815260040161087a90613e60565b611bf984848484612e5b565b50505050565b60c9546000906001600160a01b03163314611c2c5760405162461bcd60e51b815260040161087a90613de7565b50610103805460ff1916911515918217905560ff1690565b6060611c4f826123f9565b611cb55760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161087a565b60008281526097602052604081208054611cce9061410a565b80601f0160208091040260200160405190810160405280929190818152602001828054611cfa9061410a565b8015611d475780601f10611d1c57610100808354040283529160200191611d47565b820191906000526020600020905b815481529060010190602001808311611d2a57829003601f168201915b505050505090506000611d6560408051602081019091526000815290565b9050805160001415611d78575092915050565b815115611daa578082604051602001611d92929190613bb7565b60405160208183030381529060405292505050919050565b611db384612e8e565b949350505050565b61010a5460009060ff16611df957336000908152610109602052604090205460ff16611df95760405162461bcd60e51b815260040161087a90613d6d565b6000611e1061175160c9546001600160a01b031690565b9050600181151514611e345760405162461bcd60e51b815260040161087a90613f40565b346101045414611e565760405162461bcd60e51b815260040161087a90613e1c565b6000611e62863561131f565b90506000611e73876020013561131f565b6101035490915060ff161515600114611e9e5760405162461bcd60e51b815260040161087a90613da4565b806001600160a01b0316826001600160a01b0316148015611ec757506001600160a01b03821633145b8015611ed857508635602088013514155b611ef45760405162461bcd60e51b815260040161087a90613f84565b8635600090815261010060205260409020600101546002118015611f335750600261010060008960200135815260200190815260200160002060010154105b611f4f5760405162461bcd60e51b815260040161087a90613d25565b8635600090815261010060205260409020600201544210801590611f8b5750602080880135600090815261010090915260409020600201544210155b611fa75760405162461bcd60e51b815260040161087a90613c92565b60fb546101025560fc8054600091611fc291610fcf9061410a565b9050611fd13361010254612c35565b611fde6101025482612c4f565b8735600090815261010060209081526040808320600190810154928c013584528184208101546101025480865292852092835590820193909355909190612028426205460061407c565b600282015560fb5461203b90600161407c565b60fb558a3560008181526101006020526040902090815561205d84600161407c565b600182015561206f426217124061407c565b60028201556020808d01356000818152610100909252604090912090815561209884600161407c565b60018201556120aa426217124061407c565b6002820155610101546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156120e9573d6000803e3d6000fd5b50336001600160a01b03167f7f80d0da4a3c3d788b343994246b1aa637d28008a65ce832a40cc31acd9a6e6a8e600001358f60200135896101025434604051612136959493929190613fc6565b60405180910390a25050610102549b9a5050505050505050505050565b60c9546001600160a01b0316331461217d5760405162461bcd60e51b815260040161087a90613de7565b6001600160a01b0381166121e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087a565b6116f981612cda565b61010a5460009060ff1661222957336000908152610109602052604090205460ff166122295760405162461bcd60e51b815260040161087a90613d6d565b61010754341461227b5760405162461bcd60e51b815260206004820181905260248201527f244d4f4e53544552425544533a20507269636520697320696e636f7272656374604482015260640161087a565b336122858361131f565b6001600160a01b0316146122ec5760405162461bcd60e51b815260206004820152602860248201527f244d4f4e53544552425544533a20596f7520617265206e6f74206f776e65722060448201526737b3103a37b5b2b760c11b606482015260840161087a565b610101546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015612326573d6000803e3d6000fd5b506040805133815260208101849052348183015290517f61bcb9d767fe5d2284f7e715d9380d99d91387c315b47506bd6bb4cb8e0dd81f9181900360600190a1506001919050565b60c9546000906001600160a01b0316331461239b5760405162461bcd60e51b815260040161087a90613de7565b5061010755600190565b60c9546000906001600160a01b031633146123d25760405162461bcd60e51b815260040161087a90613de7565b82516123e59060fc90602086019061350c565b508151610ccc9060fd90602085019061350c565b6000908152606760205260409020546001600160a01b0316151590565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061244b8261131f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612494836040015161131f565b6040516bffffffffffffffffffffffff193360601b1660208201529091506000906034016040516020818303038152906040528051906020012090506000826040516020016124fb919060609190911b6bffffffffffffffffffffffff1916815260140190565b60405160208183030381529060405280519060200120905060008560a0015160405160200161252c91815260200190565b6040516020818303038152906040528051906020012090506000866040015160405160200161255d91815260200190565b6040516020818303038152906040528051906020012090506000876080015160405160200161258e91815260200190565b60408051601f198184030181528282528051602091820120908301859052908201819052606082018590526080820186905260a08201879052915060009060c001604051602081830303815290604052805190602001209050428960800151101561263b5760405162461bcd60e51b815260206004820152601960248201527f4d4f4e53544552425544533a20657870697265642074696d6500000000000000604482015260640161087a565b8860c0015181146126845760405162461bcd60e51b81526020600482015260136024820152721226a7a729aa22a9212aa2299d1022a92927a960691b604482015260640161087a565b348960a00151146126d75760405162461bcd60e51b815260206004820152601f60248201527f4d4f4e53544552425544533a20507269636520697320696e636f727265637400604482015260640161087a565b60006126e234612f65565b610101546040519192506001600160a01b03169082156108fc029083906000818181858888f1935050505015801561271e573d6000803e3d6000fd5b50610106546040516101009091046001600160a01b0316906108fc8315029083906000818181858888f1935050505015801561275e573d6000803e3d6000fd5b50600061276b828061407c565b61277590346140c7565b60208c01516040519192506001600160a01b03169082156108fc029083906000818181858888f193505050501580156127b2573d6000803e3d6000fd5b506127c68b60200151338d60400151612a5f565b8a60400151336001600160a01b03168c602001516001600160a01b03167f4846bb92e4688018001b57c3be0b767a864854f677f24fc23f36ca1efd331f4d3460405161281491815260200190565b60405180910390a45060019a9950505050505050505050565b600080600061283c8585612f87565b90925090506000816004811115612855576128556141a0565b1480156128735750856001600160a01b0316826001600160a01b0316145b1561288357600192505050611b20565b600080876001600160a01b0316631626ba7e60e01b88886040516024016128ab929190613c66565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516128e99190613b9b565b600060405180830381855afa9150503d8060008114612924576040519150601f19603f3d011682016040523d82523d6000602084013e612929565b606091505b509150915081801561293c575080516020145b801561296d57508051630b135d3f60e11b9061296190830160209081019084016138c6565b6001600160e01b031916145b98975050505050505050565b6000612984826123f9565b6129e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161087a565b60006129f08361131f565b9050806001600160a01b0316846001600160a01b03161480612a2b5750836001600160a01b0316612a208461097d565b6001600160a01b0316145b80611db357506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff16611db3565b826001600160a01b0316612a728261131f565b6001600160a01b031614612ad65760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161087a565b6001600160a01b038216612b385760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161087a565b612b43600082612416565b6001600160a01b0383166000908152606860205260408120805460019290612b6c9084906140c7565b90915550506001600160a01b0382166000908152606860205260408120805460019290612b9a90849061407c565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6060600084612c0985612ff7565b84604051602001612c1c93929190613be6565b60408051808303601f1901815291905295945050505050565b611bc38282604051806020016040528060008152506130f5565b612c58826123f9565b612cbb5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161087a565b600082815260976020908152604090912082516108e69284019061350c565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612d535760405162461bcd60e51b815260040161087a90613eb1565b611bc38282613128565b600054610100900460ff16612d845760405162461bcd60e51b815260040161087a90613eb1565b6114cd613176565b816001600160a01b0316836001600160a01b03161415612dee5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161087a565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612e66848484612a5f565b612e72848484846131a6565b611bf95760405162461bcd60e51b815260040161087a90613cd3565b6060612e99826123f9565b612efd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161087a565b6000612f1460408051602081019091526000815290565b90506000815111612f345760405180602001604052806000815250611b20565b80612f3e84612ff7565b604051602001612f4f929190613bb7565b6040516020818303038152906040529392505050565b6000808261010554612f7791906140a8565b90506000611db36103e883614094565b600080825160411415612fbe5760208301516040840151606085015160001a612fb2878285856132b3565b94509450505050612ff0565b825160401415612fe85760208301516040840151612fdd8683836133a0565b935093505050612ff0565b506000905060025b9250929050565b60608161301b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613045578061302f81614145565b915061303e9050600a83614094565b915061301f565b60008167ffffffffffffffff811115613060576130606141cc565b6040519080825280601f01601f19166020018201604052801561308a576020820181803683370190505b5090505b8415611db35761309f6001836140c7565b91506130ac600a86614160565b6130b790603061407c565b60f81b8183815181106130cc576130cc6141b6565b60200101906001600160f81b031916908160001a9053506130ee600a86614094565b945061308e565b6130ff83836133d9565b61310c60008484846131a6565b6108e65760405162461bcd60e51b815260040161087a90613cd3565b600054610100900460ff1661314f5760405162461bcd60e51b815260040161087a90613eb1565b815161316290606590602085019061350c565b5080516108e690606690602084019061350c565b600054610100900460ff1661319d5760405162461bcd60e51b815260040161087a90613eb1565b6114cd33612cda565b60006001600160a01b0384163b156132a857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131ea903390899088908890600401613c29565b602060405180830381600087803b15801561320457600080fd5b505af1925050508015613234575060408051601f3d908101601f19168201909252613231918101906138c6565b60015b61328e573d808015613262576040519150601f19603f3d011682016040523d82523d6000602084013e613267565b606091505b5080516132865760405162461bcd60e51b815260040161087a90613cd3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611db3565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132ea5750600090506003613397565b8460ff16601b1415801561330257508460ff16601c14155b156133135750600090506004613397565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613367573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661339057600060019250925050613397565b9150600090505b94509492505050565b6000806001600160ff1b038316816133bd60ff86901c601b61407c565b90506133cb878288856132b3565b935093505050935093915050565b6001600160a01b03821661342f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161087a565b613438816123f9565b156134855760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161087a565b6001600160a01b03821660009081526068602052604081208054600192906134ae90849061407c565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546135189061410a565b90600052602060002090601f01602090048101928261353a5760008555613580565b82601f1061355357805160ff1916838001178555613580565b82800160010185558215613580579182015b82811115613580578251825591602001919060010190613565565b5061358c929150613590565b5090565b5b8082111561358c5760008155600101613591565b8035610b8a816141e2565b60008083601f8401126135c257600080fd5b50813567ffffffffffffffff8111156135da57600080fd5b6020830191508360208260051b8501011115612ff057600080fd5b600082601f83011261360657600080fd5b813561361961361482614054565b614023565b81815284602083860101111561362e57600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561365d57600080fd5b8135611b20816141e2565b60006020828403121561367a57600080fd5b8151611b20816141e2565b6000806040838503121561369857600080fd5b82356136a3816141e2565b915060208301356136b3816141e2565b809150509250929050565b6000806000606084860312156136d357600080fd5b83356136de816141e2565b925060208401356136ee816141e2565b929592945050506040919091013590565b6000806000806080858703121561371557600080fd5b8435613720816141e2565b93506020850135613730816141e2565b925060408501359150606085013567ffffffffffffffff81111561375357600080fd5b61375f878288016135f5565b91505092959194509250565b6000806040838503121561377e57600080fd5b8235613789816141e2565b915060208301356136b3816141f7565b600080604083850312156137ac57600080fd5b82356137b7816141e2565b946020939093013593505050565b600080600080606085870312156137db57600080fd5b843567ffffffffffffffff8111156137f257600080fd5b6137fe878288016135b0565b9095509350506020850135613812816141f7565b91506040850135613822816141f7565b939692955090935050565b6000806020838503121561384057600080fd5b823567ffffffffffffffff81111561385757600080fd5b613863858286016135b0565b90969095509350505050565b60006020828403121561388157600080fd5b8135611b20816141f7565b60006020828403121561389e57600080fd5b8151611b20816141f7565b6000602082840312156138bb57600080fd5b8135611b2081614205565b6000602082840312156138d857600080fd5b8151611b2081614205565b6000602082840312156138f557600080fd5b815167ffffffffffffffff81111561390c57600080fd5b8201601f8101841361391d57600080fd5b805161392b61361482614054565b81815285602083850101111561394057600080fd5b6139518260208301602086016140de565b95945050505050565b6000806040838503121561396d57600080fd5b823567ffffffffffffffff8082111561398557600080fd5b613991868387016135f5565b935060208501359150808211156139a757600080fd5b506139b4858286016135f5565b9150509250929050565b600080604083850312156139d157600080fd5b823567ffffffffffffffff808211156139e957600080fd5b9084019061010082870312156139fe57600080fd5b613a06613ff9565b613a0f836135a5565b8152613a1d602084016135a5565b602082015260408301356040820152606083013582811115613a3e57600080fd5b613a4a888286016135f5565b6060830152506080830135608082015260a083013560a082015260c083013560c082015260e083013560e08201528094505060208501359150808211156139a757600080fd5b60008060008385036080811215613aa657600080fd5b6060811215613ab457600080fd5b50839250606084013567ffffffffffffffff80821115613ad357600080fd5b818601915086601f830112613ae757600080fd5b813581811115613af657600080fd5b876020828501011115613b0857600080fd5b6020830194508093505050509250925092565b600060208284031215613b2d57600080fd5b5035919050565b600060208284031215613b4657600080fd5b5051919050565b60008060408385031215613b6057600080fd5b50508035926020909101359150565b60008151808452613b878160208601602086016140de565b601f01601f19169290920160200192915050565b60008251613bad8184602087016140de565b9190910192915050565b60008351613bc98184602088016140de565b835190830190613bdd8183602088016140de565b01949350505050565b60008451613bf88184602089016140de565b845190830190613c0c8183602089016140de565b8451910190613c1f8183602088016140de565b0195945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c5c90830184613b6f565b9695505050505050565b828152604060208201526000611db36040830184613b6f565b602081526000611b206020830184613b6f565b60208082526021908201527f245061636b776f6f644552433732313a2063616e6e6f74206272656564206e6f6040820152607760f81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526028908201527f245061636b776f6f644552433732313a2045786365656473206d61782062726560408201526719590818dbdd5b9d60c21b606082015260800190565b60208082526019908201527f244d4f4e53544552425544533a204e6f7420616c6c6f77656400000000000000604082015260600190565b60208082526023908201527f245061636b776f6f644552433732313a204272656564696e6720697320636c6f6040820152621cd95960ea1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f245061636b776f6f644552433732313a20416d6f756e7420697320696e636f726040820152631c9958dd60e21b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526024908201527f244d4f4e53544552425544533a2063616e6e6f74206265207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526024908201527f245061636b776f6f644552433732313a2063616e6e6f742062726565645b4552604082015263524f525d60e01b606082015260800190565b60208082526022908201527f245061636b776f6f644552433732313a2043616e6e6f742053656c6620427265604082015261195960f21b606082015260800190565b85815284602082015260a060408201526000613fe560a0830186613b6f565b606083019490945250608001529392505050565b604051610100810167ffffffffffffffff8111828210171561401d5761401d6141cc565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561404c5761404c6141cc565b604052919050565b600067ffffffffffffffff82111561406e5761406e6141cc565b50601f01601f191660200190565b6000821982111561408f5761408f614174565b500190565b6000826140a3576140a361418a565b500490565b60008160001904831182151516156140c2576140c2614174565b500290565b6000828210156140d9576140d9614174565b500390565b60005b838110156140f95781810151838201526020016140e1565b83811115611bf95750506000910152565b600181811c9082168061411e57607f821691505b6020821081141561413f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561415957614159614174565b5060010190565b60008261416f5761416f61418a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146116f957600080fd5b80151581146116f957600080fd5b6001600160e01b0319811681146116f957600080fdfe68747470733a2f2f6c6976656173736574732e6d6f6e73746572627564732e696f2f5061636b776f6f642d6d6f6e737465722d7572692f5041434b574f4f44a264697066735822122027988a37d8792c74620191bd5fe33eb204b33019ddd4d312289c20ba9b159d8664736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.