ERC-721
Overview
Max Total Supply
1,754 Ready to BAGC
Holders
337
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
InvitationNFT
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "erc721a/contracts/ERC721A.sol"; contract InvitationNFT is ERC721A, Ownable { enum SaleType { WL_MINT, PUBLIC_MINT, SS_SALE, YUGA_LABS, AIRDROP_MINT } // Payment beneficiary accounts address payable public beneficiary; // BAGC address public bagcAddress; string public baseURI; bytes32 public merkleRootWLMint; bytes32 public merkleRootSSSale; uint256 public apePriceFeed = 336; // 1 eth = 336 Ape uint256 public tavaPriceFeed = 4_241; // 1 eth = 4438 Tava uint256 public maxTokens = 9_000; uint256 public maxMintLimit = 3; // ERC20 Payment Parameters address public apeTokenAddress = 0x4d224452801ACEd8B2F0aebE155379bb5D594381; address public tavaTokenAddress = 0xdebe620609674F21B1089042527F420372eA98A5; // ERC721 Holders Tokens address public constant SSContractAddress = 0x82f371b47cc5B9Cf23Af60A9A31A9E7A6bef8A2d; address public constant BAYCContractAddress = 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D; address public constant MAYCContractAddress = 0x60E4d786628Fea6478F785A6d7e704777c86a7c6; address public constant BAKCContractAddress = 0xba30E5F9Bb24caa003E9f2f0497Ad287FDF95623; mapping(SaleType => uint256) public mSaleTypeToBasePrice; mapping(SaleType => uint256) public mSaleTypeToDiscountPrice; mapping(SaleType => uint256) public mSaleTypeToOpenTime; mapping(SaleType => uint256) public mSaleTypeToCloseTime; mapping(SaleType => uint256) public mSaleTypeToMintQuantityLimit; mapping(SaleType => uint256) public mSaleTypeToMintCount; mapping(address => uint256) public mAddressToSSSaleMintCount; mapping(address => uint256) public mAddressToYugaLabsMintCount; modifier checkSaleTime(SaleType t) { require(block.timestamp >= mSaleTypeToOpenTime[t], "Sale is not open"); require(block.timestamp <= mSaleTypeToCloseTime[t], "Sale is not open"); _; } modifier checkRemainQuantity(SaleType t, uint256 quantity) { require(_totalMinted() + quantity <= maxTokens, "All NFTs are minted"); require( mSaleTypeToMintCount[t] + quantity <= mSaleTypeToMintQuantityLimit[t], "All NFT are minted for SaleType" ); _; } modifier checkValidity(bytes32[] calldata _merkleProof, bytes32 merkleRoot) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Incorrect proof"); _; } constructor( string memory name_, string memory symbol_, string memory baseURI_, address payable beneficiary_ ) ERC721A(name_, symbol_) { baseURI = baseURI_; beneficiary = beneficiary_; SaleType t = SaleType.WL_MINT; mSaleTypeToMintQuantityLimit[t] = 810; mSaleTypeToBasePrice[t] = 0.45 ether; // 0.45 eth mSaleTypeToDiscountPrice[t] = 0.4 ether; // 0.4 eth mSaleTypeToOpenTime[t] = 1671541200; // Dec 20, 22:00(KST) mSaleTypeToCloseTime[t] = 1671627600; // Dec 21, 22:00(KST) t = SaleType.PUBLIC_MINT; mSaleTypeToMintQuantityLimit[t] = 500; mSaleTypeToBasePrice[t] = 0.5 ether; mSaleTypeToDiscountPrice[t] = 0.45 ether; mSaleTypeToOpenTime[t] = 1671627600; // Dec 21, 22:00(KST) mSaleTypeToCloseTime[t] = 1671714000; // Dec 22, 22:00(KST) t = SaleType.SS_SALE; mSaleTypeToMintQuantityLimit[t] = 1_500; mSaleTypeToBasePrice[t] = 0.425 ether; mSaleTypeToDiscountPrice[t] = 0.375 ether; mSaleTypeToOpenTime[t] = 1671714000; // Dec 22, 22:00(KST) mSaleTypeToCloseTime[t] = 1671800400; // Dec 23, 22:00(KST) t = SaleType.YUGA_LABS; mSaleTypeToMintQuantityLimit[t] = 2_000; mSaleTypeToBasePrice[t] = 0.425 ether; mSaleTypeToDiscountPrice[t] = 0.425 ether; mSaleTypeToOpenTime[t] = 1671800400; // Dec 23, 22:00(KST) mSaleTypeToCloseTime[t] = 1679576400; // Mar 23, 22:00(KST) t = SaleType.AIRDROP_MINT; mSaleTypeToMintQuantityLimit[t] = 4_190; //1_000 + 2_000 + 500 + 690; mSaleTypeToBasePrice[t] = 0 ether; mSaleTypeToDiscountPrice[t] = 0 ether; mSaleTypeToOpenTime[t] = 0; // Always open mSaleTypeToCloseTime[t] = 1679576400; // Mar 23, 22:00(KST) } function withdrawETH(address payable to, uint256 amount) public onlyOwner { require(amount <= address(this).balance, "Over balance"); (bool success, ) = to.call{value: amount}(""); require(success, "Failed withdraw ETH"); } function withdrawToken( address payable to, address tokenAddress, uint256 amount ) public onlyOwner { IERC20 paymentToken = IERC20(tokenAddress); bool status = paymentToken.transferFrom(address(this), to, amount); require(status, "Failed withdraw ERC20"); } function updateBagcAddress(address bagcAddress_) public onlyOwner { bagcAddress = bagcAddress_; } function updateBaseURI(string memory baseURI_) public onlyOwner { baseURI = baseURI_; } function updateSaleTime( SaleType t, uint256 openTime_, uint256 closeTime_ ) public onlyOwner { mSaleTypeToOpenTime[t] = openTime_; mSaleTypeToCloseTime[t] = closeTime_; } function updateBeneficiaryAddress(address payable beneficiary_) public onlyOwner { beneficiary = beneficiary_; } function updateMerkleRoot(SaleType t, bytes32 root) public onlyOwner { if (t == SaleType.WL_MINT) { merkleRootWLMint = root; } else if (t == SaleType.SS_SALE) { merkleRootSSSale = root; } } // maxMintLimit is only for WLSaleMint function updateMaxMintLimit(uint256 maxMintLimit_) public onlyOwner { maxMintLimit = maxMintLimit_; } // totalNumber of avaiable InvitationNFT function updateMaxToken(uint256 maxTokens_) public onlyOwner { maxTokens = maxTokens_; } function updateBasePrice(SaleType t, uint256 price) public onlyOwner { require(price > 0); mSaleTypeToBasePrice[t] = price; } function updateDiscountPrice(SaleType t, uint256 price) public onlyOwner { require(price > 0); mSaleTypeToDiscountPrice[t] = price; } function updateMintQuantityLimit(SaleType t, uint256 mintQuantityLimit_) public onlyOwner { mSaleTypeToMintQuantityLimit[t] = mintQuantityLimit_; } function updateApeTokenAddress(address tokenAddress) public onlyOwner { apeTokenAddress = tokenAddress; } function updateTavaTokenAddress(address tokenAddress) public onlyOwner { tavaTokenAddress = tokenAddress; } function updateApePriceFeed(uint256 price_) public onlyOwner { require(price_ > 0); apePriceFeed = price_; } function updateTavaPriceFeed(uint256 price_) public onlyOwner { require(price_ > 0); tavaPriceFeed = price_; } function updatePriceFeeds(uint256 apePriceFeed_, uint256 tavaPriceFeed_) public onlyOwner { require(apePriceFeed_ > 0 && tavaPriceFeed_ > 0); apePriceFeed = apePriceFeed_; tavaPriceFeed = tavaPriceFeed_; } function WlMintBAGC(uint256 quantity, bytes32[] calldata merkleProof) public payable checkSaleTime(SaleType.WL_MINT) checkRemainQuantity(SaleType.WL_MINT, quantity) checkValidity(merkleProof, merkleRootWLMint) { require(quantity <= maxMintLimit, "Over Mint Limit"); SaleType t = SaleType.WL_MINT; pay(t, quantity); addMintCount(t, quantity); _safeMint(msg.sender, quantity); } function publicSaleMint(uint256 quantity) public payable checkSaleTime(SaleType.PUBLIC_MINT) checkRemainQuantity(SaleType.PUBLIC_MINT, quantity) { require(quantity <= maxMintLimit, "Over Mint Limit"); SaleType t = SaleType.PUBLIC_MINT; pay(t, quantity); addMintCount(t, quantity); _safeMint(msg.sender, quantity); } function SSSaleMint(uint256 quantity, bytes32[] calldata merkleProof) public payable checkSaleTime(SaleType.SS_SALE) checkRemainQuantity(SaleType.SS_SALE, quantity) checkValidity(merkleProof, merkleRootSSSale) { SaleType t = SaleType.SS_SALE; pay(t, quantity); addMintCount(t, quantity); _safeMint(msg.sender, quantity); mAddressToSSSaleMintCount[msg.sender] += quantity; } function YugaLabsMint(uint256 quantity) public payable checkSaleTime(SaleType.YUGA_LABS) checkRemainQuantity(SaleType.YUGA_LABS, quantity) { SaleType t = SaleType.YUGA_LABS; //check YugaLabs holder balance uint256 YugaLabsTokenBalance = getHolderNFTBalance(t); require(YugaLabsTokenBalance > 0, "0 NFT Balance"); require(mAddressToYugaLabsMintCount[msg.sender] + quantity <= YugaLabsTokenBalance); pay(t, quantity); addMintCount(t, quantity); _safeMint(msg.sender, quantity); mAddressToYugaLabsMintCount[msg.sender] += quantity; } function AirDropMint(address to, uint256 quantity) public checkSaleTime(SaleType.AIRDROP_MINT) checkRemainQuantity(SaleType.AIRDROP_MINT, quantity) onlyOwner { addMintCount(SaleType.AIRDROP_MINT, quantity); _safeMint(to, quantity); } function burn(uint256 tokenId) external { require(bagcAddress == msg.sender, "Wrong Contract"); _burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721A) returns (bool) { return super.supportsInterface(interfaceId); } function _startTokenId() internal pure override returns (uint256 startTokenId) { startTokenId = 1; } function _baseURI() internal view override returns (string memory) { return baseURI; } function addMintCount(SaleType t, uint256 quantity) internal { mSaleTypeToMintCount[t] += quantity; } function getHolderNFTBalance(SaleType t) internal view returns (uint256 tokenBalance) { if (t == SaleType.SS_SALE) { IERC721 SSContract = IERC721(SSContractAddress); tokenBalance = SSContract.balanceOf(msg.sender); } else if (t == SaleType.YUGA_LABS) { IERC721 BAYCContract = IERC721(BAYCContractAddress); IERC721 MAYCContract = IERC721(MAYCContractAddress); IERC721 BAKCContract = IERC721(BAKCContractAddress); tokenBalance = BAYCContract.balanceOf(msg.sender) + MAYCContract.balanceOf(msg.sender) + BAKCContract.balanceOf(msg.sender); } } function pay(SaleType t, uint256 quantity) internal { if (msg.value != 0) { // PAY with Eth uint256 price = mSaleTypeToBasePrice[t] * quantity; require(msg.value >= price, "We require more ether"); // validate the amount of ETH uint256 leftOver = msg.value - price; (bool success, ) = beneficiary.call{value: price}(""); // send ETH to the owner require(success, "Failed to send Ether"); if (leftOver > 0) { payable(msg.sender).transfer(leftOver); } } else { // PAY with Special Token bool status = false; uint256 price = mSaleTypeToDiscountPrice[t] * quantity; address paymentTokenAddress; if (t == SaleType.YUGA_LABS) { // Pay with APE price = price * apePriceFeed; paymentTokenAddress = apeTokenAddress; } else { // Pay with TAVA price = price * tavaPriceFeed; paymentTokenAddress = tavaTokenAddress; } IERC20 paymentToken = IERC20(paymentTokenAddress); status = paymentToken.transferFrom(msg.sender, beneficiary, price); require(status, "Failed to send Token"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _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 {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @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 for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, 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. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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 _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"address payable","name":"beneficiary_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"quantity","type":"uint256"}],"name":"AirDropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"BAKCContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BAYCContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAYCContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SSContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"SSSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"WlMintBAGC","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"YugaLabsMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"apePriceFeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apeTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"bagcAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"","type":"address"}],"name":"mAddressToSSSaleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mAddressToYugaLabsMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"","type":"uint8"}],"name":"mSaleTypeToBasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"","type":"uint8"}],"name":"mSaleTypeToCloseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"","type":"uint8"}],"name":"mSaleTypeToDiscountPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"","type":"uint8"}],"name":"mSaleTypeToMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"","type":"uint8"}],"name":"mSaleTypeToMintQuantityLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"","type":"uint8"}],"name":"mSaleTypeToOpenTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootSSSale","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootWLMint","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tavaPriceFeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tavaTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"updateApePriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"updateApeTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bagcAddress_","type":"address"}],"name":"updateBagcAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"t","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updateBasePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"beneficiary_","type":"address"}],"name":"updateBeneficiaryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"t","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updateDiscountPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintLimit_","type":"uint256"}],"name":"updateMaxMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTokens_","type":"uint256"}],"name":"updateMaxToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"t","type":"uint8"},{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"t","type":"uint8"},{"internalType":"uint256","name":"mintQuantityLimit_","type":"uint256"}],"name":"updateMintQuantityLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"apePriceFeed_","type":"uint256"},{"internalType":"uint256","name":"tavaPriceFeed_","type":"uint256"}],"name":"updatePriceFeeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum InvitationNFT.SaleType","name":"t","type":"uint8"},{"internalType":"uint256","name":"openTime_","type":"uint256"},{"internalType":"uint256","name":"closeTime_","type":"uint256"}],"name":"updateSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"updateTavaPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"updateTavaTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610150600e55611091600f556123286010556003601155734d224452801aced8b2f0aebe155379bb5d594381601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073debe620609674f21b1089042527f420372ea98a5601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000d257600080fd5b5060405162006afb38038062006afb8339818101604052810190620000f8919062000b78565b838381600290816200010b919062000e92565b5080600390816200011d919062000e92565b506200012e620008a960201b60201c565b6000819055505050620001566200014a620008b260201b60201c565b620008ba60201b60201c565b81600b908162000167919062000e92565b5080600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600061032a60186000836004811115620001c857620001c762000f79565b5b6004811115620001dd57620001dc62000f79565b5b81526020019081526020016000208190555067063eb89da4ed00006014600083600481111562000212576200021162000f79565b5b600481111562000227576200022662000f79565b5b81526020019081526020016000208190555067058d15e176280000601560008360048111156200025c576200025b62000f79565b5b600481111562000271576200027062000f79565b5b8152602001908152602001600020819055506363a1b1d060166000836004811115620002a257620002a162000f79565b5b6004811115620002b757620002b662000f79565b5b8152602001908152602001600020819055506363a3035060176000836004811115620002e857620002e762000f79565b5b6004811115620002fd57620002fc62000f79565b5b815260200190815260200160002081905550600190506101f46018600083600481111562000330576200032f62000f79565b5b600481111562000345576200034462000f79565b5b8152602001908152602001600020819055506706f05b59d3b20000601460008360048111156200037a576200037962000f79565b5b60048111156200038f576200038e62000f79565b5b81526020019081526020016000208190555067063eb89da4ed000060156000836004811115620003c457620003c362000f79565b5b6004811115620003d957620003d862000f79565b5b8152602001908152602001600020819055506363a30350601660008360048111156200040a576200040962000f79565b5b60048111156200041f576200041e62000f79565b5b8152602001908152602001600020819055506363a454d06017600083600481111562000450576200044f62000f79565b5b600481111562000465576200046462000f79565b5b815260200190815260200160002081905550600290506105dc6018600083600481111562000498576200049762000f79565b5b6004811115620004ad57620004ac62000f79565b5b8152602001908152602001600020819055506705e5e73f8d8a800060146000836004811115620004e257620004e162000f79565b5b6004811115620004f757620004f662000f79565b5b81526020019081526020016000208190555067053444835ec58000601560008360048111156200052c576200052b62000f79565b5b600481111562000541576200054062000f79565b5b8152602001908152602001600020819055506363a454d06016600083600481111562000572576200057162000f79565b5b600481111562000587576200058662000f79565b5b8152602001908152602001600020819055506363a5a65060176000836004811115620005b857620005b762000f79565b5b6004811115620005cd57620005cc62000f79565b5b815260200190815260200160002081905550600390506107d0601860008360048111156200060057620005ff62000f79565b5b600481111562000615576200061462000f79565b5b8152602001908152602001600020819055506705e5e73f8d8a8000601460008360048111156200064a576200064962000f79565b5b60048111156200065f576200065e62000f79565b5b8152602001908152602001600020819055506705e5e73f8d8a80006015600083600481111562000694576200069362000f79565b5b6004811115620006a957620006a862000f79565b5b8152602001908152602001600020819055506363a5a65060166000836004811115620006da57620006d962000f79565b5b6004811115620006ef57620006ee62000f79565b5b81526020019081526020016000208190555063641c4d506017600083600481111562000720576200071f62000f79565b5b600481111562000735576200073462000f79565b5b8152602001908152602001600020819055506004905061105e6018600083600481111562000768576200076762000f79565b5b60048111156200077d576200077c62000f79565b5b815260200190815260200160002081905550600060146000836004811115620007ab57620007aa62000f79565b5b6004811115620007c057620007bf62000f79565b5b815260200190815260200160002081905550600060156000836004811115620007ee57620007ed62000f79565b5b600481111562000803576200080262000f79565b5b81526020019081526020016000208190555060006016600083600481111562000831576200083062000f79565b5b600481111562000846576200084562000f79565b5b81526020019081526020016000208190555063641c4d506017600083600481111562000877576200087662000f79565b5b60048111156200088c576200088b62000f79565b5b815260200190815260200160002081905550505050505062000fa8565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620009e9826200099e565b810181811067ffffffffffffffff8211171562000a0b5762000a0a620009af565b5b80604052505050565b600062000a2062000980565b905062000a2e8282620009de565b919050565b600067ffffffffffffffff82111562000a515762000a50620009af565b5b62000a5c826200099e565b9050602081019050919050565b60005b8381101562000a8957808201518184015260208101905062000a6c565b60008484015250505050565b600062000aac62000aa68462000a33565b62000a14565b90508281526020810184848401111562000acb5762000aca62000999565b5b62000ad884828562000a69565b509392505050565b600082601f83011262000af85762000af762000994565b5b815162000b0a84826020860162000a95565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b408262000b13565b9050919050565b62000b528162000b33565b811462000b5e57600080fd5b50565b60008151905062000b728162000b47565b92915050565b6000806000806080858703121562000b955762000b946200098a565b5b600085015167ffffffffffffffff81111562000bb65762000bb56200098f565b5b62000bc48782880162000ae0565b945050602085015167ffffffffffffffff81111562000be85762000be76200098f565b5b62000bf68782880162000ae0565b935050604085015167ffffffffffffffff81111562000c1a5762000c196200098f565b5b62000c288782880162000ae0565b925050606062000c3b8782880162000b61565b91505092959194509250565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000c9a57607f821691505b60208210810362000cb05762000caf62000c52565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000d1a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000cdb565b62000d26868362000cdb565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000d7362000d6d62000d678462000d3e565b62000d48565b62000d3e565b9050919050565b6000819050919050565b62000d8f8362000d52565b62000da762000d9e8262000d7a565b84845462000ce8565b825550505050565b600090565b62000dbe62000daf565b62000dcb81848462000d84565b505050565b5b8181101562000df35762000de760008262000db4565b60018101905062000dd1565b5050565b601f82111562000e425762000e0c8162000cb6565b62000e178462000ccb565b8101602085101562000e27578190505b62000e3f62000e368562000ccb565b83018262000dd0565b50505b505050565b600082821c905092915050565b600062000e676000198460080262000e47565b1980831691505092915050565b600062000e82838362000e54565b9150826002028217905092915050565b62000e9d8262000c47565b67ffffffffffffffff81111562000eb95762000eb8620009af565b5b62000ec5825462000c81565b62000ed282828562000df7565b600060209050601f83116001811462000f0a576000841562000ef5578287015190505b62000f01858262000e74565b86555062000f71565b601f19841662000f1a8662000cb6565b60005b8281101562000f445784890151825560018201915060208501945060208101905062000f1d565b8683101562000f64578489015162000f60601f89168262000e54565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b615b438062000fb86000396000f3fe6080604052600436106103b85760003560e01c80637e126be2116101f2578063b88d4fde1161010d578063e0d5082c116100a0578063e985e9c51161006f578063e985e9c514610ded578063ea842c0e14610e2a578063f2fde38b14610e53578063ff6d826814610e7c576103b8565b8063e0d5082c14610d47578063e80507fa14610d70578063e831574214610d99578063e8fa923314610dc4576103b8565b8063d19a11d6116100dc578063d19a11d614610c8b578063d354f6dd14610cb4578063d76fc6c314610cdf578063dc521a1014610d1c576103b8565b8063b88d4fde14610be0578063bf97180b14610bfc578063c5bf21c014610c25578063c87b56dd14610c4e576103b8565b806393a43eb111610185578063a5e0fa4e11610154578063a5e0fa4e14610b49578063a677b67d14610b72578063b3ab66b014610b9b578063b7b24dab14610bb7576103b8565b806393a43eb114610a8f57806395d89b4114610acc578063962bf6b814610af7578063a22cb46514610b20576103b8565b80638da5cb5b116101c15780638da5cb5b146109e7578063913cd58914610a125780639191552414610a3b578063931688cb14610a66576103b8565b80637e126be214610947578063816b7bca14610984578063884fa0b9146109a05780638d2eab8f146109bc576103b8565b80633237b96a116102e25780635599fee01161027557806370a082311161024457806370a082311461088b57806370e2f827146108c8578063715018a6146108f357806375ee2a5d1461090a576103b8565b80635599fee0146107d15780636352211e146107fa578063642c05b5146108375780636c0360eb14610860576103b8565b806342842e0e116102b157806342842e0e1461073857806342966c68146107545780634782f7791461077d57806352a51c15146107a6576103b8565b80633237b96a1461067c57806332ca156c146106a757806335bc78b0146106e457806338af3eed1461070d576103b8565b8063175e81201161035a578063239365371161032957806323936537146105cd57806323b872dd1461060a5780632c3db79e146106265780632e1ef41314610651576103b8565b8063175e8120146104fd57806318160ddd1461053a5780631f1d588a146105655780632383b49414610590576103b8565b806306fdde031161039657806306fdde031461044e578063081812fc14610479578063095ea7b3146104b65780630d0a57d5146104d2576103b8565b806301e33667146103bd57806301ffc9a7146103e6578063058d000d14610423575b600080fd5b3480156103c957600080fd5b506103e460048036038101906103df91906143b7565b610e98565b005b3480156103f257600080fd5b5061040d60048036038101906104089190614462565b610f70565b60405161041a91906144aa565b60405180910390f35b34801561042f57600080fd5b50610438610f82565b60405161044591906144d4565b60405180910390f35b34801561045a57600080fd5b50610463610fa8565b604051610470919061457f565b60405180910390f35b34801561048557600080fd5b506104a0600480360381019061049b91906145a1565b61103a565b6040516104ad91906144d4565b60405180910390f35b6104d060048036038101906104cb91906145ce565b6110b9565b005b3480156104de57600080fd5b506104e76111fd565b6040516104f4919061461d565b60405180910390f35b34801561050957600080fd5b50610524600480360381019061051f9190614638565b611203565b604051610531919061461d565b60405180910390f35b34801561054657600080fd5b5061054f61121b565b60405161055c919061461d565b60405180910390f35b34801561057157600080fd5b5061057a611232565b60405161058791906144d4565b60405180910390f35b34801561059c57600080fd5b506105b760048036038101906105b2919061468a565b61124a565b6040516105c4919061461d565b60405180910390f35b3480156105d957600080fd5b506105f460048036038101906105ef919061468a565b611262565b604051610601919061461d565b60405180910390f35b610624600480360381019061061f91906146b7565b61127a565b005b34801561063257600080fd5b5061063b61159c565b6040516106489190614723565b60405180910390f35b34801561065d57600080fd5b506106666115a2565b60405161067391906144d4565b60405180910390f35b34801561068857600080fd5b506106916115ba565b60405161069e91906144d4565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c9919061468a565b6115d2565b6040516106db919061461d565b60405180910390f35b3480156106f057600080fd5b5061070b600480360381019061070691906145a1565b6115ea565b005b34801561071957600080fd5b50610722611609565b60405161072f919061474d565b60405180910390f35b610752600480360381019061074d91906146b7565b61162f565b005b34801561076057600080fd5b5061077b600480360381019061077691906145a1565b61164f565b005b34801561078957600080fd5b506107a4600480360381019061079f9190614768565b6116eb565b005b3480156107b257600080fd5b506107bb6117e7565b6040516107c891906144d4565b60405180910390f35b3480156107dd57600080fd5b506107f860048036038101906107f391906145ce565b61180d565b005b34801561080657600080fd5b50610821600480360381019061081c91906145a1565b611a3d565b60405161082e91906144d4565b60405180910390f35b34801561084357600080fd5b5061085e600480360381019061085991906145a1565b611a4f565b005b34801561086c57600080fd5b50610875611a61565b604051610882919061457f565b60405180910390f35b34801561089757600080fd5b506108b260048036038101906108ad9190614638565b611aef565b6040516108bf919061461d565b60405180910390f35b3480156108d457600080fd5b506108dd611ba7565b6040516108ea919061461d565b60405180910390f35b3480156108ff57600080fd5b50610908611bad565b005b34801561091657600080fd5b50610931600480360381019061092c919061468a565b611bc1565b60405161093e919061461d565b60405180910390f35b34801561095357600080fd5b5061096e60048036038101906109699190614638565b611bd9565b60405161097b919061461d565b60405180910390f35b61099e600480360381019061099991906145a1565b611bf1565b005b6109ba60048036038101906109b5919061480d565b611f26565b005b3480156109c857600080fd5b506109d161225f565b6040516109de9190614723565b60405180910390f35b3480156109f357600080fd5b506109fc612265565b604051610a0991906144d4565b60405180910390f35b348015610a1e57600080fd5b50610a396004803603810190610a349190614638565b61228f565b005b348015610a4757600080fd5b50610a506122db565b604051610a5d919061461d565b60405180910390f35b348015610a7257600080fd5b50610a8d6004803603810190610a88919061499d565b6122e1565b005b348015610a9b57600080fd5b50610ab66004803603810190610ab1919061468a565b6122fc565b604051610ac3919061461d565b60405180910390f35b348015610ad857600080fd5b50610ae1612314565b604051610aee919061457f565b60405180910390f35b348015610b0357600080fd5b50610b1e6004803603810190610b1991906149e6565b6123a6565b005b348015610b2c57600080fd5b50610b476004803603810190610b429190614a52565b6123ee565b005b348015610b5557600080fd5b50610b706004803603810190610b6b9190614638565b6124f9565b005b348015610b7e57600080fd5b50610b996004803603810190610b9491906149e6565b612545565b005b610bb56004803603810190610bb091906145a1565b61259a565b005b348015610bc357600080fd5b50610bde6004803603810190610bd991906149e6565b612816565b005b610bfa6004803603810190610bf59190614b33565b61286b565b005b348015610c0857600080fd5b50610c236004803603810190610c1e91906145a1565b6128de565b005b348015610c3157600080fd5b50610c4c6004803603810190610c479190614638565b6128f0565b005b348015610c5a57600080fd5b50610c756004803603810190610c7091906145a1565b61293c565b604051610c82919061457f565b60405180910390f35b348015610c9757600080fd5b50610cb26004803603810190610cad9190614be2565b61294e565b005b348015610cc057600080fd5b50610cc96129c7565b604051610cd691906144d4565b60405180910390f35b348015610ceb57600080fd5b50610d066004803603810190610d01919061468a565b6129ed565b604051610d13919061461d565b60405180910390f35b348015610d2857600080fd5b50610d31612a05565b604051610d3e91906144d4565b60405180910390f35b348015610d5357600080fd5b50610d6e6004803603810190610d6991906145a1565b612a1d565b005b348015610d7c57600080fd5b50610d976004803603810190610d929190614c22565b612a3c565b005b348015610da557600080fd5b50610dae612ac1565b604051610dbb919061461d565b60405180910390f35b348015610dd057600080fd5b50610deb6004803603810190610de69190614c75565b612ac7565b005b348015610df957600080fd5b50610e146004803603810190610e0f9190614ca2565b612b13565b604051610e2191906144aa565b60405180910390f35b348015610e3657600080fd5b50610e516004803603810190610e4c9190614ce2565b612ba7565b005b348015610e5f57600080fd5b50610e7a6004803603810190610e759190614638565b612bda565b005b610e966004803603810190610e91919061480d565b612c5d565b005b610ea0612fab565b600082905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3087866040518463ffffffff1660e01b8152600401610ee493929190614d81565b6020604051808303816000875af1158015610f03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f279190614dcd565b905080610f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6090614e46565b60405180910390fd5b5050505050565b6000610f7b82613029565b9050919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060028054610fb790614e95565b80601f0160208091040260200160405190810160405280929190818152602001828054610fe390614e95565b80156110305780601f1061100557610100808354040283529160200191611030565b820191906000526020600020905b81548152906001019060200180831161101357829003601f168201915b5050505050905090565b6000611045826130bb565b61107b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006110c482611a3d565b90508073ffffffffffffffffffffffffffffffffffffffff166110e561311a565b73ffffffffffffffffffffffffffffffffffffffff1614611148576111118161110c61311a565b612b13565b611147576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600f5481565b601a6020528060005260406000206000915090505481565b6000611225613122565b6001546000540303905090565b7360e4d786628fea6478f785a6d7e704777c86a7c681565b60156020528060005260406000206000915090505481565b60166020528060005260406000206000915090505481565b60006112858261312b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112ec576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806112f8846131f7565b9150915061130e818761130961311a565b61321e565b61135a576113238661131e61311a565b612b13565b611359576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113c0576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113cd8686866001613262565b80156113d857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506114a685611482888887613268565b7c020000000000000000000000000000000000000000000000000000000017613290565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361152c576000600185019050600060046000838152602001908152602001600020540361152a576000548114611529578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461159486868660016132bb565b505050505050565b600c5481565b7382f371b47cc5b9cf23af60a9a31a9e7a6bef8a2d81565b73ba30e5f9bb24caa003e9f2f0497ad287fdf9562381565b60196020528060005260406000206000915090505481565b6115f2612fab565b600081116115ff57600080fd5b80600e8190555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61164a8383836040518060200160405280600081525061286b565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d690614f12565b60405180910390fd5b6116e8816132c1565b50565b6116f3612fab565b47811115611736576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172d90614f7e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161175c90614fcf565b60006040518083038185875af1925050503d8060008114611799576040519150601f19603f3d011682016040523d82523d6000602084013e61179e565b606091505b50509050806117e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d990615030565b60405180910390fd5b505050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60046016600082600481111561182657611825615050565b5b600481111561183857611837615050565b5b815260200190815260200160002054421015611889576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611880906150cb565b60405180910390fd5b601760008260048111156118a05761189f615050565b5b60048111156118b2576118b1615050565b5b815260200190815260200160002054421115611903576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fa906150cb565b60405180910390fd5b600482601054816119126132cf565b61191c919061511a565b111561195d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119549061519a565b60405180910390fd5b6018600083600481111561197457611973615050565b5b600481111561198657611985615050565b5b81526020019081526020016000205481601960008560048111156119ad576119ac615050565b5b60048111156119bf576119be615050565b5b8152602001908152602001600020546119d8919061511a565b1115611a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1090615206565b60405180910390fd5b611a21612fab565b611a2c6004856132e2565b611a368585613334565b5050505050565b6000611a488261312b565b9050919050565b611a57612fab565b8060118190555050565b600b8054611a6e90614e95565b80601f0160208091040260200160405190810160405280929190818152602001828054611a9a90614e95565b8015611ae75780601f10611abc57610100808354040283529160200191611ae7565b820191906000526020600020905b815481529060010190602001808311611aca57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b56576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b60115481565b611bb5612fab565b611bbf6000613352565b565b60146020528060005260406000206000915090505481565b601b6020528060005260406000206000915090505481565b600360166000826004811115611c0a57611c09615050565b5b6004811115611c1c57611c1b615050565b5b815260200190815260200160002054421015611c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c64906150cb565b60405180910390fd5b60176000826004811115611c8457611c83615050565b5b6004811115611c9657611c95615050565b5b815260200190815260200160002054421115611ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cde906150cb565b60405180910390fd5b60038260105481611cf66132cf565b611d00919061511a565b1115611d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d389061519a565b60405180910390fd5b60186000836004811115611d5857611d57615050565b5b6004811115611d6a57611d69615050565b5b8152602001908152602001600020548160196000856004811115611d9157611d90615050565b5b6004811115611da357611da2615050565b5b815260200190815260200160002054611dbc919061511a565b1115611dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df490615206565b60405180910390fd5b6000600390506000611e0e82613418565b905060008111611e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4a90615272565b60405180910390fd5b8086601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e9f919061511a565b1115611eaa57600080fd5b611eb482876136e6565b611ebe82876132e2565b611ec83387613334565b85601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f17919061511a565b92505081905550505050505050565b600060166000826004811115611f3f57611f3e615050565b5b6004811115611f5157611f50615050565b5b815260200190815260200160002054421015611fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f99906150cb565b60405180910390fd5b60176000826004811115611fb957611fb8615050565b5b6004811115611fcb57611fca615050565b5b81526020019081526020016000205442111561201c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612013906150cb565b60405180910390fd5b6000846010548161202b6132cf565b612035919061511a565b1115612076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206d9061519a565b60405180910390fd5b6018600083600481111561208d5761208c615050565b5b600481111561209f5761209e615050565b5b81526020019081526020016000205481601960008560048111156120c6576120c5615050565b5b60048111156120d8576120d7615050565b5b8152602001908152602001600020546120f1919061511a565b1115612132576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212990615206565b60405180910390fd5b8484600c5460003360405160200161214a91906152da565b6040516020818303038152906040528051906020012090506121ae848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508383613a87565b6121ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e490615341565b60405180910390fd5b6011548a1115612232576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612229906153ad565b60405180910390fd5b600061223e818c6136e6565b612248818c6132e2565b612252338c613334565b5050505050505050505050565b600d5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612297612fab565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b6122e9612fab565b80600b90816122f8919061556f565b5050565b60186020528060005260406000206000915090505481565b60606003805461232390614e95565b80601f016020809104026020016040519081016040528092919081815260200182805461234f90614e95565b801561239c5780601f106123715761010080835404028352916020019161239c565b820191906000526020600020905b81548152906001019060200180831161237f57829003601f168201915b5050505050905090565b6123ae612fab565b80601860008460048111156123c6576123c5615050565b5b60048111156123d8576123d7615050565b5b8152602001908152602001600020819055505050565b80600760006123fb61311a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166124a861311a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124ed91906144aa565b60405180910390a35050565b612501612fab565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61254d612fab565b6000811161255a57600080fd5b806015600084600481111561257257612571615050565b5b600481111561258457612583615050565b5b8152602001908152602001600020819055505050565b6001601660008260048111156125b3576125b2615050565b5b60048111156125c5576125c4615050565b5b815260200190815260200160002054421015612616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260d906150cb565b60405180910390fd5b6017600082600481111561262d5761262c615050565b5b600481111561263f5761263e615050565b5b815260200190815260200160002054421115612690576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612687906150cb565b60405180910390fd5b6001826010548161269f6132cf565b6126a9919061511a565b11156126ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e19061519a565b60405180910390fd5b6018600083600481111561270157612700615050565b5b600481111561271357612712615050565b5b815260200190815260200160002054816019600085600481111561273a57612739615050565b5b600481111561274c5761274b615050565b5b815260200190815260200160002054612765919061511a565b11156127a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279d90615206565b60405180910390fd5b6011548411156127eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e2906153ad565b60405180910390fd5b6000600190506127fb81866136e6565b61280581866132e2565b61280f3386613334565b5050505050565b61281e612fab565b6000811161282b57600080fd5b806014600084600481111561284357612842615050565b5b600481111561285557612854615050565b5b8152602001908152602001600020819055505050565b61287684848461127a565b60008373ffffffffffffffffffffffffffffffffffffffff163b146128d8576128a184848484613a9e565b6128d7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6128e6612fab565b8060108190555050565b6128f8612fab565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606061294782613bee565b9050919050565b612956612fab565b6000600481111561296a57612969615050565b5b82600481111561297d5761297c615050565b5b0361298e5780600c819055506129c3565b600260048111156129a2576129a1615050565b5b8260048111156129b5576129b4615050565b5b036129c25780600d819055505b5b5050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60176020528060005260406000206000915090505481565b73bc4ca0eda7647a8ab7c2061c2e118a18a936f13d81565b612a25612fab565b60008111612a3257600080fd5b80600f8190555050565b612a44612fab565b8160166000856004811115612a5c57612a5b615050565b5b6004811115612a6e57612a6d615050565b5b8152602001908152602001600020819055508060176000856004811115612a9857612a97615050565b5b6004811115612aaa57612aa9615050565b5b815260200190815260200160002081905550505050565b60105481565b612acf612fab565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612baf612fab565b600082118015612bbf5750600081115b612bc857600080fd5b81600e8190555080600f819055505050565b612be2612fab565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c48906156b3565b60405180910390fd5b612c5a81613352565b50565b600260166000826004811115612c7657612c75615050565b5b6004811115612c8857612c87615050565b5b815260200190815260200160002054421015612cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd0906150cb565b60405180910390fd5b60176000826004811115612cf057612cef615050565b5b6004811115612d0257612d01615050565b5b815260200190815260200160002054421115612d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4a906150cb565b60405180910390fd5b60028460105481612d626132cf565b612d6c919061511a565b1115612dad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da49061519a565b60405180910390fd5b60186000836004811115612dc457612dc3615050565b5b6004811115612dd657612dd5615050565b5b8152602001908152602001600020548160196000856004811115612dfd57612dfc615050565b5b6004811115612e0f57612e0e615050565b5b815260200190815260200160002054612e28919061511a565b1115612e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6090615206565b60405180910390fd5b8484600d54600033604051602001612e8191906152da565b604051602081830303815290604052805190602001209050612ee5848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508383613a87565b612f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1b90615341565b60405180910390fd5b600060029050612f34818c6136e6565b612f3e818c6132e2565b612f48338c613334565b8a601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f97919061511a565b925050819055505050505050505050505050565b612fb3613c8c565b73ffffffffffffffffffffffffffffffffffffffff16612fd1612265565b73ffffffffffffffffffffffffffffffffffffffff1614613027576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301e9061571f565b60405180910390fd5b565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061308457506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806130b45750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000816130c6613122565b111580156130d5575060005482105b8015613113575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061313a613122565b116131c0576000548110156131bf5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036131bd575b600081036131b3576004600083600190039350838152602001908152602001600020549050613189565b80925050506131f2565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861327f868684613c94565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6132cc816000613c9d565b50565b60006132d9613122565b60005403905090565b80601960008460048111156132fa576132f9615050565b5b600481111561330c5761330b615050565b5b81526020019081526020016000206000828254613329919061511a565b925050819055505050565b61334e828260405180602001604052806000815250613eef565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006002600481111561342e5761342d615050565b5b82600481111561344157613440615050565b5b036134e15760007382f371b47cc5b9cf23af60a9a31a9e7a6bef8a2d90508073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161349891906144d4565b602060405180830381865afa1580156134b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d99190615754565b9150506136e1565b600360048111156134f5576134f4615050565b5b82600481111561350857613507615050565b5b036136e057600073bc4ca0eda7647a8ab7c2061c2e118a18a936f13d905060007360e4d786628fea6478f785a6d7e704777c86a7c69050600073ba30e5f9bb24caa003e9f2f0497ad287fdf9562390508073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161359191906144d4565b602060405180830381865afa1580156135ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135d29190615754565b8273ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161360b91906144d4565b602060405180830381865afa158015613628573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061364c9190615754565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161368591906144d4565b602060405180830381865afa1580156136a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136c69190615754565b6136d0919061511a565b6136da919061511a565b93505050505b5b919050565b600034146138af576000816014600085600481111561370857613707615050565b5b600481111561371a57613719615050565b5b8152602001908152602001600020546137339190615781565b905080341015613778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376f90615827565b60405180910390fd5b600081346137869190615847565b90506000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516137d090614fcf565b60006040518083038185875af1925050503d806000811461380d576040519150601f19603f3d011682016040523d82523d6000602084013e613812565b606091505b5050905080613856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384d906158c7565b60405180910390fd5b60008211156138a7573373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156138a5573d6000803e3d6000fd5b505b505050613a83565b60008082601560008660048111156138ca576138c9615050565b5b60048111156138dc576138db615050565b5b8152602001908152602001600020546138f59190615781565b905060006003600481111561390d5761390c615050565b5b8560048111156139205761391f615050565b5b0361395f57600e54826139339190615781565b9150601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050613995565b600f548261396d9190615781565b9150601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b60008190508073ffffffffffffffffffffffffffffffffffffffff166323b872dd33600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518463ffffffff1660e01b81526004016139f993929190614d81565b6020604051808303816000875af1158015613a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a3c9190614dcd565b935083613a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7590615933565b60405180910390fd5b505050505b5050565b600082613a948584613f8c565b1490509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613ac461311a565b8786866040518563ffffffff1660e01b8152600401613ae694939291906159a8565b6020604051808303816000875af1925050508015613b2257506040513d601f19601f82011682018060405250810190613b1f9190615a09565b60015b613b9b573d8060008114613b52576040519150601f19603f3d011682016040523d82523d6000602084013e613b57565b606091505b506000815103613b93576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060613bf9826130bb565b613c2f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613c39613fe2565b90506000815103613c595760405180602001604052806000815250613c84565b80613c6384614074565b604051602001613c74929190615a72565b6040516020818303038152906040525b915050919050565b600033905090565b60009392505050565b6000613ca88361312b565b90506000819050600080613cbb866131f7565b915091508415613d2457613cd78184613cd261311a565b61321e565b613d2357613cec83613ce761311a565b612b13565b613d22576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b613d32836000886001613262565b8015613d3d57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613de583613da285600088613268565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613290565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603613e6b5760006001870190506000600460008381526020019081526020016000205403613e69576000548114613e68578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ed58360008860016132bb565b600160008154809291906001019190505550505050505050565b613ef983836140c4565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613f8757600080549050600083820390505b613f396000868380600101945086613a9e565b613f6f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613f26578160005414613f8457600080fd5b50505b505050565b60008082905060005b8451811015613fd757613fc282868381518110613fb557613fb4615a96565b5b602002602001015161427f565b91508080613fcf90615ac5565b915050613f95565b508091505092915050565b6060600b8054613ff190614e95565b80601f016020809104026020016040519081016040528092919081815260200182805461401d90614e95565b801561406a5780601f1061403f5761010080835404028352916020019161406a565b820191906000526020600020905b81548152906001019060200180831161404d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156140af57600184039350600a81066030018453600a810490508061408d575b50828103602084039350808452505050919050565b60008054905060008203614104576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6141116000848385613262565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550614188836141796000866000613268565b614182856142aa565b17613290565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461422957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506141ee565b5060008203614264576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061427a60008483856132bb565b505050565b60008183106142975761429282846142ba565b6142a2565b6142a183836142ba565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614310826142e5565b9050919050565b61432081614305565b811461432b57600080fd5b50565b60008135905061433d81614317565b92915050565b600061434e826142e5565b9050919050565b61435e81614343565b811461436957600080fd5b50565b60008135905061437b81614355565b92915050565b6000819050919050565b61439481614381565b811461439f57600080fd5b50565b6000813590506143b18161438b565b92915050565b6000806000606084860312156143d0576143cf6142db565b5b60006143de8682870161432e565b93505060206143ef8682870161436c565b9250506040614400868287016143a2565b9150509250925092565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61443f8161440a565b811461444a57600080fd5b50565b60008135905061445c81614436565b92915050565b600060208284031215614478576144776142db565b5b60006144868482850161444d565b91505092915050565b60008115159050919050565b6144a48161448f565b82525050565b60006020820190506144bf600083018461449b565b92915050565b6144ce81614343565b82525050565b60006020820190506144e960008301846144c5565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561452957808201518184015260208101905061450e565b60008484015250505050565b6000601f19601f8301169050919050565b6000614551826144ef565b61455b81856144fa565b935061456b81856020860161450b565b61457481614535565b840191505092915050565b600060208201905081810360008301526145998184614546565b905092915050565b6000602082840312156145b7576145b66142db565b5b60006145c5848285016143a2565b91505092915050565b600080604083850312156145e5576145e46142db565b5b60006145f38582860161436c565b9250506020614604858286016143a2565b9150509250929050565b61461781614381565b82525050565b6000602082019050614632600083018461460e565b92915050565b60006020828403121561464e5761464d6142db565b5b600061465c8482850161436c565b91505092915050565b6005811061467257600080fd5b50565b60008135905061468481614665565b92915050565b6000602082840312156146a05761469f6142db565b5b60006146ae84828501614675565b91505092915050565b6000806000606084860312156146d0576146cf6142db565b5b60006146de8682870161436c565b93505060206146ef8682870161436c565b9250506040614700868287016143a2565b9150509250925092565b6000819050919050565b61471d8161470a565b82525050565b60006020820190506147386000830184614714565b92915050565b61474781614305565b82525050565b6000602082019050614762600083018461473e565b92915050565b6000806040838503121561477f5761477e6142db565b5b600061478d8582860161432e565b925050602061479e858286016143a2565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126147cd576147cc6147a8565b5b8235905067ffffffffffffffff8111156147ea576147e96147ad565b5b602083019150836020820283011115614806576148056147b2565b5b9250929050565b600080600060408486031215614826576148256142db565b5b6000614834868287016143a2565b935050602084013567ffffffffffffffff811115614855576148546142e0565b5b614861868287016147b7565b92509250509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6148aa82614535565b810181811067ffffffffffffffff821117156148c9576148c8614872565b5b80604052505050565b60006148dc6142d1565b90506148e882826148a1565b919050565b600067ffffffffffffffff82111561490857614907614872565b5b61491182614535565b9050602081019050919050565b82818337600083830152505050565b600061494061493b846148ed565b6148d2565b90508281526020810184848401111561495c5761495b61486d565b5b61496784828561491e565b509392505050565b600082601f830112614984576149836147a8565b5b813561499484826020860161492d565b91505092915050565b6000602082840312156149b3576149b26142db565b5b600082013567ffffffffffffffff8111156149d1576149d06142e0565b5b6149dd8482850161496f565b91505092915050565b600080604083850312156149fd576149fc6142db565b5b6000614a0b85828601614675565b9250506020614a1c858286016143a2565b9150509250929050565b614a2f8161448f565b8114614a3a57600080fd5b50565b600081359050614a4c81614a26565b92915050565b60008060408385031215614a6957614a686142db565b5b6000614a778582860161436c565b9250506020614a8885828601614a3d565b9150509250929050565b600067ffffffffffffffff821115614aad57614aac614872565b5b614ab682614535565b9050602081019050919050565b6000614ad6614ad184614a92565b6148d2565b905082815260208101848484011115614af257614af161486d565b5b614afd84828561491e565b509392505050565b600082601f830112614b1a57614b196147a8565b5b8135614b2a848260208601614ac3565b91505092915050565b60008060008060808587031215614b4d57614b4c6142db565b5b6000614b5b8782880161436c565b9450506020614b6c8782880161436c565b9350506040614b7d878288016143a2565b925050606085013567ffffffffffffffff811115614b9e57614b9d6142e0565b5b614baa87828801614b05565b91505092959194509250565b614bbf8161470a565b8114614bca57600080fd5b50565b600081359050614bdc81614bb6565b92915050565b60008060408385031215614bf957614bf86142db565b5b6000614c0785828601614675565b9250506020614c1885828601614bcd565b9150509250929050565b600080600060608486031215614c3b57614c3a6142db565b5b6000614c4986828701614675565b9350506020614c5a868287016143a2565b9250506040614c6b868287016143a2565b9150509250925092565b600060208284031215614c8b57614c8a6142db565b5b6000614c998482850161432e565b91505092915050565b60008060408385031215614cb957614cb86142db565b5b6000614cc78582860161436c565b9250506020614cd88582860161436c565b9150509250929050565b60008060408385031215614cf957614cf86142db565b5b6000614d07858286016143a2565b9250506020614d18858286016143a2565b9150509250929050565b6000819050919050565b6000614d47614d42614d3d846142e5565b614d22565b6142e5565b9050919050565b6000614d5982614d2c565b9050919050565b6000614d6b82614d4e565b9050919050565b614d7b81614d60565b82525050565b6000606082019050614d9660008301866144c5565b614da36020830185614d72565b614db0604083018461460e565b949350505050565b600081519050614dc781614a26565b92915050565b600060208284031215614de357614de26142db565b5b6000614df184828501614db8565b91505092915050565b7f4661696c65642077697468647261772045524332300000000000000000000000600082015250565b6000614e306015836144fa565b9150614e3b82614dfa565b602082019050919050565b60006020820190508181036000830152614e5f81614e23565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614ead57607f821691505b602082108103614ec057614ebf614e66565b5b50919050565b7f57726f6e6720436f6e7472616374000000000000000000000000000000000000600082015250565b6000614efc600e836144fa565b9150614f0782614ec6565b602082019050919050565b60006020820190508181036000830152614f2b81614eef565b9050919050565b7f4f7665722062616c616e63650000000000000000000000000000000000000000600082015250565b6000614f68600c836144fa565b9150614f7382614f32565b602082019050919050565b60006020820190508181036000830152614f9781614f5b565b9050919050565b600081905092915050565b50565b6000614fb9600083614f9e565b9150614fc482614fa9565b600082019050919050565b6000614fda82614fac565b9150819050919050565b7f4661696c65642077697468647261772045544800000000000000000000000000600082015250565b600061501a6013836144fa565b915061502582614fe4565b602082019050919050565b600060208201905081810360008301526150498161500d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f53616c65206973206e6f74206f70656e00000000000000000000000000000000600082015250565b60006150b56010836144fa565b91506150c08261507f565b602082019050919050565b600060208201905081810360008301526150e4816150a8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061512582614381565b915061513083614381565b9250828201905080821115615148576151476150eb565b5b92915050565b7f416c6c204e46547320617265206d696e74656400000000000000000000000000600082015250565b60006151846013836144fa565b915061518f8261514e565b602082019050919050565b600060208201905081810360008301526151b381615177565b9050919050565b7f416c6c204e465420617265206d696e74656420666f722053616c655479706500600082015250565b60006151f0601f836144fa565b91506151fb826151ba565b602082019050919050565b6000602082019050818103600083015261521f816151e3565b9050919050565b7f30204e46542042616c616e636500000000000000000000000000000000000000600082015250565b600061525c600d836144fa565b915061526782615226565b602082019050919050565b6000602082019050818103600083015261528b8161524f565b9050919050565b60008160601b9050919050565b60006152aa82615292565b9050919050565b60006152bc8261529f565b9050919050565b6152d46152cf82614343565b6152b1565b82525050565b60006152e682846152c3565b60148201915081905092915050565b7f496e636f72726563742070726f6f660000000000000000000000000000000000600082015250565b600061532b600f836144fa565b9150615336826152f5565b602082019050919050565b6000602082019050818103600083015261535a8161531e565b9050919050565b7f4f766572204d696e74204c696d69740000000000000000000000000000000000600082015250565b6000615397600f836144fa565b91506153a282615361565b602082019050919050565b600060208201905081810360008301526153c68161538a565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261542f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826153f2565b61543986836153f2565b95508019841693508086168417925050509392505050565b600061546c61546761546284614381565b614d22565b614381565b9050919050565b6000819050919050565b61548683615451565b61549a61549282615473565b8484546153ff565b825550505050565b600090565b6154af6154a2565b6154ba81848461547d565b505050565b5b818110156154de576154d36000826154a7565b6001810190506154c0565b5050565b601f821115615523576154f4816153cd565b6154fd846153e2565b8101602085101561550c578190505b615520615518856153e2565b8301826154bf565b50505b505050565b600082821c905092915050565b600061554660001984600802615528565b1980831691505092915050565b600061555f8383615535565b9150826002028217905092915050565b615578826144ef565b67ffffffffffffffff81111561559157615590614872565b5b61559b8254614e95565b6155a68282856154e2565b600060209050601f8311600181146155d957600084156155c7578287015190505b6155d18582615553565b865550615639565b601f1984166155e7866153cd565b60005b8281101561560f578489015182556001820191506020850194506020810190506155ea565b8683101561562c5784890151615628601f891682615535565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061569d6026836144fa565b91506156a882615641565b604082019050919050565b600060208201905081810360008301526156cc81615690565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006157096020836144fa565b9150615714826156d3565b602082019050919050565b60006020820190508181036000830152615738816156fc565b9050919050565b60008151905061574e8161438b565b92915050565b60006020828403121561576a576157696142db565b5b60006157788482850161573f565b91505092915050565b600061578c82614381565b915061579783614381565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156157d0576157cf6150eb565b5b828202905092915050565b7f57652072657175697265206d6f72652065746865720000000000000000000000600082015250565b60006158116015836144fa565b915061581c826157db565b602082019050919050565b6000602082019050818103600083015261584081615804565b9050919050565b600061585282614381565b915061585d83614381565b9250828203905081811115615875576158746150eb565b5b92915050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b60006158b16014836144fa565b91506158bc8261587b565b602082019050919050565b600060208201905081810360008301526158e0816158a4565b9050919050565b7f4661696c656420746f2073656e6420546f6b656e000000000000000000000000600082015250565b600061591d6014836144fa565b9150615928826158e7565b602082019050919050565b6000602082019050818103600083015261594c81615910565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061597a82615953565b615984818561595e565b935061599481856020860161450b565b61599d81614535565b840191505092915050565b60006080820190506159bd60008301876144c5565b6159ca60208301866144c5565b6159d7604083018561460e565b81810360608301526159e9818461596f565b905095945050505050565b600081519050615a0381614436565b92915050565b600060208284031215615a1f57615a1e6142db565b5b6000615a2d848285016159f4565b91505092915050565b600081905092915050565b6000615a4c826144ef565b615a568185615a36565b9350615a6681856020860161450b565b80840191505092915050565b6000615a7e8285615a41565b9150615a8a8284615a41565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000615ad082614381565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615b0257615b016150eb565b5b60018201905091905056fea2646970667358221220a728ea4283b449b3bd694daee34fd00d78c3bbe57914cc81a49a8836de20c5b264736f6c63430008100033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000002ea46ef44dbb549fb45a65ba1a31543056d367a000000000000000000000000000000000000000000000000000000000000000d526561647920746f204241474300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d526561647920746f204241474300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003468747470733a2f2f6d696e742e626167632e616c746176612e636f6d2f76312f6d657461646174612f696e7669746174696f6e2f000000000000000000000000
Deployed Bytecode
0x6080604052600436106103b85760003560e01c80637e126be2116101f2578063b88d4fde1161010d578063e0d5082c116100a0578063e985e9c51161006f578063e985e9c514610ded578063ea842c0e14610e2a578063f2fde38b14610e53578063ff6d826814610e7c576103b8565b8063e0d5082c14610d47578063e80507fa14610d70578063e831574214610d99578063e8fa923314610dc4576103b8565b8063d19a11d6116100dc578063d19a11d614610c8b578063d354f6dd14610cb4578063d76fc6c314610cdf578063dc521a1014610d1c576103b8565b8063b88d4fde14610be0578063bf97180b14610bfc578063c5bf21c014610c25578063c87b56dd14610c4e576103b8565b806393a43eb111610185578063a5e0fa4e11610154578063a5e0fa4e14610b49578063a677b67d14610b72578063b3ab66b014610b9b578063b7b24dab14610bb7576103b8565b806393a43eb114610a8f57806395d89b4114610acc578063962bf6b814610af7578063a22cb46514610b20576103b8565b80638da5cb5b116101c15780638da5cb5b146109e7578063913cd58914610a125780639191552414610a3b578063931688cb14610a66576103b8565b80637e126be214610947578063816b7bca14610984578063884fa0b9146109a05780638d2eab8f146109bc576103b8565b80633237b96a116102e25780635599fee01161027557806370a082311161024457806370a082311461088b57806370e2f827146108c8578063715018a6146108f357806375ee2a5d1461090a576103b8565b80635599fee0146107d15780636352211e146107fa578063642c05b5146108375780636c0360eb14610860576103b8565b806342842e0e116102b157806342842e0e1461073857806342966c68146107545780634782f7791461077d57806352a51c15146107a6576103b8565b80633237b96a1461067c57806332ca156c146106a757806335bc78b0146106e457806338af3eed1461070d576103b8565b8063175e81201161035a578063239365371161032957806323936537146105cd57806323b872dd1461060a5780632c3db79e146106265780632e1ef41314610651576103b8565b8063175e8120146104fd57806318160ddd1461053a5780631f1d588a146105655780632383b49414610590576103b8565b806306fdde031161039657806306fdde031461044e578063081812fc14610479578063095ea7b3146104b65780630d0a57d5146104d2576103b8565b806301e33667146103bd57806301ffc9a7146103e6578063058d000d14610423575b600080fd5b3480156103c957600080fd5b506103e460048036038101906103df91906143b7565b610e98565b005b3480156103f257600080fd5b5061040d60048036038101906104089190614462565b610f70565b60405161041a91906144aa565b60405180910390f35b34801561042f57600080fd5b50610438610f82565b60405161044591906144d4565b60405180910390f35b34801561045a57600080fd5b50610463610fa8565b604051610470919061457f565b60405180910390f35b34801561048557600080fd5b506104a0600480360381019061049b91906145a1565b61103a565b6040516104ad91906144d4565b60405180910390f35b6104d060048036038101906104cb91906145ce565b6110b9565b005b3480156104de57600080fd5b506104e76111fd565b6040516104f4919061461d565b60405180910390f35b34801561050957600080fd5b50610524600480360381019061051f9190614638565b611203565b604051610531919061461d565b60405180910390f35b34801561054657600080fd5b5061054f61121b565b60405161055c919061461d565b60405180910390f35b34801561057157600080fd5b5061057a611232565b60405161058791906144d4565b60405180910390f35b34801561059c57600080fd5b506105b760048036038101906105b2919061468a565b61124a565b6040516105c4919061461d565b60405180910390f35b3480156105d957600080fd5b506105f460048036038101906105ef919061468a565b611262565b604051610601919061461d565b60405180910390f35b610624600480360381019061061f91906146b7565b61127a565b005b34801561063257600080fd5b5061063b61159c565b6040516106489190614723565b60405180910390f35b34801561065d57600080fd5b506106666115a2565b60405161067391906144d4565b60405180910390f35b34801561068857600080fd5b506106916115ba565b60405161069e91906144d4565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c9919061468a565b6115d2565b6040516106db919061461d565b60405180910390f35b3480156106f057600080fd5b5061070b600480360381019061070691906145a1565b6115ea565b005b34801561071957600080fd5b50610722611609565b60405161072f919061474d565b60405180910390f35b610752600480360381019061074d91906146b7565b61162f565b005b34801561076057600080fd5b5061077b600480360381019061077691906145a1565b61164f565b005b34801561078957600080fd5b506107a4600480360381019061079f9190614768565b6116eb565b005b3480156107b257600080fd5b506107bb6117e7565b6040516107c891906144d4565b60405180910390f35b3480156107dd57600080fd5b506107f860048036038101906107f391906145ce565b61180d565b005b34801561080657600080fd5b50610821600480360381019061081c91906145a1565b611a3d565b60405161082e91906144d4565b60405180910390f35b34801561084357600080fd5b5061085e600480360381019061085991906145a1565b611a4f565b005b34801561086c57600080fd5b50610875611a61565b604051610882919061457f565b60405180910390f35b34801561089757600080fd5b506108b260048036038101906108ad9190614638565b611aef565b6040516108bf919061461d565b60405180910390f35b3480156108d457600080fd5b506108dd611ba7565b6040516108ea919061461d565b60405180910390f35b3480156108ff57600080fd5b50610908611bad565b005b34801561091657600080fd5b50610931600480360381019061092c919061468a565b611bc1565b60405161093e919061461d565b60405180910390f35b34801561095357600080fd5b5061096e60048036038101906109699190614638565b611bd9565b60405161097b919061461d565b60405180910390f35b61099e600480360381019061099991906145a1565b611bf1565b005b6109ba60048036038101906109b5919061480d565b611f26565b005b3480156109c857600080fd5b506109d161225f565b6040516109de9190614723565b60405180910390f35b3480156109f357600080fd5b506109fc612265565b604051610a0991906144d4565b60405180910390f35b348015610a1e57600080fd5b50610a396004803603810190610a349190614638565b61228f565b005b348015610a4757600080fd5b50610a506122db565b604051610a5d919061461d565b60405180910390f35b348015610a7257600080fd5b50610a8d6004803603810190610a88919061499d565b6122e1565b005b348015610a9b57600080fd5b50610ab66004803603810190610ab1919061468a565b6122fc565b604051610ac3919061461d565b60405180910390f35b348015610ad857600080fd5b50610ae1612314565b604051610aee919061457f565b60405180910390f35b348015610b0357600080fd5b50610b1e6004803603810190610b1991906149e6565b6123a6565b005b348015610b2c57600080fd5b50610b476004803603810190610b429190614a52565b6123ee565b005b348015610b5557600080fd5b50610b706004803603810190610b6b9190614638565b6124f9565b005b348015610b7e57600080fd5b50610b996004803603810190610b9491906149e6565b612545565b005b610bb56004803603810190610bb091906145a1565b61259a565b005b348015610bc357600080fd5b50610bde6004803603810190610bd991906149e6565b612816565b005b610bfa6004803603810190610bf59190614b33565b61286b565b005b348015610c0857600080fd5b50610c236004803603810190610c1e91906145a1565b6128de565b005b348015610c3157600080fd5b50610c4c6004803603810190610c479190614638565b6128f0565b005b348015610c5a57600080fd5b50610c756004803603810190610c7091906145a1565b61293c565b604051610c82919061457f565b60405180910390f35b348015610c9757600080fd5b50610cb26004803603810190610cad9190614be2565b61294e565b005b348015610cc057600080fd5b50610cc96129c7565b604051610cd691906144d4565b60405180910390f35b348015610ceb57600080fd5b50610d066004803603810190610d01919061468a565b6129ed565b604051610d13919061461d565b60405180910390f35b348015610d2857600080fd5b50610d31612a05565b604051610d3e91906144d4565b60405180910390f35b348015610d5357600080fd5b50610d6e6004803603810190610d6991906145a1565b612a1d565b005b348015610d7c57600080fd5b50610d976004803603810190610d929190614c22565b612a3c565b005b348015610da557600080fd5b50610dae612ac1565b604051610dbb919061461d565b60405180910390f35b348015610dd057600080fd5b50610deb6004803603810190610de69190614c75565b612ac7565b005b348015610df957600080fd5b50610e146004803603810190610e0f9190614ca2565b612b13565b604051610e2191906144aa565b60405180910390f35b348015610e3657600080fd5b50610e516004803603810190610e4c9190614ce2565b612ba7565b005b348015610e5f57600080fd5b50610e7a6004803603810190610e759190614638565b612bda565b005b610e966004803603810190610e91919061480d565b612c5d565b005b610ea0612fab565b600082905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3087866040518463ffffffff1660e01b8152600401610ee493929190614d81565b6020604051808303816000875af1158015610f03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f279190614dcd565b905080610f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6090614e46565b60405180910390fd5b5050505050565b6000610f7b82613029565b9050919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060028054610fb790614e95565b80601f0160208091040260200160405190810160405280929190818152602001828054610fe390614e95565b80156110305780601f1061100557610100808354040283529160200191611030565b820191906000526020600020905b81548152906001019060200180831161101357829003601f168201915b5050505050905090565b6000611045826130bb565b61107b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006110c482611a3d565b90508073ffffffffffffffffffffffffffffffffffffffff166110e561311a565b73ffffffffffffffffffffffffffffffffffffffff1614611148576111118161110c61311a565b612b13565b611147576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600f5481565b601a6020528060005260406000206000915090505481565b6000611225613122565b6001546000540303905090565b7360e4d786628fea6478f785a6d7e704777c86a7c681565b60156020528060005260406000206000915090505481565b60166020528060005260406000206000915090505481565b60006112858261312b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112ec576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806112f8846131f7565b9150915061130e818761130961311a565b61321e565b61135a576113238661131e61311a565b612b13565b611359576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113c0576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113cd8686866001613262565b80156113d857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506114a685611482888887613268565b7c020000000000000000000000000000000000000000000000000000000017613290565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361152c576000600185019050600060046000838152602001908152602001600020540361152a576000548114611529578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461159486868660016132bb565b505050505050565b600c5481565b7382f371b47cc5b9cf23af60a9a31a9e7a6bef8a2d81565b73ba30e5f9bb24caa003e9f2f0497ad287fdf9562381565b60196020528060005260406000206000915090505481565b6115f2612fab565b600081116115ff57600080fd5b80600e8190555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61164a8383836040518060200160405280600081525061286b565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d690614f12565b60405180910390fd5b6116e8816132c1565b50565b6116f3612fab565b47811115611736576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172d90614f7e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161175c90614fcf565b60006040518083038185875af1925050503d8060008114611799576040519150601f19603f3d011682016040523d82523d6000602084013e61179e565b606091505b50509050806117e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d990615030565b60405180910390fd5b505050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60046016600082600481111561182657611825615050565b5b600481111561183857611837615050565b5b815260200190815260200160002054421015611889576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611880906150cb565b60405180910390fd5b601760008260048111156118a05761189f615050565b5b60048111156118b2576118b1615050565b5b815260200190815260200160002054421115611903576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fa906150cb565b60405180910390fd5b600482601054816119126132cf565b61191c919061511a565b111561195d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119549061519a565b60405180910390fd5b6018600083600481111561197457611973615050565b5b600481111561198657611985615050565b5b81526020019081526020016000205481601960008560048111156119ad576119ac615050565b5b60048111156119bf576119be615050565b5b8152602001908152602001600020546119d8919061511a565b1115611a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1090615206565b60405180910390fd5b611a21612fab565b611a2c6004856132e2565b611a368585613334565b5050505050565b6000611a488261312b565b9050919050565b611a57612fab565b8060118190555050565b600b8054611a6e90614e95565b80601f0160208091040260200160405190810160405280929190818152602001828054611a9a90614e95565b8015611ae75780601f10611abc57610100808354040283529160200191611ae7565b820191906000526020600020905b815481529060010190602001808311611aca57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b56576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b60115481565b611bb5612fab565b611bbf6000613352565b565b60146020528060005260406000206000915090505481565b601b6020528060005260406000206000915090505481565b600360166000826004811115611c0a57611c09615050565b5b6004811115611c1c57611c1b615050565b5b815260200190815260200160002054421015611c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c64906150cb565b60405180910390fd5b60176000826004811115611c8457611c83615050565b5b6004811115611c9657611c95615050565b5b815260200190815260200160002054421115611ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cde906150cb565b60405180910390fd5b60038260105481611cf66132cf565b611d00919061511a565b1115611d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d389061519a565b60405180910390fd5b60186000836004811115611d5857611d57615050565b5b6004811115611d6a57611d69615050565b5b8152602001908152602001600020548160196000856004811115611d9157611d90615050565b5b6004811115611da357611da2615050565b5b815260200190815260200160002054611dbc919061511a565b1115611dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df490615206565b60405180910390fd5b6000600390506000611e0e82613418565b905060008111611e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4a90615272565b60405180910390fd5b8086601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e9f919061511a565b1115611eaa57600080fd5b611eb482876136e6565b611ebe82876132e2565b611ec83387613334565b85601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f17919061511a565b92505081905550505050505050565b600060166000826004811115611f3f57611f3e615050565b5b6004811115611f5157611f50615050565b5b815260200190815260200160002054421015611fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f99906150cb565b60405180910390fd5b60176000826004811115611fb957611fb8615050565b5b6004811115611fcb57611fca615050565b5b81526020019081526020016000205442111561201c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612013906150cb565b60405180910390fd5b6000846010548161202b6132cf565b612035919061511a565b1115612076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206d9061519a565b60405180910390fd5b6018600083600481111561208d5761208c615050565b5b600481111561209f5761209e615050565b5b81526020019081526020016000205481601960008560048111156120c6576120c5615050565b5b60048111156120d8576120d7615050565b5b8152602001908152602001600020546120f1919061511a565b1115612132576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212990615206565b60405180910390fd5b8484600c5460003360405160200161214a91906152da565b6040516020818303038152906040528051906020012090506121ae848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508383613a87565b6121ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e490615341565b60405180910390fd5b6011548a1115612232576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612229906153ad565b60405180910390fd5b600061223e818c6136e6565b612248818c6132e2565b612252338c613334565b5050505050505050505050565b600d5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612297612fab565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b6122e9612fab565b80600b90816122f8919061556f565b5050565b60186020528060005260406000206000915090505481565b60606003805461232390614e95565b80601f016020809104026020016040519081016040528092919081815260200182805461234f90614e95565b801561239c5780601f106123715761010080835404028352916020019161239c565b820191906000526020600020905b81548152906001019060200180831161237f57829003601f168201915b5050505050905090565b6123ae612fab565b80601860008460048111156123c6576123c5615050565b5b60048111156123d8576123d7615050565b5b8152602001908152602001600020819055505050565b80600760006123fb61311a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166124a861311a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124ed91906144aa565b60405180910390a35050565b612501612fab565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61254d612fab565b6000811161255a57600080fd5b806015600084600481111561257257612571615050565b5b600481111561258457612583615050565b5b8152602001908152602001600020819055505050565b6001601660008260048111156125b3576125b2615050565b5b60048111156125c5576125c4615050565b5b815260200190815260200160002054421015612616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260d906150cb565b60405180910390fd5b6017600082600481111561262d5761262c615050565b5b600481111561263f5761263e615050565b5b815260200190815260200160002054421115612690576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612687906150cb565b60405180910390fd5b6001826010548161269f6132cf565b6126a9919061511a565b11156126ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e19061519a565b60405180910390fd5b6018600083600481111561270157612700615050565b5b600481111561271357612712615050565b5b815260200190815260200160002054816019600085600481111561273a57612739615050565b5b600481111561274c5761274b615050565b5b815260200190815260200160002054612765919061511a565b11156127a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279d90615206565b60405180910390fd5b6011548411156127eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e2906153ad565b60405180910390fd5b6000600190506127fb81866136e6565b61280581866132e2565b61280f3386613334565b5050505050565b61281e612fab565b6000811161282b57600080fd5b806014600084600481111561284357612842615050565b5b600481111561285557612854615050565b5b8152602001908152602001600020819055505050565b61287684848461127a565b60008373ffffffffffffffffffffffffffffffffffffffff163b146128d8576128a184848484613a9e565b6128d7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6128e6612fab565b8060108190555050565b6128f8612fab565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606061294782613bee565b9050919050565b612956612fab565b6000600481111561296a57612969615050565b5b82600481111561297d5761297c615050565b5b0361298e5780600c819055506129c3565b600260048111156129a2576129a1615050565b5b8260048111156129b5576129b4615050565b5b036129c25780600d819055505b5b5050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60176020528060005260406000206000915090505481565b73bc4ca0eda7647a8ab7c2061c2e118a18a936f13d81565b612a25612fab565b60008111612a3257600080fd5b80600f8190555050565b612a44612fab565b8160166000856004811115612a5c57612a5b615050565b5b6004811115612a6e57612a6d615050565b5b8152602001908152602001600020819055508060176000856004811115612a9857612a97615050565b5b6004811115612aaa57612aa9615050565b5b815260200190815260200160002081905550505050565b60105481565b612acf612fab565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612baf612fab565b600082118015612bbf5750600081115b612bc857600080fd5b81600e8190555080600f819055505050565b612be2612fab565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c48906156b3565b60405180910390fd5b612c5a81613352565b50565b600260166000826004811115612c7657612c75615050565b5b6004811115612c8857612c87615050565b5b815260200190815260200160002054421015612cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd0906150cb565b60405180910390fd5b60176000826004811115612cf057612cef615050565b5b6004811115612d0257612d01615050565b5b815260200190815260200160002054421115612d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4a906150cb565b60405180910390fd5b60028460105481612d626132cf565b612d6c919061511a565b1115612dad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da49061519a565b60405180910390fd5b60186000836004811115612dc457612dc3615050565b5b6004811115612dd657612dd5615050565b5b8152602001908152602001600020548160196000856004811115612dfd57612dfc615050565b5b6004811115612e0f57612e0e615050565b5b815260200190815260200160002054612e28919061511a565b1115612e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6090615206565b60405180910390fd5b8484600d54600033604051602001612e8191906152da565b604051602081830303815290604052805190602001209050612ee5848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508383613a87565b612f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1b90615341565b60405180910390fd5b600060029050612f34818c6136e6565b612f3e818c6132e2565b612f48338c613334565b8a601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f97919061511a565b925050819055505050505050505050505050565b612fb3613c8c565b73ffffffffffffffffffffffffffffffffffffffff16612fd1612265565b73ffffffffffffffffffffffffffffffffffffffff1614613027576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301e9061571f565b60405180910390fd5b565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061308457506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806130b45750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000816130c6613122565b111580156130d5575060005482105b8015613113575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061313a613122565b116131c0576000548110156131bf5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036131bd575b600081036131b3576004600083600190039350838152602001908152602001600020549050613189565b80925050506131f2565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861327f868684613c94565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6132cc816000613c9d565b50565b60006132d9613122565b60005403905090565b80601960008460048111156132fa576132f9615050565b5b600481111561330c5761330b615050565b5b81526020019081526020016000206000828254613329919061511a565b925050819055505050565b61334e828260405180602001604052806000815250613eef565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006002600481111561342e5761342d615050565b5b82600481111561344157613440615050565b5b036134e15760007382f371b47cc5b9cf23af60a9a31a9e7a6bef8a2d90508073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161349891906144d4565b602060405180830381865afa1580156134b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d99190615754565b9150506136e1565b600360048111156134f5576134f4615050565b5b82600481111561350857613507615050565b5b036136e057600073bc4ca0eda7647a8ab7c2061c2e118a18a936f13d905060007360e4d786628fea6478f785a6d7e704777c86a7c69050600073ba30e5f9bb24caa003e9f2f0497ad287fdf9562390508073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161359191906144d4565b602060405180830381865afa1580156135ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135d29190615754565b8273ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161360b91906144d4565b602060405180830381865afa158015613628573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061364c9190615754565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161368591906144d4565b602060405180830381865afa1580156136a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136c69190615754565b6136d0919061511a565b6136da919061511a565b93505050505b5b919050565b600034146138af576000816014600085600481111561370857613707615050565b5b600481111561371a57613719615050565b5b8152602001908152602001600020546137339190615781565b905080341015613778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376f90615827565b60405180910390fd5b600081346137869190615847565b90506000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516137d090614fcf565b60006040518083038185875af1925050503d806000811461380d576040519150601f19603f3d011682016040523d82523d6000602084013e613812565b606091505b5050905080613856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384d906158c7565b60405180910390fd5b60008211156138a7573373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156138a5573d6000803e3d6000fd5b505b505050613a83565b60008082601560008660048111156138ca576138c9615050565b5b60048111156138dc576138db615050565b5b8152602001908152602001600020546138f59190615781565b905060006003600481111561390d5761390c615050565b5b8560048111156139205761391f615050565b5b0361395f57600e54826139339190615781565b9150601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050613995565b600f548261396d9190615781565b9150601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b60008190508073ffffffffffffffffffffffffffffffffffffffff166323b872dd33600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518463ffffffff1660e01b81526004016139f993929190614d81565b6020604051808303816000875af1158015613a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a3c9190614dcd565b935083613a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7590615933565b60405180910390fd5b505050505b5050565b600082613a948584613f8c565b1490509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613ac461311a565b8786866040518563ffffffff1660e01b8152600401613ae694939291906159a8565b6020604051808303816000875af1925050508015613b2257506040513d601f19601f82011682018060405250810190613b1f9190615a09565b60015b613b9b573d8060008114613b52576040519150601f19603f3d011682016040523d82523d6000602084013e613b57565b606091505b506000815103613b93576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060613bf9826130bb565b613c2f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613c39613fe2565b90506000815103613c595760405180602001604052806000815250613c84565b80613c6384614074565b604051602001613c74929190615a72565b6040516020818303038152906040525b915050919050565b600033905090565b60009392505050565b6000613ca88361312b565b90506000819050600080613cbb866131f7565b915091508415613d2457613cd78184613cd261311a565b61321e565b613d2357613cec83613ce761311a565b612b13565b613d22576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b613d32836000886001613262565b8015613d3d57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613de583613da285600088613268565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613290565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603613e6b5760006001870190506000600460008381526020019081526020016000205403613e69576000548114613e68578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ed58360008860016132bb565b600160008154809291906001019190505550505050505050565b613ef983836140c4565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613f8757600080549050600083820390505b613f396000868380600101945086613a9e565b613f6f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613f26578160005414613f8457600080fd5b50505b505050565b60008082905060005b8451811015613fd757613fc282868381518110613fb557613fb4615a96565b5b602002602001015161427f565b91508080613fcf90615ac5565b915050613f95565b508091505092915050565b6060600b8054613ff190614e95565b80601f016020809104026020016040519081016040528092919081815260200182805461401d90614e95565b801561406a5780601f1061403f5761010080835404028352916020019161406a565b820191906000526020600020905b81548152906001019060200180831161404d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156140af57600184039350600a81066030018453600a810490508061408d575b50828103602084039350808452505050919050565b60008054905060008203614104576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6141116000848385613262565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550614188836141796000866000613268565b614182856142aa565b17613290565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461422957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506141ee565b5060008203614264576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061427a60008483856132bb565b505050565b60008183106142975761429282846142ba565b6142a2565b6142a183836142ba565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614310826142e5565b9050919050565b61432081614305565b811461432b57600080fd5b50565b60008135905061433d81614317565b92915050565b600061434e826142e5565b9050919050565b61435e81614343565b811461436957600080fd5b50565b60008135905061437b81614355565b92915050565b6000819050919050565b61439481614381565b811461439f57600080fd5b50565b6000813590506143b18161438b565b92915050565b6000806000606084860312156143d0576143cf6142db565b5b60006143de8682870161432e565b93505060206143ef8682870161436c565b9250506040614400868287016143a2565b9150509250925092565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61443f8161440a565b811461444a57600080fd5b50565b60008135905061445c81614436565b92915050565b600060208284031215614478576144776142db565b5b60006144868482850161444d565b91505092915050565b60008115159050919050565b6144a48161448f565b82525050565b60006020820190506144bf600083018461449b565b92915050565b6144ce81614343565b82525050565b60006020820190506144e960008301846144c5565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561452957808201518184015260208101905061450e565b60008484015250505050565b6000601f19601f8301169050919050565b6000614551826144ef565b61455b81856144fa565b935061456b81856020860161450b565b61457481614535565b840191505092915050565b600060208201905081810360008301526145998184614546565b905092915050565b6000602082840312156145b7576145b66142db565b5b60006145c5848285016143a2565b91505092915050565b600080604083850312156145e5576145e46142db565b5b60006145f38582860161436c565b9250506020614604858286016143a2565b9150509250929050565b61461781614381565b82525050565b6000602082019050614632600083018461460e565b92915050565b60006020828403121561464e5761464d6142db565b5b600061465c8482850161436c565b91505092915050565b6005811061467257600080fd5b50565b60008135905061468481614665565b92915050565b6000602082840312156146a05761469f6142db565b5b60006146ae84828501614675565b91505092915050565b6000806000606084860312156146d0576146cf6142db565b5b60006146de8682870161436c565b93505060206146ef8682870161436c565b9250506040614700868287016143a2565b9150509250925092565b6000819050919050565b61471d8161470a565b82525050565b60006020820190506147386000830184614714565b92915050565b61474781614305565b82525050565b6000602082019050614762600083018461473e565b92915050565b6000806040838503121561477f5761477e6142db565b5b600061478d8582860161432e565b925050602061479e858286016143a2565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126147cd576147cc6147a8565b5b8235905067ffffffffffffffff8111156147ea576147e96147ad565b5b602083019150836020820283011115614806576148056147b2565b5b9250929050565b600080600060408486031215614826576148256142db565b5b6000614834868287016143a2565b935050602084013567ffffffffffffffff811115614855576148546142e0565b5b614861868287016147b7565b92509250509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6148aa82614535565b810181811067ffffffffffffffff821117156148c9576148c8614872565b5b80604052505050565b60006148dc6142d1565b90506148e882826148a1565b919050565b600067ffffffffffffffff82111561490857614907614872565b5b61491182614535565b9050602081019050919050565b82818337600083830152505050565b600061494061493b846148ed565b6148d2565b90508281526020810184848401111561495c5761495b61486d565b5b61496784828561491e565b509392505050565b600082601f830112614984576149836147a8565b5b813561499484826020860161492d565b91505092915050565b6000602082840312156149b3576149b26142db565b5b600082013567ffffffffffffffff8111156149d1576149d06142e0565b5b6149dd8482850161496f565b91505092915050565b600080604083850312156149fd576149fc6142db565b5b6000614a0b85828601614675565b9250506020614a1c858286016143a2565b9150509250929050565b614a2f8161448f565b8114614a3a57600080fd5b50565b600081359050614a4c81614a26565b92915050565b60008060408385031215614a6957614a686142db565b5b6000614a778582860161436c565b9250506020614a8885828601614a3d565b9150509250929050565b600067ffffffffffffffff821115614aad57614aac614872565b5b614ab682614535565b9050602081019050919050565b6000614ad6614ad184614a92565b6148d2565b905082815260208101848484011115614af257614af161486d565b5b614afd84828561491e565b509392505050565b600082601f830112614b1a57614b196147a8565b5b8135614b2a848260208601614ac3565b91505092915050565b60008060008060808587031215614b4d57614b4c6142db565b5b6000614b5b8782880161436c565b9450506020614b6c8782880161436c565b9350506040614b7d878288016143a2565b925050606085013567ffffffffffffffff811115614b9e57614b9d6142e0565b5b614baa87828801614b05565b91505092959194509250565b614bbf8161470a565b8114614bca57600080fd5b50565b600081359050614bdc81614bb6565b92915050565b60008060408385031215614bf957614bf86142db565b5b6000614c0785828601614675565b9250506020614c1885828601614bcd565b9150509250929050565b600080600060608486031215614c3b57614c3a6142db565b5b6000614c4986828701614675565b9350506020614c5a868287016143a2565b9250506040614c6b868287016143a2565b9150509250925092565b600060208284031215614c8b57614c8a6142db565b5b6000614c998482850161432e565b91505092915050565b60008060408385031215614cb957614cb86142db565b5b6000614cc78582860161436c565b9250506020614cd88582860161436c565b9150509250929050565b60008060408385031215614cf957614cf86142db565b5b6000614d07858286016143a2565b9250506020614d18858286016143a2565b9150509250929050565b6000819050919050565b6000614d47614d42614d3d846142e5565b614d22565b6142e5565b9050919050565b6000614d5982614d2c565b9050919050565b6000614d6b82614d4e565b9050919050565b614d7b81614d60565b82525050565b6000606082019050614d9660008301866144c5565b614da36020830185614d72565b614db0604083018461460e565b949350505050565b600081519050614dc781614a26565b92915050565b600060208284031215614de357614de26142db565b5b6000614df184828501614db8565b91505092915050565b7f4661696c65642077697468647261772045524332300000000000000000000000600082015250565b6000614e306015836144fa565b9150614e3b82614dfa565b602082019050919050565b60006020820190508181036000830152614e5f81614e23565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614ead57607f821691505b602082108103614ec057614ebf614e66565b5b50919050565b7f57726f6e6720436f6e7472616374000000000000000000000000000000000000600082015250565b6000614efc600e836144fa565b9150614f0782614ec6565b602082019050919050565b60006020820190508181036000830152614f2b81614eef565b9050919050565b7f4f7665722062616c616e63650000000000000000000000000000000000000000600082015250565b6000614f68600c836144fa565b9150614f7382614f32565b602082019050919050565b60006020820190508181036000830152614f9781614f5b565b9050919050565b600081905092915050565b50565b6000614fb9600083614f9e565b9150614fc482614fa9565b600082019050919050565b6000614fda82614fac565b9150819050919050565b7f4661696c65642077697468647261772045544800000000000000000000000000600082015250565b600061501a6013836144fa565b915061502582614fe4565b602082019050919050565b600060208201905081810360008301526150498161500d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f53616c65206973206e6f74206f70656e00000000000000000000000000000000600082015250565b60006150b56010836144fa565b91506150c08261507f565b602082019050919050565b600060208201905081810360008301526150e4816150a8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061512582614381565b915061513083614381565b9250828201905080821115615148576151476150eb565b5b92915050565b7f416c6c204e46547320617265206d696e74656400000000000000000000000000600082015250565b60006151846013836144fa565b915061518f8261514e565b602082019050919050565b600060208201905081810360008301526151b381615177565b9050919050565b7f416c6c204e465420617265206d696e74656420666f722053616c655479706500600082015250565b60006151f0601f836144fa565b91506151fb826151ba565b602082019050919050565b6000602082019050818103600083015261521f816151e3565b9050919050565b7f30204e46542042616c616e636500000000000000000000000000000000000000600082015250565b600061525c600d836144fa565b915061526782615226565b602082019050919050565b6000602082019050818103600083015261528b8161524f565b9050919050565b60008160601b9050919050565b60006152aa82615292565b9050919050565b60006152bc8261529f565b9050919050565b6152d46152cf82614343565b6152b1565b82525050565b60006152e682846152c3565b60148201915081905092915050565b7f496e636f72726563742070726f6f660000000000000000000000000000000000600082015250565b600061532b600f836144fa565b9150615336826152f5565b602082019050919050565b6000602082019050818103600083015261535a8161531e565b9050919050565b7f4f766572204d696e74204c696d69740000000000000000000000000000000000600082015250565b6000615397600f836144fa565b91506153a282615361565b602082019050919050565b600060208201905081810360008301526153c68161538a565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261542f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826153f2565b61543986836153f2565b95508019841693508086168417925050509392505050565b600061546c61546761546284614381565b614d22565b614381565b9050919050565b6000819050919050565b61548683615451565b61549a61549282615473565b8484546153ff565b825550505050565b600090565b6154af6154a2565b6154ba81848461547d565b505050565b5b818110156154de576154d36000826154a7565b6001810190506154c0565b5050565b601f821115615523576154f4816153cd565b6154fd846153e2565b8101602085101561550c578190505b615520615518856153e2565b8301826154bf565b50505b505050565b600082821c905092915050565b600061554660001984600802615528565b1980831691505092915050565b600061555f8383615535565b9150826002028217905092915050565b615578826144ef565b67ffffffffffffffff81111561559157615590614872565b5b61559b8254614e95565b6155a68282856154e2565b600060209050601f8311600181146155d957600084156155c7578287015190505b6155d18582615553565b865550615639565b601f1984166155e7866153cd565b60005b8281101561560f578489015182556001820191506020850194506020810190506155ea565b8683101561562c5784890151615628601f891682615535565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061569d6026836144fa565b91506156a882615641565b604082019050919050565b600060208201905081810360008301526156cc81615690565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006157096020836144fa565b9150615714826156d3565b602082019050919050565b60006020820190508181036000830152615738816156fc565b9050919050565b60008151905061574e8161438b565b92915050565b60006020828403121561576a576157696142db565b5b60006157788482850161573f565b91505092915050565b600061578c82614381565b915061579783614381565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156157d0576157cf6150eb565b5b828202905092915050565b7f57652072657175697265206d6f72652065746865720000000000000000000000600082015250565b60006158116015836144fa565b915061581c826157db565b602082019050919050565b6000602082019050818103600083015261584081615804565b9050919050565b600061585282614381565b915061585d83614381565b9250828203905081811115615875576158746150eb565b5b92915050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b60006158b16014836144fa565b91506158bc8261587b565b602082019050919050565b600060208201905081810360008301526158e0816158a4565b9050919050565b7f4661696c656420746f2073656e6420546f6b656e000000000000000000000000600082015250565b600061591d6014836144fa565b9150615928826158e7565b602082019050919050565b6000602082019050818103600083015261594c81615910565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061597a82615953565b615984818561595e565b935061599481856020860161450b565b61599d81614535565b840191505092915050565b60006080820190506159bd60008301876144c5565b6159ca60208301866144c5565b6159d7604083018561460e565b81810360608301526159e9818461596f565b905095945050505050565b600081519050615a0381614436565b92915050565b600060208284031215615a1f57615a1e6142db565b5b6000615a2d848285016159f4565b91505092915050565b600081905092915050565b6000615a4c826144ef565b615a568185615a36565b9350615a6681856020860161450b565b80840191505092915050565b6000615a7e8285615a41565b9150615a8a8284615a41565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000615ad082614381565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615b0257615b016150eb565b5b60018201905091905056fea2646970667358221220a728ea4283b449b3bd694daee34fd00d78c3bbe57914cc81a49a8836de20c5b264736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000002ea46ef44dbb549fb45a65ba1a31543056d367a000000000000000000000000000000000000000000000000000000000000000d526561647920746f204241474300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d526561647920746f204241474300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003468747470733a2f2f6d696e742e626167632e616c746176612e636f6d2f76312f6d657461646174612f696e7669746174696f6e2f000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Ready to BAGC
Arg [1] : symbol_ (string): Ready to BAGC
Arg [2] : baseURI_ (string): https://mint.bagc.altava.com/v1/metadata/invitation/
Arg [3] : beneficiary_ (address): 0x02Ea46ef44DbB549fB45A65ba1a31543056D367A
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 00000000000000000000000002ea46ef44dbb549fb45a65ba1a31543056d367a
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [5] : 526561647920746f204241474300000000000000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [7] : 526561647920746f204241474300000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000034
Arg [9] : 68747470733a2f2f6d696e742e626167632e616c746176612e636f6d2f76312f
Arg [10] : 6d657461646174612f696e7669746174696f6e2f000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.