Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 501 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 22336822 | 306 days ago | IN | 0 ETH | 0.00001038 | ||||
| Set Approval For... | 20140254 | 612 days ago | IN | 0 ETH | 0.00025603 | ||||
| Set Approval For... | 19953951 | 638 days ago | IN | 0 ETH | 0.00031363 | ||||
| Set Approval For... | 19647370 | 681 days ago | IN | 0 ETH | 0.0006812 | ||||
| Set Approval For... | 19482257 | 705 days ago | IN | 0 ETH | 0.00135046 | ||||
| Transfer From | 19043547 | 766 days ago | IN | 0 ETH | 0.00491319 | ||||
| Set Approval For... | 18140193 | 893 days ago | IN | 0 ETH | 0.00050678 | ||||
| Set Approval For... | 18075684 | 902 days ago | IN | 0 ETH | 0.00044624 | ||||
| Set Approval For... | 17713717 | 952 days ago | IN | 0 ETH | 0.0007558 | ||||
| Set Approval For... | 17713713 | 952 days ago | IN | 0 ETH | 0.00133914 | ||||
| Set Approval For... | 17114297 | 1037 days ago | IN | 0 ETH | 0.00101123 | ||||
| Set Approval For... | 17114292 | 1037 days ago | IN | 0 ETH | 0.00183821 | ||||
| Safe Transfer Fr... | 16960301 | 1059 days ago | IN | 0 ETH | 0.00120821 | ||||
| Set Approval For... | 16855251 | 1073 days ago | IN | 0 ETH | 0.00078815 | ||||
| Set Approval For... | 16719665 | 1092 days ago | IN | 0 ETH | 0.00039726 | ||||
| Safe Transfer Fr... | 16597060 | 1110 days ago | IN | 0 ETH | 0.00156137 | ||||
| Safe Transfer Fr... | 16597055 | 1110 days ago | IN | 0 ETH | 0.00148028 | ||||
| Set Approval For... | 16539344 | 1118 days ago | IN | 0 ETH | 0.00093082 | ||||
| Transfer From | 16539310 | 1118 days ago | IN | 0 ETH | 0.00099695 | ||||
| Transfer From | 16539294 | 1118 days ago | IN | 0 ETH | 0.00103785 | ||||
| Set Approval For... | 16538024 | 1118 days ago | IN | 0 ETH | 0.0014898 | ||||
| Set Approval For... | 16531366 | 1119 days ago | IN | 0 ETH | 0.00076265 | ||||
| Set Approval For... | 16350162 | 1144 days ago | IN | 0 ETH | 0.00138799 | ||||
| Set Approval For... | 16238375 | 1160 days ago | IN | 0 ETH | 0.00053709 | ||||
| Set Approval For... | 15954602 | 1199 days ago | IN | 0 ETH | 0.00064888 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 14286492 | 1458 days ago | 216.82 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
APClubNFT
Compiler Version
v0.8.2+commit.661d1103
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
contract APClubNFT is Ownable, ERC721A, ReentrancyGuard {
using ECDSA for bytes32;
address private payoutAddress;
address public signerAddress;
// // metadata URI
string private _baseTokenURI;
uint256 public collectionSize;
uint256 public maxBatchSize;
uint256 public currentSaleIndex;
enum SaleStage {
Whitelist,
Auction,
Public
}
struct SaleConfig {
uint16 tierIndex;
uint32 startTime;
uint32 endTime;
uint32 stageBatchSize;
uint64 stageLimit;
uint64 price;
SaleStage stage;
}
SaleConfig[] public saleConfigs;
mapping(string => bool) public ticketUsed;
struct AuctionConfig {
uint64 startPrice;
uint64 endPrice;
uint32 startTime;
uint32 priceCurveLength;
uint32 dropPriceInterval;
}
AuctionConfig public auctionConfig;
constructor(
uint256 maxBatchSize_,
uint256 collectionSize_,
address _signerAddress
) ERC721A("AP Club NFT", "AP") {
collectionSize = collectionSize_;
maxBatchSize = maxBatchSize_;
payoutAddress = 0x890054c5755E148caAfc9bf54DD60175468b37C5;
signerAddress = _signerAddress;
currentSaleIndex = 0;
SaleConfig memory whitelist1SaleConfig = SaleConfig({
tierIndex: 1,
startTime: 1645920000,
endTime: 1645927200,
stageBatchSize: 1,
stageLimit: 22,
price: 0.8 ether,
stage: SaleStage.Whitelist
});
SaleConfig memory whitelist2SaleConfig = SaleConfig({
tierIndex: 2,
startTime: 1645927200,
endTime: 1645938000,
stageBatchSize: 1,
stageLimit: 140,
price: 1.2 ether,
stage: SaleStage.Whitelist
});
SaleConfig memory auctionSaleConfig = SaleConfig({
tierIndex: 1,
startTime: 1645941600,
endTime: 1645943700,
stageBatchSize: 1,
stageLimit: 159,
price: 3 ether,
stage: SaleStage.Auction
});
saleConfigs.push(whitelist1SaleConfig);
saleConfigs.push(whitelist2SaleConfig);
saleConfigs.push(auctionSaleConfig);
auctionConfig = AuctionConfig({
startPrice: 3 ether,
endPrice: 1.5 ether,
startTime: 1645941600,
priceCurveLength: 30 minutes,
dropPriceInterval: 5 minutes
});
}
modifier callerIsUser() {
require(tx.origin == msg.sender, "The caller is another contract");
_;
}
function whitelistMint(
uint256 quantity,
string memory _ticket,
bytes memory _signature
) external payable callerIsUser {
checkMintQuantity(quantity);
proceedSaleStageIfNeed();
require(isSaleStageOn(SaleStage.Whitelist), "sale has not started yet");
require(!ticketUsed[_ticket], "Ticket has already been used");
require(
isAuthorized(msg.sender, _ticket, _signature, signerAddress),
"Ticket is invalid"
);
SaleConfig memory config = saleConfigs[currentSaleIndex];
uint256 stageLimit = uint256(config.stageLimit);
require(totalSupply() + 1 <= stageLimit, "reached max supply");
uint256 price = uint256(config.price);
require(price != 0, "allowlist sale has not begun yet");
ticketUsed[_ticket] = true;
checkEnoughPrice(price);
_safeMint(msg.sender, quantity);
}
function mint(uint256 quantity) external payable callerIsUser {
checkMintQuantity(quantity);
proceedSaleStageIfNeed();
SaleConfig memory config = saleConfigs[currentSaleIndex];
uint256 stageLimit = uint256(config.stageLimit);
uint256 auctionBatchSize = uint256(config.stageBatchSize);
SaleStage stage = config.stage;
require(stage != SaleStage.Whitelist, "wrong stage");
require(isSaleStageOn(stage), "sale has not started yet");
require(
totalSupply() + quantity <= stageLimit,
"exceed auction mint amount"
);
require(quantity <= auctionBatchSize, "can not mint this many");
if (stage == SaleStage.Auction) {
uint256 totalCost = getAuctionPrice(block.timestamp) * quantity;
checkEnoughPrice(totalCost);
_safeMint(msg.sender, quantity);
} else {
uint256 publicPrice = uint256(config.price);
checkEnoughPrice(publicPrice * quantity);
_safeMint(msg.sender, quantity);
}
}
function checkMintQuantity(uint256 quantity) private view {
SaleConfig memory config = saleConfigs[currentSaleIndex];
uint256 stageBatchSize = uint256(config.stageBatchSize);
require(stageBatchSize >= quantity, "Exceed mint quantity limit.");
}
function proceedSaleStageIfNeed() private {
while (saleConfigs.length > currentSaleIndex + 1) {
SaleConfig memory config = saleConfigs[currentSaleIndex];
uint256 nextStageSaleEndTime = uint256(config.endTime);
if (block.timestamp >= nextStageSaleEndTime) {
currentSaleIndex += 1;
} else {
return;
}
}
}
function checkEnoughPrice(uint256 price) private {
require(msg.value >= price, "Need to send more ETH.");
}
function isSaleStageOn(SaleStage _stage) private view returns (bool) {
if (saleConfigs.length <= currentSaleIndex) {
return false;
}
SaleConfig memory config = saleConfigs[currentSaleIndex];
uint256 stagePrice = uint256(config.price);
uint256 stageSaleStartTime = uint256(config.startTime);
SaleStage currentStage = config.stage;
return
stagePrice != 0 &&
currentStage == _stage &&
block.timestamp >= stageSaleStartTime;
}
function getAuctionPrice(uint256 currentTimestamp)
public
view
returns (uint256)
{
AuctionConfig memory config = auctionConfig;
uint256 auctionStartTime = uint256(config.startTime);
uint256 auctionStartPrice = uint256(config.startPrice);
uint256 auctionEndPrice = uint256(config.endPrice);
uint256 auctionPriceCurveLength = uint256(config.priceCurveLength);
if (currentTimestamp < auctionStartTime) {
return auctionStartPrice;
}
if (currentTimestamp - auctionStartTime >= auctionPriceCurveLength) {
return auctionEndPrice;
} else {
uint256 auctionDropInterval = uint256(config.dropPriceInterval);
uint256 steps = (currentTimestamp - auctionStartTime) /
auctionDropInterval;
uint256 auctionDropPerStep = (auctionStartPrice - auctionEndPrice) /
(auctionPriceCurveLength / auctionDropInterval);
return auctionStartPrice - (steps * auctionDropPerStep);
}
}
function setSaleConfig(
uint256 _saleIndex,
uint16 _tierIndex,
uint32 _startTime,
uint32 _endTime,
uint32 _stageBatchSize,
uint64 _stageLimit,
uint64 _price,
SaleStage _stage
) external onlyOwner {
SaleConfig memory config = SaleConfig({
tierIndex: _tierIndex,
startTime: _startTime,
endTime: _endTime,
stageBatchSize: _stageBatchSize,
stageLimit: _stageLimit,
price: _price,
stage: _stage
});
if (_saleIndex >= saleConfigs.length) {
saleConfigs.push(config);
} else {
saleConfigs[_saleIndex] = config;
}
}
function setAuctionConfig(
uint64 auctionStartPriceWei,
uint64 auctionEndPriceWei,
uint32 _startTime,
uint32 auctionPriceCurveLength,
uint32 auctionDropInterval
) external onlyOwner {
auctionConfig = AuctionConfig(
auctionStartPriceWei,
auctionEndPriceWei,
_startTime,
auctionPriceCurveLength,
auctionDropInterval
);
}
function setCurrentSaleIndex(uint256 _currentSaleIndex) external onlyOwner {
currentSaleIndex = _currentSaleIndex;
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function setBaseURI(string calldata baseURI) external onlyOwner {
_baseTokenURI = baseURI;
}
function withdraw() external onlyOwner nonReentrant {
(bool success, ) = payable(payoutAddress).call{
value: address(this).balance
}("");
require(success, "Transfer failed.");
}
function numberMinted(address owner) public view returns (uint256) {
return _numberMinted(owner);
}
function getOwnershipData(uint256 tokenId)
external
view
returns (TokenOwnership memory)
{
return ownershipOf(tokenId);
}
function mintForAirdrop(address _to, uint256 _mintAmount)
external
onlyOwner
{
uint256 supply = totalSupply();
require(supply + _mintAmount <= collectionSize, "Exceed max supply");
if (msg.sender == owner()) {
_safeMint(_to, _mintAmount);
}
}
function setMaxBatchSize(uint256 _newMaxBatchSize) external onlyOwner {
maxBatchSize = _newMaxBatchSize;
}
function setCollectionSize(uint256 _newCollectionSize) external onlyOwner {
collectionSize = _newCollectionSize;
}
function isTicketAvailable(string memory ticket, bytes memory signature)
external
view
returns (bool)
{
return
!ticketUsed[ticket] &&
isAuthorized(msg.sender, ticket, signature, signerAddress);
}
function isAuthorized(
address sender,
string memory ticket,
bytes memory signature,
address _signerAddress
) private pure returns (bool) {
bytes32 hash = keccak256(abi.encodePacked(sender, ticket));
bytes32 signedHash = keccak256(
abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)
);
return _signerAddress == signedHash.recover(signature);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
*
* Does not support burning tokens to address(0).
*/
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
bool burned;
}
struct AddressData {
uint64 balance;
uint64 numberMinted;
uint64 numberBurned;
}
uint256 private _currentIndex;
uint128 internal _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
mapping(uint256 => TokenOwnership) private _ownerships;
// Mapping owner address to address data
mapping(address => AddressData) private _addressData;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
* `maxBatchSize` refers to how much a minter can mint at a time.
* `collectionSize_` refers to how many tokens are in the collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = 0;
_burnCounter = 0;
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than _currentIndex times
unchecked {
return _currentIndex - _burnCounter;
}
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
* This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
* It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
*/
function tokenByIndex(uint256 index)
public
view
override
returns (uint256)
{
uint256 numMintedSoFar = _currentIndex;
uint256 tokenIdsIdx;
// Counter overflow is impossible as the loop breaks when
// uint256 i is equal to another uint256 numMintedSoFar.
unchecked {
for (uint256 i; i < numMintedSoFar; i++) {
TokenOwnership memory ownership = _ownerships[i];
if (!ownership.burned) {
if (tokenIdsIdx == index) {
return i;
}
tokenIdsIdx++;
}
}
}
revert("token of owner out of index");
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
* This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
* It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
*/
function tokenOfOwnerByIndex(address owner, uint256 index)
public
view
override
returns (uint256)
{
require(index < balanceOf(owner), "owner index out of bounds");
uint256 numMintedSoFar = _currentIndex;
uint256 tokenIdsIdx;
address currOwnershipAddr;
// Counter overflow is impossible as the loop breaks when
// uint256 i is equal to another uint256 numMintedSoFar.
unchecked {
for (uint256 i; i < numMintedSoFar; i++) {
TokenOwnership memory ownership = _ownerships[i];
if (ownership.burned) {
continue;
}
if (ownership.addr != address(0)) {
currOwnershipAddr = ownership.addr;
}
if (currOwnershipAddr == owner) {
if (tokenIdsIdx == index) {
return i;
}
tokenIdsIdx++;
}
}
}
// Execution should never reach this point.
revert("token of owner out of index");
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC165, IERC165)
returns (bool)
{
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
interfaceId == type(IERC721Enumerable).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view override returns (uint256) {
require(owner != address(0), "balance query for the 0 address");
return uint256(_addressData[owner].balance);
}
function _numberMinted(address owner) internal view returns (uint256) {
require(owner != address(0), "minted query for 0 address");
return uint256(_addressData[owner].numberMinted);
}
function _numberBurned(address owner) internal view returns (uint256) {
require(owner != address(0), "burned query for 0 address");
return uint256(_addressData[owner].numberBurned);
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function ownershipOf(uint256 tokenId)
internal
view
returns (TokenOwnership memory)
{
uint256 curr = tokenId;
unchecked {
if (curr < _currentIndex) {
TokenOwnership memory ownership = _ownerships[curr];
if (!ownership.burned) {
if (ownership.addr != address(0)) {
return ownership;
}
// Invariant:
// There will always be an ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
while (true) {
curr--;
ownership = _ownerships[curr];
if (ownership.addr != address(0)) {
return ownership;
}
}
}
}
}
revert("unable to determine the owner");
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return ownershipOf(tokenId).addr;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(_exists(tokenId), "URI query for nonexistent token");
string memory baseURI = _baseURI();
return
bytes(baseURI).length != 0
? string(abi.encodePacked(baseURI, tokenId.toString()))
: "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public override {
address owner = ERC721A.ownerOf(tokenId);
require(to != owner, "approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"approve caller not owner/approved"
);
_approve(to, tokenId, owner);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId)
public
view
override
returns (address)
{
require(_exists(tokenId), "approved query for nonexistent");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved)
public
override
{
require(operator != _msgSender(), "ERC721A: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator)
public
view
virtual
override
returns (bool)
{
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
_transfer(from, to, tokenId);
require(
_checkOnERC721Received(from, to, tokenId, _data),
"transfer to non ERC721Receiver"
);
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return tokenId < _currentIndex && !_ownerships[tokenId].burned;
}
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, "");
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
_mint(to, quantity, _data, true);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal {
uint256 startTokenId = _currentIndex;
require(to != address(0), "mint to the zero address");
require(quantity != 0, "quantity must be > than 0");
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
// updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1
unchecked {
_addressData[to].balance += uint64(quantity);
_addressData[to].numberMinted += uint64(quantity);
_ownerships[startTokenId].addr = to;
_ownerships[startTokenId].startTimestamp = uint64(block.timestamp);
uint256 updatedIndex = startTokenId;
for (uint256 i; i < quantity; i++) {
emit Transfer(address(0), to, updatedIndex);
if (safe) {
require(
_checkOnERC721Received(
address(0),
to,
updatedIndex,
_data
),
"transfer to non ERC721Receiver"
);
}
updatedIndex++;
}
_currentIndex = uint128(updatedIndex);
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) private {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
isApprovedForAll(prevOwnership.addr, _msgSender()) ||
getApproved(tokenId) == _msgSender());
require(isApprovedOrOwner, "transfer isn't owner/approved");
require(prevOwnership.addr == from, "transfer from incorrect owner");
require(to != address(0), "ERC721A: transfer to the zero address");
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, prevOwnership.addr);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
unchecked {
_addressData[from].balance -= 1;
_addressData[to].balance += 1;
_ownerships[tokenId].addr = to;
_ownerships[tokenId].startTimestamp = uint64(block.timestamp);
// If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
if (_ownerships[nextTokenId].addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId < _currentIndex) {
_ownerships[nextTokenId].addr = prevOwnership.addr;
_ownerships[nextTokenId].startTimestamp = prevOwnership
.startTimestamp;
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
_beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, prevOwnership.addr);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
unchecked {
_addressData[prevOwnership.addr].balance -= 1;
_addressData[prevOwnership.addr].numberBurned += 1;
// Keep track of who burned the token, and the timestamp of burning.
_ownerships[tokenId].addr = prevOwnership.addr;
_ownerships[tokenId].startTimestamp = uint64(block.timestamp);
_ownerships[tokenId].burned = true;
// If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
if (_ownerships[nextTokenId].addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId < _currentIndex) {
_ownerships[nextTokenId].addr = prevOwnership.addr;
_ownerships[nextTokenId].startTimestamp = prevOwnership
.startTimestamp;
}
}
}
emit Transfer(prevOwnership.addr, address(0), tokenId);
_afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try
IERC721Receiver(to).onERC721Received(
_msgSender(),
from,
tokenId,
_data
)
returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("transfer to non ERC721Receiver");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": true,
"runs": 999999
},
"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":"uint256","name":"maxBatchSize_","type":"uint256"},{"internalType":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"address","name":"_signerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionConfig","outputs":[{"internalType":"uint64","name":"startPrice","type":"uint64"},{"internalType":"uint64","name":"endPrice","type":"uint64"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"priceCurveLength","type":"uint32"},{"internalType":"uint32","name":"dropPriceInterval","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSaleIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"currentTimestamp","type":"uint256"}],"name":"getAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"ticket","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isTicketAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintForAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","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":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"saleConfigs","outputs":[{"internalType":"uint16","name":"tierIndex","type":"uint16"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint32","name":"stageBatchSize","type":"uint32"},{"internalType":"uint64","name":"stageLimit","type":"uint64"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"enum APClubNFT.SaleStage","name":"stage","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"auctionStartPriceWei","type":"uint64"},{"internalType":"uint64","name":"auctionEndPriceWei","type":"uint64"},{"internalType":"uint32","name":"_startTime","type":"uint32"},{"internalType":"uint32","name":"auctionPriceCurveLength","type":"uint32"},{"internalType":"uint32","name":"auctionDropInterval","type":"uint32"}],"name":"setAuctionConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCollectionSize","type":"uint256"}],"name":"setCollectionSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_currentSaleIndex","type":"uint256"}],"name":"setCurrentSaleIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxBatchSize","type":"uint256"}],"name":"setMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleIndex","type":"uint256"},{"internalType":"uint16","name":"_tierIndex","type":"uint16"},{"internalType":"uint32","name":"_startTime","type":"uint32"},{"internalType":"uint32","name":"_endTime","type":"uint32"},{"internalType":"uint32","name":"_stageBatchSize","type":"uint32"},{"internalType":"uint64","name":"_stageLimit","type":"uint64"},{"internalType":"uint64","name":"_price","type":"uint64"},{"internalType":"enum APClubNFT.SaleStage","name":"_stage","type":"uint8"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"ticketUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"string","name":"_ticket","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162005ac238038062005ac283398101604081905262000034916200071c565b6040518060400160405280600b81526020016a10540810db1d588813919560aa1b81525060405180604001604052806002815260200161041560f41b8152506200008d620000876200062260201b60201c565b62000626565b8151620000a290600390602085019062000676565b508051620000b890600490602084019062000676565b505060006001818155600280546001600160801b03191690556009819055600d859055600e869055600a805473890054c5755e148caafc9bf54dd60175468b37c56001600160a01b031991821617909155600b80549091166001600160a01b038616179055600f8290556040805160e08101825282815263621abf00602082015263621adb2091810191909152606081019190915260166080820152670b1a2bc2ec50000060a082015290915060c081018290526040805160e0810182526002815263621adb20602082015263621b05509181019190915260016060820152608c60808201526710a741a46278000060a082015290915060009060c081018290526040805160e081018252600180825263621b1360602083015263621b1b949282019290925260608101829052609f60808201526729a2241af62c000060a08201529192506000919060c082015260108054600181018255600091909152845160008051602062005aa2833981519152909101805460208701516040880151606089015160808a015160a08b015161ffff1990951661ffff9097169690961765ffffffff000019166201000063ffffffff948516021763ffffffff60301b19166601000000000000928416929092029190911763ffffffff60501b19166a0100000000000000000000929091169190910217600160701b600160b01b031916600160701b6001600160401b039485160217600160b01b600160f01b031916600160b01b93909116929092029190911780825560c0860151929350859290829060ff60f01b1916600160f01b8360028111156200032457634e487b7160e01b600052602160045260246000fd5b02179055505060108054600181018255600091909152835160008051602062005aa28339815191529091018054602086015160408701516060880151608089015160a08a015161ffff1990951661ffff9097169690961765ffffffff000019166201000063ffffffff948516021763ffffffff60301b19166601000000000000928416929092029190911763ffffffff60501b19166a0100000000000000000000929091169190910217600160701b600160b01b031916600160701b6001600160401b039485160217600160b01b600160f01b031916600160b01b93909116929092029190911780825560c085015185935090829060ff60f01b1916600160f01b8360028111156200044657634e487b7160e01b600052602160045260246000fd5b02179055505060108054600181018255600091909152825160008051602062005aa28339815191529091018054602085015160408601516060870151608088015160a089015161ffff1990951661ffff9097169690961765ffffffff000019166201000063ffffffff948516021763ffffffff60301b19166601000000000000928416929092029190911763ffffffff60501b19166a0100000000000000000000929091169190910217600160701b600160b01b031916600160701b6001600160401b039485160217600160b01b600160f01b031916600160b01b93909116929092029190911780825560c084015184935090829060ff60f01b1916600160f01b8360028111156200056857634e487b7160e01b600052602160045260246000fd5b0217905550506040805160a0810182526729a2241af62c00008082526714d1120d7b160000602083015263621b136092820192909252610708606082015261012c608090910152601280546001600160401b031916909117600160401b600160801b0319166f14d1120d7b16000000000000000000001763ffffffff60801b1916630310d89b60851b1763ffffffff60a01b191660e160a31b1763ffffffff60c01b1916604b60c21b179055506200079f95505050505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620006849062000762565b90600052602060002090601f016020900481019282620006a85760008555620006f3565b82601f10620006c357805160ff1916838001178555620006f3565b82800160010185558215620006f3579182015b82811115620006f3578251825591602001919060010190620006d6565b506200070192915062000705565b5090565b5b8082111562000701576000815560010162000706565b60008060006060848603121562000731578283fd5b83516020850151604086015191945092506001600160a01b038116811462000757578182fd5b809150509250925092565b6002810460018216806200077757607f821691505b602082108114156200079957634e487b7160e01b600052602260045260246000fd5b50919050565b6152f380620007af6000396000f3fe6080604052600436106102bb5760003560e01c8063715018a61161016e578063aca8ffe7116100cb578063c87b56dd1161007f578063dc33e68111610064578063dc33e6811461088f578063e985e9c5146108af578063f2fde38b14610905576102bb565b8063c87b56dd1461084f578063d7d339701461086f576102bb565b8063baa5b6c5116100b0578063baa5b6c51461075e578063bb40613514610771578063bd14c3d014610839576102bb565b8063aca8ffe71461071e578063b88d4fde1461073e576102bb565b80639231ab2a11610122578063a0712d6811610107578063a0712d68146106cb578063a22cb465146106de578063a5cc1975146106fe576102bb565b80639231ab2a1461065257806395d89b41146106b6576102bb565b80638c2614e4116101535780638c2614e4146105e75780638da5cb5b14610607578063917d009e14610632576102bb565b8063715018a61461059757806378dc745e146105ac576102bb565b80633ccfd60b1161021c57806355f804b3116101d05780635b7633d0116101b55780635b7633d01461052a5780636352211e1461055757806370a0823114610577576102bb565b806355f804b3146104ea57806356b938541461050a576102bb565b806345c0f5331161020157806345c0f5331461048157806348b05c1c146104975780634f6ccce7146104ca576102bb565b80633ccfd60b1461044c57806342842e0e14610461576102bb565b806323b872dd116102735780632b26a6bf116102585780632b26a6bf146103ec5780632f745c591461040c578063308d30a01461042c576102bb565b806323b872dd146103b65780632913daa0146103d6576102bb565b8063081812fc116102a4578063081812fc14610317578063095ea7b31461035c57806318160ddd1461037e576102bb565b806301ffc9a7146102c057806306fdde03146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db366004614c3e565b610925565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b5061030a610a58565b6040516102ec919061501a565b34801561032357600080fd5b50610337610332366004614d77565b610aea565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102ec565b34801561036857600080fd5b5061037c610377366004614c15565b610b89565b005b34801561038a57600080fd5b506002546001546fffffffffffffffffffffffffffffffff90911690035b6040519081526020016102ec565b3480156103c257600080fd5b5061037c6103d1366004614b3a565b610cf1565b3480156103e257600080fd5b506103a8600e5481565b3480156103f857600080fd5b5061037c610407366004614d77565b610cfc565b34801561041857600080fd5b506103a8610427366004614c15565b610d82565b34801561043857600080fd5b5061037c610447366004614c15565b610f80565b34801561045857600080fd5b5061037c6110bd565b34801561046d57600080fd5b5061037c61047c366004614b3a565b611282565b34801561048d57600080fd5b506103a8600d5481565b3480156104a357600080fd5b506104b76104b2366004614d77565b61129d565b6040516102ec979695949392919061502d565b3480156104d657600080fd5b506103a86104e5366004614d77565b611350565b3480156104f657600080fd5b5061037c610505366004614c76565b611413565b34801561051657600080fd5b506102e0610525366004614d16565b6114a0565b34801561053657600080fd5b50600b546103379073ffffffffffffffffffffffffffffffffffffffff1681565b34801561056357600080fd5b50610337610572366004614d77565b6114fc565b34801561058357600080fd5b506103a8610592366004614aee565b61150e565b3480156105a357600080fd5b5061037c6115c0565b3480156105b857600080fd5b506102e06105c7366004614ce3565b805160208183018101805160118252928201919093012091525460ff1681565b3480156105f357600080fd5b5061037c610602366004614df9565b61164d565b34801561061357600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610337565b34801561063e57600080fd5b506103a861064d366004614d77565b611bf2565b34801561065e57600080fd5b5061067261066d366004614d77565b611d27565b60408051825173ffffffffffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff1690820152918101511515908201526060016102ec565b3480156106c257600080fd5b5061030a611d4d565b61037c6106d9366004614d77565b611d5c565b3480156106ea57600080fd5b5061037c6106f9366004614bdb565b612235565b34801561070a57600080fd5b5061037c610719366004614e97565b612366565b34801561072a57600080fd5b5061037c610739366004614d77565b612549565b34801561074a57600080fd5b5061037c610759366004614b75565b6125cf565b61037c61076c366004614d8f565b612652565b34801561077d57600080fd5b506012546107fa9067ffffffffffffffff808216916801000000000000000081049091169063ffffffff700100000000000000000000000000000000820481169174010000000000000000000000000000000000000000810482169178010000000000000000000000000000000000000000000000009091041685565b6040805167ffffffffffffffff968716815295909416602086015263ffffffff928316938501939093528116606084015216608082015260a0016102ec565b34801561084557600080fd5b506103a8600f5481565b34801561085b57600080fd5b5061030a61086a366004614d77565b612b4a565b34801561087b57600080fd5b5061037c61088a366004614d77565b612c17565b34801561089b57600080fd5b506103a86108aa366004614aee565b612c9d565b3480156108bb57600080fd5b506102e06108ca366004614b08565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561091157600080fd5b5061037c610920366004614aee565b612ca8565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109b857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a0457507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a5057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b606060038054610a6790615161565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9390615161565b8015610ae05780601f10610ab557610100808354040283529160200191610ae0565b820191906000526020600020905b815481529060010190602001808311610ac357829003601f168201915b5050505050905090565b6000610af582612dd8565b610b60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f617070726f76656420717565727920666f72206e6f6e6578697374656e74000060448201526064015b60405180910390fd5b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610b94826114fc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f617070726f76616c20746f2063757272656e74206f776e6572000000000000006044820152606401610b57565b3373ffffffffffffffffffffffffffffffffffffffff82161480610c555750610c5581336108ca565b610ce1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f617070726f76652063616c6c6572206e6f74206f776e65722f617070726f766560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b57565b610cec838383612e1d565b505050565b610cec838383612e9e565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600e55565b6000610d8d8361150e565b8210610df5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f776e657220696e646578206f7574206f6620626f756e6473000000000000006044820152606401610b57565b600154600080805b83811015610f17576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161580159282019290925290610e9c5750610f0f565b805173ffffffffffffffffffffffffffffffffffffffff1615610ebe57805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f0d5786841415610f0657509350610f7a92505050565b6001909301925b505b600101610dfd565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f746f6b656e206f66206f776e6572206f7574206f6620696e64657800000000006044820152606401610b57565b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611001576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600254600154600d546fffffffffffffffffffffffffffffffff90921690039061102b83836150b5565b1115611093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f457863656564206d617820737570706c790000000000000000000000000000006044820152606401610b57565b60005473ffffffffffffffffffffffffffffffffffffffff16331415610cec57610cec8383613303565b60005473ffffffffffffffffffffffffffffffffffffffff16331461113e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600260095414156111ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b57565b6002600955600a5460405160009173ffffffffffffffffffffffffffffffffffffffff169047908381818185875af1925050503d806000811461120a576040519150601f19603f3d011682016040523d82523d6000602084013e61120f565b606091505b505090508061127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b57565b506001600955565b610cec838383604051806020016040528060008152506125cf565b601081815481106112ad57600080fd5b60009182526020909120015461ffff8116915063ffffffff620100008204811691660100000000000081048216916a01000000000000000000008204169067ffffffffffffffff6e010000000000000000000000000000820481169176010000000000000000000000000000000000000000000081049091169060ff7e010000000000000000000000000000000000000000000000000000000000009091041687565b60015460009081805b82811015610f17576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061140a578583141561140357509250610a53915050565b6001909201915b50600101611359565b60005473ffffffffffffffffffffffffffffffffffffffff163314611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b610cec600c8383614942565b60006011836040516114b29190614f90565b9081526040519081900360200190205460ff161580156114f55750600b546114f59033908590859073ffffffffffffffffffffffffffffffffffffffff16613321565b9392505050565b60006115078261340b565b5192915050565b600073ffffffffffffffffffffffffffffffffffffffff821661158d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f62616c616e636520717565727920666f722074686520302061646472657373006044820152606401610b57565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205467ffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff163314611641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b61164b600061360e565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b60006040518060e001604052808961ffff1681526020018863ffffffff1681526020018763ffffffff1681526020018663ffffffff1681526020018567ffffffffffffffff1681526020018467ffffffffffffffff168152602001836002811115611762577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b905260105490915089106119a5576010805460018101825560009190915281517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6729091018054602084015160408501516060860151608087015160a08801517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090951661ffff909716969096177fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff166201000063ffffffff94851602177fffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffffff16660100000000000092841692909202919091177fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff166a01000000000000000000009290911691909102177fffffffffffffffffffff0000000000000000ffffffffffffffffffffffffffff166e01000000000000000000000000000067ffffffffffffffff94851602177fffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffff1676010000000000000000000000000000000000000000000093909116929092029190911780825560c083015183929182907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167e01000000000000000000000000000000000000000000000000000000000000836002811115611999577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505050611be7565b8060108a815481106119e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290208351910180549284015160408501516060860151608087015160a08801517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090971661ffff909616959095177fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff166201000063ffffffff94851602177fffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffffff16660100000000000092841692909202919091177fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff166a01000000000000000000009290911691909102177fffffffffffffffffffff0000000000000000ffffffffffffffffffffffffffff166e01000000000000000000000000000067ffffffffffffffff93841602177fffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffff1676010000000000000000000000000000000000000000000092909316919091029190911780825560c08301519082907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167e01000000000000000000000000000000000000000000000000000000000000836002811115611bdf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555050505b505050505050505050565b6040805160a08101825260125467ffffffffffffffff8082168084526801000000000000000083049091166020840181905263ffffffff7001000000000000000000000000000000008404811695850186905274010000000000000000000000000000000000000000840481166060860181905278010000000000000000000000000000000000000000000000009094041660808501526000949283871015611ca2578295505050505050610a53565b80611cad858961511e565b10611cbe57509350610a5392505050565b608085015163ffffffff16600081611cd6878b61511e565b611ce091906150cd565b90506000611cee83856150cd565b611cf8868861511e565b611d0291906150cd565b9050611d0e81836150e1565b611d18908761511e565b98505050505050505050610a53565b6040805160608101825260008082526020820181905291810191909152610a508261340b565b606060048054610a6790615161565b323314611dc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b57565b611dce81613683565b611dd661387a565b60006010600f5481548110611e14577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e01000000000000000000000000000000000000000000000000000000000000909104166002811115611f1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115611f52577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052506080810151606082015160c083015192935067ffffffffffffffff9091169163ffffffff909116906000816002811115611fb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612020576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f77726f6e672073746167650000000000000000000000000000000000000000006044820152606401610b57565b61202981613a51565b61208f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610b57565b82856120b36002546001546fffffffffffffffffffffffffffffffff909116900390565b6120bd91906150b5565b1115612125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6578636565642061756374696f6e206d696e7420616d6f756e740000000000006044820152606401610b57565b8185111561218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610b57565b60018160028111156121ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612201576000856121dc42611bf2565b6121e691906150e1565b90506121f181613ca2565b6121fb3387613303565b5061222e565b60a084015167ffffffffffffffff1661222261221d87836150e1565b613ca2565b61222c3387613303565b505b5050505050565b73ffffffffffffffffffffffffffffffffffffffff82163314156122b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b57565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925290912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168415151790559073ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161235a911515815260200190565b60405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146123e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b6040805160a08101825267ffffffffffffffff968716808252959096166020870181905263ffffffff94851691870182905292841660608701819052919093166080909501859052601280547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000169094177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff1668010000000000000000909202919091177fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff16700100000000000000000000000000000000909202919091177fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000909102177fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff167801000000000000000000000000000000000000000000000000909202919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146125ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600d55565b6125da848484612e9e565b6125e684848484613d0c565b61264c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b57565b50505050565b3233146126bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b57565b6126c483613683565b6126cc61387a565b6126d66000613a51565b61273c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610b57565b60118260405161274c9190614f90565b9081526040519081900360200190205460ff16156127c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5469636b65742068617320616c7265616479206265656e2075736564000000006044820152606401610b57565b600b546127ee9033908490849073ffffffffffffffffffffffffffffffffffffffff16613321565b612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f5469636b657420697320696e76616c69640000000000000000000000000000006044820152606401610b57565b60006010600f5481548110612892577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e01000000000000000000000000000000000000000000000000000000000000909104166002811115612998577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60028111156129d0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b905250608081015190915067ffffffffffffffff1680612a086002546001546fffffffffffffffffffffffffffffffff909116900390565b612a139060016150b5565b1115612a7b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b57565b60a082015167ffffffffffffffff1680612af1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f616c6c6f776c6973742073616c6520686173206e6f7420626567756e207965746044820152606401610b57565b6001601186604051612b039190614f90565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090921691909117905561222281613ca2565b6060612b5582612dd8565b612bbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b57565b6000612bc5613ee2565b9050805160001415612be657604051806020016040528060008152506114f5565b80612bf084613ef1565b604051602001612c01929190614fac565b6040516020818303038152906040529392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314612c98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600f55565b6000610a5082614072565b60005473ffffffffffffffffffffffffffffffffffffffff163314612d29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b73ffffffffffffffffffffffffffffffffffffffff8116612dcc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b57565b612dd58161360e565b50565b600060015482108015610a505750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612ea98261340b565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612ef157508151612ef190336108ca565b80612f19575033612f0184610aea565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612f82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7472616e736665722069736e2774206f776e65722f617070726f7665640000006044820152606401610b57565b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461301b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7472616e736665722066726f6d20696e636f7272656374206f776e65720000006044820152606401610b57565b73ffffffffffffffffffffffffffffffffffffffff84166130be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b57565b6130ce6000848460000151612e1d565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169094177fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000004290921691909102179092559086018083529120549091166132a2576001548110156132a2578251600082815260056020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff000000000000000000000000000000000000000090931692909217929092161790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461222e565b61331d828260405180602001604052806000815250614130565b5050565b6000808585604051602001613337929190614f45565b60405160208183030381529060405280519060200120905060008160405160200161338e91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012090506133d0818661413d565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614925050505b949350505050565b604080516060810182526000808252602082018190529181019190915260015482908110156135ac576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161515918101829052906135aa57805173ffffffffffffffffffffffffffffffffffffffff16156134e9579150610a539050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff16151592810192909252156135a5579150610a539050565b6134e9565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f756e61626c6520746f2064657465726d696e6520746865206f776e65720000006044820152606401610b57565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006010600f54815481106136c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e010000000000000000000000000000000000000000000000000000000000009091041660028111156137c7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60028111156137ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b905250606081015190915063ffffffff1682811015610cec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f457863656564206d696e74207175616e74697479206c696d69742e00000000006044820152606401610b57565b600f546138889060016150b5565b601054111561164b5760006010600f54815481106138cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e010000000000000000000000000000000000000000000000000000000000009091041660028111156139d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115613a0d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b905250604081015190915063ffffffff16428111613a43576001600f6000828254613a3891906150b5565b90915550613a4a9050565b505061164b565b505061387a565b600f5460105460009110613a6757506000610a53565b60006010600f5481548110613aa5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e01000000000000000000000000000000000000000000000000000000000000909104166002811115613bab577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115613be3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b90525060a0810151602082015160c083015192935067ffffffffffffffff9091169163ffffffff909116908215801590613c8c5750856002811115613c51577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816002811115613c8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b8015613c985750814210155b9695505050505050565b80341015612dd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b57565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613eda576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613d83903390899088908890600401614fdb565b602060405180830381600087803b158015613d9d57600080fd5b505af1925050508015613deb575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613de891810190614c5a565b60015b613e8f573d808015613e19576040519150601f19603f3d011682016040523d82523d6000602084013e613e1e565b606091505b508051613e87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b57565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613403565b506001613403565b6060600c8054610a6790615161565b606081613f32575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610a53565b8160005b8115613f5c5780613f46816151b5565b9150613f559050600a836150cd565b9150613f36565b60008167ffffffffffffffff811115613f9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613fc8576020820181803683370190505b5090505b841561340357613fdd60018361511e565b9150613fea600a866151ee565b613ff59060306150b5565b60f81b818381518110614031577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061406b600a866150cd565b9450613fcc565b600073ffffffffffffffffffffffffffffffffffffffff82166140f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d696e74656420717565727920666f72203020616464726573730000000000006044820152606401610b57565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205468010000000000000000900467ffffffffffffffff1690565b610cec8383836001614161565b600080600061414c858561444a565b91509150614159816144ba565b509392505050565b60015473ffffffffffffffffffffffffffffffffffffffff85166141e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6d696e7420746f20746865207a65726f206164647265737300000000000000006044820152606401610b57565b83614248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7175616e74697479206d757374206265203e207468616e2030000000000000006044820152606401610b57565b73ffffffffffffffffffffffffffffffffffffffff8516600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000821667ffffffffffffffff9283168c01831617908116680100000000000000009182900483168c018316909102179091558584526005909252822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169093177fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000042909216919091021790915581905b8581101561442f57604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315614423576143bd6000888488613d0c565b614423576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b57565b6001918201910161435d565b506fffffffffffffffffffffffffffffffff1660015561222e565b6000808251604114156144815760208301516040840151606085015160001a614475878285856147d8565b945094505050506144b3565b8251604014156144ab57602083015160408401516144a08683836148f0565b9350935050506144b3565b506000905060025b9250929050565b60008160048111156144f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561450057612dd5565b600181600481111561453b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156145a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b57565b60028160048111156145de577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415614646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b57565b6003816004811115614681577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561470f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b57565b600481600481111561474a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612dd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b57565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561480f57506000905060036148e7565b8460ff16601b1415801561482757508460ff16601c14155b1561483857506000905060046148e7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561488c573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166148e0576000600192509250506148e7565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161492660ff86901c601b6150b5565b9050614934878288856147d8565b935093505050935093915050565b82805461494e90615161565b90600052602060002090601f01602090048101928261497057600085556149d4565b82601f106149a7578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556149d4565b828001600101855582156149d4579182015b828111156149d45782358255916020019190600101906149b9565b506149e09291506149e4565b5090565b5b808211156149e057600081556001016149e5565b803573ffffffffffffffffffffffffffffffffffffffff81168114610a5357600080fd5b600082601f830112614a2d578081fd5b813567ffffffffffffffff80821115614a4857614a48615260565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715614a8e57614a8e615260565b81604052838152866020858801011115614aa6578485fd5b8360208701602083013792830160200193909352509392505050565b803563ffffffff81168114610a5357600080fd5b803567ffffffffffffffff81168114610a5357600080fd5b600060208284031215614aff578081fd5b6114f5826149f9565b60008060408385031215614b1a578081fd5b614b23836149f9565b9150614b31602084016149f9565b90509250929050565b600080600060608486031215614b4e578081fd5b614b57846149f9565b9250614b65602085016149f9565b9150604084013590509250925092565b60008060008060808587031215614b8a578081fd5b614b93856149f9565b9350614ba1602086016149f9565b925060408501359150606085013567ffffffffffffffff811115614bc3578182fd5b614bcf87828801614a1d565b91505092959194509250565b60008060408385031215614bed578182fd5b614bf6836149f9565b915060208301358015158114614c0a578182fd5b809150509250929050565b60008060408385031215614c27578182fd5b614c30836149f9565b946020939093013593505050565b600060208284031215614c4f578081fd5b81356114f58161528f565b600060208284031215614c6b578081fd5b81516114f58161528f565b60008060208385031215614c88578182fd5b823567ffffffffffffffff80821115614c9f578384fd5b818501915085601f830112614cb2578384fd5b813581811115614cc0578485fd5b866020828501011115614cd1578485fd5b60209290920196919550909350505050565b600060208284031215614cf4578081fd5b813567ffffffffffffffff811115614d0a578182fd5b61340384828501614a1d565b60008060408385031215614d28578182fd5b823567ffffffffffffffff80821115614d3f578384fd5b614d4b86838701614a1d565b93506020850135915080821115614d60578283fd5b50614d6d85828601614a1d565b9150509250929050565b600060208284031215614d88578081fd5b5035919050565b600080600060608486031215614da3578081fd5b83359250602084013567ffffffffffffffff80821115614dc1578283fd5b614dcd87838801614a1d565b93506040860135915080821115614de2578283fd5b50614def86828701614a1d565b9150509250925092565b600080600080600080600080610100898b031215614e15578586fd5b88359750602089013561ffff81168114614e2d578687fd5b9650614e3b60408a01614ac2565b9550614e4960608a01614ac2565b9450614e5760808a01614ac2565b9350614e6560a08a01614ad6565b9250614e7360c08a01614ad6565b915060e089013560038110614e86578182fd5b809150509295985092959890939650565b600080600080600060a08688031215614eae578283fd5b614eb786614ad6565b9450614ec560208701614ad6565b9350614ed360408701614ac2565b9250614ee160608701614ac2565b9150614eef60808701614ac2565b90509295509295909350565b60008151808452614f13816020860160208601615135565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60007fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1682528251614f82816014850160208701615135565b919091016014019392505050565b60008251614fa2818460208701615135565b9190910192915050565b60008351614fbe818460208801615135565b835190830190614fd2818360208801615135565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613c986080830184614efb565b6000602082526114f56020830184614efb565b61ffff8816815263ffffffff878116602083015286811660408301528516606082015267ffffffffffffffff8481166080830152831660a082015260e08101600383106150a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8260c083015298975050505050505050565b600082198211156150c8576150c8615202565b500190565b6000826150dc576150dc615231565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561511957615119615202565b500290565b60008282101561513057615130615202565b500390565b60005b83811015615150578181015183820152602001615138565b8381111561264c5750506000910152565b60028104600182168061517557607f821691505b602082108114156151af577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151e7576151e7615202565b5060010190565b6000826151fd576151fd615231565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612dd557600080fdfea2646970667358221220a2b89b51e7d92cad51a6d4a721a1750b419fca75be703aa99f1b31ee725e185764736f6c634300080200331b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000009f0000000000000000000000009f4b0d94585a409d6070a1180331eac925231c3e
Deployed Bytecode
0x6080604052600436106102bb5760003560e01c8063715018a61161016e578063aca8ffe7116100cb578063c87b56dd1161007f578063dc33e68111610064578063dc33e6811461088f578063e985e9c5146108af578063f2fde38b14610905576102bb565b8063c87b56dd1461084f578063d7d339701461086f576102bb565b8063baa5b6c5116100b0578063baa5b6c51461075e578063bb40613514610771578063bd14c3d014610839576102bb565b8063aca8ffe71461071e578063b88d4fde1461073e576102bb565b80639231ab2a11610122578063a0712d6811610107578063a0712d68146106cb578063a22cb465146106de578063a5cc1975146106fe576102bb565b80639231ab2a1461065257806395d89b41146106b6576102bb565b80638c2614e4116101535780638c2614e4146105e75780638da5cb5b14610607578063917d009e14610632576102bb565b8063715018a61461059757806378dc745e146105ac576102bb565b80633ccfd60b1161021c57806355f804b3116101d05780635b7633d0116101b55780635b7633d01461052a5780636352211e1461055757806370a0823114610577576102bb565b806355f804b3146104ea57806356b938541461050a576102bb565b806345c0f5331161020157806345c0f5331461048157806348b05c1c146104975780634f6ccce7146104ca576102bb565b80633ccfd60b1461044c57806342842e0e14610461576102bb565b806323b872dd116102735780632b26a6bf116102585780632b26a6bf146103ec5780632f745c591461040c578063308d30a01461042c576102bb565b806323b872dd146103b65780632913daa0146103d6576102bb565b8063081812fc116102a4578063081812fc14610317578063095ea7b31461035c57806318160ddd1461037e576102bb565b806301ffc9a7146102c057806306fdde03146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db366004614c3e565b610925565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b5061030a610a58565b6040516102ec919061501a565b34801561032357600080fd5b50610337610332366004614d77565b610aea565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102ec565b34801561036857600080fd5b5061037c610377366004614c15565b610b89565b005b34801561038a57600080fd5b506002546001546fffffffffffffffffffffffffffffffff90911690035b6040519081526020016102ec565b3480156103c257600080fd5b5061037c6103d1366004614b3a565b610cf1565b3480156103e257600080fd5b506103a8600e5481565b3480156103f857600080fd5b5061037c610407366004614d77565b610cfc565b34801561041857600080fd5b506103a8610427366004614c15565b610d82565b34801561043857600080fd5b5061037c610447366004614c15565b610f80565b34801561045857600080fd5b5061037c6110bd565b34801561046d57600080fd5b5061037c61047c366004614b3a565b611282565b34801561048d57600080fd5b506103a8600d5481565b3480156104a357600080fd5b506104b76104b2366004614d77565b61129d565b6040516102ec979695949392919061502d565b3480156104d657600080fd5b506103a86104e5366004614d77565b611350565b3480156104f657600080fd5b5061037c610505366004614c76565b611413565b34801561051657600080fd5b506102e0610525366004614d16565b6114a0565b34801561053657600080fd5b50600b546103379073ffffffffffffffffffffffffffffffffffffffff1681565b34801561056357600080fd5b50610337610572366004614d77565b6114fc565b34801561058357600080fd5b506103a8610592366004614aee565b61150e565b3480156105a357600080fd5b5061037c6115c0565b3480156105b857600080fd5b506102e06105c7366004614ce3565b805160208183018101805160118252928201919093012091525460ff1681565b3480156105f357600080fd5b5061037c610602366004614df9565b61164d565b34801561061357600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610337565b34801561063e57600080fd5b506103a861064d366004614d77565b611bf2565b34801561065e57600080fd5b5061067261066d366004614d77565b611d27565b60408051825173ffffffffffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff1690820152918101511515908201526060016102ec565b3480156106c257600080fd5b5061030a611d4d565b61037c6106d9366004614d77565b611d5c565b3480156106ea57600080fd5b5061037c6106f9366004614bdb565b612235565b34801561070a57600080fd5b5061037c610719366004614e97565b612366565b34801561072a57600080fd5b5061037c610739366004614d77565b612549565b34801561074a57600080fd5b5061037c610759366004614b75565b6125cf565b61037c61076c366004614d8f565b612652565b34801561077d57600080fd5b506012546107fa9067ffffffffffffffff808216916801000000000000000081049091169063ffffffff700100000000000000000000000000000000820481169174010000000000000000000000000000000000000000810482169178010000000000000000000000000000000000000000000000009091041685565b6040805167ffffffffffffffff968716815295909416602086015263ffffffff928316938501939093528116606084015216608082015260a0016102ec565b34801561084557600080fd5b506103a8600f5481565b34801561085b57600080fd5b5061030a61086a366004614d77565b612b4a565b34801561087b57600080fd5b5061037c61088a366004614d77565b612c17565b34801561089b57600080fd5b506103a86108aa366004614aee565b612c9d565b3480156108bb57600080fd5b506102e06108ca366004614b08565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561091157600080fd5b5061037c610920366004614aee565b612ca8565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109b857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a0457507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a5057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b606060038054610a6790615161565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9390615161565b8015610ae05780601f10610ab557610100808354040283529160200191610ae0565b820191906000526020600020905b815481529060010190602001808311610ac357829003601f168201915b5050505050905090565b6000610af582612dd8565b610b60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f617070726f76656420717565727920666f72206e6f6e6578697374656e74000060448201526064015b60405180910390fd5b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610b94826114fc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f617070726f76616c20746f2063757272656e74206f776e6572000000000000006044820152606401610b57565b3373ffffffffffffffffffffffffffffffffffffffff82161480610c555750610c5581336108ca565b610ce1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f617070726f76652063616c6c6572206e6f74206f776e65722f617070726f766560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b57565b610cec838383612e1d565b505050565b610cec838383612e9e565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600e55565b6000610d8d8361150e565b8210610df5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f776e657220696e646578206f7574206f6620626f756e6473000000000000006044820152606401610b57565b600154600080805b83811015610f17576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161580159282019290925290610e9c5750610f0f565b805173ffffffffffffffffffffffffffffffffffffffff1615610ebe57805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f0d5786841415610f0657509350610f7a92505050565b6001909301925b505b600101610dfd565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f746f6b656e206f66206f776e6572206f7574206f6620696e64657800000000006044820152606401610b57565b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611001576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600254600154600d546fffffffffffffffffffffffffffffffff90921690039061102b83836150b5565b1115611093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f457863656564206d617820737570706c790000000000000000000000000000006044820152606401610b57565b60005473ffffffffffffffffffffffffffffffffffffffff16331415610cec57610cec8383613303565b60005473ffffffffffffffffffffffffffffffffffffffff16331461113e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600260095414156111ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b57565b6002600955600a5460405160009173ffffffffffffffffffffffffffffffffffffffff169047908381818185875af1925050503d806000811461120a576040519150601f19603f3d011682016040523d82523d6000602084013e61120f565b606091505b505090508061127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b57565b506001600955565b610cec838383604051806020016040528060008152506125cf565b601081815481106112ad57600080fd5b60009182526020909120015461ffff8116915063ffffffff620100008204811691660100000000000081048216916a01000000000000000000008204169067ffffffffffffffff6e010000000000000000000000000000820481169176010000000000000000000000000000000000000000000081049091169060ff7e010000000000000000000000000000000000000000000000000000000000009091041687565b60015460009081805b82811015610f17576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061140a578583141561140357509250610a53915050565b6001909201915b50600101611359565b60005473ffffffffffffffffffffffffffffffffffffffff163314611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b610cec600c8383614942565b60006011836040516114b29190614f90565b9081526040519081900360200190205460ff161580156114f55750600b546114f59033908590859073ffffffffffffffffffffffffffffffffffffffff16613321565b9392505050565b60006115078261340b565b5192915050565b600073ffffffffffffffffffffffffffffffffffffffff821661158d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f62616c616e636520717565727920666f722074686520302061646472657373006044820152606401610b57565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205467ffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff163314611641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b61164b600061360e565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b60006040518060e001604052808961ffff1681526020018863ffffffff1681526020018763ffffffff1681526020018663ffffffff1681526020018567ffffffffffffffff1681526020018467ffffffffffffffff168152602001836002811115611762577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b905260105490915089106119a5576010805460018101825560009190915281517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6729091018054602084015160408501516060860151608087015160a08801517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090951661ffff909716969096177fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff166201000063ffffffff94851602177fffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffffff16660100000000000092841692909202919091177fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff166a01000000000000000000009290911691909102177fffffffffffffffffffff0000000000000000ffffffffffffffffffffffffffff166e01000000000000000000000000000067ffffffffffffffff94851602177fffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffff1676010000000000000000000000000000000000000000000093909116929092029190911780825560c083015183929182907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167e01000000000000000000000000000000000000000000000000000000000000836002811115611999577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505050611be7565b8060108a815481106119e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290208351910180549284015160408501516060860151608087015160a08801517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090971661ffff909616959095177fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff166201000063ffffffff94851602177fffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffffff16660100000000000092841692909202919091177fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff166a01000000000000000000009290911691909102177fffffffffffffffffffff0000000000000000ffffffffffffffffffffffffffff166e01000000000000000000000000000067ffffffffffffffff93841602177fffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffff1676010000000000000000000000000000000000000000000092909316919091029190911780825560c08301519082907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167e01000000000000000000000000000000000000000000000000000000000000836002811115611bdf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555050505b505050505050505050565b6040805160a08101825260125467ffffffffffffffff8082168084526801000000000000000083049091166020840181905263ffffffff7001000000000000000000000000000000008404811695850186905274010000000000000000000000000000000000000000840481166060860181905278010000000000000000000000000000000000000000000000009094041660808501526000949283871015611ca2578295505050505050610a53565b80611cad858961511e565b10611cbe57509350610a5392505050565b608085015163ffffffff16600081611cd6878b61511e565b611ce091906150cd565b90506000611cee83856150cd565b611cf8868861511e565b611d0291906150cd565b9050611d0e81836150e1565b611d18908761511e565b98505050505050505050610a53565b6040805160608101825260008082526020820181905291810191909152610a508261340b565b606060048054610a6790615161565b323314611dc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b57565b611dce81613683565b611dd661387a565b60006010600f5481548110611e14577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e01000000000000000000000000000000000000000000000000000000000000909104166002811115611f1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115611f52577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052506080810151606082015160c083015192935067ffffffffffffffff9091169163ffffffff909116906000816002811115611fb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612020576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f77726f6e672073746167650000000000000000000000000000000000000000006044820152606401610b57565b61202981613a51565b61208f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610b57565b82856120b36002546001546fffffffffffffffffffffffffffffffff909116900390565b6120bd91906150b5565b1115612125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6578636565642061756374696f6e206d696e7420616d6f756e740000000000006044820152606401610b57565b8185111561218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610b57565b60018160028111156121ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612201576000856121dc42611bf2565b6121e691906150e1565b90506121f181613ca2565b6121fb3387613303565b5061222e565b60a084015167ffffffffffffffff1661222261221d87836150e1565b613ca2565b61222c3387613303565b505b5050505050565b73ffffffffffffffffffffffffffffffffffffffff82163314156122b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b57565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925290912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168415151790559073ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161235a911515815260200190565b60405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146123e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b6040805160a08101825267ffffffffffffffff968716808252959096166020870181905263ffffffff94851691870182905292841660608701819052919093166080909501859052601280547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000169094177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff1668010000000000000000909202919091177fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff16700100000000000000000000000000000000909202919091177fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000909102177fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff167801000000000000000000000000000000000000000000000000909202919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146125ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600d55565b6125da848484612e9e565b6125e684848484613d0c565b61264c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b57565b50505050565b3233146126bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b57565b6126c483613683565b6126cc61387a565b6126d66000613a51565b61273c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610b57565b60118260405161274c9190614f90565b9081526040519081900360200190205460ff16156127c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5469636b65742068617320616c7265616479206265656e2075736564000000006044820152606401610b57565b600b546127ee9033908490849073ffffffffffffffffffffffffffffffffffffffff16613321565b612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f5469636b657420697320696e76616c69640000000000000000000000000000006044820152606401610b57565b60006010600f5481548110612892577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e01000000000000000000000000000000000000000000000000000000000000909104166002811115612998577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60028111156129d0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b905250608081015190915067ffffffffffffffff1680612a086002546001546fffffffffffffffffffffffffffffffff909116900390565b612a139060016150b5565b1115612a7b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b57565b60a082015167ffffffffffffffff1680612af1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f616c6c6f776c6973742073616c6520686173206e6f7420626567756e207965746044820152606401610b57565b6001601186604051612b039190614f90565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090921691909117905561222281613ca2565b6060612b5582612dd8565b612bbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b57565b6000612bc5613ee2565b9050805160001415612be657604051806020016040528060008152506114f5565b80612bf084613ef1565b604051602001612c01929190614fac565b6040516020818303038152906040529392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314612c98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b600f55565b6000610a5082614072565b60005473ffffffffffffffffffffffffffffffffffffffff163314612d29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b57565b73ffffffffffffffffffffffffffffffffffffffff8116612dcc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b57565b612dd58161360e565b50565b600060015482108015610a505750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612ea98261340b565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612ef157508151612ef190336108ca565b80612f19575033612f0184610aea565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612f82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7472616e736665722069736e2774206f776e65722f617070726f7665640000006044820152606401610b57565b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461301b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7472616e736665722066726f6d20696e636f7272656374206f776e65720000006044820152606401610b57565b73ffffffffffffffffffffffffffffffffffffffff84166130be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b57565b6130ce6000848460000151612e1d565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169094177fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000004290921691909102179092559086018083529120549091166132a2576001548110156132a2578251600082815260056020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff000000000000000000000000000000000000000090931692909217929092161790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461222e565b61331d828260405180602001604052806000815250614130565b5050565b6000808585604051602001613337929190614f45565b60405160208183030381529060405280519060200120905060008160405160200161338e91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012090506133d0818661413d565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614925050505b949350505050565b604080516060810182526000808252602082018190529181019190915260015482908110156135ac576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161515918101829052906135aa57805173ffffffffffffffffffffffffffffffffffffffff16156134e9579150610a539050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff16151592810192909252156135a5579150610a539050565b6134e9565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f756e61626c6520746f2064657465726d696e6520746865206f776e65720000006044820152606401610b57565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006010600f54815481106136c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e010000000000000000000000000000000000000000000000000000000000009091041660028111156137c7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60028111156137ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b905250606081015190915063ffffffff1682811015610cec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f457863656564206d696e74207175616e74697479206c696d69742e00000000006044820152606401610b57565b600f546138889060016150b5565b601054111561164b5760006010600f54815481106138cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e010000000000000000000000000000000000000000000000000000000000009091041660028111156139d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115613a0d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b905250604081015190915063ffffffff16428111613a43576001600f6000828254613a3891906150b5565b90915550613a4a9050565b505061164b565b505061387a565b600f5460105460009110613a6757506000610a53565b60006010600f5481548110613aa5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290206040805160e08101825291909201805461ffff8116835263ffffffff620100008204811695840195909552660100000000000081048516938301939093526a01000000000000000000008304909316606082015267ffffffffffffffff6e01000000000000000000000000000083048116608083015276010000000000000000000000000000000000000000000083041660a0820152919060c083019060ff7e01000000000000000000000000000000000000000000000000000000000000909104166002811115613bab577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115613be3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b90525060a0810151602082015160c083015192935067ffffffffffffffff9091169163ffffffff909116908215801590613c8c5750856002811115613c51577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816002811115613c8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b8015613c985750814210155b9695505050505050565b80341015612dd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b57565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613eda576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613d83903390899088908890600401614fdb565b602060405180830381600087803b158015613d9d57600080fd5b505af1925050508015613deb575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613de891810190614c5a565b60015b613e8f573d808015613e19576040519150601f19603f3d011682016040523d82523d6000602084013e613e1e565b606091505b508051613e87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b57565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613403565b506001613403565b6060600c8054610a6790615161565b606081613f32575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610a53565b8160005b8115613f5c5780613f46816151b5565b9150613f559050600a836150cd565b9150613f36565b60008167ffffffffffffffff811115613f9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613fc8576020820181803683370190505b5090505b841561340357613fdd60018361511e565b9150613fea600a866151ee565b613ff59060306150b5565b60f81b818381518110614031577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061406b600a866150cd565b9450613fcc565b600073ffffffffffffffffffffffffffffffffffffffff82166140f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d696e74656420717565727920666f72203020616464726573730000000000006044820152606401610b57565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205468010000000000000000900467ffffffffffffffff1690565b610cec8383836001614161565b600080600061414c858561444a565b91509150614159816144ba565b509392505050565b60015473ffffffffffffffffffffffffffffffffffffffff85166141e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6d696e7420746f20746865207a65726f206164647265737300000000000000006044820152606401610b57565b83614248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7175616e74697479206d757374206265203e207468616e2030000000000000006044820152606401610b57565b73ffffffffffffffffffffffffffffffffffffffff8516600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000821667ffffffffffffffff9283168c01831617908116680100000000000000009182900483168c018316909102179091558584526005909252822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169093177fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000042909216919091021790915581905b8581101561442f57604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315614423576143bd6000888488613d0c565b614423576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b57565b6001918201910161435d565b506fffffffffffffffffffffffffffffffff1660015561222e565b6000808251604114156144815760208301516040840151606085015160001a614475878285856147d8565b945094505050506144b3565b8251604014156144ab57602083015160408401516144a08683836148f0565b9350935050506144b3565b506000905060025b9250929050565b60008160048111156144f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561450057612dd5565b600181600481111561453b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156145a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b57565b60028160048111156145de577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415614646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b57565b6003816004811115614681577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561470f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b57565b600481600481111561474a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612dd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b57565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561480f57506000905060036148e7565b8460ff16601b1415801561482757508460ff16601c14155b1561483857506000905060046148e7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561488c573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166148e0576000600192509250506148e7565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161492660ff86901c601b6150b5565b9050614934878288856147d8565b935093505050935093915050565b82805461494e90615161565b90600052602060002090601f01602090048101928261497057600085556149d4565b82601f106149a7578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556149d4565b828001600101855582156149d4579182015b828111156149d45782358255916020019190600101906149b9565b506149e09291506149e4565b5090565b5b808211156149e057600081556001016149e5565b803573ffffffffffffffffffffffffffffffffffffffff81168114610a5357600080fd5b600082601f830112614a2d578081fd5b813567ffffffffffffffff80821115614a4857614a48615260565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715614a8e57614a8e615260565b81604052838152866020858801011115614aa6578485fd5b8360208701602083013792830160200193909352509392505050565b803563ffffffff81168114610a5357600080fd5b803567ffffffffffffffff81168114610a5357600080fd5b600060208284031215614aff578081fd5b6114f5826149f9565b60008060408385031215614b1a578081fd5b614b23836149f9565b9150614b31602084016149f9565b90509250929050565b600080600060608486031215614b4e578081fd5b614b57846149f9565b9250614b65602085016149f9565b9150604084013590509250925092565b60008060008060808587031215614b8a578081fd5b614b93856149f9565b9350614ba1602086016149f9565b925060408501359150606085013567ffffffffffffffff811115614bc3578182fd5b614bcf87828801614a1d565b91505092959194509250565b60008060408385031215614bed578182fd5b614bf6836149f9565b915060208301358015158114614c0a578182fd5b809150509250929050565b60008060408385031215614c27578182fd5b614c30836149f9565b946020939093013593505050565b600060208284031215614c4f578081fd5b81356114f58161528f565b600060208284031215614c6b578081fd5b81516114f58161528f565b60008060208385031215614c88578182fd5b823567ffffffffffffffff80821115614c9f578384fd5b818501915085601f830112614cb2578384fd5b813581811115614cc0578485fd5b866020828501011115614cd1578485fd5b60209290920196919550909350505050565b600060208284031215614cf4578081fd5b813567ffffffffffffffff811115614d0a578182fd5b61340384828501614a1d565b60008060408385031215614d28578182fd5b823567ffffffffffffffff80821115614d3f578384fd5b614d4b86838701614a1d565b93506020850135915080821115614d60578283fd5b50614d6d85828601614a1d565b9150509250929050565b600060208284031215614d88578081fd5b5035919050565b600080600060608486031215614da3578081fd5b83359250602084013567ffffffffffffffff80821115614dc1578283fd5b614dcd87838801614a1d565b93506040860135915080821115614de2578283fd5b50614def86828701614a1d565b9150509250925092565b600080600080600080600080610100898b031215614e15578586fd5b88359750602089013561ffff81168114614e2d578687fd5b9650614e3b60408a01614ac2565b9550614e4960608a01614ac2565b9450614e5760808a01614ac2565b9350614e6560a08a01614ad6565b9250614e7360c08a01614ad6565b915060e089013560038110614e86578182fd5b809150509295985092959890939650565b600080600080600060a08688031215614eae578283fd5b614eb786614ad6565b9450614ec560208701614ad6565b9350614ed360408701614ac2565b9250614ee160608701614ac2565b9150614eef60808701614ac2565b90509295509295909350565b60008151808452614f13816020860160208601615135565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60007fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1682528251614f82816014850160208701615135565b919091016014019392505050565b60008251614fa2818460208701615135565b9190910192915050565b60008351614fbe818460208801615135565b835190830190614fd2818360208801615135565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613c986080830184614efb565b6000602082526114f56020830184614efb565b61ffff8816815263ffffffff878116602083015286811660408301528516606082015267ffffffffffffffff8481166080830152831660a082015260e08101600383106150a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8260c083015298975050505050505050565b600082198211156150c8576150c8615202565b500190565b6000826150dc576150dc615231565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561511957615119615202565b500290565b60008282101561513057615130615202565b500390565b60005b83811015615150578181015183820152602001615138565b8381111561264c5750506000910152565b60028104600182168061517557607f821691505b602082108114156151af577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151e7576151e7615202565b5060010190565b6000826151fd576151fd615231565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612dd557600080fdfea2646970667358221220a2b89b51e7d92cad51a6d4a721a1750b419fca75be703aa99f1b31ee725e185764736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000009f0000000000000000000000009f4b0d94585a409d6070a1180331eac925231c3e
-----Decoded View---------------
Arg [0] : maxBatchSize_ (uint256): 1
Arg [1] : collectionSize_ (uint256): 159
Arg [2] : _signerAddress (address): 0x9F4B0D94585A409D6070A1180331eac925231c3e
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [1] : 000000000000000000000000000000000000000000000000000000000000009f
Arg [2] : 0000000000000000000000009f4b0d94585a409d6070a1180331eac925231c3e
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.