Source Code
Overview
ETH Balance
0.131 ETH
ETH Value
$357.35 (@ $2,727.87/ETH)Latest 25 from a total of 8,322 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw Unlocke... | 15038743 | 357 days ago | IN | 0 ETH | 0.00000004 | ||||
| Withdraw Blast T... | 15038718 | 357 days ago | IN | 0 ETH | 0.00000003 | ||||
| Claim Points | 14576197 | 368 days ago | IN | 0 ETH | 0.0000002 | ||||
| Claim Points | 14506931 | 369 days ago | IN | 0 ETH | 0.00000006 | ||||
| Claim Points | 14506752 | 369 days ago | IN | 0 ETH | 0.00000007 | ||||
| Claim Points | 14438454 | 371 days ago | IN | 0 ETH | 0.00000297 | ||||
| Claim Points | 14427142 | 371 days ago | IN | 0 ETH | 0.00000052 | ||||
| Claim Points | 14426990 | 371 days ago | IN | 0 ETH | 0.00000037 | ||||
| Claim Points | 14426946 | 371 days ago | IN | 0 ETH | 0.0000004 | ||||
| Claim Points | 14409435 | 372 days ago | IN | 0 ETH | 0.00000017 | ||||
| Claim Points | 14409387 | 372 days ago | IN | 0 ETH | 0.00000017 | ||||
| Claim Points | 14409316 | 372 days ago | IN | 0 ETH | 0.00000017 | ||||
| Claim Points | 14360931 | 373 days ago | IN | 0 ETH | 0.00000018 | ||||
| Claim Points | 14360837 | 373 days ago | IN | 0 ETH | 0.00000018 | ||||
| Claim Points | 14341922 | 373 days ago | IN | 0 ETH | 0.00000772 | ||||
| Claim Points | 14340245 | 373 days ago | IN | 0 ETH | 0.00001684 | ||||
| Claim Points | 14340214 | 373 days ago | IN | 0 ETH | 0.00001091 | ||||
| Claim Points | 14336349 | 373 days ago | IN | 0 ETH | 0.00001543 | ||||
| Claim Points | 14336281 | 373 days ago | IN | 0 ETH | 0.00001552 | ||||
| Claim Points | 14323463 | 374 days ago | IN | 0 ETH | 0.00000018 | ||||
| Claim Points | 14323404 | 374 days ago | IN | 0 ETH | 0.00000018 | ||||
| Claim Points | 14323233 | 374 days ago | IN | 0 ETH | 0.00000018 | ||||
| Withdraw Unlocke... | 14292060 | 374 days ago | IN | 0 ETH | 0.00000467 | ||||
| Claim Points | 14290869 | 374 days ago | IN | 0 ETH | 0.00000516 | ||||
| Claim Points | 14290783 | 374 days ago | IN | 0 ETH | 0.00000555 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PacBoom
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
// Importation de la bibliothèque ECDSA depuis OpenZeppelin Contracts
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./IBlast.sol";
import "./IBlastPoints.sol";
contract PacBoom is Ownable, ReentrancyGuard {
using ECDSA for bytes32;
using Strings for uint256;
using Strings for address;
struct Lock {
uint256 amount; // Montant verrouillé
uint256 lockEndTime; // Fin du verrouillage
uint256 lockDuration; // Durée du verrouillage (14 ou 28 jours)
}
struct Player {
uint256 bonus;
uint256 points;
bool initialized;
Lock[] locks; // Liste des verrouillages pour chaque joueur
uint256 totalLocked; // Montant total des ethers verrouillés
uint256 lockDurationMax; // le lock le plus gros parmi tous les lock est pris en compte pour le calcul du bonus
uint256 bossKills; // Nombre de boss tués par un player
}
struct PacBoss {
uint256 serial; // par exemple 1
uint256 life; // par exemple 100,000
uint256 prize; // par exemple 1 Gold
uint256 entryFeeBoss; // par exemple 1 Blast
uint256 damage; // dégâts
uint256 category; // type de récompense
}
// Créer un mapping pour stocker les boss par leur numéro de série
mapping(uint256 => PacBoss) public bosses;
mapping(uint256 => bool) public bossesKilled;
// Ajout d'un tableau pour stocker les serials de chaque boss
uint256[] public listBossSerials;
uint256 public totalBosses; // Pour suivre le nombre total de boss
// Mapping pour associer un joueur à un tableau des boss tués
mapping(address => PacBoss[]) public playerKilledBosses;
// Mapping pour associer un serial de boss tué à une address
mapping(uint256 => address) public whoKilledBosses;
// Ajout d'un tableau pour stocker les serials de chaque boss tués
uint256[] public listBossKilledSerials;
uint256 public totalBossesKilled; // Pour suivre le nombre total de boss tués
// Mapping pour enregistrer les joueurs et tableau pour stocker l'adresse de chaque joueur
mapping(address => Player) private players;
address[] private playerAddresses;
// Addresse signer et mapping pour sauvegarder les messages déjà effectués
address private signer;
mapping(string => bool) private processedMessages;
// EntryFee pour la fonction claimPoints
uint256 entryFee;
// Durées possibles pour le verrouillage
uint256 public constant LOCK_DURATION_14_DAYS = 14 days;
uint256 public constant LOCK_DURATION_28_DAYS = 28 days;
// Montant minimal de lock en ETH
uint256 public constant MIN_LOCK_AMOUNT = 0.01 ether;
IERC20 public blastToken;
address private blastTokenAddress = 0xb1a5700fA2358173Fe465e6eA4Ff52E36e88E2ad;
address private blastPointsMainnet = 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800;
address private blastYieldContract = 0x4300000000000000000000000000000000000002;
// Liste des contrats NFT autorisés
address[] private nftContracts;
// Threshold for nft bonus
uint256 private thresholdBonus;
// Events
event PointsEarned(address indexed player, uint256 score, uint256 bonus);
event EtherLocked(address indexed player, uint256 amount, uint256 lockDuration);
event EtherUnlocked(address indexed player, uint256 amount);
// Déclarer l'événement pour la réinitialisation du leaderboard
event LeaderboardReinitialized(uint256 timestamp);
event BossCreated(uint256 serial, uint256 life, uint256 prize, uint256 entryFee, uint256 damage, uint256 category);
event BossAttacked(uint256 serial, address player, uint256 damage);
event BossDestroyed(uint256 serial, address player);
constructor(address[] memory _nftContracts, address _blastTokenAddress, uint256 _entryFee, uint256 thresholdBonus_) Ownable(msg.sender) {
require(_nftContracts.length > 0, "At least one NFT contract");
nftContracts = _nftContracts;
// Set the blast token and entry fee
signer = msg.sender;
blastToken = IERC20(_blastTokenAddress);
entryFee = _entryFee;
thresholdBonus = thresholdBonus_;
IBlastPoints(blastPointsMainnet).configurePointsOperator(msg.sender);
IBlast(blastYieldContract).configureAutomaticYield();
IBlast(blastYieldContract).configureGovernor(msg.sender);
}
// Fonction pour créer un boss, qui donnera lieu à une récompense
function createBoss(uint256 serial_, uint256 life_, uint256 prize_, uint256 entryFee_, uint256 damage_, uint256 category_) external onlyOwner {
require(bosses[serial_].serial == 0, "Boss already created");
// Initialiser un nouveau boss et le stocker dans le mapping
bosses[serial_] = PacBoss({
serial: serial_,
life: life_,
prize: prize_,
entryFeeBoss: entryFee_,
damage: damage_,
category: category_
});
listBossSerials.push(serial_);
totalBosses++;
emit BossCreated(serial_, life_, prize_, entryFee_, damage_, category_);
}
// Fonction pour retourner un boss
function getBoss(uint256 serial) external view returns (uint256 life, uint256 damage, uint256 entryFeeBoss, uint256 prize, uint256 category) {
PacBoss storage boss = bosses[serial];
return (boss.life, boss.damage, boss.entryFeeBoss, boss.prize, boss.category);
}
// Fonction pour obtenir tous les serials de boss
function getListBossSerials() external view returns (uint256[] memory) {
return listBossSerials;
}
// Fonction pour obtenir tous les serials de boss tués
function getListBossKilledSerials() external view returns (uint256[] memory) {
return listBossKilledSerials;
}
// Fonction qui indique si un boss est en vie ou non
function isBossKilled(uint256 serial) external view returns (bool) {
return bossesKilled[serial];
}
// Fonction qui retourne l'addresse de celui qui a tué un boss de serial donné
function getWhoKilledBoss(uint256 serial) external view returns (address) {
return whoKilledBosses[serial];
}
// Fonction pour obtenir le détail des boss tués par un joueur
function getMapPlayerKilledBosses(address player) external view returns (PacBoss[] memory) {
return playerKilledBosses[player];
}
// Fonction pour attaquer un boss
function attackBoss(uint256 serial, uint256 timestamp, bytes calldata signature) external nonReentrant payable returns (uint256) {
address player = msg.sender;
// Vérifie que le joueur existe
require(players[player].initialized, "Player does not exist"); // permet de filtrer les appelants
// Récupérer les infos du boss attaqué
PacBoss storage currBoss = bosses[serial];
// Vérifier que le boss est en vie avant de l'attaquer
require(currBoss.life > 0, "The boss is already dead.");
// Vérifier que l'attaque du boss ne dépasse pas le nombre de points du player
require(currBoss.damage <= players[player].points, "The player can't attack the boss.");
// Vérifier le nombre de PB points du player
require(players[player].points >= currBoss.damage, "PB points too low.");
// Vérifier le paiement en tokens
require(blastToken.transferFrom(player, address(this), currBoss.entryFeeBoss), "Token transfer failed");
// Recréez le message original à partir du timestamp, de l'adresse
string memory message = string(abi.encodePacked(timestamp.toString(), player.toHexString()));
// Vérifiez si le message a déjà été traité
require(!processedMessages[message], "Message already processed");
// Vérifiez la signature
require(recoverSigner(message, signature) == getSigner(), "Invalid signature");
// Marquez ce message comme traité
processedMessages[message] = true;
// Vérifie si l'attaque détruit le boss
if (currBoss.life > currBoss.damage) {
// Si le boss survit à l'attaque, réduis sa vie et soustrais les points du joueur
players[player].points -= currBoss.damage;
currBoss.life -= currBoss.damage;
emit BossAttacked(currBoss.serial, player, currBoss.damage);
} else {
players[player].points -= currBoss.damage;
currBoss.life = 0;
// Ajouter les informations du boss tué dans le tableau du joueur
playerKilledBosses[player].push(currBoss);
players[player].bossKills += 1; // Incrémenter le nombre de boss tués
// Mapping pour associer un serial de boss tué à une address
whoKilledBosses[currBoss.serial] = player;
bossesKilled[currBoss.serial] = true; // on ajoute dans le mapping des boss tués la valeur true pour le serial de ce boss
listBossKilledSerials.push(currBoss.serial); // on ajoute l'information dans le tableau bossKilledSerials
totalBossesKilled++; // on incrémente le nombre Total de boss tués
emit BossDestroyed(currBoss.serial, player);
}
return currBoss.serial;
}
// Fonction pour verrouiller des ethers avec une durée choisie
function lockEther(uint256 lockChoice) external payable {
require(msg.value >= MIN_LOCK_AMOUNT, "ETH value must be >= 0.01");
if (!players[msg.sender].initialized) {
addPlayer(msg.sender);
}
Player storage player = players[msg.sender];
uint256 lockDuration;
// Choisir la durée du verrouillage (14 jours ou 28 jours)
if (lockChoice == 14) {
lockDuration = LOCK_DURATION_14_DAYS;
} else if (lockChoice == 28) {
lockDuration = LOCK_DURATION_28_DAYS;
} else {
revert("Duration lock not valid");
}
// Ajouter un nouveau verrouillage
player.locks.push(Lock({
amount: msg.value,
lockEndTime: block.timestamp + lockDuration,
lockDuration: lockDuration
}));
// Mettre à jour le montant total des ethers verrouillés
player.totalLocked += msg.value;
// Mettre à jour la durée de verrouillage maximale uniquement si nécessaire
if (lockDuration > player.lockDurationMax) {
player.lockDurationMax = lockDuration;
}
// Mettre à jour le bonus avec un bonus supplémentaire en fonction du montant total verrouillé
setPlayerBonus(msg.sender);
emit EtherLocked(msg.sender, msg.value, lockDuration);
}
function setSigner(address _signer) external onlyOwner {
signer = _signer;
}
function setEntryFee(uint256 entryFee_) external onlyOwner {
entryFee = entryFee_;
}
function getSigner() public view returns (address) {
return signer;
}
function getNbNftContract() public view returns (uint256) {
return nftContracts.length;
}
function addNftContract(address _nftContract) external onlyOwner {
nftContracts.push(_nftContract);
}
function removeNftContract(uint index) external onlyOwner {
require(index < nftContracts.length, "Index out of bounds");
nftContracts[index] = nftContracts[nftContracts.length - 1]; // Remplacer par le dernier élément
nftContracts.pop(); // Supprimer le dernier élément
}
function hasNFTFromAnyCollection(address player) public view returns (bool) {
for (uint i = 0; i < nftContracts.length; i++) {
IERC721 erc721 = IERC721(nftContracts[i]);
if (erc721.balanceOf(player) > 0) {
return true;
}
}
return false;
}
function numberOfNFTsFromAllCollections(address player) public view returns (uint256) {
uint256 totalNFTs = 0;
for (uint i = 0; i < nftContracts.length; i++) {
IERC721 erc721 = IERC721(nftContracts[i]);
totalNFTs += erc721.balanceOf(player);
}
return totalNFTs;
}
function numberOfNFTsFromACollection(address player, uint256 index) public view returns (uint256) {
require(index < nftContracts.length, "Index out of bounds.");
IERC721 erc721 = IERC721(nftContracts[index]);
return erc721.balanceOf(player);
}
function getThresholdBonus() public view returns(uint256) {
return thresholdBonus;
}
function setThresholdBonus(uint256 thresholdBonus_) public onlyOwner {
thresholdBonus = thresholdBonus_;
}
// Fonction pour mettre à jour le bonus en fonction du total des ethers verrouillés
function setPlayerBonus(address playerAddress) internal {
Player storage player = players[playerAddress];
uint256 totalLocked = player.totalLocked;
uint256 lockDurationMax = player.lockDurationMax; // on calcule le bonus en fonction du lock avec la durée la plus élevée
// Calculer un bonus proportionnel basé sur le montant total verrouillé avec un plafond à 0.1 ETH
uint256 cappedLockedAmount = totalLocked > 0.1 ether ? 0.1 ether : totalLocked; // Limite à 0.1 ETH
uint256 bonusLock = cappedLockedAmount / 0.05 ether; // 1 bonus pour chaque tranche de 0.05 ETH donc bonusLock max de 2
// Ajouter un bonus supplémentaire basé sur la durée du verrouillage et le montant total lock
uint256 extraBonusLock = 0;
if (lockDurationMax >= LOCK_DURATION_14_DAYS && totalLocked > 0.2 ether) {
extraBonusLock = 1; // Bonus supplémentaire pour 14 jours et un lock total supérieur à 0.2 ether
}
if (lockDurationMax == LOCK_DURATION_28_DAYS && totalLocked >= 1 ether) {
extraBonusLock = 2; // Bonus supplémentaire pour 28 jours et un lock total supérieur à 1 ether
}
uint256 totalNftsOwned = numberOfNFTsFromAllCollections(playerAddress);
uint256 bonusNfts = 0;
uint256 threshold = getThresholdBonus();
if (totalNftsOwned == 0) {
bonusNfts = 0; // classic mode
} else if (totalNftsOwned < threshold) {
bonusNfts = 1;
} else {
bonusNfts = 2; // bonus max
}
// Bonus final = bonus basé sur montant total + bonus supplémentaire
player.bonus = 1 + bonusLock + extraBonusLock + bonusNfts;
}
// Fonction pour calculer le total des ethers encore verrouillés pour un joueur
function getTotalLockedEther(address playerAddress) public view returns (uint256) {
Player storage player = players[playerAddress];
uint256 totalLocked = 0;
for (uint256 i = 0; i < player.locks.length; i++) {
if (block.timestamp < player.locks[i].lockEndTime) {
totalLocked += player.locks[i].amount;
}
}
return totalLocked;
}
// Fonction pour récupérer tous les locks d'un joueur
function getTotalLocks(address playerAddress) external view returns (Lock[] memory) {
return players[playerAddress].locks; // Locks are returned in calldata
}
// Fonction pour calculer le total des ethers encore verrouillés pour tous les joueurs
function getTotalLockedEtherAllPlayers() public view returns (uint256) {
uint256 totalLockedAllPlayers = 0;
// Itération sur chaque adresse de joueur dans le mapping `players`
for (uint256 i = 0; i < playerAddresses.length; i++) {
address playerAddress = playerAddresses[i];
Player storage player = players[playerAddress];
// Calcul des ethers verrouillés pour chaque joueur
for (uint256 j = 0; j < player.locks.length; j++) {
totalLockedAllPlayers += player.locks[j].amount;
}
}
return totalLockedAllPlayers;
}
// Fonction pour calculer le total des ethers déverrouillables pour un joueur
function getTotalUnLockedEther(address playerAddress) public view returns (uint256) {
Player storage player = players[playerAddress];
uint256 totalUnlocked = 0;
for (uint256 i = 0; i < player.locks.length; i++) {
if (block.timestamp > player.locks[i].lockEndTime) {
totalUnlocked += player.locks[i].amount;
}
}
return totalUnlocked;
}
// Fonction pour retirer les ethers déverrouillés
function withdrawUnlockedEther() external nonReentrant {
Player storage player = players[msg.sender];
uint256 totalUnlocked = 0;
uint256[] memory unlockedIndexes = new uint256[](player.locks.length);
uint256 unlockCount = 0;
// Parcourir tous les verrouillages pour voir lesquels sont expirés
for (uint256 i = 0; i < player.locks.length; i++) {
if (block.timestamp >= player.locks[i].lockEndTime) {
totalUnlocked += player.locks[i].amount;
unlockedIndexes[unlockCount] = i; // Stocker l'index à supprimer
unlockCount++;
}
}
require(totalUnlocked > 0, "No unlocked ether available");
// Transférer les ethers déverrouillés à l'utilisateur
(bool success, ) = payable(msg.sender).call{value: totalUnlocked}("");
require(success, "Ether transfer failed");
// Si le transfert réussit, on peut maintenant supprimer les locks déverrouillés
for (uint256 i = unlockCount; i > 0; i--) {
uint256 index = unlockedIndexes[i - 1];
player.totalLocked -= player.locks[index].amount;
// Remplacer l'élément supprimé par le dernier élément, puis réduire la longueur
player.locks[index] = player.locks[player.locks.length - 1];
player.locks.pop(); // Réduire la longueur du tableau
}
// Mettre à jour le bonus du joueur après le retrait
setPlayerBonus(msg.sender);
emit EtherUnlocked(msg.sender, totalUnlocked);
}
function getPlayer(address player) external view returns (Player memory) {
return players[player];
}
function getPlayerBonus(address player) external view returns (uint256) {
return players[player].bonus;
}
function getPlayerPoints(address player) external view returns (uint256) {
return players[player].points;
}
function getPlayerBossKills(address player) external view returns (uint256) {
return players[player].bossKills;
}
function getEntryFee() public view returns (uint256) {
return entryFee;
}
function initializePlayer(address player) private {
require(!players[player].initialized, "Player already created");
players[player].initialized = true;
players[player].bonus = 0; // Initialize bonus to zero
players[player].points = 0; // Initialize points to zero
players[player].lockDurationMax = 0;
}
function removePlayer(address player) external onlyOwner {
require(players[player].initialized, "Player already removed");
delete players[player];
}
function addPlayer(address player) private {
initializePlayer(player);
playerAddresses.push(player); // Ajouter l'adresse du joueur à la liste
}
function getPlayerLocks(address player) public view returns(Lock[] memory) {
return players[player].locks;
}
function getPlayerTotalLocked(address player) public view returns(uint256 amount) {
return players[player].totalLocked;
}
function getPlayerLockDurationMax(address player) public view returns(uint256 durationMax) {
// retourne maxDuration à zéro si aucun lock trouvé
uint256 maxDuration = 0;
// Parcourir la liste des locks et trouver le temps de lock maximum
for (uint256 i = 0; i < players[player].locks.length; i++) {
uint256 lockDuration = players[player].locks[i].lockDuration;
if (lockDuration > maxDuration) {
maxDuration = lockDuration;
}
}
return maxDuration;
}
function reinitializeLeaderboard() external onlyOwner {
// Loop through all player addresses and reset each player points in the mapping
for (uint256 i = 0; i < playerAddresses.length; i++) {
address player = playerAddresses[i];
players[player].points = 0; // Reset points to zero
}
// Émettre l'événement après la réinitialisation
emit LeaderboardReinitialized(block.timestamp);
}
function recoverSigner(string memory message, bytes memory signature) internal pure returns (address) {
bytes32 messageHash = keccak256(abi.encodePacked(message));
bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(messageHash);
return ECDSA.recover(ethSignedMessageHash, signature);
}
function claimPoints(uint256 score, uint256 timestamp, bytes calldata signature) external nonReentrant payable returns (uint256) {
address player = msg.sender;
// Vérifiez le paiement en tokens
require(blastToken.transferFrom(player, address(this), getEntryFee()), "Payment failed");
// Recréez le message original à partir du timestamp, de l'adresse et du score
string memory message = string(abi.encodePacked(timestamp.toString(), player.toHexString(), score.toString()));
// Vérifiez si le message a déjà été traité
require(!processedMessages[message], "Message already processed");
// Vérifiez la signature
require(recoverSigner(message, signature) == getSigner(), "Invalid signature");
// Marquez ce message comme traité
processedMessages[message] = true;
// Le reste du code de la fonction claimPoints
if (!players[player].initialized) {
addPlayer(player);
}
// Calcule le bonus du joueur et l'enregistre
setPlayerBonus(player);
uint256 currBonus = this.getPlayerBonus(player);
uint256 points = calculatePoints(score, currBonus);
players[player].points += points;
emit PointsEarned(player, points, currBonus);
return points;
}
function calculatePoints(uint256 score, uint256 currBonus) internal pure returns (uint256) {
if (score <= 10000) {
return 1 * currBonus;
} else if (score <= 20000) {
return 2 * currBonus;
} else if (score <= 30000) {
return 3 * currBonus;
} else if (score <= 40000) {
return 4 * currBonus;
} else if (score <= 50000) {
return 5 * currBonus;
} else if (score <= 60000) {
return 6 * currBonus;
} else if (score <= 70000) {
return 7 * currBonus;
} else if (score <= 80000) {
return 8 * currBonus;
} else if (score <= 90000) {
return 9 * currBonus;
} else {
return 10 * currBonus;
}
}
// Fonction pour retirer les tokens Blast accumulés
function withdrawBlastTokens() external onlyOwner {
uint256 balance = blastToken.balanceOf(address(this));
require(balance > 0, "No tokens to withdraw");
require(blastToken.transfer(owner(), balance), "Transfer failed");
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../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`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.20;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS
}
/**
* @dev The signature derives the `address(0)`.
*/
error ECDSAInvalidSignature();
/**
* @dev The signature has an invalid length.
*/
error ECDSAInvalidSignatureLength(uint256 length);
/**
* @dev The signature has an S value that is in the upper half order.
*/
error ECDSAInvalidSignatureS(bytes32 s);
/**
* @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
* return address(0) without also returning an error description. Errors are documented using an enum (error type)
* and a bytes32 providing additional information about the error.
*
* If no error is returned, then the address can be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*/
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
unchecked {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
// We do not check for an overflow here since the shift operation results in 0 or 1.
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError, bytes32) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS, s);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature, bytes32(0));
}
return (signer, RecoverError.NoError, bytes32(0));
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
*/
function _throwError(RecoverError error, bytes32 errorArg) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert ECDSAInvalidSignature();
} else if (error == RecoverError.InvalidSignatureLength) {
revert ECDSAInvalidSignatureLength(uint256(errorArg));
} else if (error == RecoverError.InvalidSignatureS) {
revert ECDSAInvalidSignatureS(errorArg);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)
pragma solidity ^0.8.20;
import {Strings} from "../Strings.sol";
/**
* @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
*
* The library provides methods for generating a hash of a message that conforms to the
* https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
* specifications.
*/
library MessageHashUtils {
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing a bytes32 `messageHash` with
* `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
* keccak256, although any bytes32 value can be safely used because the final digest will
* be re-hashed.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
}
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing an arbitrary `message` with
* `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
return
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x00` (data with intended validator).
*
* The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
* `validator` address. Then hashing the result.
*
* See {ECDSA-recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(hex"19_00", validator, data));
}
/**
* @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
*
* The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
* `\x19\x01` and hashing the result. It corresponds to the hash signed by the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
*
* See {ECDSA-recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, hex"19_01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
digest := keccak256(ptr, 0x42)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)
pragma solidity ^0.8.20;
import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant HEX_DIGITS = "0123456789abcdef";
uint8 private constant ADDRESS_LENGTH = 20;
/**
* @dev The `value` string doesn't fit in the specified `length`.
*/
error StringsInsufficientHexLength(uint256 value, uint256 length);
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toStringSigned(int256 value) internal pure returns (string memory) {
return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
uint256 localValue = value;
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = HEX_DIGITS[localValue & 0xf];
localValue >>= 4;
}
if (localValue != 0) {
revert StringsInsufficientHexLength(value, length);
}
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
* representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;
enum YieldMode {
AUTOMATIC,
VOID,
CLAIMABLE
}
enum GasMode {
VOID,
CLAIMABLE
}
interface IBlast{
// configure
function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
function configure(YieldMode _yield, GasMode gasMode, address governor) external;
// base configuration options
function configureClaimableYield() external;
function configureClaimableYieldOnBehalf(address contractAddress) external;
function configureAutomaticYield() external;
function configureAutomaticYieldOnBehalf(address contractAddress) external;
function configureVoidYield() external;
function configureVoidYieldOnBehalf(address contractAddress) external;
function configureClaimableGas() external;
function configureClaimableGasOnBehalf(address contractAddress) external;
function configureVoidGas() external;
function configureVoidGasOnBehalf(address contractAddress) external;
function configureGovernor(address _governor) external;
function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;
// claim yield
function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);
// claim gas
function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) external returns (uint256);
function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) external returns (uint256);
// read functions
function readClaimableYield(address contractAddress) external view returns (uint256);
function readYieldConfiguration(address contractAddress) external view returns (uint8);
function readGasParams(address contractAddress) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;
interface IBlastPoints {
function configurePointsOperator(address operator) external;
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address[]","name":"_nftContracts","type":"address[]"},{"internalType":"address","name":"_blastTokenAddress","type":"address"},{"internalType":"uint256","name":"_entryFee","type":"uint256"},{"internalType":"uint256","name":"thresholdBonus_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"StringsInsufficientHexLength","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"serial","type":"uint256"},{"indexed":false,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"damage","type":"uint256"}],"name":"BossAttacked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"serial","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"life","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prize","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"entryFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"damage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"category","type":"uint256"}],"name":"BossCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"serial","type":"uint256"},{"indexed":false,"internalType":"address","name":"player","type":"address"}],"name":"BossDestroyed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockDuration","type":"uint256"}],"name":"EtherLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EtherUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"LeaderboardReinitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"score","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bonus","type":"uint256"}],"name":"PointsEarned","type":"event"},{"inputs":[],"name":"LOCK_DURATION_14_DAYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_DURATION_28_DAYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LOCK_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"}],"name":"addNftContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serial","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"attackBoss","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"blastToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bosses","outputs":[{"internalType":"uint256","name":"serial","type":"uint256"},{"internalType":"uint256","name":"life","type":"uint256"},{"internalType":"uint256","name":"prize","type":"uint256"},{"internalType":"uint256","name":"entryFeeBoss","type":"uint256"},{"internalType":"uint256","name":"damage","type":"uint256"},{"internalType":"uint256","name":"category","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bossesKilled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"score","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serial_","type":"uint256"},{"internalType":"uint256","name":"life_","type":"uint256"},{"internalType":"uint256","name":"prize_","type":"uint256"},{"internalType":"uint256","name":"entryFee_","type":"uint256"},{"internalType":"uint256","name":"damage_","type":"uint256"},{"internalType":"uint256","name":"category_","type":"uint256"}],"name":"createBoss","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serial","type":"uint256"}],"name":"getBoss","outputs":[{"internalType":"uint256","name":"life","type":"uint256"},{"internalType":"uint256","name":"damage","type":"uint256"},{"internalType":"uint256","name":"entryFeeBoss","type":"uint256"},{"internalType":"uint256","name":"prize","type":"uint256"},{"internalType":"uint256","name":"category","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEntryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getListBossKilledSerials","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getListBossSerials","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getMapPlayerKilledBosses","outputs":[{"components":[{"internalType":"uint256","name":"serial","type":"uint256"},{"internalType":"uint256","name":"life","type":"uint256"},{"internalType":"uint256","name":"prize","type":"uint256"},{"internalType":"uint256","name":"entryFeeBoss","type":"uint256"},{"internalType":"uint256","name":"damage","type":"uint256"},{"internalType":"uint256","name":"category","type":"uint256"}],"internalType":"struct PacBoom.PacBoss[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNbNftContract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getPlayer","outputs":[{"components":[{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"points","type":"uint256"},{"internalType":"bool","name":"initialized","type":"bool"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockEndTime","type":"uint256"},{"internalType":"uint256","name":"lockDuration","type":"uint256"}],"internalType":"struct PacBoom.Lock[]","name":"locks","type":"tuple[]"},{"internalType":"uint256","name":"totalLocked","type":"uint256"},{"internalType":"uint256","name":"lockDurationMax","type":"uint256"},{"internalType":"uint256","name":"bossKills","type":"uint256"}],"internalType":"struct PacBoom.Player","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getPlayerBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getPlayerBossKills","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getPlayerLockDurationMax","outputs":[{"internalType":"uint256","name":"durationMax","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getPlayerLocks","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockEndTime","type":"uint256"},{"internalType":"uint256","name":"lockDuration","type":"uint256"}],"internalType":"struct PacBoom.Lock[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getPlayerPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getPlayerTotalLocked","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getThresholdBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"playerAddress","type":"address"}],"name":"getTotalLockedEther","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalLockedEtherAllPlayers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"playerAddress","type":"address"}],"name":"getTotalLocks","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockEndTime","type":"uint256"},{"internalType":"uint256","name":"lockDuration","type":"uint256"}],"internalType":"struct PacBoom.Lock[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"playerAddress","type":"address"}],"name":"getTotalUnLockedEther","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"serial","type":"uint256"}],"name":"getWhoKilledBoss","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"hasNFTFromAnyCollection","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"serial","type":"uint256"}],"name":"isBossKilled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"listBossKilledSerials","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"listBossSerials","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockChoice","type":"uint256"}],"name":"lockEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"numberOfNFTsFromACollection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"numberOfNFTsFromAllCollections","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"playerKilledBosses","outputs":[{"internalType":"uint256","name":"serial","type":"uint256"},{"internalType":"uint256","name":"life","type":"uint256"},{"internalType":"uint256","name":"prize","type":"uint256"},{"internalType":"uint256","name":"entryFeeBoss","type":"uint256"},{"internalType":"uint256","name":"damage","type":"uint256"},{"internalType":"uint256","name":"category","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reinitializeLeaderboard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeNftContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"removePlayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"entryFee_","type":"uint256"}],"name":"setEntryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"thresholdBonus_","type":"uint256"}],"name":"setThresholdBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalBosses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBossesKilled","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whoKilledBosses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawBlastTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawUnlockedEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405273b1a5700fa2358173fe465e6ea4ff52e36e88e2ad601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550732536fe9ab3f511540f2f9e2ec2a805005c3dd800601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550734300000000000000000000000000000000000002601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200011057600080fd5b506040516200659e3803806200659e833981810160405281019062000136919062000800565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001ac5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001a39190620008a2565b60405180910390fd5b620001bd816200046560201b60201c565b506001808190555060008451116200020c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002039062000920565b60405180910390fd5b83601390805190602001906200022492919062000529565b5033600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e8190555080601481905550601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166336b91f2b336040518263ffffffff1660e01b8152600401620003129190620008a2565b600060405180830381600087803b1580156200032d57600080fd5b505af115801562000342573d6000803e3d6000fd5b50505050601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637114177a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015620003b157600080fd5b505af1158015620003c6573d6000803e3d6000fd5b50505050601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eb864698336040518263ffffffff1660e01b8152600401620004279190620008a2565b600060405180830381600087803b1580156200044257600080fd5b505af115801562000457573d6000803e3d6000fd5b505050505050505062000942565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054828255906000526020600020908101928215620005a5579160200282015b82811115620005a45782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906200054a565b5b509050620005b49190620005b8565b5090565b5b80821115620005d3576000816000905550600101620005b9565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200063b82620005f0565b810181811067ffffffffffffffff821117156200065d576200065c62000601565b5b80604052505050565b600062000672620005d7565b905062000680828262000630565b919050565b600067ffffffffffffffff821115620006a357620006a262000601565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006e682620006b9565b9050919050565b620006f881620006d9565b81146200070457600080fd5b50565b6000815190506200071881620006ed565b92915050565b6000620007356200072f8462000685565b62000666565b905080838252602082019050602084028301858111156200075b576200075a620006b4565b5b835b8181101562000788578062000773888262000707565b8452602084019350506020810190506200075d565b5050509392505050565b600082601f830112620007aa57620007a9620005eb565b5b8151620007bc8482602086016200071e565b91505092915050565b6000819050919050565b620007da81620007c5565b8114620007e657600080fd5b50565b600081519050620007fa81620007cf565b92915050565b600080600080608085870312156200081d576200081c620005e1565b5b600085015167ffffffffffffffff8111156200083e576200083d620005e6565b5b6200084c8782880162000792565b94505060206200085f8782880162000707565b93505060406200087287828801620007e9565b92505060606200088587828801620007e9565b91505092959194509250565b6200089c81620006d9565b82525050565b6000602082019050620008b9600083018462000891565b92915050565b600082825260208201905092915050565b7f4174206c65617374206f6e65204e465420636f6e747261637400000000000000600082015250565b600062000908601983620008bf565b91506200091582620008d0565b602082019050919050565b600060208201905081810360008301526200093b81620008f9565b9050919050565b615c4c80620009526000396000f3fe6080604052600436106102ff5760003560e01c8063715018a611610190578063cf1cde0a116100dc578063e850500b11610095578063ebb4ece41161006f578063ebb4ece414610c58578063ecb7471d14610c83578063f2fde38b14610cae578063f798581014610cd7576102ff565b8063e850500b14610bc7578063eac328b214610c04578063eb770d0c14610c2f576102ff565b8063cf1cde0a14610aa3578063d1ff9d6a14610ae0578063d70eb46b14610b1d578063d9daade014610b5a578063dd764abf14610b71578063e586a4f014610b9c576102ff565b80638f1064d811610149578063b6ba380011610123578063b6ba3800146109d7578063bc34ac1a14610a00578063c4b7750014610a3d578063c808807714610a7a576102ff565b80638f1064d8146109325780639243d9c61461096f578063a5c125211461099a576102ff565b8063715018a6146108485780637ac3c02f1461085f5780637d1fb9081461088a5780637db31c68146108a15780638242228b146108ca5780638da5cb5b14610907576102ff565b806345a534891161024f57806359b5fac4116102085780635c12cd4b116101e25780635c12cd4b1461078e5780635d117d9b146107cb5780636383cf20146107f65780636c19e7831461081f576102ff565b806359b5fac4146106eb5780635bae5e54146107285780635bb12a1a14610765576102ff565b806345a534891461058f57806347251525146105cc5780634d3c4957146106095780634f0f348a146106465780634f93c3ad1461068357806353f3ac91146106ae576102ff565b8063204597e0116102bc578063373b91f111610296578063373b91f1146104ef578063386a2a79146105065780633da1d266146105485780633e3b299314610564576102ff565b8063204597e01461045257806325fed0e014610494578063265d37f2146104bf576102ff565b80630d89288a146103045780630e63c7ad1461032f578063174ffa521461037057806318b6be4f146103ad5780631b078ab3146103ea5780631e7d1cab14610415575b600080fd5b34801561031057600080fd5b50610319610d07565b6040516103269190614581565b60405180910390f35b34801561033b57600080fd5b50610356600480360381019061035191906145d2565b610d0d565b6040516103679594939291906145ff565b60405180910390f35b34801561037c57600080fd5b50610397600480360381019061039291906145d2565b610d58565b6040516103a49190614693565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf91906145d2565b610d8b565b6040516103e191906146c9565b60405180910390f35b3480156103f657600080fd5b506103ff610dab565b60405161040c9190614743565b60405180910390f35b34801561042157600080fd5b5061043c600480360381019061043791906145d2565b610dd1565b6040516104499190614693565b60405180910390f35b34801561045e57600080fd5b50610479600480360381019061047491906145d2565b610e0e565b60405161048b9695949392919061475e565b60405180910390f35b3480156104a057600080fd5b506104a9610e4a565b6040516104b69190614581565b60405180910390f35b6104d960048036038101906104d49190614824565b610e51565b6040516104e69190614581565b60405180910390f35b3480156104fb57600080fd5b50610504611654565b005b34801561051257600080fd5b5061052d600480360381019061052891906148c4565b611828565b60405161053f9695949392919061475e565b60405180910390f35b610562600480360381019061055d91906145d2565b611881565b005b34801561057057600080fd5b50610579611ad2565b6040516105869190614581565b60405180910390f35b34801561059b57600080fd5b506105b660048036038101906105b19190614904565b611ad8565b6040516105c39190614581565b60405180910390f35b3480156105d857600080fd5b506105f360048036038101906105ee9190614904565b611b24565b6040516106009190614a6a565b60405180910390f35b34801561061557600080fd5b50610630600480360381019061062b9190614904565b611bfe565b60405161063d9190614581565b60405180910390f35b34801561065257600080fd5b5061066d60048036038101906106689190614904565b611c4a565b60405161067a9190614581565b60405180910390f35b34801561068f57600080fd5b50610698611d24565b6040516106a59190614b3b565b60405180910390f35b3480156106ba57600080fd5b506106d560048036038101906106d091906145d2565b611d7c565b6040516106e29190614581565b60405180910390f35b3480156106f757600080fd5b50610712600480360381019061070d9190614904565b611da0565b60405161071f9190614c4e565b60405180910390f35b34801561073457600080fd5b5061074f600480360381019061074a9190614904565b611e5f565b60405161075c9190614c4e565b60405180910390f35b34801561077157600080fd5b5061078c60048036038101906107879190614904565b611f1e565b005b34801561079a57600080fd5b506107b560048036038101906107b09190614904565b612046565b6040516107c29190614d8a565b60405180910390f35b3480156107d757600080fd5b506107e0612169565b6040516107ed9190614581565b60405180910390f35b34801561080257600080fd5b5061081d60048036038101906108189190614dac565b61227e565b005b34801561082b57600080fd5b5061084660048036038101906108419190614904565b6123e8565b005b34801561085457600080fd5b5061085d612434565b005b34801561086b57600080fd5b50610874612448565b6040516108819190614693565b60405180910390f35b34801561089657600080fd5b5061089f612472565b005b3480156108ad57600080fd5b506108c860048036038101906108c391906145d2565b612872565b005b3480156108d657600080fd5b506108f160048036038101906108ec91906148c4565b6129b7565b6040516108fe9190614581565b60405180910390f35b34801561091357600080fd5b5061091c612ac6565b6040516109299190614693565b60405180910390f35b34801561093e57600080fd5b5061095960048036038101906109549190614904565b612aef565b6040516109669190614581565b60405180910390f35b34801561097b57600080fd5b50610984612bc9565b6040516109919190614b3b565b60405180910390f35b3480156109a657600080fd5b506109c160048036038101906109bc91906145d2565b612c21565b6040516109ce91906146c9565b60405180910390f35b3480156109e357600080fd5b506109fe60048036038101906109f99190614904565b612c4b565b005b348015610a0c57600080fd5b50610a276004803603810190610a229190614904565b612cb9565b604051610a349190614581565b60405180910390f35b348015610a4957600080fd5b50610a646004803603810190610a5f9190614904565b612d05565b604051610a719190614581565b60405180910390f35b348015610a8657600080fd5b50610aa16004803603810190610a9c91906145d2565b612d51565b005b348015610aaf57600080fd5b50610aca6004803603810190610ac59190614904565b612d63565b604051610ad79190614581565b60405180910390f35b348015610aec57600080fd5b50610b076004803603810190610b0291906145d2565b612e62565b604051610b149190614581565b60405180910390f35b348015610b2957600080fd5b50610b446004803603810190610b3f9190614904565b612e86565b604051610b5191906146c9565b60405180910390f35b348015610b6657600080fd5b50610b6f612f8a565b005b348015610b7d57600080fd5b50610b8661307b565b604051610b939190614581565b60405180910390f35b348015610ba857600080fd5b50610bb1613086565b604051610bbe9190614581565b60405180910390f35b348015610bd357600080fd5b50610bee6004803603810190610be99190614904565b613090565b604051610bfb9190614581565b60405180910390f35b348015610c1057600080fd5b50610c1961317b565b604051610c269190614581565b60405180910390f35b348015610c3b57600080fd5b50610c566004803603810190610c5191906145d2565b613185565b005b348015610c6457600080fd5b50610c6d613197565b604051610c7a9190614581565b60405180910390f35b348015610c8f57600080fd5b50610c9861319e565b604051610ca59190614581565b60405180910390f35b348015610cba57600080fd5b50610cd56004803603810190610cd09190614904565b6131ab565b005b610cf16004803603810190610cec9190614824565b613231565b604051610cfe9190614581565b60405180910390f35b60095481565b60008060008060008060026000888152602001908152602001600020905080600101548160040154826003015483600201548460050154955095509550955095505091939590929450565b60076020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915054906101000a900460ff1681565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60026020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b6224ea0081565b6000610e5b613696565b6000339050600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff16610eef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee690614e96565b60405180910390fd5b60006002600088815260200190815260200160002090506000816001015411610f4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4490614f02565b60405180910390fd5b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015481600401541115610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd90614f94565b60405180910390fd5b8060040154600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154101561105f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105690615000565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd833084600301546040518463ffffffff1660e01b81526004016110c293929190615020565b6020604051808303816000875af11580156110e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111059190615083565b611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b906150fc565b60405180910390fd5b600061114f876136dc565b61116e8473ffffffffffffffffffffffffffffffffffffffff166137aa565b60405160200161117f92919061518d565b6040516020818303038152906040529050600d816040516111a091906151b1565b908152602001604051809103902060009054906101000a900460ff16156111fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f390615214565b60405180910390fd5b611204612448565b73ffffffffffffffffffffffffffffffffffffffff166112688288888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506137d7565b73ffffffffffffffffffffffffffffffffffffffff16146112be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b590615280565b60405180910390fd5b6001600d826040516112d091906151b1565b908152602001604051809103902060006101000a81548160ff0219169083151502179055508160040154826001015411156113c9578160040154600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461135b91906152cf565b92505081905550816004015482600101600082825461137a91906152cf565b925050819055507f255a2fd28655630eaaa2983a98b21741d9b533feb327a4e1977e8e3256453fe482600001548484600401546040516113bc93929190615303565b60405180910390a161163a565b8160040154600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461141f91906152cf565b9250508190555060008260010181905550600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201548160000155600182015481600101556002820154816002015560038201548160030155600482015481600401556005820154816005015550506001600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600601600082825461152a919061533a565b9250508190555082600760008460000154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600360008460000154815260200190815260200160002060006101000a81548160ff021916908315150217905550600882600001549080600181540180825580915050600190039060005260206000200160009091909190915055600960008154809291906115f79061536e565b91905055507f367913536089b2c2abd73f538541ae00e845b8761cd68b1d17e792492626ae288260000154846040516116319291906153b6565b60405180910390a15b8160000154935050505061164c613824565b949350505050565b61165c61382d565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116b99190614693565b602060405180830381865afa1580156116d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116fa91906153f4565b90506000811161173f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117369061546d565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb611785612ac6565b836040518363ffffffff1660e01b81526004016117a392919061548d565b6020604051808303816000875af11580156117c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e69190615083565b611825576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181c90615502565b60405180910390fd5b50565b6006602052816000526040600020818154811061184457600080fd5b9060005260206000209060060201600091509150508060000154908060010154908060020154908060030154908060040154908060050154905086565b662386f26fc100003410156118cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c29061556e565b60405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff1661192957611928336138b4565b5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600e8303611981576212750090506119d0565b601c8303611994576224ea0090506119cf565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c6906155da565b60405180910390fd5b5b81600301604051806060016040528034815260200183426119f1919061533a565b8152602001838152509080600181540180825580915050600190039060005260206000209060030201600090919091909150600082015181600001556020820151816001015560408201518160020155505034826004016000828254611a57919061533a565b925050819055508160050154811115611a74578082600501819055505b611a7d33613923565b3373ffffffffffffffffffffffffffffffffffffffff167f010dba25976dc5d04d71eeb429940be4c724e9cd33c018b77ce034e4d9200b1a3483604051611ac59291906155fa565b60405180910390a2505050565b60055481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b6060600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611bf357838290600052602060002090600602016040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505081526020019060010190611b85565b505050509050919050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600601549050919050565b600080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b8260030180549050811015611d1957826003018181548110611cb757611cb6615623565b5b906000526020600020906003020160010154421015611d0657826003018181548110611ce657611ce5615623565b5b90600052602060002090600302016000015482611d03919061533a565b91505b8080611d119061536e565b915050611c92565b508092505050919050565b60606008805480602002602001604051908101604052809291908181526020018280548015611d7257602002820191906000526020600020905b815481526020019060010190808311611d5e575b5050505050905090565b60048181548110611d8c57600080fd5b906000526020600020016000915090505481565b6060600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301805480602002602001604051908101604052809291908181526020016000905b82821015611e545783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611e04565b505050509050919050565b6060600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301805480602002602001604051908101604052809291908181526020016000905b82821015611f135783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611ec3565b505050509050919050565b611f2661382d565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff16611fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fac9061569e565b60405180910390fd5b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090556002820160006101000a81549060ff021916905560038201600061202991906144d6565b600482016000905560058201600090556006820160009055505050565b61204e6144fa565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060e001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff1615151515815260200160038201805480602002602001604051908101604052809291908181526020016000905b8282101561213c57838290600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050815260200190600101906120ec565b50505050815260200160048201548152602001600582015481526020016006820154815250509050919050565b6000806000905060005b600b80549050811015612276576000600b828154811061219657612195615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060005b81600301805490508110156122605781600301818154811061222e5761222d615623565b5b9060005260206000209060030201600001548561224b919061533a565b945080806122589061536e565b915050612209565b505050808061226e9061536e565b915050612173565b508091505090565b61228661382d565b60006002600088815260200190815260200160002060000154146122df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d69061570a565b60405180910390fd5b6040518060c001604052808781526020018681526020018581526020018481526020018381526020018281525060026000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015590505060048690806001815401808255809150506001900390600052602060002001600090919091909150556005600081548092919061239a9061536e565b91905055507f0f2172a9229c6078d30d3866763c1148a66f000478f17aede04601f651ff45c48686868686866040516123d89695949392919061475e565b60405180910390a1505050505050565b6123f061382d565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61243c61382d565b6124466000613a75565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61247a613696565b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080826003018054905067ffffffffffffffff8111156124e1576124e061572a565b5b60405190808252806020026020018201604052801561250f5781602001602082028036833780820191505090505b5090506000805b84600301805490508110156125ca5784600301818154811061253b5761253a615623565b5b90600052602060002090600302016001015442106125b75784600301818154811061256957612568615623565b5b90600052602060002090600302016000015484612586919061533a565b93508083838151811061259c5761259b615623565b5b60200260200101818152505081806125b39061536e565b9250505b80806125c29061536e565b915050612516565b506000831161260e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612605906157a5565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1684604051612634906157f6565b60006040518083038185875af1925050503d8060008114612671576040519150601f19603f3d011682016040523d82523d6000602084013e612676565b606091505b50509050806126ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b190615857565b60405180910390fd5b60008290505b600081111561280b576000846001836126d991906152cf565b815181106126ea576126e9615623565b5b6020026020010151905086600301818154811061270a57612709615623565b5b90600052602060002090600302016000015487600401600082825461272f91906152cf565b92505081905550866003016001886003018054905061274e91906152cf565b8154811061275f5761275e615623565b5b906000526020600020906003020187600301828154811061278357612782615623565b5b9060005260206000209060030201600082015481600001556001820154816001015560028201548160020155905050866003018054806127c6576127c5615877565b5b60019003818190600052602060002090600302016000808201600090556001820160009055600282016000905550509055508080612803906158a6565b9150506126c0565b5061281533613923565b3373ffffffffffffffffffffffffffffffffffffffff167fa581be4b2f2e3d0898d6e15a0105a5574d7e447e2bea3c93c1cfb5c707be6bd48560405161285b9190614581565b60405180910390a25050505050612870613824565b565b61287a61382d565b60138054905081106128c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b89061591b565b60405180910390fd5b601360016013805490506128d591906152cf565b815481106128e6576128e5615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166013828154811061292557612924615623565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601380548061297f5761297e615877565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550565b60006013805490508210612a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f790615987565b60405180910390fd5b600060138381548110612a1657612a15615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401612a7c9190614693565b602060405180830381865afa158015612a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612abd91906153f4565b91505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b8260030180549050811015612bbe57826003018181548110612b5c57612b5b615623565b5b906000526020600020906003020160010154421115612bab57826003018181548110612b8b57612b8a615623565b5b90600052602060002090600302016000015482612ba8919061533a565b91505b8080612bb69061536e565b915050612b37565b508092505050919050565b60606004805480602002602001604051908101604052809291908181526020018280548015612c1757602002820191906000526020600020905b815481526020019060010190808311612c03575b5050505050905090565b60006003600083815260200190815260200160002060009054906101000a900460ff169050919050565b612c5361382d565b6013819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401549050919050565b612d5961382d565b8060148190555050565b6000806000905060005b601380549050811015612e5857600060138281548110612d9057612d8f615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401612df69190614693565b602060405180830381865afa158015612e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3791906153f4565b83612e42919061533a565b9250508080612e509061536e565b915050612d6d565b5080915050919050565b60088181548110612e7257600080fd5b906000526020600020016000915090505481565b600080600090505b601380549050811015612f7f57600060138281548110612eb157612eb0615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401612f199190614693565b602060405180830381865afa158015612f36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5a91906153f4565b1115612f6b57600192505050612f85565b508080612f779061536e565b915050612e8e565b50600090505b919050565b612f9261382d565b60005b600b80549050811015613041576000600b8281548110612fb857612fb7615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505080806130399061536e565b915050612f95565b507f96cf5939b3394dd6546df8f07f4771efcc53697911e706e23ff97c38a138644d426040516130719190614581565b60405180910390a1565b662386f26fc1000081565b6000600e54905090565b6000806000905060005b600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030180549050811015613171576000600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301828154811061313d5761313c615623565b5b90600052602060002090600302016002015490508281111561315d578092505b5080806131699061536e565b91505061309a565b5080915050919050565b6000601454905090565b61318d61382d565b80600e8190555050565b6212750081565b6000601380549050905090565b6131b361382d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036132255760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161321c9190614693565b60405180910390fd5b61322e81613a75565b50565b600061323b613696565b6000339050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8230613288613086565b6040518463ffffffff1660e01b81526004016132a693929190615020565b6020604051808303816000875af11580156132c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132e99190615083565b613328576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331f906159f3565b60405180910390fd5b6000613333866136dc565b6133528373ffffffffffffffffffffffffffffffffffffffff166137aa565b61335b896136dc565b60405160200161336d93929190615a13565b6040516020818303038152906040529050600d8160405161338e91906151b1565b908152602001604051809103902060009054906101000a900460ff16156133ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133e190615214565b60405180910390fd5b6133f2612448565b73ffffffffffffffffffffffffffffffffffffffff166134568287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506137d7565b73ffffffffffffffffffffffffffffffffffffffff16146134ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a390615280565b60405180910390fd5b6001600d826040516134be91906151b1565b908152602001604051809103902060006101000a81548160ff021916908315150217905550600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff1661354157613540826138b4565b5b61354a82613923565b60003073ffffffffffffffffffffffffffffffffffffffff166345a53489846040518263ffffffff1660e01b81526004016135859190614693565b602060405180830381865afa1580156135a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135c691906153f4565b905060006135d48983613b39565b905080600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254613628919061533a565b925050819055508373ffffffffffffffffffffffffffffffffffffffff167f4b97a5e5e9b332836eea24e70b760c1ffce3041c0eb15309837d180f8bfff26a82846040516136779291906155fa565b60405180910390a28094505050505061368e613824565b949350505050565b6002600154036136d2576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b6060600060016136eb84613c59565b01905060008167ffffffffffffffff81111561370a5761370961572a565b5b6040519080825280601f01601f19166020018201604052801561373c5781602001600182028036833780820191505090505b509050600082602001820190505b60011561379f578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161379357613792615a44565b5b0494506000850361374a575b819350505050919050565b60606137d08273ffffffffffffffffffffffffffffffffffffffff16601460ff16613dac565b9050919050565b600080836040516020016137eb91906151b1565b604051602081830303815290604052805190602001209050600061380e82613ff2565b905061381a8185614028565b9250505092915050565b60018081905550565b613835614054565b73ffffffffffffffffffffffffffffffffffffffff16613853612ac6565b73ffffffffffffffffffffffffffffffffffffffff16146138b257613876614054565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016138a99190614693565b60405180910390fd5b565b6138bd8161405c565b600b819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600401549050600082600501549050600067016345785d8a0000831161398f5782613999565b67016345785d8a00005b9050600066b1a2bc2ec50000826139b09190615a73565b905060006212750084101580156139ce57506702c68af0bb14000085115b156139d857600190505b6224ea00841480156139f25750670de0b6b3a76400008510155b156139fc57600290505b6000613a0788612d63565b9050600080613a1461317b565b905060008303613a275760009150613a3e565b80831015613a385760019150613a3d565b600291505b5b8184866001613a4d919061533a565b613a57919061533a565b613a61919061533a565b896000018190555050505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006127108311613b5857816001613b519190615aa4565b9050613c53565b614e208311613b7557816002613b6e9190615aa4565b9050613c53565b6175308311613b9257816003613b8b9190615aa4565b9050613c53565b619c408311613baf57816004613ba89190615aa4565b9050613c53565b61c3508311613bcc57816005613bc59190615aa4565b9050613c53565b61ea608311613be957816006613be29190615aa4565b9050613c53565b620111708311613c0757816007613c009190615aa4565b9050613c53565b620138808311613c2557816008613c1e9190615aa4565b9050613c53565b62015f908311613c4357816009613c3c9190615aa4565b9050613c53565b81600a613c509190615aa4565b90505b92915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613cb7577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613cad57613cac615a44565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613cf4576d04ee2d6d415b85acef81000000008381613cea57613ce9615a44565b5b0492506020810190505b662386f26fc100008310613d2357662386f26fc100008381613d1957613d18615a44565b5b0492506010810190505b6305f5e1008310613d4c576305f5e1008381613d4257613d41615a44565b5b0492506008810190505b6127108310613d71576127108381613d6757613d66615a44565b5b0492506004810190505b60648310613d945760648381613d8a57613d89615a44565b5b0492506002810190505b600a8310613da3576001810190505b80915050919050565b6060600083905060006002846002613dc49190615aa4565b613dce919061533a565b67ffffffffffffffff811115613de757613de661572a565b5b6040519080825280601f01601f191660200182016040528015613e195781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613e5157613e50615623565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613eb557613eb4615623565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001856002613ef59190615aa4565b613eff919061533a565b90505b6001811115613f9f577f3031323334353637383961626364656600000000000000000000000000000000600f841660108110613f4157613f40615623565b5b1a60f81b828281518110613f5857613f57615623565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600483901c925080613f98906158a6565b9050613f02565b5060008214613fe75784846040517fe22e27eb000000000000000000000000000000000000000000000000000000008152600401613fde9291906155fa565b60405180910390fd5b809250505092915050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000806140388686614222565b925092509250614048828261427e565b82935050505092915050565b600033905090565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff16156140ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016140e390615b32565b60405180910390fd5b6001600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160006101000a81548160ff0219169083151502179055506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005018190555050565b600080600060418451036142675760008060006020870151925060408701519150606087015160001a9050614259888285856143e2565b955095509550505050614277565b60006002855160001b9250925092505b9250925092565b6000600381111561429257614291615b52565b5b8260038111156142a5576142a4615b52565b5b03156143de57600160038111156142bf576142be615b52565b5b8260038111156142d2576142d1615b52565b5b03614309576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600381111561431d5761431c615b52565b5b8260038111156143305761432f615b52565b5b03614375578060001c6040517ffce698f700000000000000000000000000000000000000000000000000000000815260040161436c9190614581565b60405180910390fd5b60038081111561438857614387615b52565b5b82600381111561439b5761439a615b52565b5b036143dd57806040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004016143d49190615b9a565b60405180910390fd5b5b5050565b60008060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08460001c11156144225760006003859250925092506144cc565b6000600188888888604051600081526020016040526040516144479493929190615bd1565b6020604051602081039080840390855afa158015614469573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036144bd57600060016000801b935093509350506144cc565b8060008060001b935093509350505b9450945094915050565b50805460008255600302906000526020600020908101906144f79190614539565b50565b6040518060e001604052806000815260200160008152602001600015158152602001606081526020016000815260200160008152602001600081525090565b5b8082111561456457600080820160009055600182016000905560028201600090555060030161453a565b5090565b6000819050919050565b61457b81614568565b82525050565b60006020820190506145966000830184614572565b92915050565b600080fd5b600080fd5b6145af81614568565b81146145ba57600080fd5b50565b6000813590506145cc816145a6565b92915050565b6000602082840312156145e8576145e761459c565b5b60006145f6848285016145bd565b91505092915050565b600060a0820190506146146000830188614572565b6146216020830187614572565b61462e6040830186614572565b61463b6060830185614572565b6146486080830184614572565b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061467d82614652565b9050919050565b61468d81614672565b82525050565b60006020820190506146a86000830184614684565b92915050565b60008115159050919050565b6146c3816146ae565b82525050565b60006020820190506146de60008301846146ba565b92915050565b6000819050919050565b60006147096147046146ff84614652565b6146e4565b614652565b9050919050565b600061471b826146ee565b9050919050565b600061472d82614710565b9050919050565b61473d81614722565b82525050565b60006020820190506147586000830184614734565b92915050565b600060c0820190506147736000830189614572565b6147806020830188614572565b61478d6040830187614572565b61479a6060830186614572565b6147a76080830185614572565b6147b460a0830184614572565b979650505050505050565b600080fd5b600080fd5b600080fd5b60008083601f8401126147e4576147e36147bf565b5b8235905067ffffffffffffffff811115614801576148006147c4565b5b60208301915083600182028301111561481d5761481c6147c9565b5b9250929050565b6000806000806060858703121561483e5761483d61459c565b5b600061484c878288016145bd565b945050602061485d878288016145bd565b935050604085013567ffffffffffffffff81111561487e5761487d6145a1565b5b61488a878288016147ce565b925092505092959194509250565b6148a181614672565b81146148ac57600080fd5b50565b6000813590506148be81614898565b92915050565b600080604083850312156148db576148da61459c565b5b60006148e9858286016148af565b92505060206148fa858286016145bd565b9150509250929050565b60006020828403121561491a5761491961459c565b5b6000614928848285016148af565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61496681614568565b82525050565b60c082016000820151614982600085018261495d565b506020820151614995602085018261495d565b5060408201516149a8604085018261495d565b5060608201516149bb606085018261495d565b5060808201516149ce608085018261495d565b5060a08201516149e160a085018261495d565b50505050565b60006149f3838361496c565b60c08301905092915050565b6000602082019050919050565b6000614a1782614931565b614a21818561493c565b9350614a2c8361494d565b8060005b83811015614a5d578151614a4488826149e7565b9750614a4f836149ff565b925050600181019050614a30565b5085935050505092915050565b60006020820190508181036000830152614a848184614a0c565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000614ac4838361495d565b60208301905092915050565b6000602082019050919050565b6000614ae882614a8c565b614af28185614a97565b9350614afd83614aa8565b8060005b83811015614b2e578151614b158882614ab8565b9750614b2083614ad0565b925050600181019050614b01565b5085935050505092915050565b60006020820190508181036000830152614b558184614add565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b606082016000820151614b9f600085018261495d565b506020820151614bb2602085018261495d565b506040820151614bc5604085018261495d565b50505050565b6000614bd78383614b89565b60608301905092915050565b6000602082019050919050565b6000614bfb82614b5d565b614c058185614b68565b9350614c1083614b79565b8060005b83811015614c41578151614c288882614bcb565b9750614c3383614be3565b925050600181019050614c14565b5085935050505092915050565b60006020820190508181036000830152614c688184614bf0565b905092915050565b614c79816146ae565b82525050565b600082825260208201905092915050565b6000614c9b82614b5d565b614ca58185614c7f565b9350614cb083614b79565b8060005b83811015614ce1578151614cc88882614bcb565b9750614cd383614be3565b925050600181019050614cb4565b5085935050505092915050565b600060e083016000830151614d06600086018261495d565b506020830151614d19602086018261495d565b506040830151614d2c6040860182614c70565b5060608301518482036060860152614d448282614c90565b9150506080830151614d59608086018261495d565b5060a0830151614d6c60a086018261495d565b5060c0830151614d7f60c086018261495d565b508091505092915050565b60006020820190508181036000830152614da48184614cee565b905092915050565b60008060008060008060c08789031215614dc957614dc861459c565b5b6000614dd789828a016145bd565b9650506020614de889828a016145bd565b9550506040614df989828a016145bd565b9450506060614e0a89828a016145bd565b9350506080614e1b89828a016145bd565b92505060a0614e2c89828a016145bd565b9150509295509295509295565b600082825260208201905092915050565b7f506c6179657220646f6573206e6f742065786973740000000000000000000000600082015250565b6000614e80601583614e39565b9150614e8b82614e4a565b602082019050919050565b60006020820190508181036000830152614eaf81614e73565b9050919050565b7f54686520626f737320697320616c726561647920646561642e00000000000000600082015250565b6000614eec601983614e39565b9150614ef782614eb6565b602082019050919050565b60006020820190508181036000830152614f1b81614edf565b9050919050565b7f54686520706c617965722063616e27742061747461636b2074686520626f737360008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f7e602183614e39565b9150614f8982614f22565b604082019050919050565b60006020820190508181036000830152614fad81614f71565b9050919050565b7f504220706f696e747320746f6f206c6f772e0000000000000000000000000000600082015250565b6000614fea601283614e39565b9150614ff582614fb4565b602082019050919050565b6000602082019050818103600083015261501981614fdd565b9050919050565b60006060820190506150356000830186614684565b6150426020830185614684565b61504f6040830184614572565b949350505050565b615060816146ae565b811461506b57600080fd5b50565b60008151905061507d81615057565b92915050565b6000602082840312156150995761509861459c565b5b60006150a78482850161506e565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006150e6601583614e39565b91506150f1826150b0565b602082019050919050565b60006020820190508181036000830152615115816150d9565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015615150578082015181840152602081019050615135565b60008484015250505050565b60006151678261511c565b6151718185615127565b9350615181818560208601615132565b80840191505092915050565b6000615199828561515c565b91506151a5828461515c565b91508190509392505050565b60006151bd828461515c565b915081905092915050565b7f4d65737361676520616c72656164792070726f63657373656400000000000000600082015250565b60006151fe601983614e39565b9150615209826151c8565b602082019050919050565b6000602082019050818103600083015261522d816151f1565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b600061526a601183614e39565b915061527582615234565b602082019050919050565b600060208201905081810360008301526152998161525d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006152da82614568565b91506152e583614568565b92508282039050818111156152fd576152fc6152a0565b5b92915050565b60006060820190506153186000830186614572565b6153256020830185614684565b6153326040830184614572565b949350505050565b600061534582614568565b915061535083614568565b9250828201905080821115615368576153676152a0565b5b92915050565b600061537982614568565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036153ab576153aa6152a0565b5b600182019050919050565b60006040820190506153cb6000830185614572565b6153d86020830184614684565b9392505050565b6000815190506153ee816145a6565b92915050565b60006020828403121561540a5761540961459c565b5b6000615418848285016153df565b91505092915050565b7f4e6f20746f6b656e7320746f2077697468647261770000000000000000000000600082015250565b6000615457601583614e39565b915061546282615421565b602082019050919050565b600060208201905081810360008301526154868161544a565b9050919050565b60006040820190506154a26000830185614684565b6154af6020830184614572565b9392505050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b60006154ec600f83614e39565b91506154f7826154b6565b602082019050919050565b6000602082019050818103600083015261551b816154df565b9050919050565b7f4554482076616c7565206d757374206265203e3d20302e303100000000000000600082015250565b6000615558601983614e39565b915061556382615522565b602082019050919050565b600060208201905081810360008301526155878161554b565b9050919050565b7f4475726174696f6e206c6f636b206e6f742076616c6964000000000000000000600082015250565b60006155c4601783614e39565b91506155cf8261558e565b602082019050919050565b600060208201905081810360008301526155f3816155b7565b9050919050565b600060408201905061560f6000830185614572565b61561c6020830184614572565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f506c6179657220616c72656164792072656d6f76656400000000000000000000600082015250565b6000615688601683614e39565b915061569382615652565b602082019050919050565b600060208201905081810360008301526156b78161567b565b9050919050565b7f426f737320616c72656164792063726561746564000000000000000000000000600082015250565b60006156f4601483614e39565b91506156ff826156be565b602082019050919050565b60006020820190508181036000830152615723816156e7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e6f20756e6c6f636b656420657468657220617661696c61626c650000000000600082015250565b600061578f601b83614e39565b915061579a82615759565b602082019050919050565b600060208201905081810360008301526157be81615782565b9050919050565b600081905092915050565b50565b60006157e06000836157c5565b91506157eb826157d0565b600082019050919050565b6000615801826157d3565b9150819050919050565b7f4574686572207472616e73666572206661696c65640000000000000000000000600082015250565b6000615841601583614e39565b915061584c8261580b565b602082019050919050565b6000602082019050818103600083015261587081615834565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006158b182614568565b9150600082036158c4576158c36152a0565b5b600182039050919050565b7f496e646578206f7574206f6620626f756e647300000000000000000000000000600082015250565b6000615905601383614e39565b9150615910826158cf565b602082019050919050565b60006020820190508181036000830152615934816158f8565b9050919050565b7f496e646578206f7574206f6620626f756e64732e000000000000000000000000600082015250565b6000615971601483614e39565b915061597c8261593b565b602082019050919050565b600060208201905081810360008301526159a081615964565b9050919050565b7f5061796d656e74206661696c6564000000000000000000000000000000000000600082015250565b60006159dd600e83614e39565b91506159e8826159a7565b602082019050919050565b60006020820190508181036000830152615a0c816159d0565b9050919050565b6000615a1f828661515c565b9150615a2b828561515c565b9150615a37828461515c565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615a7e82614568565b9150615a8983614568565b925082615a9957615a98615a44565b5b828204905092915050565b6000615aaf82614568565b9150615aba83614568565b9250828202615ac881614568565b91508282048414831517615adf57615ade6152a0565b5b5092915050565b7f506c6179657220616c7265616479206372656174656400000000000000000000600082015250565b6000615b1c601683614e39565b9150615b2782615ae6565b602082019050919050565b60006020820190508181036000830152615b4b81615b0f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000819050919050565b615b9481615b81565b82525050565b6000602082019050615baf6000830184615b8b565b92915050565b600060ff82169050919050565b615bcb81615bb5565b82525050565b6000608082019050615be66000830187615b8b565b615bf36020830186615bc2565b615c006040830185615b8b565b615c0d6060830184615b8b565b9594505050505056fea26469706673582212202286285187d3120acdc5fc74e7b3da2bb8e2cdda25ee058bf71d9ec83c593f3064736f6c634300081500330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000b1a5700fa2358173fe465e6ea4ff52e36e88e2ad0000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000001000000000000000000000000620bb04ea89ed321ca1cd1c4784f0a853e75d75b
Deployed Bytecode
0x6080604052600436106102ff5760003560e01c8063715018a611610190578063cf1cde0a116100dc578063e850500b11610095578063ebb4ece41161006f578063ebb4ece414610c58578063ecb7471d14610c83578063f2fde38b14610cae578063f798581014610cd7576102ff565b8063e850500b14610bc7578063eac328b214610c04578063eb770d0c14610c2f576102ff565b8063cf1cde0a14610aa3578063d1ff9d6a14610ae0578063d70eb46b14610b1d578063d9daade014610b5a578063dd764abf14610b71578063e586a4f014610b9c576102ff565b80638f1064d811610149578063b6ba380011610123578063b6ba3800146109d7578063bc34ac1a14610a00578063c4b7750014610a3d578063c808807714610a7a576102ff565b80638f1064d8146109325780639243d9c61461096f578063a5c125211461099a576102ff565b8063715018a6146108485780637ac3c02f1461085f5780637d1fb9081461088a5780637db31c68146108a15780638242228b146108ca5780638da5cb5b14610907576102ff565b806345a534891161024f57806359b5fac4116102085780635c12cd4b116101e25780635c12cd4b1461078e5780635d117d9b146107cb5780636383cf20146107f65780636c19e7831461081f576102ff565b806359b5fac4146106eb5780635bae5e54146107285780635bb12a1a14610765576102ff565b806345a534891461058f57806347251525146105cc5780634d3c4957146106095780634f0f348a146106465780634f93c3ad1461068357806353f3ac91146106ae576102ff565b8063204597e0116102bc578063373b91f111610296578063373b91f1146104ef578063386a2a79146105065780633da1d266146105485780633e3b299314610564576102ff565b8063204597e01461045257806325fed0e014610494578063265d37f2146104bf576102ff565b80630d89288a146103045780630e63c7ad1461032f578063174ffa521461037057806318b6be4f146103ad5780631b078ab3146103ea5780631e7d1cab14610415575b600080fd5b34801561031057600080fd5b50610319610d07565b6040516103269190614581565b60405180910390f35b34801561033b57600080fd5b50610356600480360381019061035191906145d2565b610d0d565b6040516103679594939291906145ff565b60405180910390f35b34801561037c57600080fd5b50610397600480360381019061039291906145d2565b610d58565b6040516103a49190614693565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf91906145d2565b610d8b565b6040516103e191906146c9565b60405180910390f35b3480156103f657600080fd5b506103ff610dab565b60405161040c9190614743565b60405180910390f35b34801561042157600080fd5b5061043c600480360381019061043791906145d2565b610dd1565b6040516104499190614693565b60405180910390f35b34801561045e57600080fd5b50610479600480360381019061047491906145d2565b610e0e565b60405161048b9695949392919061475e565b60405180910390f35b3480156104a057600080fd5b506104a9610e4a565b6040516104b69190614581565b60405180910390f35b6104d960048036038101906104d49190614824565b610e51565b6040516104e69190614581565b60405180910390f35b3480156104fb57600080fd5b50610504611654565b005b34801561051257600080fd5b5061052d600480360381019061052891906148c4565b611828565b60405161053f9695949392919061475e565b60405180910390f35b610562600480360381019061055d91906145d2565b611881565b005b34801561057057600080fd5b50610579611ad2565b6040516105869190614581565b60405180910390f35b34801561059b57600080fd5b506105b660048036038101906105b19190614904565b611ad8565b6040516105c39190614581565b60405180910390f35b3480156105d857600080fd5b506105f360048036038101906105ee9190614904565b611b24565b6040516106009190614a6a565b60405180910390f35b34801561061557600080fd5b50610630600480360381019061062b9190614904565b611bfe565b60405161063d9190614581565b60405180910390f35b34801561065257600080fd5b5061066d60048036038101906106689190614904565b611c4a565b60405161067a9190614581565b60405180910390f35b34801561068f57600080fd5b50610698611d24565b6040516106a59190614b3b565b60405180910390f35b3480156106ba57600080fd5b506106d560048036038101906106d091906145d2565b611d7c565b6040516106e29190614581565b60405180910390f35b3480156106f757600080fd5b50610712600480360381019061070d9190614904565b611da0565b60405161071f9190614c4e565b60405180910390f35b34801561073457600080fd5b5061074f600480360381019061074a9190614904565b611e5f565b60405161075c9190614c4e565b60405180910390f35b34801561077157600080fd5b5061078c60048036038101906107879190614904565b611f1e565b005b34801561079a57600080fd5b506107b560048036038101906107b09190614904565b612046565b6040516107c29190614d8a565b60405180910390f35b3480156107d757600080fd5b506107e0612169565b6040516107ed9190614581565b60405180910390f35b34801561080257600080fd5b5061081d60048036038101906108189190614dac565b61227e565b005b34801561082b57600080fd5b5061084660048036038101906108419190614904565b6123e8565b005b34801561085457600080fd5b5061085d612434565b005b34801561086b57600080fd5b50610874612448565b6040516108819190614693565b60405180910390f35b34801561089657600080fd5b5061089f612472565b005b3480156108ad57600080fd5b506108c860048036038101906108c391906145d2565b612872565b005b3480156108d657600080fd5b506108f160048036038101906108ec91906148c4565b6129b7565b6040516108fe9190614581565b60405180910390f35b34801561091357600080fd5b5061091c612ac6565b6040516109299190614693565b60405180910390f35b34801561093e57600080fd5b5061095960048036038101906109549190614904565b612aef565b6040516109669190614581565b60405180910390f35b34801561097b57600080fd5b50610984612bc9565b6040516109919190614b3b565b60405180910390f35b3480156109a657600080fd5b506109c160048036038101906109bc91906145d2565b612c21565b6040516109ce91906146c9565b60405180910390f35b3480156109e357600080fd5b506109fe60048036038101906109f99190614904565b612c4b565b005b348015610a0c57600080fd5b50610a276004803603810190610a229190614904565b612cb9565b604051610a349190614581565b60405180910390f35b348015610a4957600080fd5b50610a646004803603810190610a5f9190614904565b612d05565b604051610a719190614581565b60405180910390f35b348015610a8657600080fd5b50610aa16004803603810190610a9c91906145d2565b612d51565b005b348015610aaf57600080fd5b50610aca6004803603810190610ac59190614904565b612d63565b604051610ad79190614581565b60405180910390f35b348015610aec57600080fd5b50610b076004803603810190610b0291906145d2565b612e62565b604051610b149190614581565b60405180910390f35b348015610b2957600080fd5b50610b446004803603810190610b3f9190614904565b612e86565b604051610b5191906146c9565b60405180910390f35b348015610b6657600080fd5b50610b6f612f8a565b005b348015610b7d57600080fd5b50610b8661307b565b604051610b939190614581565b60405180910390f35b348015610ba857600080fd5b50610bb1613086565b604051610bbe9190614581565b60405180910390f35b348015610bd357600080fd5b50610bee6004803603810190610be99190614904565b613090565b604051610bfb9190614581565b60405180910390f35b348015610c1057600080fd5b50610c1961317b565b604051610c269190614581565b60405180910390f35b348015610c3b57600080fd5b50610c566004803603810190610c5191906145d2565b613185565b005b348015610c6457600080fd5b50610c6d613197565b604051610c7a9190614581565b60405180910390f35b348015610c8f57600080fd5b50610c9861319e565b604051610ca59190614581565b60405180910390f35b348015610cba57600080fd5b50610cd56004803603810190610cd09190614904565b6131ab565b005b610cf16004803603810190610cec9190614824565b613231565b604051610cfe9190614581565b60405180910390f35b60095481565b60008060008060008060026000888152602001908152602001600020905080600101548160040154826003015483600201548460050154955095509550955095505091939590929450565b60076020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915054906101000a900460ff1681565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60026020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b6224ea0081565b6000610e5b613696565b6000339050600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff16610eef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee690614e96565b60405180910390fd5b60006002600088815260200190815260200160002090506000816001015411610f4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4490614f02565b60405180910390fd5b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015481600401541115610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd90614f94565b60405180910390fd5b8060040154600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154101561105f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105690615000565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd833084600301546040518463ffffffff1660e01b81526004016110c293929190615020565b6020604051808303816000875af11580156110e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111059190615083565b611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b906150fc565b60405180910390fd5b600061114f876136dc565b61116e8473ffffffffffffffffffffffffffffffffffffffff166137aa565b60405160200161117f92919061518d565b6040516020818303038152906040529050600d816040516111a091906151b1565b908152602001604051809103902060009054906101000a900460ff16156111fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f390615214565b60405180910390fd5b611204612448565b73ffffffffffffffffffffffffffffffffffffffff166112688288888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506137d7565b73ffffffffffffffffffffffffffffffffffffffff16146112be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b590615280565b60405180910390fd5b6001600d826040516112d091906151b1565b908152602001604051809103902060006101000a81548160ff0219169083151502179055508160040154826001015411156113c9578160040154600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461135b91906152cf565b92505081905550816004015482600101600082825461137a91906152cf565b925050819055507f255a2fd28655630eaaa2983a98b21741d9b533feb327a4e1977e8e3256453fe482600001548484600401546040516113bc93929190615303565b60405180910390a161163a565b8160040154600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461141f91906152cf565b9250508190555060008260010181905550600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201548160000155600182015481600101556002820154816002015560038201548160030155600482015481600401556005820154816005015550506001600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600601600082825461152a919061533a565b9250508190555082600760008460000154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600360008460000154815260200190815260200160002060006101000a81548160ff021916908315150217905550600882600001549080600181540180825580915050600190039060005260206000200160009091909190915055600960008154809291906115f79061536e565b91905055507f367913536089b2c2abd73f538541ae00e845b8761cd68b1d17e792492626ae288260000154846040516116319291906153b6565b60405180910390a15b8160000154935050505061164c613824565b949350505050565b61165c61382d565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116b99190614693565b602060405180830381865afa1580156116d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116fa91906153f4565b90506000811161173f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117369061546d565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb611785612ac6565b836040518363ffffffff1660e01b81526004016117a392919061548d565b6020604051808303816000875af11580156117c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e69190615083565b611825576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181c90615502565b60405180910390fd5b50565b6006602052816000526040600020818154811061184457600080fd5b9060005260206000209060060201600091509150508060000154908060010154908060020154908060030154908060040154908060050154905086565b662386f26fc100003410156118cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c29061556e565b60405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff1661192957611928336138b4565b5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600e8303611981576212750090506119d0565b601c8303611994576224ea0090506119cf565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c6906155da565b60405180910390fd5b5b81600301604051806060016040528034815260200183426119f1919061533a565b8152602001838152509080600181540180825580915050600190039060005260206000209060030201600090919091909150600082015181600001556020820151816001015560408201518160020155505034826004016000828254611a57919061533a565b925050819055508160050154811115611a74578082600501819055505b611a7d33613923565b3373ffffffffffffffffffffffffffffffffffffffff167f010dba25976dc5d04d71eeb429940be4c724e9cd33c018b77ce034e4d9200b1a3483604051611ac59291906155fa565b60405180910390a2505050565b60055481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b6060600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611bf357838290600052602060002090600602016040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505081526020019060010190611b85565b505050509050919050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600601549050919050565b600080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b8260030180549050811015611d1957826003018181548110611cb757611cb6615623565b5b906000526020600020906003020160010154421015611d0657826003018181548110611ce657611ce5615623565b5b90600052602060002090600302016000015482611d03919061533a565b91505b8080611d119061536e565b915050611c92565b508092505050919050565b60606008805480602002602001604051908101604052809291908181526020018280548015611d7257602002820191906000526020600020905b815481526020019060010190808311611d5e575b5050505050905090565b60048181548110611d8c57600080fd5b906000526020600020016000915090505481565b6060600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301805480602002602001604051908101604052809291908181526020016000905b82821015611e545783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611e04565b505050509050919050565b6060600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301805480602002602001604051908101604052809291908181526020016000905b82821015611f135783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611ec3565b505050509050919050565b611f2661382d565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff16611fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fac9061569e565b60405180910390fd5b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090556002820160006101000a81549060ff021916905560038201600061202991906144d6565b600482016000905560058201600090556006820160009055505050565b61204e6144fa565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060e001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff1615151515815260200160038201805480602002602001604051908101604052809291908181526020016000905b8282101561213c57838290600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050815260200190600101906120ec565b50505050815260200160048201548152602001600582015481526020016006820154815250509050919050565b6000806000905060005b600b80549050811015612276576000600b828154811061219657612195615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060005b81600301805490508110156122605781600301818154811061222e5761222d615623565b5b9060005260206000209060030201600001548561224b919061533a565b945080806122589061536e565b915050612209565b505050808061226e9061536e565b915050612173565b508091505090565b61228661382d565b60006002600088815260200190815260200160002060000154146122df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d69061570a565b60405180910390fd5b6040518060c001604052808781526020018681526020018581526020018481526020018381526020018281525060026000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015590505060048690806001815401808255809150506001900390600052602060002001600090919091909150556005600081548092919061239a9061536e565b91905055507f0f2172a9229c6078d30d3866763c1148a66f000478f17aede04601f651ff45c48686868686866040516123d89695949392919061475e565b60405180910390a1505050505050565b6123f061382d565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61243c61382d565b6124466000613a75565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61247a613696565b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080826003018054905067ffffffffffffffff8111156124e1576124e061572a565b5b60405190808252806020026020018201604052801561250f5781602001602082028036833780820191505090505b5090506000805b84600301805490508110156125ca5784600301818154811061253b5761253a615623565b5b90600052602060002090600302016001015442106125b75784600301818154811061256957612568615623565b5b90600052602060002090600302016000015484612586919061533a565b93508083838151811061259c5761259b615623565b5b60200260200101818152505081806125b39061536e565b9250505b80806125c29061536e565b915050612516565b506000831161260e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612605906157a5565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1684604051612634906157f6565b60006040518083038185875af1925050503d8060008114612671576040519150601f19603f3d011682016040523d82523d6000602084013e612676565b606091505b50509050806126ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b190615857565b60405180910390fd5b60008290505b600081111561280b576000846001836126d991906152cf565b815181106126ea576126e9615623565b5b6020026020010151905086600301818154811061270a57612709615623565b5b90600052602060002090600302016000015487600401600082825461272f91906152cf565b92505081905550866003016001886003018054905061274e91906152cf565b8154811061275f5761275e615623565b5b906000526020600020906003020187600301828154811061278357612782615623565b5b9060005260206000209060030201600082015481600001556001820154816001015560028201548160020155905050866003018054806127c6576127c5615877565b5b60019003818190600052602060002090600302016000808201600090556001820160009055600282016000905550509055508080612803906158a6565b9150506126c0565b5061281533613923565b3373ffffffffffffffffffffffffffffffffffffffff167fa581be4b2f2e3d0898d6e15a0105a5574d7e447e2bea3c93c1cfb5c707be6bd48560405161285b9190614581565b60405180910390a25050505050612870613824565b565b61287a61382d565b60138054905081106128c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b89061591b565b60405180910390fd5b601360016013805490506128d591906152cf565b815481106128e6576128e5615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166013828154811061292557612924615623565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601380548061297f5761297e615877565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550565b60006013805490508210612a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f790615987565b60405180910390fd5b600060138381548110612a1657612a15615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401612a7c9190614693565b602060405180830381865afa158015612a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612abd91906153f4565b91505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b8260030180549050811015612bbe57826003018181548110612b5c57612b5b615623565b5b906000526020600020906003020160010154421115612bab57826003018181548110612b8b57612b8a615623565b5b90600052602060002090600302016000015482612ba8919061533a565b91505b8080612bb69061536e565b915050612b37565b508092505050919050565b60606004805480602002602001604051908101604052809291908181526020018280548015612c1757602002820191906000526020600020905b815481526020019060010190808311612c03575b5050505050905090565b60006003600083815260200190815260200160002060009054906101000a900460ff169050919050565b612c5361382d565b6013819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401549050919050565b612d5961382d565b8060148190555050565b6000806000905060005b601380549050811015612e5857600060138281548110612d9057612d8f615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401612df69190614693565b602060405180830381865afa158015612e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3791906153f4565b83612e42919061533a565b9250508080612e509061536e565b915050612d6d565b5080915050919050565b60088181548110612e7257600080fd5b906000526020600020016000915090505481565b600080600090505b601380549050811015612f7f57600060138281548110612eb157612eb0615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401612f199190614693565b602060405180830381865afa158015612f36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5a91906153f4565b1115612f6b57600192505050612f85565b508080612f779061536e565b915050612e8e565b50600090505b919050565b612f9261382d565b60005b600b80549050811015613041576000600b8281548110612fb857612fb7615623565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505080806130399061536e565b915050612f95565b507f96cf5939b3394dd6546df8f07f4771efcc53697911e706e23ff97c38a138644d426040516130719190614581565b60405180910390a1565b662386f26fc1000081565b6000600e54905090565b6000806000905060005b600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030180549050811015613171576000600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301828154811061313d5761313c615623565b5b90600052602060002090600302016002015490508281111561315d578092505b5080806131699061536e565b91505061309a565b5080915050919050565b6000601454905090565b61318d61382d565b80600e8190555050565b6212750081565b6000601380549050905090565b6131b361382d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036132255760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161321c9190614693565b60405180910390fd5b61322e81613a75565b50565b600061323b613696565b6000339050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8230613288613086565b6040518463ffffffff1660e01b81526004016132a693929190615020565b6020604051808303816000875af11580156132c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132e99190615083565b613328576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331f906159f3565b60405180910390fd5b6000613333866136dc565b6133528373ffffffffffffffffffffffffffffffffffffffff166137aa565b61335b896136dc565b60405160200161336d93929190615a13565b6040516020818303038152906040529050600d8160405161338e91906151b1565b908152602001604051809103902060009054906101000a900460ff16156133ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133e190615214565b60405180910390fd5b6133f2612448565b73ffffffffffffffffffffffffffffffffffffffff166134568287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506137d7565b73ffffffffffffffffffffffffffffffffffffffff16146134ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a390615280565b60405180910390fd5b6001600d826040516134be91906151b1565b908152602001604051809103902060006101000a81548160ff021916908315150217905550600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff1661354157613540826138b4565b5b61354a82613923565b60003073ffffffffffffffffffffffffffffffffffffffff166345a53489846040518263ffffffff1660e01b81526004016135859190614693565b602060405180830381865afa1580156135a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135c691906153f4565b905060006135d48983613b39565b905080600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254613628919061533a565b925050819055508373ffffffffffffffffffffffffffffffffffffffff167f4b97a5e5e9b332836eea24e70b760c1ffce3041c0eb15309837d180f8bfff26a82846040516136779291906155fa565b60405180910390a28094505050505061368e613824565b949350505050565b6002600154036136d2576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b6060600060016136eb84613c59565b01905060008167ffffffffffffffff81111561370a5761370961572a565b5b6040519080825280601f01601f19166020018201604052801561373c5781602001600182028036833780820191505090505b509050600082602001820190505b60011561379f578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161379357613792615a44565b5b0494506000850361374a575b819350505050919050565b60606137d08273ffffffffffffffffffffffffffffffffffffffff16601460ff16613dac565b9050919050565b600080836040516020016137eb91906151b1565b604051602081830303815290604052805190602001209050600061380e82613ff2565b905061381a8185614028565b9250505092915050565b60018081905550565b613835614054565b73ffffffffffffffffffffffffffffffffffffffff16613853612ac6565b73ffffffffffffffffffffffffffffffffffffffff16146138b257613876614054565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016138a99190614693565b60405180910390fd5b565b6138bd8161405c565b600b819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600401549050600082600501549050600067016345785d8a0000831161398f5782613999565b67016345785d8a00005b9050600066b1a2bc2ec50000826139b09190615a73565b905060006212750084101580156139ce57506702c68af0bb14000085115b156139d857600190505b6224ea00841480156139f25750670de0b6b3a76400008510155b156139fc57600290505b6000613a0788612d63565b9050600080613a1461317b565b905060008303613a275760009150613a3e565b80831015613a385760019150613a3d565b600291505b5b8184866001613a4d919061533a565b613a57919061533a565b613a61919061533a565b896000018190555050505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006127108311613b5857816001613b519190615aa4565b9050613c53565b614e208311613b7557816002613b6e9190615aa4565b9050613c53565b6175308311613b9257816003613b8b9190615aa4565b9050613c53565b619c408311613baf57816004613ba89190615aa4565b9050613c53565b61c3508311613bcc57816005613bc59190615aa4565b9050613c53565b61ea608311613be957816006613be29190615aa4565b9050613c53565b620111708311613c0757816007613c009190615aa4565b9050613c53565b620138808311613c2557816008613c1e9190615aa4565b9050613c53565b62015f908311613c4357816009613c3c9190615aa4565b9050613c53565b81600a613c509190615aa4565b90505b92915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613cb7577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613cad57613cac615a44565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613cf4576d04ee2d6d415b85acef81000000008381613cea57613ce9615a44565b5b0492506020810190505b662386f26fc100008310613d2357662386f26fc100008381613d1957613d18615a44565b5b0492506010810190505b6305f5e1008310613d4c576305f5e1008381613d4257613d41615a44565b5b0492506008810190505b6127108310613d71576127108381613d6757613d66615a44565b5b0492506004810190505b60648310613d945760648381613d8a57613d89615a44565b5b0492506002810190505b600a8310613da3576001810190505b80915050919050565b6060600083905060006002846002613dc49190615aa4565b613dce919061533a565b67ffffffffffffffff811115613de757613de661572a565b5b6040519080825280601f01601f191660200182016040528015613e195781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613e5157613e50615623565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613eb557613eb4615623565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001856002613ef59190615aa4565b613eff919061533a565b90505b6001811115613f9f577f3031323334353637383961626364656600000000000000000000000000000000600f841660108110613f4157613f40615623565b5b1a60f81b828281518110613f5857613f57615623565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600483901c925080613f98906158a6565b9050613f02565b5060008214613fe75784846040517fe22e27eb000000000000000000000000000000000000000000000000000000008152600401613fde9291906155fa565b60405180910390fd5b809250505092915050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000806140388686614222565b925092509250614048828261427e565b82935050505092915050565b600033905090565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff16156140ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016140e390615b32565b60405180910390fd5b6001600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160006101000a81548160ff0219169083151502179055506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055506000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005018190555050565b600080600060418451036142675760008060006020870151925060408701519150606087015160001a9050614259888285856143e2565b955095509550505050614277565b60006002855160001b9250925092505b9250925092565b6000600381111561429257614291615b52565b5b8260038111156142a5576142a4615b52565b5b03156143de57600160038111156142bf576142be615b52565b5b8260038111156142d2576142d1615b52565b5b03614309576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600381111561431d5761431c615b52565b5b8260038111156143305761432f615b52565b5b03614375578060001c6040517ffce698f700000000000000000000000000000000000000000000000000000000815260040161436c9190614581565b60405180910390fd5b60038081111561438857614387615b52565b5b82600381111561439b5761439a615b52565b5b036143dd57806040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004016143d49190615b9a565b60405180910390fd5b5b5050565b60008060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08460001c11156144225760006003859250925092506144cc565b6000600188888888604051600081526020016040526040516144479493929190615bd1565b6020604051602081039080840390855afa158015614469573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036144bd57600060016000801b935093509350506144cc565b8060008060001b935093509350505b9450945094915050565b50805460008255600302906000526020600020908101906144f79190614539565b50565b6040518060e001604052806000815260200160008152602001600015158152602001606081526020016000815260200160008152602001600081525090565b5b8082111561456457600080820160009055600182016000905560028201600090555060030161453a565b5090565b6000819050919050565b61457b81614568565b82525050565b60006020820190506145966000830184614572565b92915050565b600080fd5b600080fd5b6145af81614568565b81146145ba57600080fd5b50565b6000813590506145cc816145a6565b92915050565b6000602082840312156145e8576145e761459c565b5b60006145f6848285016145bd565b91505092915050565b600060a0820190506146146000830188614572565b6146216020830187614572565b61462e6040830186614572565b61463b6060830185614572565b6146486080830184614572565b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061467d82614652565b9050919050565b61468d81614672565b82525050565b60006020820190506146a86000830184614684565b92915050565b60008115159050919050565b6146c3816146ae565b82525050565b60006020820190506146de60008301846146ba565b92915050565b6000819050919050565b60006147096147046146ff84614652565b6146e4565b614652565b9050919050565b600061471b826146ee565b9050919050565b600061472d82614710565b9050919050565b61473d81614722565b82525050565b60006020820190506147586000830184614734565b92915050565b600060c0820190506147736000830189614572565b6147806020830188614572565b61478d6040830187614572565b61479a6060830186614572565b6147a76080830185614572565b6147b460a0830184614572565b979650505050505050565b600080fd5b600080fd5b600080fd5b60008083601f8401126147e4576147e36147bf565b5b8235905067ffffffffffffffff811115614801576148006147c4565b5b60208301915083600182028301111561481d5761481c6147c9565b5b9250929050565b6000806000806060858703121561483e5761483d61459c565b5b600061484c878288016145bd565b945050602061485d878288016145bd565b935050604085013567ffffffffffffffff81111561487e5761487d6145a1565b5b61488a878288016147ce565b925092505092959194509250565b6148a181614672565b81146148ac57600080fd5b50565b6000813590506148be81614898565b92915050565b600080604083850312156148db576148da61459c565b5b60006148e9858286016148af565b92505060206148fa858286016145bd565b9150509250929050565b60006020828403121561491a5761491961459c565b5b6000614928848285016148af565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61496681614568565b82525050565b60c082016000820151614982600085018261495d565b506020820151614995602085018261495d565b5060408201516149a8604085018261495d565b5060608201516149bb606085018261495d565b5060808201516149ce608085018261495d565b5060a08201516149e160a085018261495d565b50505050565b60006149f3838361496c565b60c08301905092915050565b6000602082019050919050565b6000614a1782614931565b614a21818561493c565b9350614a2c8361494d565b8060005b83811015614a5d578151614a4488826149e7565b9750614a4f836149ff565b925050600181019050614a30565b5085935050505092915050565b60006020820190508181036000830152614a848184614a0c565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000614ac4838361495d565b60208301905092915050565b6000602082019050919050565b6000614ae882614a8c565b614af28185614a97565b9350614afd83614aa8565b8060005b83811015614b2e578151614b158882614ab8565b9750614b2083614ad0565b925050600181019050614b01565b5085935050505092915050565b60006020820190508181036000830152614b558184614add565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b606082016000820151614b9f600085018261495d565b506020820151614bb2602085018261495d565b506040820151614bc5604085018261495d565b50505050565b6000614bd78383614b89565b60608301905092915050565b6000602082019050919050565b6000614bfb82614b5d565b614c058185614b68565b9350614c1083614b79565b8060005b83811015614c41578151614c288882614bcb565b9750614c3383614be3565b925050600181019050614c14565b5085935050505092915050565b60006020820190508181036000830152614c688184614bf0565b905092915050565b614c79816146ae565b82525050565b600082825260208201905092915050565b6000614c9b82614b5d565b614ca58185614c7f565b9350614cb083614b79565b8060005b83811015614ce1578151614cc88882614bcb565b9750614cd383614be3565b925050600181019050614cb4565b5085935050505092915050565b600060e083016000830151614d06600086018261495d565b506020830151614d19602086018261495d565b506040830151614d2c6040860182614c70565b5060608301518482036060860152614d448282614c90565b9150506080830151614d59608086018261495d565b5060a0830151614d6c60a086018261495d565b5060c0830151614d7f60c086018261495d565b508091505092915050565b60006020820190508181036000830152614da48184614cee565b905092915050565b60008060008060008060c08789031215614dc957614dc861459c565b5b6000614dd789828a016145bd565b9650506020614de889828a016145bd565b9550506040614df989828a016145bd565b9450506060614e0a89828a016145bd565b9350506080614e1b89828a016145bd565b92505060a0614e2c89828a016145bd565b9150509295509295509295565b600082825260208201905092915050565b7f506c6179657220646f6573206e6f742065786973740000000000000000000000600082015250565b6000614e80601583614e39565b9150614e8b82614e4a565b602082019050919050565b60006020820190508181036000830152614eaf81614e73565b9050919050565b7f54686520626f737320697320616c726561647920646561642e00000000000000600082015250565b6000614eec601983614e39565b9150614ef782614eb6565b602082019050919050565b60006020820190508181036000830152614f1b81614edf565b9050919050565b7f54686520706c617965722063616e27742061747461636b2074686520626f737360008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f7e602183614e39565b9150614f8982614f22565b604082019050919050565b60006020820190508181036000830152614fad81614f71565b9050919050565b7f504220706f696e747320746f6f206c6f772e0000000000000000000000000000600082015250565b6000614fea601283614e39565b9150614ff582614fb4565b602082019050919050565b6000602082019050818103600083015261501981614fdd565b9050919050565b60006060820190506150356000830186614684565b6150426020830185614684565b61504f6040830184614572565b949350505050565b615060816146ae565b811461506b57600080fd5b50565b60008151905061507d81615057565b92915050565b6000602082840312156150995761509861459c565b5b60006150a78482850161506e565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006150e6601583614e39565b91506150f1826150b0565b602082019050919050565b60006020820190508181036000830152615115816150d9565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015615150578082015181840152602081019050615135565b60008484015250505050565b60006151678261511c565b6151718185615127565b9350615181818560208601615132565b80840191505092915050565b6000615199828561515c565b91506151a5828461515c565b91508190509392505050565b60006151bd828461515c565b915081905092915050565b7f4d65737361676520616c72656164792070726f63657373656400000000000000600082015250565b60006151fe601983614e39565b9150615209826151c8565b602082019050919050565b6000602082019050818103600083015261522d816151f1565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b600061526a601183614e39565b915061527582615234565b602082019050919050565b600060208201905081810360008301526152998161525d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006152da82614568565b91506152e583614568565b92508282039050818111156152fd576152fc6152a0565b5b92915050565b60006060820190506153186000830186614572565b6153256020830185614684565b6153326040830184614572565b949350505050565b600061534582614568565b915061535083614568565b9250828201905080821115615368576153676152a0565b5b92915050565b600061537982614568565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036153ab576153aa6152a0565b5b600182019050919050565b60006040820190506153cb6000830185614572565b6153d86020830184614684565b9392505050565b6000815190506153ee816145a6565b92915050565b60006020828403121561540a5761540961459c565b5b6000615418848285016153df565b91505092915050565b7f4e6f20746f6b656e7320746f2077697468647261770000000000000000000000600082015250565b6000615457601583614e39565b915061546282615421565b602082019050919050565b600060208201905081810360008301526154868161544a565b9050919050565b60006040820190506154a26000830185614684565b6154af6020830184614572565b9392505050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b60006154ec600f83614e39565b91506154f7826154b6565b602082019050919050565b6000602082019050818103600083015261551b816154df565b9050919050565b7f4554482076616c7565206d757374206265203e3d20302e303100000000000000600082015250565b6000615558601983614e39565b915061556382615522565b602082019050919050565b600060208201905081810360008301526155878161554b565b9050919050565b7f4475726174696f6e206c6f636b206e6f742076616c6964000000000000000000600082015250565b60006155c4601783614e39565b91506155cf8261558e565b602082019050919050565b600060208201905081810360008301526155f3816155b7565b9050919050565b600060408201905061560f6000830185614572565b61561c6020830184614572565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f506c6179657220616c72656164792072656d6f76656400000000000000000000600082015250565b6000615688601683614e39565b915061569382615652565b602082019050919050565b600060208201905081810360008301526156b78161567b565b9050919050565b7f426f737320616c72656164792063726561746564000000000000000000000000600082015250565b60006156f4601483614e39565b91506156ff826156be565b602082019050919050565b60006020820190508181036000830152615723816156e7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e6f20756e6c6f636b656420657468657220617661696c61626c650000000000600082015250565b600061578f601b83614e39565b915061579a82615759565b602082019050919050565b600060208201905081810360008301526157be81615782565b9050919050565b600081905092915050565b50565b60006157e06000836157c5565b91506157eb826157d0565b600082019050919050565b6000615801826157d3565b9150819050919050565b7f4574686572207472616e73666572206661696c65640000000000000000000000600082015250565b6000615841601583614e39565b915061584c8261580b565b602082019050919050565b6000602082019050818103600083015261587081615834565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006158b182614568565b9150600082036158c4576158c36152a0565b5b600182039050919050565b7f496e646578206f7574206f6620626f756e647300000000000000000000000000600082015250565b6000615905601383614e39565b9150615910826158cf565b602082019050919050565b60006020820190508181036000830152615934816158f8565b9050919050565b7f496e646578206f7574206f6620626f756e64732e000000000000000000000000600082015250565b6000615971601483614e39565b915061597c8261593b565b602082019050919050565b600060208201905081810360008301526159a081615964565b9050919050565b7f5061796d656e74206661696c6564000000000000000000000000000000000000600082015250565b60006159dd600e83614e39565b91506159e8826159a7565b602082019050919050565b60006020820190508181036000830152615a0c816159d0565b9050919050565b6000615a1f828661515c565b9150615a2b828561515c565b9150615a37828461515c565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615a7e82614568565b9150615a8983614568565b925082615a9957615a98615a44565b5b828204905092915050565b6000615aaf82614568565b9150615aba83614568565b9250828202615ac881614568565b91508282048414831517615adf57615ade6152a0565b5b5092915050565b7f506c6179657220616c7265616479206372656174656400000000000000000000600082015250565b6000615b1c601683614e39565b9150615b2782615ae6565b602082019050919050565b60006020820190508181036000830152615b4b81615b0f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000819050919050565b615b9481615b81565b82525050565b6000602082019050615baf6000830184615b8b565b92915050565b600060ff82169050919050565b615bcb81615bb5565b82525050565b6000608082019050615be66000830187615b8b565b615bf36020830186615bc2565b615c006040830185615b8b565b615c0d6060830184615b8b565b9594505050505056fea26469706673582212202286285187d3120acdc5fc74e7b3da2bb8e2cdda25ee058bf71d9ec83c593f3064736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000b1a5700fa2358173fe465e6ea4ff52e36e88e2ad0000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000001000000000000000000000000620bb04ea89ed321ca1cd1c4784f0a853e75d75b
-----Decoded View---------------
Arg [0] : _nftContracts (address[]): 0x620Bb04eA89ed321Ca1CD1c4784f0A853E75D75b
Arg [1] : _blastTokenAddress (address): 0xb1a5700fA2358173Fe465e6eA4Ff52E36e88E2ad
Arg [2] : _entryFee (uint256): 2000000000000000000
Arg [3] : thresholdBonus_ (uint256): 5
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000b1a5700fa2358173fe465e6ea4ff52e36e88e2ad
Arg [2] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 000000000000000000000000620bb04ea89ed321ca1cd1c4784f0a853e75d75b
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$357.35
Net Worth in ETH
0.131
Token Allocations
ETH
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| BLAST | 100.00% | $2,727.87 | 0.131 | $357.35 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.