More Info
Private Name Tags
Latest 25 from a total of 829 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Add To Tower | 14544092 | 1008 days ago | IN | 0 ETH | 0.007282 | ||||
Add To Tower | 13837977 | 1117 days ago | IN | 0 ETH | 0.01245689 | ||||
Reveal Oldest Mi... | 13807027 | 1122 days ago | IN | 0 ETH | 0.04133718 | ||||
Reveal Oldest Mi... | 13807018 | 1122 days ago | IN | 0 ETH | 0.03026283 | ||||
Reveal Oldest Mi... | 13807013 | 1122 days ago | IN | 0 ETH | 0.03293545 | ||||
Reveal Oldest Mi... | 13807009 | 1122 days ago | IN | 0 ETH | 0.02826871 | ||||
Reveal Oldest Mi... | 13807005 | 1122 days ago | IN | 0 ETH | 0.03404364 | ||||
Reveal Oldest Mi... | 13807000 | 1122 days ago | IN | 0 ETH | 0.0315606 | ||||
Reveal Oldest Mi... | 13806992 | 1122 days ago | IN | 0 ETH | 0.03812802 | ||||
Add To Tower | 13806238 | 1122 days ago | IN | 0 ETH | 0.02092399 | ||||
Reveal Oldest Mi... | 13805376 | 1122 days ago | IN | 0 ETH | 0.0272886 | ||||
Reveal Oldest Mi... | 13805368 | 1122 days ago | IN | 0 ETH | 0.03550397 | ||||
Reveal Oldest Mi... | 13805363 | 1122 days ago | IN | 0 ETH | 0.03653659 | ||||
Reveal Oldest Mi... | 13805354 | 1122 days ago | IN | 0 ETH | 0.03463198 | ||||
Add To Tower | 13804886 | 1122 days ago | IN | 0 ETH | 0.01701404 | ||||
Reveal Oldest Mi... | 13804872 | 1122 days ago | IN | 0 ETH | 0.02693268 | ||||
Reveal Oldest Mi... | 13804865 | 1122 days ago | IN | 0 ETH | 0.03313013 | ||||
Reveal Oldest Mi... | 13804857 | 1122 days ago | IN | 0 ETH | 0.04513567 | ||||
Reveal Oldest Mi... | 13804842 | 1122 days ago | IN | 0 ETH | 0.0349407 | ||||
Add To Tower | 13804201 | 1123 days ago | IN | 0 ETH | 0.01439156 | ||||
Add To Tower | 13803922 | 1123 days ago | IN | 0 ETH | 0.00849059 | ||||
Add To Tower | 13803790 | 1123 days ago | IN | 0 ETH | 0.00647447 | ||||
Add To Tower | 13802797 | 1123 days ago | IN | 0 ETH | 0.0279155 | ||||
Add To Tower | 13802727 | 1123 days ago | IN | 0 ETH | 0.00295473 | ||||
Add To Tower | 13802680 | 1123 days ago | IN | 0 ETH | 0.00852777 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
WnDGameTG
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./interfaces/IWnDGame.sol"; import "./interfaces/ITrainingGrounds.sol"; import "./interfaces/ITraits.sol"; import "./interfaces/IGP.sol"; import "./interfaces/IWnD.sol"; import "./interfaces/ISacrificialAlter.sol"; import "hardhat/console.sol"; contract WnDGameTG is IWnDGame, Ownable, ReentrancyGuard, Pausable { struct MintCommit { address recipient; bool stake; uint16 amount; } struct TrainingCommit { address tokenOwner; uint16 tokenId; bool isAdding; // If false, the commit is for claiming rewards bool isUnstaking; // If !isAdding, this will determine if user is unstaking bool isTraining; // If !isAdding, this will define where the staked token is (only necessary for wizards) } uint256 public constant TREASURE_CHEST = 5; // max $GP cost uint256 private maxGpCost = 72000 ether; /** =========== MINTING COMMIT AND REVEAL VARIABLES =========== */ // commitId -> array of all pending commits mapping(uint16 => MintCommit[]) private commitQueueMints; // Track when a commitId started accepting commits mapping(uint16 => uint256) private commitIdStartTimeMints; mapping(address => uint16) private pendingMintCommitsForAddr; // Tracks the current commitId batch to put new commits into uint16 private _commitIdCurMints = 1; // tracks the oldest commitId that has commits needing to be revealed uint16 private _commitIdPendingMints = 0; /** =========== TRAINING COMMIT AND REVEAL VARIABLES =========== */ // commitId -> array of all pending commits mapping(uint16 => TrainingCommit[]) private commitQueueTraining; // Track when a commitId started accepting commits mapping(uint16 => uint256) private commitIdStartTimeTraining; mapping(address => uint16) private pendingTrainingCommitsForAddr; // Tracks the current commitId batch to put new commits into uint16 private _commitIdCurTraining = 1; // tracks the oldest commitId that has commits needing to be revealed uint16 private _commitIdPendingTraining = 0; // Time from starting a commit batch to allow new commits to enter uint64 private timePerCommitBatch = 5 minutes; // Time from starting a commit batch to allow users to reveal these in exchange for $GP uint64 private timeToAllowArb = 1 hours; uint16 private pendingMintAmt; bool public allowCommits = true; uint256 private revealRewardAmt = 36000 ether; uint256 private stakingCost = 8000 ether; // reference to the TrainingGrounds ITrainingGrounds public trainingGrounds; // reference to $GP for burning on mint IGP public gpToken; // reference to Traits ITraits public traits; // reference to NFT collection IWnD public wndNFT; // reference to alter collection ISacrificialAlter public alter; constructor() { _pause(); } /** CRITICAL TO SETUP */ modifier requireContractsSet() { require(address(gpToken) != address(0) && address(traits) != address(0) && address(wndNFT) != address(0) && address(alter) != address(0) && address(trainingGrounds) != address(0) , "Contracts not set"); _; } function setContracts(address _gp, address _traits, address _wnd, address _alter, address _trainingGrounds) external onlyOwner { gpToken = IGP(_gp); traits = ITraits(_traits); wndNFT = IWnD(_wnd); alter = ISacrificialAlter(_alter); trainingGrounds = ITrainingGrounds(_trainingGrounds); } /** EXTERNAL */ function getPendingMintCommits(address addr) external view returns (uint16) { return pendingMintCommitsForAddr[addr]; } function getPendingTrainingCommits(address addr) external view returns (uint16) { return pendingTrainingCommitsForAddr[addr]; } function hasStaleMintCommit() external view returns (bool) { uint16 pendingId = _commitIdPendingMints; // Check if the revealable commitId has anything to commit and increment it until it does, or is the same as the current commitId while(commitQueueMints[pendingId].length == 0 && pendingId < _commitIdCurMints) { // Only iterate if the commit pending is empty and behind the current id. // This is to prevent it from being in front of the current id and missing commits. pendingId += 1; } return commitIdStartTimeMints[pendingId] < block.timestamp - timeToAllowArb && commitQueueMints[pendingId].length > 0; } function hasStaleTrainingCommit() external view returns (bool) { uint16 pendingId = _commitIdPendingTraining; // Check if the revealable commitId has anything to commit and increment it until it does, or is the same as the current commitId while(commitQueueTraining[pendingId].length == 0 && pendingId < _commitIdCurTraining) { // Only iterate if the commit pending is empty and behind the current id. // This is to prevent it from being in front of the current id and missing commits. pendingId += 1; } return commitIdStartTimeTraining[pendingId] < block.timestamp - timeToAllowArb && commitQueueTraining[pendingId].length > 0; } /** Allow users to reveal the oldest commit for GP. Mints commits must be stale to be able to be revealed this way */ function revealOldestMint() external whenNotPaused { require(tx.origin == _msgSender(), "Only EOA"); // Check if the revealable commitId has anything to commit and increment it until it does, or is the same as the current commitId while(commitQueueMints[_commitIdPendingMints].length == 0 && _commitIdPendingMints < _commitIdCurMints) { // Only iterate if the commit pending is empty and behind the current id. // This is to prevent it from being in front of the current id and missing commits. _commitIdPendingMints += 1; } // Check if there is a commit in a revealable batch and pop/reveal it require(commitIdStartTimeMints[_commitIdPendingMints] < block.timestamp - timeToAllowArb && commitQueueMints[_commitIdPendingMints].length > 0, "No stale commits to reveal"); // If the pending batch is old enough to be revealed and has stuff in it, mine one. MintCommit memory commit = commitQueueMints[_commitIdPendingMints][commitQueueMints[_commitIdPendingMints].length - 1]; commitQueueMints[_commitIdPendingMints].pop(); revealMint(commit); gpToken.mint(_msgSender(), revealRewardAmt * commit.amount); } function revealOldestTraining() external whenNotPaused { require(tx.origin == _msgSender(), "Only EOA"); // Check if the revealable commitId has anything to commit and increment it until it does, or is the same as the current commitId while(commitQueueTraining[_commitIdPendingTraining].length == 0 && _commitIdPendingTraining < _commitIdCurTraining) { // Only iterate if the commit pending is empty and behind the current id. // This is to prevent it from being in front of the current id and missing commits. _commitIdPendingTraining += 1; } // Check if there is a commit in a revealable batch and pop/reveal it require(commitIdStartTimeTraining[_commitIdPendingTraining] < block.timestamp - timeToAllowArb && commitQueueTraining[_commitIdPendingTraining].length > 0, "No stale commits to reveal"); // If the pending batch is old enough to be revealed and has stuff in it, mine one. TrainingCommit memory commit = commitQueueTraining[_commitIdPendingTraining][commitQueueTraining[_commitIdPendingTraining].length - 1]; commitQueueTraining[_commitIdPendingTraining].pop(); revealTraining(commit); gpToken.mint(_msgSender(), revealRewardAmt); } /** Initiate the start of a mint. This action burns $GP, as the intent of committing is that you cannot back out once you've started. * This will add users into the pending queue, to be revealed after a random seed is generated and assigned to the commit id this * commit was added to. */ function mintCommit(uint256 amount, bool stake) external whenNotPaused nonReentrant { require(allowCommits, "adding commits disallowed"); require(tx.origin == _msgSender(), "Only EOA"); uint16 minted = wndNFT.minted(); uint256 maxTokens = wndNFT.getMaxTokens(); require(minted + pendingMintAmt + amount <= maxTokens, "All tokens minted"); require(amount > 0 && amount <= 10, "Invalid mint amount"); if(commitIdStartTimeMints[_commitIdCurMints] == 0) { commitIdStartTimeMints[_commitIdCurMints] = block.timestamp; } // Check if current commit batch is past the threshold for time and increment commitId if so if(commitIdStartTimeMints[_commitIdCurMints] < block.timestamp - timePerCommitBatch) { // increment commitId to start a new batch _commitIdCurMints += 1; commitIdStartTimeMints[_commitIdCurMints] = block.timestamp; } // Add this mint request to the commit queue for the current commitId uint256 totalGpCost = 0; // Loop through the amount of for (uint i = 1; i <= amount; i++) { // Add N number of commits to the queue. This is so people reveal the same number of commits as they added. commitQueueMints[_commitIdCurMints].push(MintCommit(_msgSender(), stake, 1)); totalGpCost += mintCost(minted + pendingMintAmt + i, maxTokens); } if (totalGpCost > 0) { gpToken.burn(_msgSender(), totalGpCost); gpToken.updateOriginAccess(); } uint16 amt = uint16(amount); pendingMintCommitsForAddr[_msgSender()] += amt; pendingMintAmt += amt; // Check if the revealable commitId has anything to commit and increment it until it does, or is the same as the current commitId while(commitQueueMints[_commitIdPendingMints].length == 0 && _commitIdPendingMints < _commitIdCurMints) { // Only iterate if the commit pending is empty and behind the current id. // This is to prevent it from being in front of the current id and missing commits. _commitIdPendingMints += 1; } // Check if there is a commit in a revealable batch and pop/reveal it if(commitIdStartTimeMints[_commitIdPendingMints] < block.timestamp - timePerCommitBatch && commitQueueMints[_commitIdPendingMints].length > 0) { // If the pending batch is old enough to be revealed and has stuff in it, mine the number that was added to the queue. for (uint256 i = 0; i < amount; i++) { // First iteration is guaranteed to have 1 commit to mine, so we can always retroactively check that we can continue to reveal after MintCommit memory commit = commitQueueMints[_commitIdPendingMints][commitQueueMints[_commitIdPendingMints].length - 1]; commitQueueMints[_commitIdPendingMints].pop(); revealMint(commit); // Check to see if we are able to continue mining commits if(commitQueueMints[_commitIdPendingMints].length == 0 && _commitIdPendingMints < _commitIdCurMints) { _commitIdPendingMints += 1; if(commitIdStartTimeMints[_commitIdPendingMints] > block.timestamp - timePerCommitBatch || commitQueueMints[_commitIdPendingMints].length == 0 || _commitIdPendingMints == _commitIdCurMints) { // If there are no more commits to reveal, exit break; } } } } } function revealMint(MintCommit memory commit) internal { uint16 minted = wndNFT.minted(); pendingMintAmt -= commit.amount; uint16[] memory tokenIds = new uint16[](commit.amount); uint16[] memory tokenIdsToStake = new uint16[](commit.amount); uint256 seed = uint256(keccak256(abi.encode(commit.recipient, minted, commitIdStartTimeMints[_commitIdPendingMints]))); for (uint k = 0; k < commit.amount; k++) { minted++; // scramble the random so the steal / treasure mechanic are different per mint seed = uint256(keccak256(abi.encode(seed, commit.recipient))); address recipient = selectRecipient(seed, commit.recipient); if(recipient != commit.recipient && alter.balanceOf(commit.recipient, TREASURE_CHEST) > 0) { // If the mint is going to be stolen, there's a 50% chance // a dragon will prefer a treasure chest over it if(seed & 1 == 1) { alter.safeTransferFrom(commit.recipient, recipient, TREASURE_CHEST, 1, ""); recipient = commit.recipient; } } tokenIds[k] = minted; if (!commit.stake || recipient != commit.recipient) { wndNFT.mint(recipient, seed); } else { wndNFT.mint(address(trainingGrounds), seed); tokenIdsToStake[k] = minted; } } wndNFT.updateOriginAccess(tokenIds); if(commit.stake) { trainingGrounds.addManyToTowerAndFlight(commit.recipient, tokenIdsToStake); } pendingMintCommitsForAddr[commit.recipient] -= commit.amount; } function addToTower(uint16[] calldata tokenIds) external whenNotPaused { require(_msgSender() == tx.origin, "Only EOA"); trainingGrounds.addManyToTowerAndFlight(tx.origin, tokenIds); } function addToTrainingCommit(uint16[] calldata tokenIds) external whenNotPaused { require(allowCommits, "adding commits disallowed"); require(tx.origin == _msgSender(), "Only EOA"); if(commitIdStartTimeTraining[_commitIdCurTraining] == 0) { commitIdStartTimeTraining[_commitIdCurTraining] = block.timestamp; } // Check if current commit batch is past the threshold for time and increment commitId if so if(commitIdStartTimeTraining[_commitIdCurTraining] < block.timestamp - timePerCommitBatch) { // increment commitId to start a new batch _commitIdCurTraining += 1; commitIdStartTimeTraining[_commitIdCurTraining] = block.timestamp; } // Loop through the amount of tokens being added for (uint i = 0; i < tokenIds.length; i++) { require(_msgSender() == wndNFT.ownerOf(tokenIds[i]), "not your token"); // Add N number of commits to the queue. This is so people reveal the same number of commits as they added. commitQueueTraining[_commitIdCurTraining].push(TrainingCommit(_msgSender(), tokenIds[i], true, false, true)); } gpToken.burn(_msgSender(), stakingCost * tokenIds.length); gpToken.updateOriginAccess(); pendingTrainingCommitsForAddr[_msgSender()] += uint16(tokenIds.length); tryRevealTraining(tokenIds.length); } function claimTrainingsCommit(uint16[] calldata tokenIds, bool isUnstaking, bool isTraining) external whenNotPaused { require(allowCommits, "adding commits disallowed"); require(tx.origin == _msgSender(), "Only EOA"); if(commitIdStartTimeTraining[_commitIdCurTraining] == 0) { commitIdStartTimeTraining[_commitIdCurTraining] = block.timestamp; } // Check if current commit batch is past the threshold for time and increment commitId if so if(commitIdStartTimeTraining[_commitIdCurTraining] < block.timestamp - timePerCommitBatch) { // increment commitId to start a new batch _commitIdCurTraining += 1; commitIdStartTimeTraining[_commitIdCurTraining] = block.timestamp; } // Loop through the amount of tokens being added for (uint i = 0; i < tokenIds.length; i++) { require(trainingGrounds.isTokenStaked(tokenIds[i], isTraining) && trainingGrounds.ownsToken(tokenIds[i]) , "Token not in staking pool"); // Add N number of commits to the queue. This is so people reveal the same number of commits as they added. commitQueueTraining[_commitIdCurTraining].push(TrainingCommit(_msgSender(), tokenIds[i], false, isUnstaking, isTraining)); } gpToken.burn(_msgSender(), stakingCost * tokenIds.length); gpToken.updateOriginAccess(); pendingTrainingCommitsForAddr[_msgSender()] += uint16(tokenIds.length); tryRevealTraining(tokenIds.length); } function tryRevealTraining(uint256 amount) internal { // Check if the revealable commitId has anything to commit and increment it until it does, or is the same as the current commitId while(commitQueueTraining[_commitIdPendingTraining].length == 0 && _commitIdPendingTraining < _commitIdCurTraining) { // Only iterate if the commit pending is empty and behind the current id. // This is to prevent it from being in front of the current id and missing commits. _commitIdPendingTraining += 1; } // Check if there is a commit in a revealable batch and pop/reveal it if(commitIdStartTimeTraining[_commitIdPendingTraining] < block.timestamp - timePerCommitBatch && commitQueueTraining[_commitIdPendingTraining].length > 0) { // If the pending batch is old enough to be revealed and has stuff in it, mine the number that was added to the queue. for (uint256 i = 0; i < amount; i++) { // First iteration is guaranteed to have 1 commit to mine, so we can always retroactively check that we can continue to reveal after TrainingCommit memory commit = commitQueueTraining[_commitIdPendingTraining][commitQueueTraining[_commitIdPendingTraining].length - 1]; commitQueueTraining[_commitIdPendingTraining].pop(); revealTraining(commit); // Check to see if we are able to continue mining commits if(commitQueueTraining[_commitIdPendingTraining].length == 0 && _commitIdPendingTraining < _commitIdCurTraining) { _commitIdPendingTraining += 1; if(commitIdStartTimeTraining[_commitIdPendingTraining] > block.timestamp - timePerCommitBatch || commitQueueTraining[_commitIdPendingTraining].length == 0 || _commitIdPendingTraining == _commitIdCurTraining) { // If there are no more commits to reveal, exit break; } } } } } function revealTraining(TrainingCommit memory commit) internal { uint16[] memory idSingle = new uint16[](1); idSingle[0] = commit.tokenId; if(commit.isAdding) { // Add to training since tower staking doesn't need C+R uint256 seed = random(commit.tokenId, commitIdStartTimeTraining[_commitIdPendingTraining], commit.tokenOwner); trainingGrounds.addManyToTrainingAndFlight(seed, commit.tokenOwner, idSingle); } else { if(commit.isTraining) { uint256 seed = random(commit.tokenId, commitIdStartTimeTraining[_commitIdPendingTraining], commit.tokenOwner); trainingGrounds.claimManyFromTrainingAndFlight(seed, commit.tokenOwner, idSingle, commit.isUnstaking); } else { trainingGrounds.claimManyFromTowerAndFlight(commit.tokenOwner, idSingle, commit.isUnstaking); } } pendingTrainingCommitsForAddr[commit.tokenOwner] -= 1; } /** Deterministically random. This assumes the call was a part of commit+reveal design * that disallowed the benefactor of this outcome to make this call */ function random(uint16 tokenId, uint256 time, address owner) internal pure returns (uint256) { return uint256(keccak256(abi.encodePacked( owner, tokenId, time ))); } /** * @param tokenId the ID to check the cost of to mint * @return the cost of the given token ID */ function mintCost(uint256 tokenId, uint256 maxTokens) public view returns (uint256) { if (tokenId <= maxTokens * 8 / 20) return 24000 ether; if (tokenId <= maxTokens * 11 / 20) return 36000 ether; if (tokenId <= maxTokens * 14 / 20) return 48000 ether; if (tokenId <= maxTokens * 17 / 20) return 60000 ether; // if (tokenId > maxTokens * 17 / 20) return maxGpCost; } function makeTreasureChests(uint16 qty) external whenNotPaused { require(tx.origin == _msgSender(), "Only EOA"); // $GP exchange amount handled within alter contract // Will fail if sender doesn't have enough $GP // Transfer does not need approved, // as there is established trust between this contract and the alter contract alter.mint(TREASURE_CHEST, qty, _msgSender()); } function sellTreasureChests(uint16 qty) external whenNotPaused { require(tx.origin == _msgSender(), "Only EOA"); // $GP exchange amount handled within alter contract alter.burn(TREASURE_CHEST, qty, _msgSender()); } /** INTERNAL */ /** * the first 25% (ETH purchases) go to the minter * the remaining 80% have a 10% chance to be given to a random staked dragon * @param seed a random value to select a recipient from * @return the address of the recipient (either the minter or the Dragon thief's owner) */ function selectRecipient(uint256 seed, address committer) internal view returns (address) { if (((seed >> 245) % 10) != 0) return committer; // top 10 bits haven't been used address thief = trainingGrounds.randomDragonOwner(seed >> 144); // 144 bits reserved for trait selection if (thief == address(0x0)) return committer; return thief; } /** ADMIN */ /** * enables owner to pause / unpause contract */ function setPaused(bool _paused) external requireContractsSet onlyOwner { if (_paused) _pause(); else _unpause(); } function setMaxGpCost(uint256 _amount) external requireContractsSet onlyOwner { maxGpCost = _amount; } function setAllowCommits(bool allowed) external onlyOwner { allowCommits = allowed; } function setRevealRewardAmt(uint256 rewardAmt) external onlyOwner { revealRewardAmt = rewardAmt; } /** Allow the contract owner to set the pending mint amount. * This allows any long-standing pending commits to be overwritten, say for instance if the max supply has been * reached but there are many stale pending commits, it could be used to free up those spaces if needed/desired by the community. * This function should not be called lightly, this will have negative consequences on the game. */ function setPendingMintAmt(uint256 pendingAmt) external onlyOwner { pendingMintAmt = uint16(pendingAmt); } /** * allows owner to withdraw funds from minting */ function withdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT 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 make 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 LICENSE pragma solidity ^0.8.0; interface IWnDGame { }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; interface ITrainingGrounds { function addManyToTowerAndFlight(address tokenOwner, uint16[] calldata tokenIds) external; function claimManyFromTowerAndFlight(address tokenOwner, uint16[] calldata tokenIds, bool unstake) external; function addManyToTrainingAndFlight(uint256 seed, address tokenOwner, uint16[] calldata tokenIds) external; function claimManyFromTrainingAndFlight(uint256 seed, address tokenOwner, uint16[] calldata tokenIds, bool unstake) external; function randomDragonOwner(uint256 seed) external view returns (address); function isTokenStaked(uint256 tokenId, bool isTraining) external view returns (bool); function ownsToken(uint256 tokenId) external view returns (bool); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; interface ITraits { function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; interface IGP { function mint(address to, uint256 amount) external; function burn(address from, uint256 amount) external; function updateOriginAccess() external; function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface IWnD is IERC721Enumerable { // game data storage struct WizardDragon { bool isWizard; uint8 body; uint8 head; uint8 spell; uint8 eyes; uint8 neck; uint8 mouth; uint8 wand; uint8 tail; uint8 rankIndex; } function minted() external returns (uint16); function updateOriginAccess(uint16[] memory tokenIds) external; function mint(address recipient, uint256 seed) external; function burn(uint256 tokenId) external; function getMaxTokens() external view returns (uint256); function getPaidTokens() external view returns (uint256); function getTokenTraits(uint256 tokenId) external view returns (WizardDragon memory); function getTokenWriteBlock(uint256 tokenId) external view returns(uint64); function isWizard(uint256 tokenId) external view returns(bool); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; interface ISacrificialAlter { function mint(uint256 typeId, uint16 qty, address recipient) external; function burn(uint256 typeId, uint16 qty, address burnFrom) external; function updateOriginAccess() external; function balanceOf(address account, uint256 id) external returns (uint256); function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes memory data) external; }
// 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 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 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 tokenId); /** * @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 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 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"TREASURE_CHEST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"addToTower","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"addToTrainingCommit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowCommits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"alter","outputs":[{"internalType":"contract ISacrificialAlter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"},{"internalType":"bool","name":"isUnstaking","type":"bool"},{"internalType":"bool","name":"isTraining","type":"bool"}],"name":"claimTrainingsCommit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getPendingMintCommits","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getPendingTrainingCommits","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gpToken","outputs":[{"internalType":"contract IGP","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasStaleMintCommit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasStaleTrainingCommit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"qty","type":"uint16"}],"name":"makeTreasureChests","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"mintCommit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"maxTokens","type":"uint256"}],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealOldestMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealOldestTraining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"qty","type":"uint16"}],"name":"sellTreasureChests","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setAllowCommits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gp","type":"address"},{"internalType":"address","name":"_traits","type":"address"},{"internalType":"address","name":"_wnd","type":"address"},{"internalType":"address","name":"_alter","type":"address"},{"internalType":"address","name":"_trainingGrounds","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxGpCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pendingAmt","type":"uint256"}],"name":"setPendingMintAmt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rewardAmt","type":"uint256"}],"name":"setRevealRewardAmt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trainingGrounds","outputs":[{"internalType":"contract ITrainingGrounds","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"traits","outputs":[{"internalType":"contract ITraits","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wndNFT","outputs":[{"internalType":"contract IWnD","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052690f3f20b8dfa69d0000006003556007805463ffffffff19166001179055600b8054760100000000000000000e10000000000000012c00000001600162ff000160a01b031990911617905569079f905c6fd34e800000600c556901b1ae4d6e2ef5000000600d553480156200007857600080fd5b506200008433620000a2565b600180556002805460ff191690556200009c620000f2565b62000190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff16156200013d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001733390565b6040516001600160a01b03909116815260200160405180910390a1565b61388280620001a06000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063999c07001161010f578063e5d391a2116100a2578063f2fde38b11610071578063f2fde38b14610419578063f62b1c0d1461042c578063f63bf8bd1461043f578063f8b2a46e1461045257600080fd5b8063e5d391a2146103cd578063e6eebd8b146103e0578063f075b080146103f3578063f2eea45c1461040657600080fd5b8063bdc8cbc2116100de578063bdc8cbc21461038c578063cadeef031461039f578063cd0b86da146103b2578063e1fc334f146103ba57600080fd5b8063999c07001461033c5780639ecacf5c14610369578063b362fb9914610371578063b7cd90cd1461038457600080fd5b80633df6cc4f116101875780636f7bb00a116101565780636f7bb00a146102fd578063715018a61461031057806383c72a83146103185780638da5cb5b1461032b57600080fd5b80633df6cc4f146102b857806343b8e5c0146102cb578063498c626a146102de5780635c975abb146102f257600080fd5b806318adfb62116101c357806318adfb621461024757806326e52ba91461025a5780632af103c81461029a5780633ccfd60b146102b057600080fd5b8063078e8be7146101ea5780631090c5de1461021a57806316c38b3c14610232575b600080fd5b600e546101fd906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b610222610465565b6040519015158152602001610211565b6102456102403660046133ca565b61050d565b005b61024561025536600461343a565b6105fb565b61028761026836600461327e565b6001600160a01b031660009081526006602052604090205461ffff1690565b60405161ffff9091168152602001610211565b6102a2600581565b604051908152602001610211565b6102456106d0565b6102456102c63660046133ca565b610734565b6102456102d936600461343a565b61077c565b600b5461022290600160b01b900460ff1681565b60025460ff16610222565b600f546101fd906001600160a01b031681565b6102456107ab565b610245610326366004613402565b6107e1565b6000546001600160a01b03166101fd565b61028761034a36600461327e565b6001600160a01b03166000908152600a602052604090205461ffff1690565b6102456108a7565b61024561037f366004613326565b610b55565b610222610c01565b61024561039a366004613402565b610ca6565b6102456103ad366004613326565b610d02565b61024561119d565b6010546101fd906001600160a01b031681565b6102456103db36600461346a565b61144f565b6102a26103ee366004613499565b611cd9565b610245610401366004613365565b611d9e565b6012546101fd906001600160a01b031681565b61024561042736600461327e565b612305565b61024561043a36600461343a565b61239d565b61024561044d3660046132b6565b6123e9565b6011546101fd906001600160a01b031681565b600b5460009062010000900461ffff165b61ffff81166000908152600860205260409020541580156104a05750600b5461ffff908116908216105b156104b7576104b06001826136f1565b9050610476565b600b546104d490600160601b90046001600160401b031642613785565b61ffff8216600090815260096020526040902054108015610507575061ffff811660009081526008602052604090205415155b91505090565b600f546001600160a01b03161580159061053157506010546001600160a01b031615155b801561054757506011546001600160a01b031615155b801561055d57506012546001600160a01b031615155b80156105735750600e546001600160a01b031615155b6105b85760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b60448201526064015b60405180910390fd5b6000546001600160a01b031633146105e25760405162461bcd60e51b81526004016105af90613615565b80156105f3576105f0612472565b50565b6105f06124e7565b600f546001600160a01b03161580159061061f57506010546001600160a01b031615155b801561063557506011546001600160a01b031615155b801561064b57506012546001600160a01b031615155b80156106615750600e546001600160a01b031615155b6106a15760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b60448201526064016105af565b6000546001600160a01b031633146106cb5760405162461bcd60e51b81526004016105af90613615565b600355565b6000546001600160a01b031633146106fa5760405162461bcd60e51b81526004016105af90613615565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f193505050501580156105f0573d6000803e3d6000fd5b6000546001600160a01b0316331461075e5760405162461bcd60e51b81526004016105af90613615565b600b8054911515600160b01b0260ff60b01b19909216919091179055565b6000546001600160a01b031633146107a65760405162461bcd60e51b81526004016105af90613615565b600c55565b6000546001600160a01b031633146107d55760405162461bcd60e51b81526004016105af90613615565b6107df6000612561565b565b60025460ff16156108045760405162461bcd60e51b81526004016105af906135eb565b3233146108235760405162461bcd60e51b81526004016105af906135c9565b6012546001600160a01b03166351416019600583335b6040516001600160e01b031960e086901b168152600481019390935261ffff90911660248301526001600160a01b031660448201526064015b600060405180830381600087803b15801561088c57600080fd5b505af11580156108a0573d6000803e3d6000fd5b5050505050565b60025460ff16156108ca5760405162461bcd60e51b81526004016105af906135eb565b3233146108e95760405162461bcd60e51b81526004016105af906135c9565b60075462010000900461ffff16600090815260046020526040902054158015610920575060075461ffff8082166201000090920416105b15610964576001600760028282829054906101000a900461ffff1661094591906136f1565b92506101000a81548161ffff021916908361ffff1602179055506108e9565b600b5461098190600160601b90046001600160401b031642613785565b60075462010000900461ffff166000908152600560205260409020541080156109c4575060075462010000900461ffff1660009081526004602052604090205415155b610a105760405162461bcd60e51b815260206004820152601a60248201527f4e6f207374616c6520636f6d6d69747320746f2072657665616c00000000000060448201526064016105af565b60075462010000900461ffff1660009081526004602052604081208054610a3990600190613785565b81548110610a5757634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805160608101825291909301546001600160a01b038116825260ff600160a01b82041615158284015261ffff600160a81b9091048116828501526007546201000090041684526004909152912080549192509080610ad157634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160b81b0319169055019055610afc816125b1565b600f546001600160a01b03166340c10f1933836040015161ffff16600c54610b249190613743565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401610872565b60025460ff1615610b785760405162461bcd60e51b81526004016105af906135eb565b333214610b975760405162461bcd60e51b81526004016105af906135c9565b600e5460405163315ec95760e11b81526001600160a01b03909116906362bd92ae90610bcb903290869086906004016134f8565b600060405180830381600087803b158015610be557600080fd5b505af1158015610bf9573d6000803e3d6000fd5b505050505050565b60075460009062010000900461ffff165b61ffff8116600090815260046020526040902054158015610c3c575060075461ffff908116908216105b15610c5357610c4c6001826136f1565b9050610c12565b600b54610c7090600160601b90046001600160401b031642613785565b61ffff8216600090815260056020526040902054108015610507575061ffff166000908152600460205260409020541515919050565b60025460ff1615610cc95760405162461bcd60e51b81526004016105af906135eb565b323314610ce85760405162461bcd60e51b81526004016105af906135c9565b6012546001600160a01b03166306e7b95360058333610839565b60025460ff1615610d255760405162461bcd60e51b81526004016105af906135eb565b600b54600160b01b900460ff16610d4e5760405162461bcd60e51b81526004016105af9061364a565b323314610d6d5760405162461bcd60e51b81526004016105af906135c9565b600b5461ffff16600090815260096020526040902054610da057600b5461ffff1660009081526009602052604090204290555b600b54610dbe9064010000000090046001600160401b031642613785565b600b5461ffff166000908152600960205260409020541015610e2657600b805460019190600090610df490849061ffff166136f1565b82546101009290920a61ffff818102199093169183160217909155600b54166000908152600960205260409020429055505b60005b81811015611068576011546001600160a01b0316636352211e848484818110610e6257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e779190613402565b6040516001600160e01b031960e084901b16815261ffff909116600482015260240160206040518083038186803b158015610eb157600080fd5b505afa158015610ec5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee9919061329a565b6001600160a01b0316336001600160a01b031614610f3a5760405162461bcd60e51b815260206004820152600e60248201526d3737ba103cb7bab9103a37b5b2b760911b60448201526064016105af565b600b5461ffff1660009081526008602052604090819020815160a081019092529080336001600160a01b03168152602001858585818110610f8b57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610fa09190613402565b61ffff908116825260016020808401829052600060408086018290526060958601849052875493840188559681528190208551920180549186015196860151948601516080909601511515600160c01b0260ff60c01b19961515600160b81b0260ff60b81b19961515600160b01b029690961661ffff60b01b1998909516600160a01b026001600160b01b03199093166001600160a01b0390941693909317919091179590951691909117919091179190911617905580611060816137be565b915050610e29565b50600f546001600160a01b0316639dc29fac33600d54611089908590613743565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156110cf57600080fd5b505af11580156110e3573d6000803e3d6000fd5b50505050600f60009054906101000a90046001600160a01b03166001600160a01b0316639c47ee3b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561113757600080fd5b505af115801561114b573d6000803e3d6000fd5b5050336000908152600a60205260408120805485945090925061117390849061ffff166136f1565b92506101000a81548161ffff021916908361ffff16021790555061119982829050612bd4565b5050565b60025460ff16156111c05760405162461bcd60e51b81526004016105af906135eb565b3233146111df5760405162461bcd60e51b81526004016105af906135c9565b600b5462010000900461ffff166000908152600860205260409020541580156112165750600b5461ffff8082166201000090920416105b1561125a576001600b60028282829054906101000a900461ffff1661123b91906136f1565b92506101000a81548161ffff021916908361ffff1602179055506111df565b600b5461127790600160601b90046001600160401b031642613785565b600b5462010000900461ffff166000908152600960205260409020541080156112ba5750600b5462010000900461ffff1660009081526008602052604090205415155b6113065760405162461bcd60e51b815260206004820152601a60248201527f4e6f207374616c6520636f6d6d69747320746f2072657665616c00000000000060448201526064016105af565b600b5462010000900461ffff166000908152600860205260408120805461132f90600190613785565b8154811061134d57634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805160a08101825291909301546001600160a01b038116825261ffff600160a01b820481168385015260ff600160b01b83048116151584870152600160b81b8304811615156060850152600160c01b90920490911615156080830152600b5462010000900416845260089091529120805491925090806113e957634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160c81b031916905501905561141481612ee5565b600f54600c546040516340c10f1960e01b815233600482015260248101919091526001600160a01b03909116906340c10f1990604401610872565b60025460ff16156114725760405162461bcd60e51b81526004016105af906135eb565b600260015414156114c55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105af565b6002600155600b54600160b01b900460ff166114f35760405162461bcd60e51b81526004016105af9061364a565b3233146115125760405162461bcd60e51b81526004016105af906135c9565b60115460408051630278162160e51b815290516000926001600160a01b031691634f02c42091600480830192602092919082900301818787803b15801561155857600080fd5b505af115801561156c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611590919061341e565b90506000601160009054906101000a90046001600160a01b03166001600160a01b0316636abcded16040518163ffffffff1660e01b815260040160206040518083038186803b1580156115e257600080fd5b505afa1580156115f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161a9190613452565b600b549091508190859061163990600160a01b900461ffff16856136f1565b61ffff166116479190613717565b11156116895760405162461bcd60e51b8152602060048201526011602482015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b60448201526064016105af565b60008411801561169a5750600a8411155b6116dc5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016105af565b60075461ffff1660009081526005602052604090205461170f5760075461ffff1660009081526005602052604090204290555b600b5461172d9064010000000090046001600160401b031642613785565b60075461ffff16600090815260056020526040902054101561179557600780546001919060009061176390849061ffff166136f1565b82546101009290920a61ffff818102199093169183160217909155600754166000908152600560205260409020429055505b600060015b8581116118805760075461ffff16600090815260046020526040908190208151606081019092529080336001600160a01b0390811682528815156020808401919091526001604093840181905285549081018655600095865294819020845195018054918501519490930151949091166001600160a81b031990911617600160a01b92151583021761ffff60a81b1916600160a81b61ffff94851602179055600b5461186292849261184e920416876136f1565b61ffff1661185c9190613717565b84611cd9565b61186c9083613717565b915080611878816137be565b91505061179a565b50801561196257600f546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156118e157600080fd5b505af11580156118f5573d6000803e3d6000fd5b50505050600f60009054906101000a90046001600160a01b03166001600160a01b0316639c47ee3b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561194957600080fd5b505af115801561195d573d6000803e3d6000fd5b505050505b3360009081526006602052604081208054879283929161198790849061ffff166136f1565b92506101000a81548161ffff021916908361ffff16021790555080600b60148282829054906101000a900461ffff166119c091906136f1565b92506101000a81548161ffff021916908361ffff1602179055505b60075462010000900461ffff16600090815260046020526040902054158015611a12575060075461ffff8082166201000090920416105b15611a56576001600760028282829054906101000a900461ffff16611a3791906136f1565b92506101000a81548161ffff021916908361ffff1602179055506119db565b600b54611a749064010000000090046001600160401b031642613785565b60075462010000900461ffff16600090815260056020526040902054108015611ab7575060075462010000900461ffff1660009081526004602052604090205415155b15611ccd5760005b86811015611ccb5760075462010000900461ffff1660009081526004602052604081208054611af090600190613785565b81548110611b0e57634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805160608101825291909301546001600160a01b038116825260ff600160a01b82041615158284015261ffff600160a81b9091048116828501526007546201000090041684526004909152912080549192509080611b8857634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160b81b0319169055019055611bb3816125b1565b60075462010000900461ffff16600090815260046020526040902054158015611bea575060075461ffff8082166201000090920416105b15611cb8576001600760028282829054906101000a900461ffff16611c0f91906136f1565b92506101000a81548161ffff021916908361ffff160217905550600b60049054906101000a90046001600160401b03166001600160401b031642611c539190613785565b60075462010000900461ffff166000908152600560205260409020541180611c94575060075462010000900461ffff16600090815260046020526040902054155b80611cad575060075462010000810461ffff9081169116145b15611cb85750611ccb565b5080611cc3816137be565b915050611abf565b505b50506001805550505050565b60006014611ce8836008613743565b611cf2919061372f565b8311611d0957506905150ae84a8cdf000000611d98565b6014611d1683600b613743565b611d20919061372f565b8311611d37575069079f905c6fd34e800000611d98565b6014611d4483600e613743565b611d4e919061372f565b8311611d655750690a2a15d09519be000000611d98565b6014611d72836011613743565b611d7c919061372f565b8311611d935750690cb49b44ba602d800000611d98565b506003545b92915050565b60025460ff1615611dc15760405162461bcd60e51b81526004016105af906135eb565b600b54600160b01b900460ff16611dea5760405162461bcd60e51b81526004016105af9061364a565b323314611e095760405162461bcd60e51b81526004016105af906135c9565b600b5461ffff16600090815260096020526040902054611e3c57600b5461ffff1660009081526009602052604090204290555b600b54611e5a9064010000000090046001600160401b031642613785565b600b5461ffff166000908152600960205260409020541015611ec257600b805460019190600090611e9090849061ffff166136f1565b82546101009290920a61ffff818102199093169183160217909155600b54166000908152600960205260409020429055505b60005b838110156121ce57600e546001600160a01b031663471199f0868684818110611efe57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611f139190613402565b6040516001600160e01b031960e084901b16815261ffff9091166004820152841515602482015260440160206040518083038186803b158015611f5557600080fd5b505afa158015611f69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8d91906133e6565b801561204c5750600e546001600160a01b031663f04d65fd868684818110611fc557634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611fda9190613402565b6040516001600160e01b031960e084901b16815261ffff909116600482015260240160206040518083038186803b15801561201457600080fd5b505afa158015612028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204c91906133e6565b6120985760405162461bcd60e51b815260206004820152601960248201527f546f6b656e206e6f7420696e207374616b696e6720706f6f6c0000000000000060448201526064016105af565b600b5461ffff1660009081526008602052604090819020815160a081019092529080336001600160a01b031681526020018787858181106120e957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120fe9190613402565b61ffff9081168252600060208084018290528815156040808601919091528815156060958601528654600181018855968352918190208551960180549186015192860151948601516080909601511515600160c01b0260ff60c01b19961515600160b81b0260ff60b81b19961515600160b01b029690961661ffff60b01b1994909516600160a01b026001600160b01b03199093166001600160a01b03909816979097179190911791909116919091179190911791909116919091179055806121c6816137be565b915050611ec5565b50600f546001600160a01b0316639dc29fac33600d546121ef908790613743565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561223557600080fd5b505af1158015612249573d6000803e3d6000fd5b50505050600f60009054906101000a90046001600160a01b03166001600160a01b0316639c47ee3b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561229d57600080fd5b505af11580156122b1573d6000803e3d6000fd5b5050336000908152600a6020526040812080548794509092506122d990849061ffff166136f1565b92506101000a81548161ffff021916908361ffff1602179055506122ff84849050612bd4565b50505050565b6000546001600160a01b0316331461232f5760405162461bcd60e51b81526004016105af90613615565b6001600160a01b0381166123945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105af565b6105f081612561565b6000546001600160a01b031633146123c75760405162461bcd60e51b81526004016105af90613615565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6000546001600160a01b031633146124135760405162461bcd60e51b81526004016105af90613615565b600f80546001600160a01b03199081166001600160a01b03978816179091556010805482169587169590951790945560118054851693861693909317909255601280548416918516919091179055600e80549092169216919091179055565b60025460ff16156124955760405162461bcd60e51b81526004016105af906135eb565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124ca3390565b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff166125305760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105af565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336124ca565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60115460408051630278162160e51b815290516000926001600160a01b031691634f02c42091600480830192602092919082900301818787803b1580156125f757600080fd5b505af115801561260b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262f919061341e565b90508160400151600b60148282829054906101000a900461ffff166126549190613762565b92506101000a81548161ffff021916908361ffff1602179055506000826040015161ffff166001600160401b0381111561269e57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156126c7578160200160208202803683370190505b5090506000836040015161ffff166001600160401b038111156126fa57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612723578160200160208202803683370190505b50845160075461ffff62010000909104811660009081526005602090815260408083205481516001600160a01b039096168684015293891685820152606080860194909452805180860390940184526080909401909352815191909201209192505b856040015161ffff16811015612aae578461279f8161379c565b87516040519197506127c8925084916020019182526001600160a01b0316602082015260400190565b6040516020818303038152906040528051906020012060001c915060006127f383886000015161311b565b905086600001516001600160a01b0316816001600160a01b0316141580156128a257506012548751604051627eeac760e11b81526001600160a01b03918216600482015260056024820152600092919091169062fdd58e90604401602060405180830381600087803b15801561286857600080fd5b505af115801561287c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a09190613452565b115b1561293c57826001166001141561293c576012548751604051637921219560e11b81526001600160a01b0391821660048201528382166024820152600560448201526001606482015260a06084820152600060a482015291169063f242432a9060c401600060405180830381600087803b15801561291f57600080fd5b505af1158015612933573d6000803e3d6000fd5b50508851925050505b8585838151811061295d57634e487b7160e01b600052603260045260246000fd5b61ffff909216602092830291909101820152870151158061298b575086516001600160a01b03828116911614155b156129fb576011546040516340c10f1960e01b81526001600160a01b03838116600483015260248201869052909116906340c10f1990604401600060405180830381600087803b1580156129de57600080fd5b505af11580156129f2573d6000803e3d6000fd5b50505050612a9b565b601154600e546040516340c10f1960e01b81526001600160a01b039182166004820152602481018690529116906340c10f1990604401600060405180830381600087803b158015612a4b57600080fd5b505af1158015612a5f573d6000803e3d6000fd5b5050505085848381518110612a8457634e487b7160e01b600052603260045260246000fd5b602002602001019061ffff16908161ffff16815250505b5080612aa6816137be565b915050612785565b506011546040516335ca838b60e01b81526001600160a01b03909116906335ca838b90612adf9086906004016135b6565b600060405180830381600087803b158015612af957600080fd5b505af1158015612b0d573d6000803e3d6000fd5b50505050846020015115612b8057600e54855160405163315ec95760e11b81526001600160a01b03909216916362bd92ae91612b4d918690600401613554565b600060405180830381600087803b158015612b6757600080fd5b505af1158015612b7b573d6000803e3d6000fd5b505050505b60408086015186516001600160a01b031660009081526006602052918220805491929091612bb390849061ffff16613762565b92506101000a81548161ffff021916908361ffff1602179055505050505050565b600b5462010000900461ffff16600090815260086020526040902054158015612c0b5750600b5461ffff8082166201000090920416105b15612c4f576001600b60028282829054906101000a900461ffff16612c3091906136f1565b92506101000a81548161ffff021916908361ffff160217905550612bd4565b600b54612c6d9064010000000090046001600160401b031642613785565b600b5462010000900461ffff16600090815260096020526040902054108015612cb05750600b5462010000900461ffff1660009081526008602052604090205415155b156105f05760005b8181101561119957600b5462010000900461ffff1660009081526008602052604081208054612ce990600190613785565b81548110612d0757634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805160a08101825291909301546001600160a01b038116825261ffff600160a01b820481168385015260ff600160b01b83048116151584870152600160b81b8304811615156060850152600160c01b90920490911615156080830152600b546201000090041684526008909152912080549192509080612da357634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160c81b0319169055019055612dce81612ee5565b600b5462010000900461ffff16600090815260086020526040902054158015612e055750600b5461ffff8082166201000090920416105b15612ed2576001600b60028282829054906101000a900461ffff16612e2a91906136f1565b92506101000a81548161ffff021916908361ffff160217905550600b60049054906101000a90046001600160401b03166001600160401b031642612e6e9190613785565b600b5462010000900461ffff166000908152600960205260409020541180612eaf5750600b5462010000900461ffff16600090815260086020526040902054155b80612ec85750600b5462010000810461ffff9081169116145b15612ed257505050565b5080612edd816137be565b915050612cb8565b60408051600180825281830190925260009160208083019080368337019050509050816020015181600081518110612f2d57634e487b7160e01b600052603260045260246000fd5b602002602001019061ffff16908161ffff1681525050816040015115612feb57602082810151600b5462010000900461ffff166000908152600990925260408220548451612f7c9291906131d8565b600e54845160405162eacb7960e51b81529293506001600160a01b0390911691631d596f2091612fb3918591908790600401613681565b600060405180830381600087803b158015612fcd57600080fd5b505af1158015612fe1573d6000803e3d6000fd5b50505050506130cf565b81608001511561306257602082810151600b5462010000900461ffff1660009081526009909252604082205484516130249291906131d8565b600e5484516060860151604051630b3eb67160e01b81529394506001600160a01b0390921692630b3eb67192612fb3928692909188916004016136b4565b600e5482516060840151604051633e6bca0760e01b81526001600160a01b0390931692633e6bca079261309c929091869190600401613580565b600060405180830381600087803b1580156130b657600080fd5b505af11580156130ca573d6000803e3d6000fd5b505050505b81516001600160a01b03166000908152600a602052604081208054600192906130fd90849061ffff16613762565b92506101000a81548161ffff021916908361ffff1602179055505050565b600061312c600a60f585901c6137d9565b15613138575080611d98565b600e54604051638336a6cf60e01b8152609085901c60048201526000916001600160a01b031690638336a6cf9060240160206040518083038186803b15801561318057600080fd5b505afa158015613194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131b8919061329a565b90506001600160a01b0381166131d15782915050611d98565b9392505050565b6040516bffffffffffffffffffffffff19606083901b1660208201526001600160f01b031960f085901b1660348201526036810183905260009060560160408051601f198184030181529190528051602090910120949350505050565b60008083601f840112613246578182fd5b5081356001600160401b0381111561325c578182fd5b6020830191508360208260051b850101111561327757600080fd5b9250929050565b60006020828403121561328f578081fd5b81356131d181613819565b6000602082840312156132ab578081fd5b81516131d181613819565b600080600080600060a086880312156132cd578081fd5b85356132d881613819565b945060208601356132e881613819565b935060408601356132f881613819565b9250606086013561330881613819565b9150608086013561331881613819565b809150509295509295909350565b60008060208385031215613338578182fd5b82356001600160401b0381111561334d578283fd5b61335985828601613235565b90969095509350505050565b6000806000806060858703121561337a578384fd5b84356001600160401b0381111561338f578485fd5b61339b87828801613235565b90955093505060208501356133af8161382e565b915060408501356133bf8161382e565b939692955090935050565b6000602082840312156133db578081fd5b81356131d18161382e565b6000602082840312156133f7578081fd5b81516131d18161382e565b600060208284031215613413578081fd5b81356131d18161383c565b60006020828403121561342f578081fd5b81516131d18161383c565b60006020828403121561344b578081fd5b5035919050565b600060208284031215613463578081fd5b5051919050565b6000806040838503121561347c578182fd5b82359150602083013561348e8161382e565b809150509250929050565b600080604083850312156134ab578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156134ed57815161ffff16875295820195908201906001016134cd565b509495945050505050565b6001600160a01b038416815260406020808301829052908201839052600090849060608401835b868110156135485783356135328161383c565b61ffff168252928201929082019060010161351f565b50979650505050505050565b6001600160a01b0383168152604060208201819052600090613578908301846134ba565b949350505050565b6001600160a01b03841681526060602082018190526000906135a4908301856134ba565b90508215156040830152949350505050565b6020815260006131d160208301846134ba565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526019908201527f616464696e6720636f6d6d69747320646973616c6c6f77656400000000000000604082015260600190565b8381526001600160a01b03831660208201526060604082018190526000906136ab908301846134ba565b95945050505050565b8481526001600160a01b03841660208201526080604082018190526000906136de908301856134ba565b9050821515606083015295945050505050565b600061ffff80831681851680830382111561370e5761370e6137ed565b01949350505050565b6000821982111561372a5761372a6137ed565b500190565b60008261373e5761373e613803565b500490565b600081600019048311821515161561375d5761375d6137ed565b500290565b600061ffff8381169083168181101561377d5761377d6137ed565b039392505050565b600082821015613797576137976137ed565b500390565b600061ffff808316818114156137b4576137b46137ed565b6001019392505050565b60006000198214156137d2576137d26137ed565b5060010190565b6000826137e8576137e8613803565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6001600160a01b03811681146105f057600080fd5b80151581146105f057600080fd5b61ffff811681146105f057600080fdfea264697066735822122032a85dc3979e9e76c2cd8919773d2bec2352de4600c9b85b4483e77efaa4147c64736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063999c07001161010f578063e5d391a2116100a2578063f2fde38b11610071578063f2fde38b14610419578063f62b1c0d1461042c578063f63bf8bd1461043f578063f8b2a46e1461045257600080fd5b8063e5d391a2146103cd578063e6eebd8b146103e0578063f075b080146103f3578063f2eea45c1461040657600080fd5b8063bdc8cbc2116100de578063bdc8cbc21461038c578063cadeef031461039f578063cd0b86da146103b2578063e1fc334f146103ba57600080fd5b8063999c07001461033c5780639ecacf5c14610369578063b362fb9914610371578063b7cd90cd1461038457600080fd5b80633df6cc4f116101875780636f7bb00a116101565780636f7bb00a146102fd578063715018a61461031057806383c72a83146103185780638da5cb5b1461032b57600080fd5b80633df6cc4f146102b857806343b8e5c0146102cb578063498c626a146102de5780635c975abb146102f257600080fd5b806318adfb62116101c357806318adfb621461024757806326e52ba91461025a5780632af103c81461029a5780633ccfd60b146102b057600080fd5b8063078e8be7146101ea5780631090c5de1461021a57806316c38b3c14610232575b600080fd5b600e546101fd906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b610222610465565b6040519015158152602001610211565b6102456102403660046133ca565b61050d565b005b61024561025536600461343a565b6105fb565b61028761026836600461327e565b6001600160a01b031660009081526006602052604090205461ffff1690565b60405161ffff9091168152602001610211565b6102a2600581565b604051908152602001610211565b6102456106d0565b6102456102c63660046133ca565b610734565b6102456102d936600461343a565b61077c565b600b5461022290600160b01b900460ff1681565b60025460ff16610222565b600f546101fd906001600160a01b031681565b6102456107ab565b610245610326366004613402565b6107e1565b6000546001600160a01b03166101fd565b61028761034a36600461327e565b6001600160a01b03166000908152600a602052604090205461ffff1690565b6102456108a7565b61024561037f366004613326565b610b55565b610222610c01565b61024561039a366004613402565b610ca6565b6102456103ad366004613326565b610d02565b61024561119d565b6010546101fd906001600160a01b031681565b6102456103db36600461346a565b61144f565b6102a26103ee366004613499565b611cd9565b610245610401366004613365565b611d9e565b6012546101fd906001600160a01b031681565b61024561042736600461327e565b612305565b61024561043a36600461343a565b61239d565b61024561044d3660046132b6565b6123e9565b6011546101fd906001600160a01b031681565b600b5460009062010000900461ffff165b61ffff81166000908152600860205260409020541580156104a05750600b5461ffff908116908216105b156104b7576104b06001826136f1565b9050610476565b600b546104d490600160601b90046001600160401b031642613785565b61ffff8216600090815260096020526040902054108015610507575061ffff811660009081526008602052604090205415155b91505090565b600f546001600160a01b03161580159061053157506010546001600160a01b031615155b801561054757506011546001600160a01b031615155b801561055d57506012546001600160a01b031615155b80156105735750600e546001600160a01b031615155b6105b85760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b60448201526064015b60405180910390fd5b6000546001600160a01b031633146105e25760405162461bcd60e51b81526004016105af90613615565b80156105f3576105f0612472565b50565b6105f06124e7565b600f546001600160a01b03161580159061061f57506010546001600160a01b031615155b801561063557506011546001600160a01b031615155b801561064b57506012546001600160a01b031615155b80156106615750600e546001600160a01b031615155b6106a15760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b60448201526064016105af565b6000546001600160a01b031633146106cb5760405162461bcd60e51b81526004016105af90613615565b600355565b6000546001600160a01b031633146106fa5760405162461bcd60e51b81526004016105af90613615565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f193505050501580156105f0573d6000803e3d6000fd5b6000546001600160a01b0316331461075e5760405162461bcd60e51b81526004016105af90613615565b600b8054911515600160b01b0260ff60b01b19909216919091179055565b6000546001600160a01b031633146107a65760405162461bcd60e51b81526004016105af90613615565b600c55565b6000546001600160a01b031633146107d55760405162461bcd60e51b81526004016105af90613615565b6107df6000612561565b565b60025460ff16156108045760405162461bcd60e51b81526004016105af906135eb565b3233146108235760405162461bcd60e51b81526004016105af906135c9565b6012546001600160a01b03166351416019600583335b6040516001600160e01b031960e086901b168152600481019390935261ffff90911660248301526001600160a01b031660448201526064015b600060405180830381600087803b15801561088c57600080fd5b505af11580156108a0573d6000803e3d6000fd5b5050505050565b60025460ff16156108ca5760405162461bcd60e51b81526004016105af906135eb565b3233146108e95760405162461bcd60e51b81526004016105af906135c9565b60075462010000900461ffff16600090815260046020526040902054158015610920575060075461ffff8082166201000090920416105b15610964576001600760028282829054906101000a900461ffff1661094591906136f1565b92506101000a81548161ffff021916908361ffff1602179055506108e9565b600b5461098190600160601b90046001600160401b031642613785565b60075462010000900461ffff166000908152600560205260409020541080156109c4575060075462010000900461ffff1660009081526004602052604090205415155b610a105760405162461bcd60e51b815260206004820152601a60248201527f4e6f207374616c6520636f6d6d69747320746f2072657665616c00000000000060448201526064016105af565b60075462010000900461ffff1660009081526004602052604081208054610a3990600190613785565b81548110610a5757634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805160608101825291909301546001600160a01b038116825260ff600160a01b82041615158284015261ffff600160a81b9091048116828501526007546201000090041684526004909152912080549192509080610ad157634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160b81b0319169055019055610afc816125b1565b600f546001600160a01b03166340c10f1933836040015161ffff16600c54610b249190613743565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401610872565b60025460ff1615610b785760405162461bcd60e51b81526004016105af906135eb565b333214610b975760405162461bcd60e51b81526004016105af906135c9565b600e5460405163315ec95760e11b81526001600160a01b03909116906362bd92ae90610bcb903290869086906004016134f8565b600060405180830381600087803b158015610be557600080fd5b505af1158015610bf9573d6000803e3d6000fd5b505050505050565b60075460009062010000900461ffff165b61ffff8116600090815260046020526040902054158015610c3c575060075461ffff908116908216105b15610c5357610c4c6001826136f1565b9050610c12565b600b54610c7090600160601b90046001600160401b031642613785565b61ffff8216600090815260056020526040902054108015610507575061ffff166000908152600460205260409020541515919050565b60025460ff1615610cc95760405162461bcd60e51b81526004016105af906135eb565b323314610ce85760405162461bcd60e51b81526004016105af906135c9565b6012546001600160a01b03166306e7b95360058333610839565b60025460ff1615610d255760405162461bcd60e51b81526004016105af906135eb565b600b54600160b01b900460ff16610d4e5760405162461bcd60e51b81526004016105af9061364a565b323314610d6d5760405162461bcd60e51b81526004016105af906135c9565b600b5461ffff16600090815260096020526040902054610da057600b5461ffff1660009081526009602052604090204290555b600b54610dbe9064010000000090046001600160401b031642613785565b600b5461ffff166000908152600960205260409020541015610e2657600b805460019190600090610df490849061ffff166136f1565b82546101009290920a61ffff818102199093169183160217909155600b54166000908152600960205260409020429055505b60005b81811015611068576011546001600160a01b0316636352211e848484818110610e6257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e779190613402565b6040516001600160e01b031960e084901b16815261ffff909116600482015260240160206040518083038186803b158015610eb157600080fd5b505afa158015610ec5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee9919061329a565b6001600160a01b0316336001600160a01b031614610f3a5760405162461bcd60e51b815260206004820152600e60248201526d3737ba103cb7bab9103a37b5b2b760911b60448201526064016105af565b600b5461ffff1660009081526008602052604090819020815160a081019092529080336001600160a01b03168152602001858585818110610f8b57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610fa09190613402565b61ffff908116825260016020808401829052600060408086018290526060958601849052875493840188559681528190208551920180549186015196860151948601516080909601511515600160c01b0260ff60c01b19961515600160b81b0260ff60b81b19961515600160b01b029690961661ffff60b01b1998909516600160a01b026001600160b01b03199093166001600160a01b0390941693909317919091179590951691909117919091179190911617905580611060816137be565b915050610e29565b50600f546001600160a01b0316639dc29fac33600d54611089908590613743565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156110cf57600080fd5b505af11580156110e3573d6000803e3d6000fd5b50505050600f60009054906101000a90046001600160a01b03166001600160a01b0316639c47ee3b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561113757600080fd5b505af115801561114b573d6000803e3d6000fd5b5050336000908152600a60205260408120805485945090925061117390849061ffff166136f1565b92506101000a81548161ffff021916908361ffff16021790555061119982829050612bd4565b5050565b60025460ff16156111c05760405162461bcd60e51b81526004016105af906135eb565b3233146111df5760405162461bcd60e51b81526004016105af906135c9565b600b5462010000900461ffff166000908152600860205260409020541580156112165750600b5461ffff8082166201000090920416105b1561125a576001600b60028282829054906101000a900461ffff1661123b91906136f1565b92506101000a81548161ffff021916908361ffff1602179055506111df565b600b5461127790600160601b90046001600160401b031642613785565b600b5462010000900461ffff166000908152600960205260409020541080156112ba5750600b5462010000900461ffff1660009081526008602052604090205415155b6113065760405162461bcd60e51b815260206004820152601a60248201527f4e6f207374616c6520636f6d6d69747320746f2072657665616c00000000000060448201526064016105af565b600b5462010000900461ffff166000908152600860205260408120805461132f90600190613785565b8154811061134d57634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805160a08101825291909301546001600160a01b038116825261ffff600160a01b820481168385015260ff600160b01b83048116151584870152600160b81b8304811615156060850152600160c01b90920490911615156080830152600b5462010000900416845260089091529120805491925090806113e957634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160c81b031916905501905561141481612ee5565b600f54600c546040516340c10f1960e01b815233600482015260248101919091526001600160a01b03909116906340c10f1990604401610872565b60025460ff16156114725760405162461bcd60e51b81526004016105af906135eb565b600260015414156114c55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105af565b6002600155600b54600160b01b900460ff166114f35760405162461bcd60e51b81526004016105af9061364a565b3233146115125760405162461bcd60e51b81526004016105af906135c9565b60115460408051630278162160e51b815290516000926001600160a01b031691634f02c42091600480830192602092919082900301818787803b15801561155857600080fd5b505af115801561156c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611590919061341e565b90506000601160009054906101000a90046001600160a01b03166001600160a01b0316636abcded16040518163ffffffff1660e01b815260040160206040518083038186803b1580156115e257600080fd5b505afa1580156115f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161a9190613452565b600b549091508190859061163990600160a01b900461ffff16856136f1565b61ffff166116479190613717565b11156116895760405162461bcd60e51b8152602060048201526011602482015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b60448201526064016105af565b60008411801561169a5750600a8411155b6116dc5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016105af565b60075461ffff1660009081526005602052604090205461170f5760075461ffff1660009081526005602052604090204290555b600b5461172d9064010000000090046001600160401b031642613785565b60075461ffff16600090815260056020526040902054101561179557600780546001919060009061176390849061ffff166136f1565b82546101009290920a61ffff818102199093169183160217909155600754166000908152600560205260409020429055505b600060015b8581116118805760075461ffff16600090815260046020526040908190208151606081019092529080336001600160a01b0390811682528815156020808401919091526001604093840181905285549081018655600095865294819020845195018054918501519490930151949091166001600160a81b031990911617600160a01b92151583021761ffff60a81b1916600160a81b61ffff94851602179055600b5461186292849261184e920416876136f1565b61ffff1661185c9190613717565b84611cd9565b61186c9083613717565b915080611878816137be565b91505061179a565b50801561196257600f546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156118e157600080fd5b505af11580156118f5573d6000803e3d6000fd5b50505050600f60009054906101000a90046001600160a01b03166001600160a01b0316639c47ee3b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561194957600080fd5b505af115801561195d573d6000803e3d6000fd5b505050505b3360009081526006602052604081208054879283929161198790849061ffff166136f1565b92506101000a81548161ffff021916908361ffff16021790555080600b60148282829054906101000a900461ffff166119c091906136f1565b92506101000a81548161ffff021916908361ffff1602179055505b60075462010000900461ffff16600090815260046020526040902054158015611a12575060075461ffff8082166201000090920416105b15611a56576001600760028282829054906101000a900461ffff16611a3791906136f1565b92506101000a81548161ffff021916908361ffff1602179055506119db565b600b54611a749064010000000090046001600160401b031642613785565b60075462010000900461ffff16600090815260056020526040902054108015611ab7575060075462010000900461ffff1660009081526004602052604090205415155b15611ccd5760005b86811015611ccb5760075462010000900461ffff1660009081526004602052604081208054611af090600190613785565b81548110611b0e57634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805160608101825291909301546001600160a01b038116825260ff600160a01b82041615158284015261ffff600160a81b9091048116828501526007546201000090041684526004909152912080549192509080611b8857634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160b81b0319169055019055611bb3816125b1565b60075462010000900461ffff16600090815260046020526040902054158015611bea575060075461ffff8082166201000090920416105b15611cb8576001600760028282829054906101000a900461ffff16611c0f91906136f1565b92506101000a81548161ffff021916908361ffff160217905550600b60049054906101000a90046001600160401b03166001600160401b031642611c539190613785565b60075462010000900461ffff166000908152600560205260409020541180611c94575060075462010000900461ffff16600090815260046020526040902054155b80611cad575060075462010000810461ffff9081169116145b15611cb85750611ccb565b5080611cc3816137be565b915050611abf565b505b50506001805550505050565b60006014611ce8836008613743565b611cf2919061372f565b8311611d0957506905150ae84a8cdf000000611d98565b6014611d1683600b613743565b611d20919061372f565b8311611d37575069079f905c6fd34e800000611d98565b6014611d4483600e613743565b611d4e919061372f565b8311611d655750690a2a15d09519be000000611d98565b6014611d72836011613743565b611d7c919061372f565b8311611d935750690cb49b44ba602d800000611d98565b506003545b92915050565b60025460ff1615611dc15760405162461bcd60e51b81526004016105af906135eb565b600b54600160b01b900460ff16611dea5760405162461bcd60e51b81526004016105af9061364a565b323314611e095760405162461bcd60e51b81526004016105af906135c9565b600b5461ffff16600090815260096020526040902054611e3c57600b5461ffff1660009081526009602052604090204290555b600b54611e5a9064010000000090046001600160401b031642613785565b600b5461ffff166000908152600960205260409020541015611ec257600b805460019190600090611e9090849061ffff166136f1565b82546101009290920a61ffff818102199093169183160217909155600b54166000908152600960205260409020429055505b60005b838110156121ce57600e546001600160a01b031663471199f0868684818110611efe57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611f139190613402565b6040516001600160e01b031960e084901b16815261ffff9091166004820152841515602482015260440160206040518083038186803b158015611f5557600080fd5b505afa158015611f69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8d91906133e6565b801561204c5750600e546001600160a01b031663f04d65fd868684818110611fc557634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611fda9190613402565b6040516001600160e01b031960e084901b16815261ffff909116600482015260240160206040518083038186803b15801561201457600080fd5b505afa158015612028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204c91906133e6565b6120985760405162461bcd60e51b815260206004820152601960248201527f546f6b656e206e6f7420696e207374616b696e6720706f6f6c0000000000000060448201526064016105af565b600b5461ffff1660009081526008602052604090819020815160a081019092529080336001600160a01b031681526020018787858181106120e957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120fe9190613402565b61ffff9081168252600060208084018290528815156040808601919091528815156060958601528654600181018855968352918190208551960180549186015192860151948601516080909601511515600160c01b0260ff60c01b19961515600160b81b0260ff60b81b19961515600160b01b029690961661ffff60b01b1994909516600160a01b026001600160b01b03199093166001600160a01b03909816979097179190911791909116919091179190911791909116919091179055806121c6816137be565b915050611ec5565b50600f546001600160a01b0316639dc29fac33600d546121ef908790613743565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561223557600080fd5b505af1158015612249573d6000803e3d6000fd5b50505050600f60009054906101000a90046001600160a01b03166001600160a01b0316639c47ee3b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561229d57600080fd5b505af11580156122b1573d6000803e3d6000fd5b5050336000908152600a6020526040812080548794509092506122d990849061ffff166136f1565b92506101000a81548161ffff021916908361ffff1602179055506122ff84849050612bd4565b50505050565b6000546001600160a01b0316331461232f5760405162461bcd60e51b81526004016105af90613615565b6001600160a01b0381166123945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105af565b6105f081612561565b6000546001600160a01b031633146123c75760405162461bcd60e51b81526004016105af90613615565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6000546001600160a01b031633146124135760405162461bcd60e51b81526004016105af90613615565b600f80546001600160a01b03199081166001600160a01b03978816179091556010805482169587169590951790945560118054851693861693909317909255601280548416918516919091179055600e80549092169216919091179055565b60025460ff16156124955760405162461bcd60e51b81526004016105af906135eb565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124ca3390565b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff166125305760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105af565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336124ca565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60115460408051630278162160e51b815290516000926001600160a01b031691634f02c42091600480830192602092919082900301818787803b1580156125f757600080fd5b505af115801561260b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262f919061341e565b90508160400151600b60148282829054906101000a900461ffff166126549190613762565b92506101000a81548161ffff021916908361ffff1602179055506000826040015161ffff166001600160401b0381111561269e57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156126c7578160200160208202803683370190505b5090506000836040015161ffff166001600160401b038111156126fa57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612723578160200160208202803683370190505b50845160075461ffff62010000909104811660009081526005602090815260408083205481516001600160a01b039096168684015293891685820152606080860194909452805180860390940184526080909401909352815191909201209192505b856040015161ffff16811015612aae578461279f8161379c565b87516040519197506127c8925084916020019182526001600160a01b0316602082015260400190565b6040516020818303038152906040528051906020012060001c915060006127f383886000015161311b565b905086600001516001600160a01b0316816001600160a01b0316141580156128a257506012548751604051627eeac760e11b81526001600160a01b03918216600482015260056024820152600092919091169062fdd58e90604401602060405180830381600087803b15801561286857600080fd5b505af115801561287c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a09190613452565b115b1561293c57826001166001141561293c576012548751604051637921219560e11b81526001600160a01b0391821660048201528382166024820152600560448201526001606482015260a06084820152600060a482015291169063f242432a9060c401600060405180830381600087803b15801561291f57600080fd5b505af1158015612933573d6000803e3d6000fd5b50508851925050505b8585838151811061295d57634e487b7160e01b600052603260045260246000fd5b61ffff909216602092830291909101820152870151158061298b575086516001600160a01b03828116911614155b156129fb576011546040516340c10f1960e01b81526001600160a01b03838116600483015260248201869052909116906340c10f1990604401600060405180830381600087803b1580156129de57600080fd5b505af11580156129f2573d6000803e3d6000fd5b50505050612a9b565b601154600e546040516340c10f1960e01b81526001600160a01b039182166004820152602481018690529116906340c10f1990604401600060405180830381600087803b158015612a4b57600080fd5b505af1158015612a5f573d6000803e3d6000fd5b5050505085848381518110612a8457634e487b7160e01b600052603260045260246000fd5b602002602001019061ffff16908161ffff16815250505b5080612aa6816137be565b915050612785565b506011546040516335ca838b60e01b81526001600160a01b03909116906335ca838b90612adf9086906004016135b6565b600060405180830381600087803b158015612af957600080fd5b505af1158015612b0d573d6000803e3d6000fd5b50505050846020015115612b8057600e54855160405163315ec95760e11b81526001600160a01b03909216916362bd92ae91612b4d918690600401613554565b600060405180830381600087803b158015612b6757600080fd5b505af1158015612b7b573d6000803e3d6000fd5b505050505b60408086015186516001600160a01b031660009081526006602052918220805491929091612bb390849061ffff16613762565b92506101000a81548161ffff021916908361ffff1602179055505050505050565b600b5462010000900461ffff16600090815260086020526040902054158015612c0b5750600b5461ffff8082166201000090920416105b15612c4f576001600b60028282829054906101000a900461ffff16612c3091906136f1565b92506101000a81548161ffff021916908361ffff160217905550612bd4565b600b54612c6d9064010000000090046001600160401b031642613785565b600b5462010000900461ffff16600090815260096020526040902054108015612cb05750600b5462010000900461ffff1660009081526008602052604090205415155b156105f05760005b8181101561119957600b5462010000900461ffff1660009081526008602052604081208054612ce990600190613785565b81548110612d0757634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805160a08101825291909301546001600160a01b038116825261ffff600160a01b820481168385015260ff600160b01b83048116151584870152600160b81b8304811615156060850152600160c01b90920490911615156080830152600b546201000090041684526008909152912080549192509080612da357634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160c81b0319169055019055612dce81612ee5565b600b5462010000900461ffff16600090815260086020526040902054158015612e055750600b5461ffff8082166201000090920416105b15612ed2576001600b60028282829054906101000a900461ffff16612e2a91906136f1565b92506101000a81548161ffff021916908361ffff160217905550600b60049054906101000a90046001600160401b03166001600160401b031642612e6e9190613785565b600b5462010000900461ffff166000908152600960205260409020541180612eaf5750600b5462010000900461ffff16600090815260086020526040902054155b80612ec85750600b5462010000810461ffff9081169116145b15612ed257505050565b5080612edd816137be565b915050612cb8565b60408051600180825281830190925260009160208083019080368337019050509050816020015181600081518110612f2d57634e487b7160e01b600052603260045260246000fd5b602002602001019061ffff16908161ffff1681525050816040015115612feb57602082810151600b5462010000900461ffff166000908152600990925260408220548451612f7c9291906131d8565b600e54845160405162eacb7960e51b81529293506001600160a01b0390911691631d596f2091612fb3918591908790600401613681565b600060405180830381600087803b158015612fcd57600080fd5b505af1158015612fe1573d6000803e3d6000fd5b50505050506130cf565b81608001511561306257602082810151600b5462010000900461ffff1660009081526009909252604082205484516130249291906131d8565b600e5484516060860151604051630b3eb67160e01b81529394506001600160a01b0390921692630b3eb67192612fb3928692909188916004016136b4565b600e5482516060840151604051633e6bca0760e01b81526001600160a01b0390931692633e6bca079261309c929091869190600401613580565b600060405180830381600087803b1580156130b657600080fd5b505af11580156130ca573d6000803e3d6000fd5b505050505b81516001600160a01b03166000908152600a602052604081208054600192906130fd90849061ffff16613762565b92506101000a81548161ffff021916908361ffff1602179055505050565b600061312c600a60f585901c6137d9565b15613138575080611d98565b600e54604051638336a6cf60e01b8152609085901c60048201526000916001600160a01b031690638336a6cf9060240160206040518083038186803b15801561318057600080fd5b505afa158015613194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131b8919061329a565b90506001600160a01b0381166131d15782915050611d98565b9392505050565b6040516bffffffffffffffffffffffff19606083901b1660208201526001600160f01b031960f085901b1660348201526036810183905260009060560160408051601f198184030181529190528051602090910120949350505050565b60008083601f840112613246578182fd5b5081356001600160401b0381111561325c578182fd5b6020830191508360208260051b850101111561327757600080fd5b9250929050565b60006020828403121561328f578081fd5b81356131d181613819565b6000602082840312156132ab578081fd5b81516131d181613819565b600080600080600060a086880312156132cd578081fd5b85356132d881613819565b945060208601356132e881613819565b935060408601356132f881613819565b9250606086013561330881613819565b9150608086013561331881613819565b809150509295509295909350565b60008060208385031215613338578182fd5b82356001600160401b0381111561334d578283fd5b61335985828601613235565b90969095509350505050565b6000806000806060858703121561337a578384fd5b84356001600160401b0381111561338f578485fd5b61339b87828801613235565b90955093505060208501356133af8161382e565b915060408501356133bf8161382e565b939692955090935050565b6000602082840312156133db578081fd5b81356131d18161382e565b6000602082840312156133f7578081fd5b81516131d18161382e565b600060208284031215613413578081fd5b81356131d18161383c565b60006020828403121561342f578081fd5b81516131d18161383c565b60006020828403121561344b578081fd5b5035919050565b600060208284031215613463578081fd5b5051919050565b6000806040838503121561347c578182fd5b82359150602083013561348e8161382e565b809150509250929050565b600080604083850312156134ab578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156134ed57815161ffff16875295820195908201906001016134cd565b509495945050505050565b6001600160a01b038416815260406020808301829052908201839052600090849060608401835b868110156135485783356135328161383c565b61ffff168252928201929082019060010161351f565b50979650505050505050565b6001600160a01b0383168152604060208201819052600090613578908301846134ba565b949350505050565b6001600160a01b03841681526060602082018190526000906135a4908301856134ba565b90508215156040830152949350505050565b6020815260006131d160208301846134ba565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526019908201527f616464696e6720636f6d6d69747320646973616c6c6f77656400000000000000604082015260600190565b8381526001600160a01b03831660208201526060604082018190526000906136ab908301846134ba565b95945050505050565b8481526001600160a01b03841660208201526080604082018190526000906136de908301856134ba565b9050821515606083015295945050505050565b600061ffff80831681851680830382111561370e5761370e6137ed565b01949350505050565b6000821982111561372a5761372a6137ed565b500190565b60008261373e5761373e613803565b500490565b600081600019048311821515161561375d5761375d6137ed565b500290565b600061ffff8381169083168181101561377d5761377d6137ed565b039392505050565b600082821015613797576137976137ed565b500390565b600061ffff808316818114156137b4576137b46137ed565b6001019392505050565b60006000198214156137d2576137d26137ed565b5060010190565b6000826137e8576137e8613803565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6001600160a01b03811681146105f057600080fd5b80151581146105f057600080fd5b61ffff811681146105f057600080fdfea264697066735822122032a85dc3979e9e76c2cd8919773d2bec2352de4600c9b85b4483e77efaa4147c64736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.