Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,802 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint Gods | 14335953 | 1027 days ago | IN | 0.25 ETH | 0.00145769 | ||||
Mint Gods | 14331307 | 1028 days ago | IN | 0.25 ETH | 0.00066849 | ||||
Mint Gods | 14331304 | 1028 days ago | IN | 0.5 ETH | 0.00066849 | ||||
Mint Gods | 14331292 | 1028 days ago | IN | 0.25 ETH | 0.00085949 | ||||
Mint Gods | 14331284 | 1028 days ago | IN | 0.25 ETH | 0.00102607 | ||||
Mint Gods | 14331283 | 1028 days ago | IN | 0.25 ETH | 0.00105572 | ||||
Mint Gods | 14331283 | 1028 days ago | IN | 1 ETH | 0.00105572 | ||||
Mint Gods | 14331283 | 1028 days ago | IN | 0.5 ETH | 0.00107157 | ||||
Mint Gods | 14331283 | 1028 days ago | IN | 0.25 ETH | 0.00107157 | ||||
Mint Gods | 14331283 | 1028 days ago | IN | 0.25 ETH | 0.00107157 | ||||
Mint Gods | 14331283 | 1028 days ago | IN | 0.25 ETH | 0.00107157 | ||||
Mint Gods | 14331283 | 1028 days ago | IN | 0.5 ETH | 0.00107157 | ||||
Mint Gods | 14331283 | 1028 days ago | IN | 0.25 ETH | 0.00107157 | ||||
Mint Gods | 14331282 | 1028 days ago | IN | 0.25 ETH | 0.00112287 | ||||
Mint Gods | 14331282 | 1028 days ago | IN | 0.25 ETH | 0.00113879 | ||||
Mint Gods | 14331282 | 1028 days ago | IN | 0.25 ETH | 0.00113879 | ||||
Mint Gods | 14331282 | 1028 days ago | IN | 0.5 ETH | 0.00123429 | ||||
Mint Gods | 14331281 | 1028 days ago | IN | 0.5 ETH | 0.00121003 | ||||
Mint Gods | 14331281 | 1028 days ago | IN | 0.25 ETH | 0.00121003 | ||||
Mint Gods | 14331281 | 1028 days ago | IN | 0.25 ETH | 0.00121003 | ||||
Mint Gods | 14331281 | 1028 days ago | IN | 0.25 ETH | 0.00676124 | ||||
Mint Gods | 14331281 | 1028 days ago | IN | 0.5 ETH | 0.00121003 | ||||
Mint Gods | 14331281 | 1028 days ago | IN | 0.5 ETH | 0.00121003 | ||||
Mint Gods | 14331281 | 1028 days ago | IN | 0.5 ETH | 0.01167903 | ||||
Mint Gods | 14331280 | 1028 days ago | IN | 0.5 ETH | 0.01030163 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14331320 | 1028 days ago | 2,250 ETH | ||||
14330809 | 1028 days ago | 0.25 ETH | ||||
14330532 | 1028 days ago | 1.25 ETH | ||||
14329842 | 1028 days ago | 0.25 ETH | ||||
14329107 | 1028 days ago | 0.16696759 ETH | ||||
14329107 | 1028 days ago | 0.16951388 ETH | ||||
14328998 | 1028 days ago | 0.17657407 ETH | ||||
14328973 | 1028 days ago | 0.5 ETH | ||||
14328710 | 1028 days ago | 936.28569444 ETH | ||||
14328651 | 1028 days ago | 0.43879629 ETH | ||||
14328651 | 1028 days ago | 3.93879629 ETH | ||||
14328643 | 1028 days ago | 0.00402777 ETH | ||||
14328643 | 1028 days ago | 0.00129629 ETH | ||||
14328643 | 1028 days ago | 0.00064814 ETH | ||||
14328640 | 1028 days ago | 0.000625 ETH | ||||
14328640 | 1028 days ago | 0.003125 ETH | ||||
14328639 | 1028 days ago | 0.00064814 ETH | ||||
14328639 | 1028 days ago | 0.00194444 ETH | ||||
14328639 | 1028 days ago | 0.00064814 ETH | ||||
14328639 | 1028 days ago | 0.00129629 ETH | ||||
14328639 | 1028 days ago | 0.00129629 ETH | ||||
14328639 | 1028 days ago | 0.00157407 ETH | ||||
14328639 | 1028 days ago | 0.00194444 ETH | ||||
14328639 | 1028 days ago | 0.00090277 ETH | ||||
14328639 | 1028 days ago | 0.00157407 ETH |
Loading...
Loading
Contract Name:
IdolMintContract
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./interface/IIdolMain.sol"; import "./interface/IIdolMarketplace.sol"; import "./interface/ICurvePool.sol"; import "./OfferingRefundContract.sol"; import "hardhat/console.sol"; /** @notice IdolMintContract is a contract used for the initial mint of the God NFTs. It allocates 90% of the Gods for public minting through a dutch auction protocol, and reserves 10% of the Gods for the creators of the protocol as well as other supporters and stakeholders. IdolMintContract is intended to be torn down once the mint event has completed and once its balance has been deposited into the IdolMain rewards protocol. */ contract IdolMintContract is Ownable, ReentrancyGuard { // publicGodsMinted tracks the number of Gods that have been minted by the public through the // mintGods function. uint public publicGodsMinted; // reservedGodsMinted tracks the number of reserved Gods that have been minted through the // mintReservedGods function. uint public reservedGodsMinted; // MAX_GODS_TO_MINT specifies the maximum number of Gods that can be minted (both public and // reserved.) uint public constant MAX_GODS_TO_MINT = 10000; // MAX_GODS_PER_ADDRESS specifies the maximum number of Gods that a single address can mint. uint public constant MAX_GODS_PER_ADDRESS = 20; // NUM_RESERVED_NFTS specifies the maximum number of Gods that can be minted through the // mintReservedGods function. uint public constant NUM_RESERVED_NFTS = 1000; // publicSaleDuration specifies the length of the dutch auction (in seconds) before the minting // price hits publicSaleGodEndingPrice. uint256 public publicSaleDuration; // publicSaleStartTime tracks the time (as a UNIX timestamp) when the public sale was started. uint256 public publicSaleStartTime; // publicSaleGodStartingPrice specifies the price that the dutch auction mint should start at. uint256 public publicSaleGodStartingPrice; // publicSaleGodEndingPrice specifies the minimum price that Gods can be minted at once the // full duration of the dutch auction has elapsed. uint256 public publicSaleGodEndingPrice; // publicSaleStarted specifies whether the minting event has been started. bool public publicSaleStarted = false; // publicSalePaused specifies whether the minting event has been paused. bool public publicSalePaused = false; // publicSalePausedElapsedTime specifies, if the sale was paused, what the elapsed sale // time was at the time of pausing. uint256 public publicSalePausedElapsedTime; // godIdOffset is pseudo-random offset from 0-10000 generated when the contract is constructed // and used to assign god IDs for each mint. uint256 public immutable godIdOffset; // addressReferencesSet is a boolean flag which tracks that the proper setup functions for the // contract have been run. It must be true before startPublicSale is called. bool public addressReferencesSet = false; // CURVE_POOL_ADDRESS holds the address of the curve pool that we use to exchange ETH for stETH. address constant CURVE_POOL_ADDRESS = 0xDC24316b9AE028F1497c275EB9192a3Ea0f67022; // LIDO_STAKING_ADDRESS holds the address of the Lido staking contract that we also can use to // exchange ETH for stETH. address constant LIDO_STAKING_ADDRESS = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84; IIdolMain public idolMain; IIdolMarketplace public idolMarketplace; ICurvePool public immutable stethPool; ERC20 public immutable steth; OfferingRefundContract public immutable offeringRefundContract; event PublicSaleStart( uint256 indexed _saleDuration, uint256 indexed _saleStartTime ); event PublicSalePaused( uint256 indexed _currentPrice, uint256 indexed _timeElapsed ); event PublicSaleResumed( uint256 indexed _saleResumeTime ); event IdolsMinted( address indexed _minter, uint256 indexed _mintPrice, uint256 indexed _numMinted ); /** @notice IdolMintContract's constructor takes in two hashes, one of which represents the hash of the Idol NFT metadata, and one of which is the hash of some discord-community-generated input. The two hashes are used to calculate the godIdOffset, which specifies which ID from 0-10000 to start minting at. @param _metadataHash The hash of the master metadata file which corresponds to the 10k Idol NFT images that have been uploaded. @param _discordGeneratedHash The hash of some discord-community-generated input which is used to effectively randomize the value of godIdOffset prior to the start of the mint. @param _stethAddress The address of the stETH ERC20 contract. @param _offeringRefundContractAddress The address of the OfferingRefundContract we will be sending refunds to. */ constructor( string memory _metadataHash, string memory _discordGeneratedHash, address _stethAddress, address payable _offeringRefundContractAddress ) { godIdOffset = uint256(keccak256(abi.encodePacked(_metadataHash, _discordGeneratedHash))) % MAX_GODS_TO_MINT; stethPool = ICurvePool(CURVE_POOL_ADDRESS); steth = ERC20(_stethAddress); offeringRefundContract = OfferingRefundContract(_offeringRefundContractAddress); } /** @notice startPublicSale is called to start the dutch auction for minting Gods to the public. @param _saleDuration The duration of the sale, in seconds, before reaching the minimum minting price. @param _saleStartPrice The initial minting price, which progressively lowers as the dutch auction progresses. @param _saleEndPrice Lower bound for the minting price, once the full duration of the dutch auction has elapsed. */ function startPublicSale(uint256 _saleDuration, uint256 _saleStartPrice, uint256 _saleEndPrice) external onlyOwner beforePublicSaleStarted { require(_saleStartPrice > _saleEndPrice, "_saleStartPrice must be greater than _saleEndPrice"); require(addressReferencesSet, "External reference contracts must all be set before public sale starts"); publicSaleDuration = _saleDuration; publicSaleGodStartingPrice = _saleStartPrice; publicSaleGodEndingPrice = _saleEndPrice; publicSaleStartTime = block.timestamp; publicSaleStarted = true; emit PublicSaleStart(_saleDuration, publicSaleStartTime); } /** @notice setAddressReferences sets references to the main, marketplace, and virtueToken addresses so that the contracts all know about each other. This is all done from the mint contract so that the addresses will no longer be updateable once the mint event has started. @param _idolMainAddress The address of IdolMain. @param _idolMarketplaceAddress The address of the marketplace. @param _virtueTokenAddress The address of the VIRTUE token ERC20 contract. */ function setAddressReferences( address _idolMainAddress, address _idolMarketplaceAddress, address _virtueTokenAddress ) external onlyOwner beforePublicSaleStarted { addressReferencesSet = true; idolMain = IIdolMain(_idolMainAddress); require(steth.approve(_idolMainAddress, 2**255-1)); idolMarketplace = IIdolMarketplace(_idolMarketplaceAddress); idolMain.setVirtueTokenAddr(_virtueTokenAddress); idolMain.setIdolMarketplaceAddr(_idolMarketplaceAddress); idolMarketplace.setVirtueTokenAddr(_virtueTokenAddress); } /** @notice pausePublicSale is called to pause the progression of the mint event. In happy-path circumstances we shouldn't need to call this, but it is included as a precaution in case something goes wrong during the mint. */ function pausePublicSale() external onlyOwner whenPublicSaleActive { uint256 currentSalePrice = getMintPrice(); uint256 elapsedTime = getElapsedSaleTime(); publicSalePausedElapsedTime = elapsedTime; publicSalePaused = true; emit PublicSalePaused(currentSalePrice, elapsedTime); } function resumePublicSale() external onlyOwner { require(publicSalePaused, "Can only resume when the sale is paused"); publicSalePaused = false; publicSaleStartTime = block.timestamp - publicSalePausedElapsedTime; emit PublicSaleResumed(block.timestamp); } /** @notice getElaspedSaleTime is a view function that tells us how many seconds have elapsed since the public sale was started. */ function getElapsedSaleTime() internal view returns (uint256) { if (publicSalePaused) { return publicSalePausedElapsedTime; } return publicSaleStartTime > 0 ? block.timestamp - publicSaleStartTime : 0; } /** @notice getRemainingSaleTime is a view function that tells us how many seconds are remaining before the dutch auction hits the minimum price. */ function getRemainingSaleTime() external view returns (uint256) { if (publicSaleStartTime == 0) { // If the public sale has not been started, we just return 1 week as a placeholder. return 604800; } if (publicSalePaused) { return publicSaleDuration - publicSalePausedElapsedTime; } if (getElapsedSaleTime() >= publicSaleDuration) { return 0; } return (publicSaleStartTime + publicSaleDuration) - block.timestamp; } /** @notice getMintPrice returns the price to mint a God at the current time in the dutch auction. */ function getMintPrice() public view returns (uint256) { if (!publicSaleStarted) { return 0; } uint256 elapsed = getElapsedSaleTime(); if (elapsed >= publicSaleDuration) { return publicSaleGodEndingPrice; } else { int256 tempPrice = int256(publicSaleGodStartingPrice) + ((int256(publicSaleGodEndingPrice) - int256(publicSaleGodStartingPrice)) / int256(publicSaleDuration)) * int256(elapsed); uint256 currentPrice = uint256(tempPrice); return currentPrice > publicSaleGodEndingPrice ? currentPrice : publicSaleGodEndingPrice; } } /** @notice mintGods is a payable function which allows the sender to pay ETH to mint God NFTs at the current price specified by getMintPrice. @param _numGodsToMint The number of gods to be minted, which is capped at a maximum of 5 Gods per transaction. */ function mintGods(uint256 _numGodsToMint) external payable whenPublicSaleActive nonReentrant { require( publicGodsMinted + _numGodsToMint <= MAX_GODS_TO_MINT - NUM_RESERVED_NFTS, "Minting would exceed max supply" ); require(_numGodsToMint > 0, "Must mint at least one god"); require( idolMain.balanceOf(msg.sender) + _numGodsToMint <= MAX_GODS_PER_ADDRESS, "Requested number would exceed the maximum number of gods allowed to be minted for this address." ); uint256 individualCostToMint = getMintPrice(); uint256 costToMint = individualCostToMint * _numGodsToMint; require(costToMint <= msg.value, "Ether value sent is not correct"); for (uint256 i = 0; i < _numGodsToMint; i++) { uint idToMint = (publicGodsMinted + i + godIdOffset) % MAX_GODS_TO_MINT; idolMain.mint(msg.sender, idToMint, false); } publicGodsMinted += _numGodsToMint; if (msg.value > costToMint) { Address.sendValue(payable(msg.sender), msg.value - costToMint); } emit IdolsMinted(msg.sender, individualCostToMint, _numGodsToMint); } /** @notice mintReservedGods is used by the contract owner to mint a reserved pool of 1000 Gods for owners and supporters of the protocol. @param _numGodsToMint The number of Gods to mint in this transaction. @param _mintAddress The address to mint the reserved Gods for. @param _lock If true, specifies that the minted reserved Gods cannot be sold or transferred for the first year of the protocol's existence. */ function mintReservedGods(uint256 _numGodsToMint, address _mintAddress, bool _lock) external onlyOwner nonReentrant { require( reservedGodsMinted + _numGodsToMint < NUM_RESERVED_NFTS, "Minting would exceed max reserved supply" ); require(_numGodsToMint > 0, "Must mint at least one god"); for (uint256 i = 0; i < _numGodsToMint; i++) { uint idToMint = (reservedGodsMinted + i + godIdOffset + MAX_GODS_TO_MINT - NUM_RESERVED_NFTS) % MAX_GODS_TO_MINT; idolMain.mint(_mintAddress, idToMint, _lock); } reservedGodsMinted += _numGodsToMint; } /** @notice sendToOfferingRefundContract sends ETH to the OfferingRefundContract so that it can be distributed to the addresses that are eligible for a refund. */ function sendToOfferingRefundContract(uint _totalRefundAmount) onlyOwner external nonReentrant { Address.sendValue(payable(address(offeringRefundContract)), _totalRefundAmount); } /** @notice swap is used to swap the contract's ETH into stETH via Curve. @param _slippageBps The acceptable slippage percent, in basis points. */ function swap(uint _slippageBps) onlyOwner external returns(uint result) { return stethPool.exchange{ value: address(this).balance }(0, 1, address(this).balance, address(this).balance * _slippageBps / 10000); } function swapLido(uint _slippageBps) onlyOwner external { uint minSteth = steth.balanceOf(address(this)) + address(this).balance * _slippageBps / 10000; Address.sendValue(payable(LIDO_STAKING_ADDRESS), address(this).balance); require(steth.balanceOf(address(this)) >= minSteth, "steth balance not high enough after sending to LIDO_STAKING_ADDRESS"); } /** @notice depositStethIdolMain deposits all of this contract's stETH into the IdolMain contract. */ function depositStethIdolMain() onlyOwner external { idolMain.depositSteth(steth.balanceOf(address(this))); } /** @notice getTotalMinted returns the total number of public + reserved God NFTs minted. */ function getTotalMinted() external view returns (uint) { return reservedGodsMinted + publicGodsMinted; } /** @notice setBaseURI sets the baseURI for the God NFTs. */ function setBaseURI(string memory uri) external onlyOwner { idolMain.setBaseURI(uri); } /** @notice Tears down the contract and allocates any remaining funds to the original contract owner. Should only be called after the mint completes and the contract's balance has been converted to Steth and deposited into IdolMain, or in a disaster scenario where we need to tear down the contract and refund minting fees. */ function tearDown() external onlyOwner { selfdestruct(payable(owner())); } modifier beforePublicSaleStarted { require(!publicSaleStarted, "Public sale has already started"); _; } modifier whenPublicSaleActive { require(publicSaleStarted && !publicSalePaused, "Public sale is not active"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) 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, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IIdolMain { function mint(address _mintAddress, uint _godId, bool _lock) external; function depositSteth(uint _stethAmt) external; function setBaseURI(string memory uri) external; function setVirtueTokenAddr(address _idolAddr) external; function setIdolMarketplaceAddr(address _marketplaceAddr) external; function balanceOf(address _owner) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IIdolMarketplace { function setVirtueTokenAddr(address _idolAddr) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface ICurvePool { function exchange ( int128 i, int128 j, uint256 dx, uint256 min_dy ) external payable returns ( uint256 ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./VirtueToken.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** @notice OfferingRefundContract is an airdrop contract which allows authenticated users to claim a portion of the contract's Ethereum based on how much they overpaid compared to the last price of the dutch auction. All of the calculations on how much ETH to refund to which users are calculated off-chain and authenticated through the Merkle tree. */ contract OfferingRefundContract is Ownable { // merkleRoot is the value of the root of the Merkle Tree used for authenticating airdrop claims. bytes32 public merkleRoot; // alreadyClaimed stores whether an address has already claimed its eligible refund. mapping(address => bool) public alreadyClaimed; constructor() {} /** @notice receive is implemented to allow this contract to receive ETH from IdolMintContract. Any ETH sent to this contract can then be withdrawn by addresses eligible for refund. */ receive() external payable {} /** @notice setMerkleRoot is used to set the root of the Merkle Tree that we will use to authenticate which users are eligible to withdraw refunds from this contract. */ function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /** @notice claimRefund will claim the ETH refund that an address is eligible to claim. The caller must pass the exact amount of ETH that the address is eligible to claim. @param _to The address to claim refund for. @param _refundAmount The amount of ETH refund to claim. @param _merkleProof The merkle proof used to authenticate the transaction against the Merkle root. */ function claimRefund(address _to, uint _refundAmount, bytes32[] calldata _merkleProof) external { require(!alreadyClaimed[_to], "Refund has already been claimed for this address"); // Verify against the Merkle tree that the transaction is authenticated for the user. bytes32 leaf = keccak256(abi.encodePacked(_to, _refundAmount)); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Failed to authenticate with merkle tree"); alreadyClaimed[_to] = true; Address.sendValue(payable(_to), _refundAmount); } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _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 = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _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(ERC721.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(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "hardhat/console.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @author 0xNeptune /** @notice VirtueToken initializes both the VIRTUE token and the VIRTUE token's associated bonding curve. The bonding curve is a linear interpolation of an expontential curve. The 'start_x' of the first bondSlice within bondCurve will be set to the amount of Steth within the treasury post mint but prior to the deployment of this contract. */ contract VirtueToken is ERC20Burnable { uint public bondedSteth; address public immutable idolMainAddress; address public immutable idolMarketAddress; struct bondSlice{ uint start_x; int slope; int intercept; } bondSlice[19] internal bondCurve; // Curve below is for illustrative purposes, final curve will not be decided until after the mint has occured. constructor( string memory name, string memory symbol, uint256 treasurySupply, address treasuryAddr, uint256 bondSupply, address idolContract, address marketContract) ERC20(name, symbol) { bondedSteth = 0; bondCurve[0] = bondSlice({start_x:0,slope:-228248550476,intercept:75000000000000000000000000}); bondCurve[1] = bondSlice({start_x:25000000000000000000000,slope:-210882750211,intercept:74565854993372400000000000}); bondCurve[2] = bondSlice({start_x:50000000000000000000000,slope:-194838189526,intercept:73763626959115100000000000}); bondCurve[3] = bondSlice({start_x:75000000000000000000000,slope:-180014344747,intercept:72651838600692400000000000}); bondCurve[4] = bondSlice({start_x:100000000000000000000000,slope:-159991353646,intercept:70649539490591900000000000}); bondCurve[5] = bondSlice({start_x:150000000000000000000000,slope:-136572283238,intercept:67136678929379100000000000}); bondCurve[6] = bondSlice({start_x:200000000000000000000000,slope:-116581228446,intercept:63138467970989800000000000}); bondCurve[7] = bondSlice({start_x:250000000000000000000000,slope:-95780563826,intercept:57938301816001500000000000}); bondCurve[8] = bondSlice({start_x:325000000000000000000000,slope:-75539912086,intercept:51360090000505800000000000}); bondCurve[9] = bondSlice({start_x:400000000000000000000000,slope:-57369920299,intercept:44092093285737000000000000}); bondCurve[10] = bondSlice({start_x:500000000000000000000000,slope:-40276389676,intercept:35545327974265900000000000}); bondCurve[11] = bondSlice({start_x:625000000000000000000000,slope:-27115378872,intercept:27319696221780300000000000}); bondCurve[12] = bondSlice({start_x:750000000000000000000000,slope:-18254957241,intercept:20674379998547900000000000}); bondCurve[13] = bondSlice({start_x:875000000000000000000000,slope:-12289832477,intercept:15454895830019000000000000}); bondCurve[14] = bondSlice({start_x:1000000000000000000000000,slope:-6922093002,intercept:10087156355048300000000000}); bondCurve[15] = bondSlice({start_x:1250000000000000000000000,slope:-3137384279,intercept:5356270451292460000000000}); bondCurve[16] = bondSlice({start_x:1500000000000000000000000,slope:-622755295,intercept:1584326975368420000000000}); bondCurve[17] = bondSlice({start_x:2500000000000000000000000,slope:-27508,intercept:27507507410700400000000}); bondCurve[18] = bondSlice({start_x:250000000000000000000000000,slope:0,intercept:0}); _mint(treasuryAddr, treasurySupply); _mint(idolContract, bondSupply); idolMainAddress = idolContract; idolMarketAddress = marketContract; } /** @notice transferFrom overrides ERC20's transferFrom function. It is written so that the marketplace contract automatically has approval to transfer VIRTUE for other addresses. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { // Automatically give the marketplace approval to transfer VIRTUE to save the user gas fees spent // on approval. if (msg.sender == idolMarketAddress){ _transfer(sender, recipient, amount); return true; } else { return super.transferFrom(sender, recipient, amount); } } /** @notice virtueBondCum is a helper function for getVirtueBondAmt. This function takes an amount of stETH (_stethAmt) as input and returns the cumulative amount of VIRTUE remaining in the bonding curve if the treasury had _stethAmt of Steth. */ function virtueBondCum(uint _stethAmt) public view returns (uint) { uint index; for (index = 0; index <= 18; index++) { if(bondCurve[index].start_x > _stethAmt){ break; } } require(index > 0, "Amount is below the start of the Bonding Curve"); int current_slope = bondCurve[index-1].slope; int current_int = bondCurve[index-1].intercept; return uint(int(_stethAmt) * current_slope / (10**9) + current_int); } /** @notice incrementBondedSteth updates the bondedSteth variable -- only the idol main contract is allowed to call it. */ function incrementBondedSteth(uint256 _incAmt) external onlyIdolMain { bondedSteth = bondedSteth + _incAmt; } /** @notice getVirtueBondAmt takes an amount of stETH as input and returns the amount of VIRTUE that the bonding curve is currently offering in exchange for that amount of stETH. @param _stethAmt - the amount of stETH that the user would like to exchange for VIRTUE via the bonding curve. @return (uint256) the amount of VIRTUE that the user would receive if they deposited the specified amount of stETH the bonding curve at this moment. */ function getVirtueBondAmt(uint256 _stethAmt) public view returns (uint256) { return virtueBondCum(bondedSteth) - virtueBondCum(bondedSteth + _stethAmt); } modifier onlyIdolMain { require(msg.sender == idolMainAddress, "Function can only be called by IdolMain"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_metadataHash","type":"string"},{"internalType":"string","name":"_discordGeneratedHash","type":"string"},{"internalType":"address","name":"_stethAddress","type":"address"},{"internalType":"address payable","name":"_offeringRefundContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_numMinted","type":"uint256"}],"name":"IdolsMinted","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":true,"internalType":"uint256","name":"_currentPrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_timeElapsed","type":"uint256"}],"name":"PublicSalePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleResumeTime","type":"uint256"}],"name":"PublicSaleResumed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleDuration","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_saleStartTime","type":"uint256"}],"name":"PublicSaleStart","type":"event"},{"inputs":[],"name":"MAX_GODS_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GODS_TO_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_RESERVED_NFTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressReferencesSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositStethIdolMain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingSaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"godIdOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"idolMain","outputs":[{"internalType":"contract IIdolMain","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"idolMarketplace","outputs":[{"internalType":"contract IIdolMarketplace","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numGodsToMint","type":"uint256"}],"name":"mintGods","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numGodsToMint","type":"uint256"},{"internalType":"address","name":"_mintAddress","type":"address"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"mintReservedGods","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"offeringRefundContract","outputs":[{"internalType":"contract OfferingRefundContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pausePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicGodsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleGodEndingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleGodStartingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePausedElapsedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedGodsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"resumePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalRefundAmount","type":"uint256"}],"name":"sendToOfferingRefundContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_idolMainAddress","type":"address"},{"internalType":"address","name":"_idolMarketplaceAddress","type":"address"},{"internalType":"address","name":"_virtueTokenAddress","type":"address"}],"name":"setAddressReferences","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleDuration","type":"uint256"},{"internalType":"uint256","name":"_saleStartPrice","type":"uint256"},{"internalType":"uint256","name":"_saleEndPrice","type":"uint256"}],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"steth","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stethPool","outputs":[{"internalType":"contract ICurvePool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slippageBps","type":"uint256"}],"name":"swap","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slippageBps","type":"uint256"}],"name":"swapLido","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tearDown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040526000600860006101000a81548160ff0219169083151502179055506000600860016101000a81548160ff0219169083151502179055506000600a60006101000a81548160ff0219169083151502179055503480156200006357600080fd5b50604051620041a4380380620041a48339818101604052810190620000899190620004c1565b620000a96200009d620001ae60201b60201c565b620001b660201b60201c565b600180819055506127108484604051602001620000c8929190620005be565b6040516020818303038152906040528051906020012060001c620000ed91906200061f565b6080818152505073dc24316b9ae028f1497c275eb9192a3ea0f6702273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff16815250505050505062000657565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002e38262000298565b810181811067ffffffffffffffff82111715620003055762000304620002a9565b5b80604052505050565b60006200031a6200027a565b9050620003288282620002d8565b919050565b600067ffffffffffffffff8211156200034b576200034a620002a9565b5b620003568262000298565b9050602081019050919050565b60005b838110156200038357808201518184015260208101905062000366565b8381111562000393576000848401525b50505050565b6000620003b0620003aa846200032d565b6200030e565b905082815260208101848484011115620003cf57620003ce62000293565b5b620003dc84828562000363565b509392505050565b600082601f830112620003fc57620003fb6200028e565b5b81516200040e84826020860162000399565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004448262000417565b9050919050565b620004568162000437565b81146200046257600080fd5b50565b60008151905062000476816200044b565b92915050565b6000620004898262000417565b9050919050565b6200049b816200047c565b8114620004a757600080fd5b50565b600081519050620004bb8162000490565b92915050565b60008060008060808587031215620004de57620004dd62000284565b5b600085015167ffffffffffffffff811115620004ff57620004fe62000289565b5b6200050d87828801620003e4565b945050602085015167ffffffffffffffff81111562000531576200053062000289565b5b6200053f87828801620003e4565b9350506040620005528782880162000465565b92505060606200056587828801620004aa565b91505092959194509250565b600081519050919050565b600081905092915050565b6000620005948262000571565b620005a081856200057c565b9350620005b281856020860162000363565b80840191505092915050565b6000620005cc828562000587565b9150620005da828462000587565b91508190509392505050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006200062c82620005e6565b91506200063983620005e6565b9250826200064c576200064b620005f0565b5b828206905092915050565b60805160a05160c05160e051613adb620006c960003960008181610d89015261101e015260008181610a22015281816110d9015281816111ad015281816113ec015261180001526000818161172d01526120f70152600081816119b101528181611f7d015261211b0152613adb6000f3fe60806040526004361061021a5760003560e01c806394b20ab711610123578063cf050f9a116100ab578063ec1e6a4f1161006f578063ec1e6a4f14610726578063eee105011461073d578063f2fde38b14610768578063fbce870314610791578063fd48354e146107bc5761021a565b8063cf050f9a1461065e578063d95b007b1461067a578063dfed9921146106a5578063e4cce93c146106d0578063e726fe6b146106fb5761021a565b8063a2e91477116100f2578063a2e914771461059d578063a7844524146105c8578063a7f93ebd146105f1578063be1777731461061c578063c51be5a4146106475761021a565b806394b20ab7146104e157806394b918de1461050a578063953d7ee2146105475780639cbce8a3146105725761021a565b80636bb7b1d9116101a65780638313214911610175578063831321491461040e57806386cfbb271461043757806388491f90146104625780638d5c8dac1461048d5780638da5cb5b146104b65761021a565b80636bb7b1d9146103785780636c090c3f146103a357806370eb754c146103ce578063715018a6146103f75761021a565b806342a15d7b116101ed57806342a15d7b146102b757806344644323146102ce57806350d0a139146102f957806355f804b314610324578063567ac4f61461034d5761021a565b8063069cd5731461021f578063071995ec1461024a5780630c41f497146102755780630ca1c5c91461028c575b600080fd5b34801561022b57600080fd5b506102346107e7565b604051610241919061252b565b60405180910390f35b34801561025657600080fd5b5061025f6107fa565b60405161026c919061255f565b60405180910390f35b34801561028157600080fd5b5061028a6107ff565b005b34801561029857600080fd5b506102a161094f565b6040516102ae919061255f565b60405180910390f35b3480156102c357600080fd5b506102cc610966565b005b3480156102da57600080fd5b506102e3610b19565b6040516102f0919061255f565b60405180910390f35b34801561030557600080fd5b5061030e610b1f565b60405161031b919061255f565b60405180910390f35b34801561033057600080fd5b5061034b600480360381019061034691906126d4565b610b25565b005b34801561035957600080fd5b50610362610c31565b60405161036f919061255f565b60405180910390f35b34801561038457600080fd5b5061038d610cae565b60405161039a919061255f565b60405180910390f35b3480156103af57600080fd5b506103b8610cb4565b6040516103c5919061255f565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f09190612749565b610cba565b005b34801561040357600080fd5b5061040c610db8565b005b34801561041a57600080fd5b5061043560048036038101906104309190612776565b610e40565b005b34801561044357600080fd5b5061044c611009565b604051610459919061252b565b60405180910390f35b34801561046e57600080fd5b5061047761101c565b6040516104849190612848565b60405180910390f35b34801561049957600080fd5b506104b460048036038101906104af9190612749565b611040565b005b3480156104c257600080fd5b506104cb611299565b6040516104d89190612884565b60405180910390f35b3480156104ed57600080fd5b50610508600480360381019061050391906128cb565b6112c2565b005b34801561051657600080fd5b50610531600480360381019061052c9190612749565b6116ad565b60405161053e919061255f565b60405180910390f35b34801561055357600080fd5b5061055c6117fe565b6040516105699190612951565b60405180910390f35b34801561057e57600080fd5b50610587611822565b604051610594919061255f565b60405180910390f35b3480156105a957600080fd5b506105b2611828565b6040516105bf919061252b565b60405180910390f35b3480156105d457600080fd5b506105ef60048036038101906105ea9190612998565b61183b565b005b3480156105fd57600080fd5b50610606611ad3565b604051610613919061255f565b60405180910390f35b34801561062857600080fd5b50610631611b6c565b60405161063e9190612a0c565b60405180910390f35b34801561065357600080fd5b5061065c611b92565b005b61067860048036038101906106739190612749565b611cbb565b005b34801561068657600080fd5b5061068f6120ef565b60405161069c919061255f565b60405180910390f35b3480156106b157600080fd5b506106ba6120f5565b6040516106c79190612a48565b60405180910390f35b3480156106dc57600080fd5b506106e5612119565b6040516106f2919061255f565b60405180910390f35b34801561070757600080fd5b5061071061213d565b60405161071d919061255f565b60405180910390f35b34801561073257600080fd5b5061073b612143565b005b34801561074957600080fd5b506107526121df565b60405161075f9190612a84565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a9190612a9f565b612205565b005b34801561079d57600080fd5b506107a66122fd565b6040516107b3919061255f565b60405180910390f35b3480156107c857600080fd5b506107d1612303565b6040516107de919061255f565b60405180910390f35b600860019054906101000a900460ff1681565b601481565b610807612309565b73ffffffffffffffffffffffffffffffffffffffff16610825611299565b73ffffffffffffffffffffffffffffffffffffffff161461087b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087290612b29565b60405180910390fd5b600860009054906101000a900460ff1680156108a45750600860019054906101000a900460ff16155b6108e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108da90612b95565b60405180910390fd5b60006108ed611ad3565b905060006108f9612311565b9050806009819055506001600860016101000a81548160ff02191690831515021790555080827f6349058becdb87a65b3cda491b5893b82a0f75f57ddf0d2fbb373d2371a02a8b60405160405180910390a35050565b60006002546003546109619190612be4565b905090565b61096e612309565b73ffffffffffffffffffffffffffffffffffffffff1661098c611299565b73ffffffffffffffffffffffffffffffffffffffff16146109e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d990612b29565b60405180910390fd5b600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e2cd1bb07f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a799190612884565b60206040518083038186803b158015610a9157600080fd5b505afa158015610aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac99190612c4f565b6040518263ffffffff1660e01b8152600401610ae5919061255f565b600060405180830381600087803b158015610aff57600080fd5b505af1158015610b13573d6000803e3d6000fd5b50505050565b60095481565b60075481565b610b2d612309565b73ffffffffffffffffffffffffffffffffffffffff16610b4b611299565b73ffffffffffffffffffffffffffffffffffffffff1614610ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9890612b29565b60405180910390fd5b600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166355f804b3826040518263ffffffff1660e01b8152600401610bfc9190612cf3565b600060405180830381600087803b158015610c1657600080fd5b505af1158015610c2a573d6000803e3d6000fd5b5050505050565b6000806005541415610c485762093a809050610cab565b600860019054906101000a900460ff1615610c7457600954600454610c6d9190612d15565b9050610cab565b600454610c7f612311565b10610c8d5760009050610cab565b42600454600554610c9e9190612be4565b610ca89190612d15565b90505b90565b60055481565b6103e881565b610cc2612309565b73ffffffffffffffffffffffffffffffffffffffff16610ce0611299565b73ffffffffffffffffffffffffffffffffffffffff1614610d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2d90612b29565b60405180910390fd5b60026001541415610d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7390612d95565b60405180910390fd5b6002600181905550610dae7f000000000000000000000000000000000000000000000000000000000000000082612358565b6001808190555050565b610dc0612309565b73ffffffffffffffffffffffffffffffffffffffff16610dde611299565b73ffffffffffffffffffffffffffffffffffffffff1614610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90612b29565b60405180910390fd5b610e3e600061244c565b565b610e48612309565b73ffffffffffffffffffffffffffffffffffffffff16610e66611299565b73ffffffffffffffffffffffffffffffffffffffff1614610ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb390612b29565b60405180910390fd5b600860009054906101000a900460ff1615610f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0390612e01565b60405180910390fd5b808211610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4590612e93565b60405180910390fd5b600a60009054906101000a900460ff16610f9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9490612f4b565b60405180910390fd5b826004819055508160068190555080600781905550426005819055506001600860006101000a81548160ff021916908315150217905550600554837ffa7b432778a53a8786452c3cefdd1df8a17f43f9b4587fb4d61b23098e6190af60405160405180910390a3505050565b600a60009054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b611048612309565b73ffffffffffffffffffffffffffffffffffffffff16611066611299565b73ffffffffffffffffffffffffffffffffffffffff16146110bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b390612b29565b60405180910390fd5b600061271082476110cd9190612f6b565b6110d79190612ff4565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111309190612884565b60206040518083038186803b15801561114857600080fd5b505afa15801561115c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111809190612c4f565b61118a9190612be4565b90506111aa73ae7ab96520de3a18e5e111b5eaab095312d7fe8447612358565b807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112049190612884565b60206040518083038186803b15801561121c57600080fd5b505afa158015611230573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112549190612c4f565b1015611295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128c906130bd565b60405180910390fd5b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112ca612309565b73ffffffffffffffffffffffffffffffffffffffff166112e8611299565b73ffffffffffffffffffffffffffffffffffffffff161461133e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133590612b29565b60405180910390fd5b600860009054906101000a900460ff161561138e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138590612e01565b60405180910390fd5b6001600a60006101000a81548160ff02191690831515021790555082600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3847f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401611465929190613118565b602060405180830381600087803b15801561147f57600080fd5b505af1158015611493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b79190613156565b6114c057600080fd5b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e89236f826040518263ffffffff1660e01b815260040161155c9190612884565b600060405180830381600087803b15801561157657600080fd5b505af115801561158a573d6000803e3d6000fd5b50505050600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166335503ad4836040518263ffffffff1660e01b81526004016115e99190612884565b600060405180830381600087803b15801561160357600080fd5b505af1158015611617573d6000803e3d6000fd5b50505050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e89236f826040518263ffffffff1660e01b81526004016116769190612884565b600060405180830381600087803b15801561169057600080fd5b505af11580156116a4573d6000803e3d6000fd5b50505050505050565b60006116b7612309565b73ffffffffffffffffffffffffffffffffffffffff166116d5611299565b73ffffffffffffffffffffffffffffffffffffffff161461172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172290612b29565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16633df02124476000600147612710884761177c9190612f6b565b6117869190612ff4565b6040518663ffffffff1660e01b81526004016117a59493929190613206565b6020604051808303818588803b1580156117be57600080fd5b505af11580156117d2573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906117f79190612c4f565b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60065481565b600860009054906101000a900460ff1681565b611843612309565b73ffffffffffffffffffffffffffffffffffffffff16611861611299565b73ffffffffffffffffffffffffffffffffffffffff16146118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90612b29565b60405180910390fd5b600260015414156118fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f490612d95565b60405180910390fd5b60026001819055506103e8836003546119169190612be4565b10611956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194d906132bd565b60405180910390fd5b60008311611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090613329565b60405180910390fd5b60005b83811015611aad5760006127106103e86127107f0000000000000000000000000000000000000000000000000000000000000000856003546119de9190612be4565b6119e89190612be4565b6119f29190612be4565b6119fc9190612d15565b611a069190613349565b9050600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d1a1beb48583866040518463ffffffff1660e01b8152600401611a679392919061337a565b600060405180830381600087803b158015611a8157600080fd5b505af1158015611a95573d6000803e3d6000fd5b50505050508080611aa5906133b1565b91505061199c565b508260036000828254611ac09190612be4565b9250508190555060018081905550505050565b6000600860009054906101000a900460ff16611af25760009050611b69565b6000611afc612311565b90506004548110611b1257600754915050611b69565b600081600454600654600754611b289190613404565b611b329190613498565b611b3c9190613502565b600654611b499190613619565b905060008190506007548111611b6157600754611b63565b805b93505050505b90565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b9a612309565b73ffffffffffffffffffffffffffffffffffffffff16611bb8611299565b73ffffffffffffffffffffffffffffffffffffffff1614611c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0590612b29565b60405180910390fd5b600860019054906101000a900460ff16611c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c549061371f565b60405180910390fd5b6000600860016101000a81548160ff02191690831515021790555060095442611c869190612d15565b600581905550427f55164728fe5052bebf6b9610bc9d4f310029bf52fff12f0d8d9601b6b60474e960405160405180910390a2565b600860009054906101000a900460ff168015611ce45750600860019054906101000a900460ff16155b611d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1a90612b95565b60405180910390fd5b60026001541415611d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6090612d95565b60405180910390fd5b60026001819055506103e8612710611d819190612d15565b81600254611d8f9190612be4565b1115611dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc79061378b565b60405180910390fd5b60008111611e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0a90613329565b60405180910390fd5b601481600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401611e719190612884565b60206040518083038186803b158015611e8957600080fd5b505afa158015611e9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec19190612c4f565b611ecb9190612be4565b1115611f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0390613843565b60405180910390fd5b6000611f16611ad3565b905060008282611f269190612f6b565b905034811115611f6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f62906138af565b60405180910390fd5b60005b838110156120665760006127107f000000000000000000000000000000000000000000000000000000000000000083600254611faa9190612be4565b611fb49190612be4565b611fbe9190613349565b9050600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d1a1beb4338360006040518463ffffffff1660e01b81526004016120209392919061337a565b600060405180830381600087803b15801561203a57600080fd5b505af115801561204e573d6000803e3d6000fd5b5050505050808061205e906133b1565b915050611f6e565b5082600260008282546120799190612be4565b925050819055508034111561209e5761209d3382346120989190612d15565b612358565b5b82823373ffffffffffffffffffffffffffffffffffffffff167f904351c035f52ed22610539b5b57ea16a654b7ba5d9a60f86eab9dcb4df26ea660405160405180910390a450506001808190555050565b60025481565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b61271081565b61214b612309565b73ffffffffffffffffffffffffffffffffffffffff16612169611299565b73ffffffffffffffffffffffffffffffffffffffff16146121bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b690612b29565b60405180910390fd5b6121c7611299565b73ffffffffffffffffffffffffffffffffffffffff16ff5b600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61220d612309565b73ffffffffffffffffffffffffffffffffffffffff1661222b611299565b73ffffffffffffffffffffffffffffffffffffffff1614612281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227890612b29565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e890613941565b60405180910390fd5b6122fa8161244c565b50565b60035481565b60045481565b600033905090565b6000600860019054906101000a900460ff1615612332576009549050612355565b600060055411612343576000612352565b600554426123519190612d15565b5b90505b90565b8047101561239b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612392906139ad565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516123c1906139fe565b60006040518083038185875af1925050503d80600081146123fe576040519150601f19603f3d011682016040523d82523d6000602084013e612403565b606091505b5050905080612447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243e90613a85565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008115159050919050565b61252581612510565b82525050565b6000602082019050612540600083018461251c565b92915050565b6000819050919050565b61255981612546565b82525050565b60006020820190506125746000830184612550565b92915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6125e182612598565b810181811067ffffffffffffffff82111715612600576125ff6125a9565b5b80604052505050565b600061261361257a565b905061261f82826125d8565b919050565b600067ffffffffffffffff82111561263f5761263e6125a9565b5b61264882612598565b9050602081019050919050565b82818337600083830152505050565b600061267761267284612624565b612609565b90508281526020810184848401111561269357612692612593565b5b61269e848285612655565b509392505050565b600082601f8301126126bb576126ba61258e565b5b81356126cb848260208601612664565b91505092915050565b6000602082840312156126ea576126e9612584565b5b600082013567ffffffffffffffff81111561270857612707612589565b5b612714848285016126a6565b91505092915050565b61272681612546565b811461273157600080fd5b50565b6000813590506127438161271d565b92915050565b60006020828403121561275f5761275e612584565b5b600061276d84828501612734565b91505092915050565b60008060006060848603121561278f5761278e612584565b5b600061279d86828701612734565b93505060206127ae86828701612734565b92505060406127bf86828701612734565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061280e612809612804846127c9565b6127e9565b6127c9565b9050919050565b6000612820826127f3565b9050919050565b600061283282612815565b9050919050565b61284281612827565b82525050565b600060208201905061285d6000830184612839565b92915050565b600061286e826127c9565b9050919050565b61287e81612863565b82525050565b60006020820190506128996000830184612875565b92915050565b6128a881612863565b81146128b357600080fd5b50565b6000813590506128c58161289f565b92915050565b6000806000606084860312156128e4576128e3612584565b5b60006128f2868287016128b6565b9350506020612903868287016128b6565b9250506040612914868287016128b6565b9150509250925092565b6000612929826127f3565b9050919050565b600061293b8261291e565b9050919050565b61294b81612930565b82525050565b60006020820190506129666000830184612942565b92915050565b61297581612510565b811461298057600080fd5b50565b6000813590506129928161296c565b92915050565b6000806000606084860312156129b1576129b0612584565b5b60006129bf86828701612734565b93505060206129d0868287016128b6565b92505060406129e186828701612983565b9150509250925092565b60006129f68261291e565b9050919050565b612a06816129eb565b82525050565b6000602082019050612a2160008301846129fd565b92915050565b6000612a328261291e565b9050919050565b612a4281612a27565b82525050565b6000602082019050612a5d6000830184612a39565b92915050565b6000612a6e8261291e565b9050919050565b612a7e81612a63565b82525050565b6000602082019050612a996000830184612a75565b92915050565b600060208284031215612ab557612ab4612584565b5b6000612ac3848285016128b6565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612b13602083612acc565b9150612b1e82612add565b602082019050919050565b60006020820190508181036000830152612b4281612b06565b9050919050565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b6000612b7f601983612acc565b9150612b8a82612b49565b602082019050919050565b60006020820190508181036000830152612bae81612b72565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612bef82612546565b9150612bfa83612546565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612c2f57612c2e612bb5565b5b828201905092915050565b600081519050612c498161271d565b92915050565b600060208284031215612c6557612c64612584565b5b6000612c7384828501612c3a565b91505092915050565b600081519050919050565b60005b83811015612ca5578082015181840152602081019050612c8a565b83811115612cb4576000848401525b50505050565b6000612cc582612c7c565b612ccf8185612acc565b9350612cdf818560208601612c87565b612ce881612598565b840191505092915050565b60006020820190508181036000830152612d0d8184612cba565b905092915050565b6000612d2082612546565b9150612d2b83612546565b925082821015612d3e57612d3d612bb5565b5b828203905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612d7f601f83612acc565b9150612d8a82612d49565b602082019050919050565b60006020820190508181036000830152612dae81612d72565b9050919050565b7f5075626c69632073616c652068617320616c7265616479207374617274656400600082015250565b6000612deb601f83612acc565b9150612df682612db5565b602082019050919050565b60006020820190508181036000830152612e1a81612dde565b9050919050565b7f5f73616c6553746172745072696365206d75737420626520677265617465722060008201527f7468616e205f73616c65456e6450726963650000000000000000000000000000602082015250565b6000612e7d603283612acc565b9150612e8882612e21565b604082019050919050565b60006020820190508181036000830152612eac81612e70565b9050919050565b7f45787465726e616c207265666572656e636520636f6e747261637473206d757360008201527f7420616c6c20626520736574206265666f7265207075626c69632073616c652060208201527f7374617274730000000000000000000000000000000000000000000000000000604082015250565b6000612f35604683612acc565b9150612f4082612eb3565b606082019050919050565b60006020820190508181036000830152612f6481612f28565b9050919050565b6000612f7682612546565b9150612f8183612546565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612fba57612fb9612bb5565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612fff82612546565b915061300a83612546565b92508261301a57613019612fc5565b5b828204905092915050565b7f73746574682062616c616e6365206e6f74206869676820656e6f75676820616660008201527f7465722073656e64696e6720746f204c49444f5f5354414b494e475f4144445260208201527f4553530000000000000000000000000000000000000000000000000000000000604082015250565b60006130a7604383612acc565b91506130b282613025565b606082019050919050565b600060208201905081810360008301526130d68161309a565b9050919050565b6000819050919050565b60006131026130fd6130f8846130dd565b6127e9565b612546565b9050919050565b613112816130e7565b82525050565b600060408201905061312d6000830185612875565b61313a6020830184613109565b9392505050565b6000815190506131508161296c565b92915050565b60006020828403121561316c5761316b612584565b5b600061317a84828501613141565b91505092915050565b6000819050919050565b600081600f0b9050919050565b60006131b56131b06131ab84613183565b6127e9565b61318d565b9050919050565b6131c58161319a565b82525050565b6000819050919050565b60006131f06131eb6131e6846131cb565b6127e9565b61318d565b9050919050565b613200816131d5565b82525050565b600060808201905061321b60008301876131bc565b61322860208301866131f7565b6132356040830185612550565b6132426060830184612550565b95945050505050565b7f4d696e74696e6720776f756c6420657863656564206d6178207265736572766560008201527f6420737570706c79000000000000000000000000000000000000000000000000602082015250565b60006132a7602883612acc565b91506132b28261324b565b604082019050919050565b600060208201905081810360008301526132d68161329a565b9050919050565b7f4d757374206d696e74206174206c65617374206f6e6520676f64000000000000600082015250565b6000613313601a83612acc565b915061331e826132dd565b602082019050919050565b6000602082019050818103600083015261334281613306565b9050919050565b600061335482612546565b915061335f83612546565b92508261336f5761336e612fc5565b5b828206905092915050565b600060608201905061338f6000830186612875565b61339c6020830185612550565b6133a9604083018461251c565b949350505050565b60006133bc82612546565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156133ef576133ee612bb5565b5b600182019050919050565b6000819050919050565b600061340f826133fa565b915061341a836133fa565b9250827f80000000000000000000000000000000000000000000000000000000000000000182126000841215161561345557613454612bb5565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01821360008412161561348d5761348c612bb5565b5b828203905092915050565b60006134a3826133fa565b91506134ae836133fa565b9250826134be576134bd612fc5565b5b600160000383147f8000000000000000000000000000000000000000000000000000000000000000831416156134f7576134f6612bb5565b5b828205905092915050565b600061350d826133fa565b9150613518836133fa565b9250827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211600084136000841316161561355757613556612bb5565b5b817f8000000000000000000000000000000000000000000000000000000000000000058312600084126000841316161561359457613593612bb5565b5b827f800000000000000000000000000000000000000000000000000000000000000005821260008413600084121616156135d1576135d0612bb5565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff058212600084126000841216161561360e5761360d612bb5565b5b828202905092915050565b6000613624826133fa565b915061362f836133fa565b9250817f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0383136000831215161561366a57613669612bb5565b5b817f80000000000000000000000000000000000000000000000000000000000000000383126000831216156136a2576136a1612bb5565b5b828201905092915050565b7f43616e206f6e6c7920726573756d65207768656e207468652073616c6520697360008201527f2070617573656400000000000000000000000000000000000000000000000000602082015250565b6000613709602783612acc565b9150613714826136ad565b604082019050919050565b60006020820190508181036000830152613738816136fc565b9050919050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900600082015250565b6000613775601f83612acc565b91506137808261373f565b602082019050919050565b600060208201905081810360008301526137a481613768565b9050919050565b7f526571756573746564206e756d62657220776f756c642065786365656420746860008201527f65206d6178696d756d206e756d626572206f6620676f647320616c6c6f77656460208201527f20746f206265206d696e74656420666f72207468697320616464726573732e00604082015250565b600061382d605f83612acc565b9150613838826137ab565b606082019050919050565b6000602082019050818103600083015261385c81613820565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000613899601f83612acc565b91506138a482613863565b602082019050919050565b600060208201905081810360008301526138c88161388c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061392b602683612acc565b9150613936826138cf565b604082019050919050565b6000602082019050818103600083015261395a8161391e565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613997601d83612acc565b91506139a282613961565b602082019050919050565b600060208201905081810360008301526139c68161398a565b9050919050565b600081905092915050565b50565b60006139e86000836139cd565b91506139f3826139d8565b600082019050919050565b6000613a09826139db565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613a6f603a83612acc565b9150613a7a82613a13565b604082019050919050565b60006020820190508181036000830152613a9e81613a62565b905091905056fea264697066735822122085c42ecbd89860181d9e8de761a833640d376eb4deeb223d708a7350271150c664736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe840000000000000000000000002e94c074d7360dccf0d7b2891d867b734978e8ad000000000000000000000000000000000000000000000000000000000000004037373539333334373633336435613334363134373763326636613834303964366538393564343362333832373636323535356464623736396336373837666131000000000000000000000000000000000000000000000000000000000000004038666366656330346638346265336532326333373663333266356535613032653862616336393866306264323436393031633563366232363331316633626139
Deployed Bytecode
0x60806040526004361061021a5760003560e01c806394b20ab711610123578063cf050f9a116100ab578063ec1e6a4f1161006f578063ec1e6a4f14610726578063eee105011461073d578063f2fde38b14610768578063fbce870314610791578063fd48354e146107bc5761021a565b8063cf050f9a1461065e578063d95b007b1461067a578063dfed9921146106a5578063e4cce93c146106d0578063e726fe6b146106fb5761021a565b8063a2e91477116100f2578063a2e914771461059d578063a7844524146105c8578063a7f93ebd146105f1578063be1777731461061c578063c51be5a4146106475761021a565b806394b20ab7146104e157806394b918de1461050a578063953d7ee2146105475780639cbce8a3146105725761021a565b80636bb7b1d9116101a65780638313214911610175578063831321491461040e57806386cfbb271461043757806388491f90146104625780638d5c8dac1461048d5780638da5cb5b146104b65761021a565b80636bb7b1d9146103785780636c090c3f146103a357806370eb754c146103ce578063715018a6146103f75761021a565b806342a15d7b116101ed57806342a15d7b146102b757806344644323146102ce57806350d0a139146102f957806355f804b314610324578063567ac4f61461034d5761021a565b8063069cd5731461021f578063071995ec1461024a5780630c41f497146102755780630ca1c5c91461028c575b600080fd5b34801561022b57600080fd5b506102346107e7565b604051610241919061252b565b60405180910390f35b34801561025657600080fd5b5061025f6107fa565b60405161026c919061255f565b60405180910390f35b34801561028157600080fd5b5061028a6107ff565b005b34801561029857600080fd5b506102a161094f565b6040516102ae919061255f565b60405180910390f35b3480156102c357600080fd5b506102cc610966565b005b3480156102da57600080fd5b506102e3610b19565b6040516102f0919061255f565b60405180910390f35b34801561030557600080fd5b5061030e610b1f565b60405161031b919061255f565b60405180910390f35b34801561033057600080fd5b5061034b600480360381019061034691906126d4565b610b25565b005b34801561035957600080fd5b50610362610c31565b60405161036f919061255f565b60405180910390f35b34801561038457600080fd5b5061038d610cae565b60405161039a919061255f565b60405180910390f35b3480156103af57600080fd5b506103b8610cb4565b6040516103c5919061255f565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f09190612749565b610cba565b005b34801561040357600080fd5b5061040c610db8565b005b34801561041a57600080fd5b5061043560048036038101906104309190612776565b610e40565b005b34801561044357600080fd5b5061044c611009565b604051610459919061252b565b60405180910390f35b34801561046e57600080fd5b5061047761101c565b6040516104849190612848565b60405180910390f35b34801561049957600080fd5b506104b460048036038101906104af9190612749565b611040565b005b3480156104c257600080fd5b506104cb611299565b6040516104d89190612884565b60405180910390f35b3480156104ed57600080fd5b50610508600480360381019061050391906128cb565b6112c2565b005b34801561051657600080fd5b50610531600480360381019061052c9190612749565b6116ad565b60405161053e919061255f565b60405180910390f35b34801561055357600080fd5b5061055c6117fe565b6040516105699190612951565b60405180910390f35b34801561057e57600080fd5b50610587611822565b604051610594919061255f565b60405180910390f35b3480156105a957600080fd5b506105b2611828565b6040516105bf919061252b565b60405180910390f35b3480156105d457600080fd5b506105ef60048036038101906105ea9190612998565b61183b565b005b3480156105fd57600080fd5b50610606611ad3565b604051610613919061255f565b60405180910390f35b34801561062857600080fd5b50610631611b6c565b60405161063e9190612a0c565b60405180910390f35b34801561065357600080fd5b5061065c611b92565b005b61067860048036038101906106739190612749565b611cbb565b005b34801561068657600080fd5b5061068f6120ef565b60405161069c919061255f565b60405180910390f35b3480156106b157600080fd5b506106ba6120f5565b6040516106c79190612a48565b60405180910390f35b3480156106dc57600080fd5b506106e5612119565b6040516106f2919061255f565b60405180910390f35b34801561070757600080fd5b5061071061213d565b60405161071d919061255f565b60405180910390f35b34801561073257600080fd5b5061073b612143565b005b34801561074957600080fd5b506107526121df565b60405161075f9190612a84565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a9190612a9f565b612205565b005b34801561079d57600080fd5b506107a66122fd565b6040516107b3919061255f565b60405180910390f35b3480156107c857600080fd5b506107d1612303565b6040516107de919061255f565b60405180910390f35b600860019054906101000a900460ff1681565b601481565b610807612309565b73ffffffffffffffffffffffffffffffffffffffff16610825611299565b73ffffffffffffffffffffffffffffffffffffffff161461087b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087290612b29565b60405180910390fd5b600860009054906101000a900460ff1680156108a45750600860019054906101000a900460ff16155b6108e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108da90612b95565b60405180910390fd5b60006108ed611ad3565b905060006108f9612311565b9050806009819055506001600860016101000a81548160ff02191690831515021790555080827f6349058becdb87a65b3cda491b5893b82a0f75f57ddf0d2fbb373d2371a02a8b60405160405180910390a35050565b60006002546003546109619190612be4565b905090565b61096e612309565b73ffffffffffffffffffffffffffffffffffffffff1661098c611299565b73ffffffffffffffffffffffffffffffffffffffff16146109e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d990612b29565b60405180910390fd5b600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e2cd1bb07f000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a799190612884565b60206040518083038186803b158015610a9157600080fd5b505afa158015610aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac99190612c4f565b6040518263ffffffff1660e01b8152600401610ae5919061255f565b600060405180830381600087803b158015610aff57600080fd5b505af1158015610b13573d6000803e3d6000fd5b50505050565b60095481565b60075481565b610b2d612309565b73ffffffffffffffffffffffffffffffffffffffff16610b4b611299565b73ffffffffffffffffffffffffffffffffffffffff1614610ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9890612b29565b60405180910390fd5b600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166355f804b3826040518263ffffffff1660e01b8152600401610bfc9190612cf3565b600060405180830381600087803b158015610c1657600080fd5b505af1158015610c2a573d6000803e3d6000fd5b5050505050565b6000806005541415610c485762093a809050610cab565b600860019054906101000a900460ff1615610c7457600954600454610c6d9190612d15565b9050610cab565b600454610c7f612311565b10610c8d5760009050610cab565b42600454600554610c9e9190612be4565b610ca89190612d15565b90505b90565b60055481565b6103e881565b610cc2612309565b73ffffffffffffffffffffffffffffffffffffffff16610ce0611299565b73ffffffffffffffffffffffffffffffffffffffff1614610d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2d90612b29565b60405180910390fd5b60026001541415610d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7390612d95565b60405180910390fd5b6002600181905550610dae7f0000000000000000000000002e94c074d7360dccf0d7b2891d867b734978e8ad82612358565b6001808190555050565b610dc0612309565b73ffffffffffffffffffffffffffffffffffffffff16610dde611299565b73ffffffffffffffffffffffffffffffffffffffff1614610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90612b29565b60405180910390fd5b610e3e600061244c565b565b610e48612309565b73ffffffffffffffffffffffffffffffffffffffff16610e66611299565b73ffffffffffffffffffffffffffffffffffffffff1614610ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb390612b29565b60405180910390fd5b600860009054906101000a900460ff1615610f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0390612e01565b60405180910390fd5b808211610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4590612e93565b60405180910390fd5b600a60009054906101000a900460ff16610f9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9490612f4b565b60405180910390fd5b826004819055508160068190555080600781905550426005819055506001600860006101000a81548160ff021916908315150217905550600554837ffa7b432778a53a8786452c3cefdd1df8a17f43f9b4587fb4d61b23098e6190af60405160405180910390a3505050565b600a60009054906101000a900460ff1681565b7f0000000000000000000000002e94c074d7360dccf0d7b2891d867b734978e8ad81565b611048612309565b73ffffffffffffffffffffffffffffffffffffffff16611066611299565b73ffffffffffffffffffffffffffffffffffffffff16146110bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b390612b29565b60405180910390fd5b600061271082476110cd9190612f6b565b6110d79190612ff4565b7f000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111309190612884565b60206040518083038186803b15801561114857600080fd5b505afa15801561115c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111809190612c4f565b61118a9190612be4565b90506111aa73ae7ab96520de3a18e5e111b5eaab095312d7fe8447612358565b807f000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112049190612884565b60206040518083038186803b15801561121c57600080fd5b505afa158015611230573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112549190612c4f565b1015611295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128c906130bd565b60405180910390fd5b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112ca612309565b73ffffffffffffffffffffffffffffffffffffffff166112e8611299565b73ffffffffffffffffffffffffffffffffffffffff161461133e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133590612b29565b60405180910390fd5b600860009054906101000a900460ff161561138e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138590612e01565b60405180910390fd5b6001600a60006101000a81548160ff02191690831515021790555082600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8473ffffffffffffffffffffffffffffffffffffffff1663095ea7b3847f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401611465929190613118565b602060405180830381600087803b15801561147f57600080fd5b505af1158015611493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b79190613156565b6114c057600080fd5b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e89236f826040518263ffffffff1660e01b815260040161155c9190612884565b600060405180830381600087803b15801561157657600080fd5b505af115801561158a573d6000803e3d6000fd5b50505050600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166335503ad4836040518263ffffffff1660e01b81526004016115e99190612884565b600060405180830381600087803b15801561160357600080fd5b505af1158015611617573d6000803e3d6000fd5b50505050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e89236f826040518263ffffffff1660e01b81526004016116769190612884565b600060405180830381600087803b15801561169057600080fd5b505af11580156116a4573d6000803e3d6000fd5b50505050505050565b60006116b7612309565b73ffffffffffffffffffffffffffffffffffffffff166116d5611299565b73ffffffffffffffffffffffffffffffffffffffff161461172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172290612b29565b60405180910390fd5b7f000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f6702273ffffffffffffffffffffffffffffffffffffffff16633df02124476000600147612710884761177c9190612f6b565b6117869190612ff4565b6040518663ffffffff1660e01b81526004016117a59493929190613206565b6020604051808303818588803b1580156117be57600080fd5b505af11580156117d2573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906117f79190612c4f565b9050919050565b7f000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8481565b60065481565b600860009054906101000a900460ff1681565b611843612309565b73ffffffffffffffffffffffffffffffffffffffff16611861611299565b73ffffffffffffffffffffffffffffffffffffffff16146118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90612b29565b60405180910390fd5b600260015414156118fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f490612d95565b60405180910390fd5b60026001819055506103e8836003546119169190612be4565b10611956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194d906132bd565b60405180910390fd5b60008311611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090613329565b60405180910390fd5b60005b83811015611aad5760006127106103e86127107f0000000000000000000000000000000000000000000000000000000000001e95856003546119de9190612be4565b6119e89190612be4565b6119f29190612be4565b6119fc9190612d15565b611a069190613349565b9050600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d1a1beb48583866040518463ffffffff1660e01b8152600401611a679392919061337a565b600060405180830381600087803b158015611a8157600080fd5b505af1158015611a95573d6000803e3d6000fd5b50505050508080611aa5906133b1565b91505061199c565b508260036000828254611ac09190612be4565b9250508190555060018081905550505050565b6000600860009054906101000a900460ff16611af25760009050611b69565b6000611afc612311565b90506004548110611b1257600754915050611b69565b600081600454600654600754611b289190613404565b611b329190613498565b611b3c9190613502565b600654611b499190613619565b905060008190506007548111611b6157600754611b63565b805b93505050505b90565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b9a612309565b73ffffffffffffffffffffffffffffffffffffffff16611bb8611299565b73ffffffffffffffffffffffffffffffffffffffff1614611c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0590612b29565b60405180910390fd5b600860019054906101000a900460ff16611c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c549061371f565b60405180910390fd5b6000600860016101000a81548160ff02191690831515021790555060095442611c869190612d15565b600581905550427f55164728fe5052bebf6b9610bc9d4f310029bf52fff12f0d8d9601b6b60474e960405160405180910390a2565b600860009054906101000a900460ff168015611ce45750600860019054906101000a900460ff16155b611d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1a90612b95565b60405180910390fd5b60026001541415611d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6090612d95565b60405180910390fd5b60026001819055506103e8612710611d819190612d15565b81600254611d8f9190612be4565b1115611dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc79061378b565b60405180910390fd5b60008111611e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0a90613329565b60405180910390fd5b601481600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401611e719190612884565b60206040518083038186803b158015611e8957600080fd5b505afa158015611e9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec19190612c4f565b611ecb9190612be4565b1115611f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0390613843565b60405180910390fd5b6000611f16611ad3565b905060008282611f269190612f6b565b905034811115611f6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f62906138af565b60405180910390fd5b60005b838110156120665760006127107f0000000000000000000000000000000000000000000000000000000000001e9583600254611faa9190612be4565b611fb49190612be4565b611fbe9190613349565b9050600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d1a1beb4338360006040518463ffffffff1660e01b81526004016120209392919061337a565b600060405180830381600087803b15801561203a57600080fd5b505af115801561204e573d6000803e3d6000fd5b5050505050808061205e906133b1565b915050611f6e565b5082600260008282546120799190612be4565b925050819055508034111561209e5761209d3382346120989190612d15565b612358565b5b82823373ffffffffffffffffffffffffffffffffffffffff167f904351c035f52ed22610539b5b57ea16a654b7ba5d9a60f86eab9dcb4df26ea660405160405180910390a450506001808190555050565b60025481565b7f000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f6702281565b7f0000000000000000000000000000000000000000000000000000000000001e9581565b61271081565b61214b612309565b73ffffffffffffffffffffffffffffffffffffffff16612169611299565b73ffffffffffffffffffffffffffffffffffffffff16146121bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b690612b29565b60405180910390fd5b6121c7611299565b73ffffffffffffffffffffffffffffffffffffffff16ff5b600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61220d612309565b73ffffffffffffffffffffffffffffffffffffffff1661222b611299565b73ffffffffffffffffffffffffffffffffffffffff1614612281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227890612b29565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e890613941565b60405180910390fd5b6122fa8161244c565b50565b60035481565b60045481565b600033905090565b6000600860019054906101000a900460ff1615612332576009549050612355565b600060055411612343576000612352565b600554426123519190612d15565b5b90505b90565b8047101561239b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612392906139ad565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516123c1906139fe565b60006040518083038185875af1925050503d80600081146123fe576040519150601f19603f3d011682016040523d82523d6000602084013e612403565b606091505b5050905080612447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243e90613a85565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008115159050919050565b61252581612510565b82525050565b6000602082019050612540600083018461251c565b92915050565b6000819050919050565b61255981612546565b82525050565b60006020820190506125746000830184612550565b92915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6125e182612598565b810181811067ffffffffffffffff82111715612600576125ff6125a9565b5b80604052505050565b600061261361257a565b905061261f82826125d8565b919050565b600067ffffffffffffffff82111561263f5761263e6125a9565b5b61264882612598565b9050602081019050919050565b82818337600083830152505050565b600061267761267284612624565b612609565b90508281526020810184848401111561269357612692612593565b5b61269e848285612655565b509392505050565b600082601f8301126126bb576126ba61258e565b5b81356126cb848260208601612664565b91505092915050565b6000602082840312156126ea576126e9612584565b5b600082013567ffffffffffffffff81111561270857612707612589565b5b612714848285016126a6565b91505092915050565b61272681612546565b811461273157600080fd5b50565b6000813590506127438161271d565b92915050565b60006020828403121561275f5761275e612584565b5b600061276d84828501612734565b91505092915050565b60008060006060848603121561278f5761278e612584565b5b600061279d86828701612734565b93505060206127ae86828701612734565b92505060406127bf86828701612734565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061280e612809612804846127c9565b6127e9565b6127c9565b9050919050565b6000612820826127f3565b9050919050565b600061283282612815565b9050919050565b61284281612827565b82525050565b600060208201905061285d6000830184612839565b92915050565b600061286e826127c9565b9050919050565b61287e81612863565b82525050565b60006020820190506128996000830184612875565b92915050565b6128a881612863565b81146128b357600080fd5b50565b6000813590506128c58161289f565b92915050565b6000806000606084860312156128e4576128e3612584565b5b60006128f2868287016128b6565b9350506020612903868287016128b6565b9250506040612914868287016128b6565b9150509250925092565b6000612929826127f3565b9050919050565b600061293b8261291e565b9050919050565b61294b81612930565b82525050565b60006020820190506129666000830184612942565b92915050565b61297581612510565b811461298057600080fd5b50565b6000813590506129928161296c565b92915050565b6000806000606084860312156129b1576129b0612584565b5b60006129bf86828701612734565b93505060206129d0868287016128b6565b92505060406129e186828701612983565b9150509250925092565b60006129f68261291e565b9050919050565b612a06816129eb565b82525050565b6000602082019050612a2160008301846129fd565b92915050565b6000612a328261291e565b9050919050565b612a4281612a27565b82525050565b6000602082019050612a5d6000830184612a39565b92915050565b6000612a6e8261291e565b9050919050565b612a7e81612a63565b82525050565b6000602082019050612a996000830184612a75565b92915050565b600060208284031215612ab557612ab4612584565b5b6000612ac3848285016128b6565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612b13602083612acc565b9150612b1e82612add565b602082019050919050565b60006020820190508181036000830152612b4281612b06565b9050919050565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b6000612b7f601983612acc565b9150612b8a82612b49565b602082019050919050565b60006020820190508181036000830152612bae81612b72565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612bef82612546565b9150612bfa83612546565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612c2f57612c2e612bb5565b5b828201905092915050565b600081519050612c498161271d565b92915050565b600060208284031215612c6557612c64612584565b5b6000612c7384828501612c3a565b91505092915050565b600081519050919050565b60005b83811015612ca5578082015181840152602081019050612c8a565b83811115612cb4576000848401525b50505050565b6000612cc582612c7c565b612ccf8185612acc565b9350612cdf818560208601612c87565b612ce881612598565b840191505092915050565b60006020820190508181036000830152612d0d8184612cba565b905092915050565b6000612d2082612546565b9150612d2b83612546565b925082821015612d3e57612d3d612bb5565b5b828203905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612d7f601f83612acc565b9150612d8a82612d49565b602082019050919050565b60006020820190508181036000830152612dae81612d72565b9050919050565b7f5075626c69632073616c652068617320616c7265616479207374617274656400600082015250565b6000612deb601f83612acc565b9150612df682612db5565b602082019050919050565b60006020820190508181036000830152612e1a81612dde565b9050919050565b7f5f73616c6553746172745072696365206d75737420626520677265617465722060008201527f7468616e205f73616c65456e6450726963650000000000000000000000000000602082015250565b6000612e7d603283612acc565b9150612e8882612e21565b604082019050919050565b60006020820190508181036000830152612eac81612e70565b9050919050565b7f45787465726e616c207265666572656e636520636f6e747261637473206d757360008201527f7420616c6c20626520736574206265666f7265207075626c69632073616c652060208201527f7374617274730000000000000000000000000000000000000000000000000000604082015250565b6000612f35604683612acc565b9150612f4082612eb3565b606082019050919050565b60006020820190508181036000830152612f6481612f28565b9050919050565b6000612f7682612546565b9150612f8183612546565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612fba57612fb9612bb5565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612fff82612546565b915061300a83612546565b92508261301a57613019612fc5565b5b828204905092915050565b7f73746574682062616c616e6365206e6f74206869676820656e6f75676820616660008201527f7465722073656e64696e6720746f204c49444f5f5354414b494e475f4144445260208201527f4553530000000000000000000000000000000000000000000000000000000000604082015250565b60006130a7604383612acc565b91506130b282613025565b606082019050919050565b600060208201905081810360008301526130d68161309a565b9050919050565b6000819050919050565b60006131026130fd6130f8846130dd565b6127e9565b612546565b9050919050565b613112816130e7565b82525050565b600060408201905061312d6000830185612875565b61313a6020830184613109565b9392505050565b6000815190506131508161296c565b92915050565b60006020828403121561316c5761316b612584565b5b600061317a84828501613141565b91505092915050565b6000819050919050565b600081600f0b9050919050565b60006131b56131b06131ab84613183565b6127e9565b61318d565b9050919050565b6131c58161319a565b82525050565b6000819050919050565b60006131f06131eb6131e6846131cb565b6127e9565b61318d565b9050919050565b613200816131d5565b82525050565b600060808201905061321b60008301876131bc565b61322860208301866131f7565b6132356040830185612550565b6132426060830184612550565b95945050505050565b7f4d696e74696e6720776f756c6420657863656564206d6178207265736572766560008201527f6420737570706c79000000000000000000000000000000000000000000000000602082015250565b60006132a7602883612acc565b91506132b28261324b565b604082019050919050565b600060208201905081810360008301526132d68161329a565b9050919050565b7f4d757374206d696e74206174206c65617374206f6e6520676f64000000000000600082015250565b6000613313601a83612acc565b915061331e826132dd565b602082019050919050565b6000602082019050818103600083015261334281613306565b9050919050565b600061335482612546565b915061335f83612546565b92508261336f5761336e612fc5565b5b828206905092915050565b600060608201905061338f6000830186612875565b61339c6020830185612550565b6133a9604083018461251c565b949350505050565b60006133bc82612546565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156133ef576133ee612bb5565b5b600182019050919050565b6000819050919050565b600061340f826133fa565b915061341a836133fa565b9250827f80000000000000000000000000000000000000000000000000000000000000000182126000841215161561345557613454612bb5565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01821360008412161561348d5761348c612bb5565b5b828203905092915050565b60006134a3826133fa565b91506134ae836133fa565b9250826134be576134bd612fc5565b5b600160000383147f8000000000000000000000000000000000000000000000000000000000000000831416156134f7576134f6612bb5565b5b828205905092915050565b600061350d826133fa565b9150613518836133fa565b9250827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211600084136000841316161561355757613556612bb5565b5b817f8000000000000000000000000000000000000000000000000000000000000000058312600084126000841316161561359457613593612bb5565b5b827f800000000000000000000000000000000000000000000000000000000000000005821260008413600084121616156135d1576135d0612bb5565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff058212600084126000841216161561360e5761360d612bb5565b5b828202905092915050565b6000613624826133fa565b915061362f836133fa565b9250817f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0383136000831215161561366a57613669612bb5565b5b817f80000000000000000000000000000000000000000000000000000000000000000383126000831216156136a2576136a1612bb5565b5b828201905092915050565b7f43616e206f6e6c7920726573756d65207768656e207468652073616c6520697360008201527f2070617573656400000000000000000000000000000000000000000000000000602082015250565b6000613709602783612acc565b9150613714826136ad565b604082019050919050565b60006020820190508181036000830152613738816136fc565b9050919050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900600082015250565b6000613775601f83612acc565b91506137808261373f565b602082019050919050565b600060208201905081810360008301526137a481613768565b9050919050565b7f526571756573746564206e756d62657220776f756c642065786365656420746860008201527f65206d6178696d756d206e756d626572206f6620676f647320616c6c6f77656460208201527f20746f206265206d696e74656420666f72207468697320616464726573732e00604082015250565b600061382d605f83612acc565b9150613838826137ab565b606082019050919050565b6000602082019050818103600083015261385c81613820565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000613899601f83612acc565b91506138a482613863565b602082019050919050565b600060208201905081810360008301526138c88161388c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061392b602683612acc565b9150613936826138cf565b604082019050919050565b6000602082019050818103600083015261395a8161391e565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613997601d83612acc565b91506139a282613961565b602082019050919050565b600060208201905081810360008301526139c68161398a565b9050919050565b600081905092915050565b50565b60006139e86000836139cd565b91506139f3826139d8565b600082019050919050565b6000613a09826139db565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613a6f603a83612acc565b9150613a7a82613a13565b604082019050919050565b60006020820190508181036000830152613a9e81613a62565b905091905056fea264697066735822122085c42ecbd89860181d9e8de761a833640d376eb4deeb223d708a7350271150c664736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe840000000000000000000000002e94c074d7360dccf0d7b2891d867b734978e8ad000000000000000000000000000000000000000000000000000000000000004037373539333334373633336435613334363134373763326636613834303964366538393564343362333832373636323535356464623736396336373837666131000000000000000000000000000000000000000000000000000000000000004038666366656330346638346265336532326333373663333266356535613032653862616336393866306264323436393031633563366232363331316633626139
-----Decoded View---------------
Arg [0] : _metadataHash (string): 77593347633d5a3461477c2f6a8409d6e895d43b3827662555ddb769c6787fa1
Arg [1] : _discordGeneratedHash (string): 8fcfec04f84be3e22c376c32f5e5a02e8bac698f0bd246901c5c6b26311f3ba9
Arg [2] : _stethAddress (address): 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84
Arg [3] : _offeringRefundContractAddress (address): 0x2e94c074d7360dCcf0D7B2891D867b734978E8Ad
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84
Arg [3] : 0000000000000000000000002e94c074d7360dccf0d7b2891d867b734978e8ad
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [5] : 3737353933333437363333643561333436313437376332663661383430396436
Arg [6] : 6538393564343362333832373636323535356464623736396336373837666131
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [8] : 3866636665633034663834626533653232633337366333326635653561303265
Arg [9] : 3862616336393866306264323436393031633563366232363331316633626139
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.