Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 18 from a total of 18 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 16890817 | 642 days ago | IN | 0 ETH | 0.00083287 | ||||
Mint Bull | 16890096 | 643 days ago | IN | 0.005 ETH | 0.00281077 | ||||
Mint Bull | 16886822 | 643 days ago | IN | 0.015 ETH | 0.00398553 | ||||
Mint Bear | 16886814 | 643 days ago | IN | 0.015 ETH | 0.00314094 | ||||
Mint Bull | 16886798 | 643 days ago | IN | 0.015 ETH | 0.00426949 | ||||
Mint Bull | 16886798 | 643 days ago | IN | 0.015 ETH | 0.00426949 | ||||
Mint Bull | 16886798 | 643 days ago | IN | 0.015 ETH | 0.00426949 | ||||
Mint Bull | 16886798 | 643 days ago | IN | 0.015 ETH | 0.00778555 | ||||
Mint Bull | 16886798 | 643 days ago | IN | 0.015 ETH | 0.00778555 | ||||
Mint Bull | 16886798 | 643 days ago | IN | 0.015 ETH | 0.00778555 | ||||
Mint Bull | 16886798 | 643 days ago | IN | 0.015 ETH | 0.00831565 | ||||
Flip Sale Start | 16886797 | 643 days ago | IN | 0 ETH | 0.00072387 | ||||
Mint Bear | 16886797 | 643 days ago | IN | 0.015 ETH | 0.0006031 | ||||
Mint Bull | 16886797 | 643 days ago | IN | 0.015 ETH | 0.0006037 | ||||
Mint Bull | 16886797 | 643 days ago | IN | 0.015 ETH | 0.0006037 | ||||
Mint Bull | 16886797 | 643 days ago | IN | 0.015 ETH | 0.0006037 | ||||
Mint Bear | 16886797 | 643 days ago | IN | 0.015 ETH | 0.0006031 | ||||
Mint Bear | 16886797 | 643 days ago | IN | 0.015 ETH | 0.0006031 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16890817 | 642 days ago | 0.14 ETH |
Loading...
Loading
Contract Name:
ArbHamster
Compiler Version
v0.8.18+commit.87f61d96
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.4; import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; uint256 encodedLen = 4 * ((len + 2) / 3); bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF) ) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } } contract ArbHamster is ERC721A, Ownable { uint256 public maxSupply = 3333; uint256 public perWallet = 3; uint256 public price = 0.005 ether; mapping(uint256 => bool) public isBull; mapping(address => uint256) public bullCount; mapping(address => bool) public isBurned; uint256[] public bullIds; uint256[] public bearIds; string private bullUri; string private bearUri; bool public winResult; bool public isBullWin; bool public sale; constructor(string memory _bullUri, string memory _bearUri) ERC721A("ArbiHamsters", "ARBHAM") { bullUri = _bullUri; bearUri = _bearUri; _safeMint(msg.sender, 45); } modifier validateTx(uint256 count) { require(sale, "Minting hasn't started yet."); require( _numberMinted(msg.sender) + count <= perWallet, "Out of limits" ); require(_totalMinted() + count <= maxSupply, "Out of limits"); require(msg.value == price * count, "Wrong price."); _; } function mintBull(uint256 count) public payable validateTx(count) { for (uint256 i = _totalMinted() + 1; i <= _totalMinted() + count; i++) { bullIds.push(i); isBull[i] = true; } _safeMint(msg.sender, count); } function mintBear(uint256 count) public payable validateTx(count) { for (uint256 i = _totalMinted() + 1; i <= _totalMinted() + count; i++) { bearIds.push(i); } _safeMint(msg.sender, count); } function burnNotWinNft() public { uint256 balance = balanceOf(msg.sender); require(winResult, "No results yet."); require(balance > 0, "You don't own the nft."); uint256 canBurn = 0; if (isBullWin) { canBurn = bullCount[msg.sender]; } else { if (balance >= bullCount[msg.sender]) { canBurn = balance - bullCount[msg.sender]; } else { canBurn = bullCount[msg.sender] - balance; } } require(canBurn > 0, "You didn't win."); require(!isBurned[msg.sender], "You have already burned the nft."); for (uint256 i = 0; i < canBurn; i++) { if (!isBullWin) { if (bullIds.length > 0) { uint256 last_id = bullIds[bullIds.length - 1]; _burn(last_id); isBurned[msg.sender] = true; bullIds.pop(); } } else { if (bearIds.length > 0) { uint256 last_id = bearIds[bearIds.length - 1]; _burn(last_id); isBurned[msg.sender] = true; bearIds.pop(); } } } } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal override { if (from == address(0)) { if (isBull[startTokenId]) { bullCount[to] += quantity; } } else { if (isBull[startTokenId]) { bullCount[to]++; if (bullCount[from] - 1 >= 0) { bullCount[from]--; } } } } function flipSaleStart() public onlyOwner { sale = !sale; } function setWin(bool bullWin) public onlyOwner { winResult = true; isBullWin = bullWin; } function tokenURI(uint256 tokenId) public view override returns (string memory) { string memory uri = isBull[tokenId] ? bullUri : bearUri; return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"name":"', "ArbiHamster #", _toString(tokenId), "", '", "description":"3333 animated hamsters chasing an Arbitrum drop on an AI-generated charts.", "image":"', uri, _toString(tokenId), ".gif", '","attributes":[{"trait_type":"Type", "value":"',isBull[tokenId] ? 'Bull' : 'Bear','"}]','}' ) ) ) ) ); } function withdraw() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } }
// 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 // 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 1; } /** * @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.selector); 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.selector); 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 Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @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 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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.selector); 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 result) { if (_startTokenId() <= tokenId) { if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @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); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _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.selector); } } /** * @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.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _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.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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.selector); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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.selector); } _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.selector); 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) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// 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); }
// 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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_bullUri","type":"string"},{"internalType":"string","name":"_bearUri","type":"string"}],"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":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bearIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bullCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bullIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnNotWinNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleStart","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":"uint256","name":"","type":"uint256"}],"name":"isBull","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBullWin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBurned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mintBear","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mintBull","outputs":[],"stateMutability":"payable","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":[],"name":"perWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":[],"name":"sale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bullWin","type":"bool"}],"name":"setWin","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":[{"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":[],"name":"winResult","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610d056009556003600a556611c37937e08000600b553480156200002757600080fd5b5060405162004c8d38038062004c8d83398181016040528101906200004d9190620009ee565b6040518060400160405280600c81526020017f4172626948616d737465727300000000000000000000000000000000000000008152506040518060400160405280600681526020017f41524248414d00000000000000000000000000000000000000000000000000008152508160029081620000ca919062000cbe565b508060039081620000dc919062000cbe565b50620000ed6200015460201b60201c565b600081905550505062000115620001096200015d60201b60201c565b6200016560201b60201c565b816011908162000126919062000cbe565b50806012908162000138919062000cbe565b506200014c33602d6200022b60201b60201c565b50506200105b565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200024d8282604051806020016040528060008152506200025160201b60201c565b5050565b620002638383620002fa60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14620002f557600080549050600083820390505b620002ac60008683806001019450866200049860201b60201c565b620002ca57620002c963d1a57ed660e01b620005e060201b60201c565b5b81811062000291578160005414620002f257620002f1600060e01b620005e060201b60201c565b5b50505b505050565b6000805490506000820362000322576200032163b562e8dd60e01b620005e060201b60201c565b5b620003376000848385620005ea60201b60201c565b6200036f83620003516000866000620007d960201b60201c565b62000362856200080960201b60201c565b176200081960201b60201c565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690506000810362000430576200042f632e07630060e01b620005e060201b60201c565b5b6000838301905060008390505b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036200043d57816000819055505050506200049360008483856200084460201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620004c66200084a60201b60201c565b8786866040518563ffffffff1660e01b8152600401620004ea949392919062000e58565b6020604051808303816000875af19250505080156200052957506040513d601f19601f8201168201806040525081019062000526919062000f09565b60015b6200058d573d80600081146200055c576040519150601f19603f3d011682016040523d82523d6000602084013e62000561565b606091505b50600081510362000585576200058463d1a57ed660e01b620005e060201b60201c565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b8060005260046000fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603620006a557600c600083815260200190815260200160002060009054906101000a900460ff16156200069f5780600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825462000697919062000f6a565b925050819055505b620007d3565b600c600083815260200190815260200160002060009054906101000a900460ff1615620007d257600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906200071e9062000fa5565b919050555060006001600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205462000773919062000ff2565b10620007d157600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190620007cb906200102d565b91905055505b5b5b50505050565b60008060e883901c905060e8620007f88686846200085260201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620008c48262000879565b810181811067ffffffffffffffff82111715620008e657620008e56200088a565b5b80604052505050565b6000620008fb6200085b565b9050620009098282620008b9565b919050565b600067ffffffffffffffff8211156200092c576200092b6200088a565b5b620009378262000879565b9050602081019050919050565b60005b838110156200096457808201518184015260208101905062000947565b60008484015250505050565b60006200098762000981846200090e565b620008ef565b905082815260208101848484011115620009a657620009a562000874565b5b620009b384828562000944565b509392505050565b600082601f830112620009d357620009d26200086f565b5b8151620009e584826020860162000970565b91505092915050565b6000806040838503121562000a085762000a0762000865565b5b600083015167ffffffffffffffff81111562000a295762000a286200086a565b5b62000a3785828601620009bb565b925050602083015167ffffffffffffffff81111562000a5b5762000a5a6200086a565b5b62000a6985828601620009bb565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000ac657607f821691505b60208210810362000adc5762000adb62000a7e565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000b467fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000b07565b62000b52868362000b07565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000b9f62000b9962000b938462000b6a565b62000b74565b62000b6a565b9050919050565b6000819050919050565b62000bbb8362000b7e565b62000bd362000bca8262000ba6565b84845462000b14565b825550505050565b600090565b62000bea62000bdb565b62000bf781848462000bb0565b505050565b5b8181101562000c1f5762000c1360008262000be0565b60018101905062000bfd565b5050565b601f82111562000c6e5762000c388162000ae2565b62000c438462000af7565b8101602085101562000c53578190505b62000c6b62000c628562000af7565b83018262000bfc565b50505b505050565b600082821c905092915050565b600062000c936000198460080262000c73565b1980831691505092915050565b600062000cae838362000c80565b9150826002028217905092915050565b62000cc98262000a73565b67ffffffffffffffff81111562000ce55762000ce46200088a565b5b62000cf1825462000aad565b62000cfe82828562000c23565b600060209050601f83116001811462000d36576000841562000d21578287015190505b62000d2d858262000ca0565b86555062000d9d565b601f19841662000d468662000ae2565b60005b8281101562000d705784890151825560018201915060208501945060208101905062000d49565b8683101562000d90578489015162000d8c601f89168262000c80565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000dd28262000da5565b9050919050565b62000de48162000dc5565b82525050565b62000df58162000b6a565b82525050565b600081519050919050565b600082825260208201905092915050565b600062000e248262000dfb565b62000e30818562000e06565b935062000e4281856020860162000944565b62000e4d8162000879565b840191505092915050565b600060808201905062000e6f600083018762000dd9565b62000e7e602083018662000dd9565b62000e8d604083018562000dea565b818103606083015262000ea1818462000e17565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62000ee38162000eac565b811462000eef57600080fd5b50565b60008151905062000f038162000ed8565b92915050565b60006020828403121562000f225762000f2162000865565b5b600062000f328482850162000ef2565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000f778262000b6a565b915062000f848362000b6a565b925082820190508082111562000f9f5762000f9e62000f3b565b5b92915050565b600062000fb28262000b6a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000fe75762000fe662000f3b565b5b600182019050919050565b600062000fff8262000b6a565b91506200100c8362000b6a565b925082820390508181111562001027576200102662000f3b565b5b92915050565b60006200103a8262000b6a565b91506000820362001050576200104f62000f3b565b5b600182039050919050565b613c22806200106b6000396000f3fe6080604052600436106101f95760003560e01c8063934b7cc51161010d578063c358575c116100a0578063dd39b63c1161006f578063dd39b63c146106d1578063deb09beb1461070e578063e985e9c514610739578063f2fde38b14610776578063f63894f61461079f576101f9565b8063c358575c14610622578063c87b56dd1461063e578063cd68bfb91461067b578063d5abeb01146106a6576101f9565b8063a035b1fe116100dc578063a035b1fe14610575578063a22cb465146105a0578063b670f968146105c9578063b88d4fde14610606576101f9565b8063934b7cc5146104b957806395d89b41146104f65780639a2bc78c146105215780639d34dd0c14610538576101f9565b80633ccfd60b1161019057806370a082311161015f57806370a08231146103d4578063715018a614610411578063716c9970146104285780637f7e5a94146104655780638da5cb5b1461048e576101f9565b80633ccfd60b1461033957806342842e0e146103505780636352211e1461036c5780636ad1fe02146103a9576101f9565b8063095ea7b3116101cc578063095ea7b3146102bf5780631481bc7b146102db57806318160ddd146102f257806323b872dd1461031d576101f9565b806301ffc9a7146101fe57806303ff8e9b1461023b57806306fdde0314610257578063081812fc14610282575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612ae2565b6107ca565b6040516102329190612b2a565b60405180910390f35b61025560048036038101906102509190612b7b565b61085c565b005b34801561026357600080fd5b5061026c610a53565b6040516102799190612c38565b60405180910390f35b34801561028e57600080fd5b506102a960048036038101906102a49190612b7b565b610ae5565b6040516102b69190612c9b565b60405180910390f35b6102d960048036038101906102d49190612ce2565b610b43565b005b3480156102e757600080fd5b506102f0610b53565b005b3480156102fe57600080fd5b50610307610fde565b6040516103149190612d31565b60405180910390f35b61033760048036038101906103329190612d4c565b610ff5565b005b34801561034557600080fd5b5061034e6112b6565b005b61036a60048036038101906103659190612d4c565b611307565b005b34801561037857600080fd5b50610393600480360381019061038e9190612b7b565b611327565b6040516103a09190612c9b565b60405180910390f35b3480156103b557600080fd5b506103be611339565b6040516103cb9190612b2a565b60405180910390f35b3480156103e057600080fd5b506103fb60048036038101906103f69190612d9f565b61134c565b6040516104089190612d31565b60405180910390f35b34801561041d57600080fd5b506104266113e3565b005b34801561043457600080fd5b5061044f600480360381019061044a9190612b7b565b6113f7565b60405161045c9190612b2a565b60405180910390f35b34801561047157600080fd5b5061048c60048036038101906104879190612df8565b611417565b005b34801561049a57600080fd5b506104a3611457565b6040516104b09190612c9b565b60405180910390f35b3480156104c557600080fd5b506104e060048036038101906104db9190612d9f565b611481565b6040516104ed9190612d31565b60405180910390f35b34801561050257600080fd5b5061050b611499565b6040516105189190612c38565b60405180910390f35b34801561052d57600080fd5b5061053661152b565b005b34801561054457600080fd5b5061055f600480360381019061055a9190612b7b565b61155f565b60405161056c9190612d31565b60405180910390f35b34801561058157600080fd5b5061058a611583565b6040516105979190612d31565b60405180910390f35b3480156105ac57600080fd5b506105c760048036038101906105c29190612e25565b611589565b005b3480156105d557600080fd5b506105f060048036038101906105eb9190612d9f565b611694565b6040516105fd9190612b2a565b60405180910390f35b610620600480360381019061061b9190612f9a565b6116b4565b005b61063c60048036038101906106379190612b7b565b611706565b005b34801561064a57600080fd5b5061066560048036038101906106609190612b7b565b6118d1565b6040516106729190612c38565b60405180910390f35b34801561068757600080fd5b50610690611a8a565b60405161069d9190612d31565b60405180910390f35b3480156106b257600080fd5b506106bb611a90565b6040516106c89190612d31565b60405180910390f35b3480156106dd57600080fd5b506106f860048036038101906106f39190612b7b565b611a96565b6040516107059190612d31565b60405180910390f35b34801561071a57600080fd5b50610723611aba565b6040516107309190612b2a565b60405180910390f35b34801561074557600080fd5b50610760600480360381019061075b919061301d565b611acd565b60405161076d9190612b2a565b60405180910390f35b34801561078257600080fd5b5061079d60048036038101906107989190612d9f565b611b61565b005b3480156107ab57600080fd5b506107b4611be4565b6040516107c19190612b2a565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061082557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108555750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b80601360029054906101000a900460ff166108ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a3906130a9565b60405180910390fd5b600a54816108b933611bf7565b6108c391906130f8565b1115610904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fb90613178565b60405180910390fd5b60095481610910611c4e565b61091a91906130f8565b111561095b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095290613178565b60405180910390fd5b80600b546109699190613198565b34146109aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a190613226565b60405180910390fd5b600060016109b6611c4e565b6109c091906130f8565b90505b826109cc611c4e565b6109d691906130f8565b8111610a4457600f8190806001815401808255809150506001900390600052602060002001600090919091909150556001600c600083815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610a3c90613246565b9150506109c3565b50610a4f3383611c61565b5050565b606060028054610a62906132bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8e906132bd565b8015610adb5780601f10610ab057610100808354040283529160200191610adb565b820191906000526020600020905b815481529060010190602001808311610abe57829003601f168201915b5050505050905090565b6000610af082611c7f565b610b0557610b0463cf4700e460e01b611cf8565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610b4f82826001611d02565b5050565b6000610b5e3361134c565b9050601360009054906101000a900460ff16610baf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba69061333a565b60405180910390fd5b60008111610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be9906133a6565b60405180910390fd5b6000601360019054906101000a900460ff1615610c5057600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d37565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548210610ce857600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482610ce191906133c6565b9050610d36565b81600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d3391906133c6565b90505b5b60008111610d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7190613446565b60405180910390fd5b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610e07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfe906134b2565b60405180910390fd5b60005b81811015610fd957601360019054906101000a900460ff16610ef8576000600f805490501115610ef3576000600f6001600f80549050610e4a91906133c6565b81548110610e5b57610e5a6134d2565b5b90600052602060002001549050610e7181611e31565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600f805480610edb57610eda613501565b5b60019003818190600052602060002001600090559055505b610fc6565b60006010805490501115610fc557600060106001601080549050610f1c91906133c6565b81548110610f2d57610f2c6134d2565b5b90600052602060002001549050610f4381611e31565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506010805480610fad57610fac613501565b5b60019003818190600052602060002001600090559055505b5b8080610fd190613246565b915050610e0a565b505050565b6000610fe8611e3f565b6001546000540303905090565b600061100082611e48565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110755761107463a114810060e01b611cf8565b5b60008061108184611f34565b915091506110978187611092611f5b565b611f63565b6110c2576110ac866110a7611f5b565b611acd565b6110c1576110c06359c896be60e01b611cf8565b5b5b6110cf8686866001611fa7565b80156110da57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111a885611184888887612189565b7c0200000000000000000000000000000000000000000000000000000000176121b1565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361122e576000600185019050600060046000838152602001908152602001600020540361122c57600054811461122b578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600081036112a05761129f63ea553b3460e01b611cf8565b5b6112ad87878760016121dc565b50505050505050565b6112be6121e2565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611304573d6000803e3d6000fd5b50565b611322838383604051806020016040528060008152506116b4565b505050565b600061133282611e48565b9050919050565b601360029054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361139257611391638f4eb60460e01b611cf8565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113eb6121e2565b6113f56000612260565b565b600c6020528060005260406000206000915054906101000a900460ff1681565b61141f6121e2565b6001601360006101000a81548160ff02191690831515021790555080601360016101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d6020528060005260406000206000915090505481565b6060600380546114a8906132bd565b80601f01602080910402602001604051908101604052809291908181526020018280546114d4906132bd565b80156115215780601f106114f657610100808354040283529160200191611521565b820191906000526020600020905b81548152906001019060200180831161150457829003601f168201915b5050505050905090565b6115336121e2565b601360029054906101000a900460ff1615601360026101000a81548160ff021916908315150217905550565b6010818154811061156f57600080fd5b906000526020600020016000915090505481565b600b5481565b8060076000611596611f5b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611643611f5b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116889190612b2a565b60405180910390a35050565b600e6020528060005260406000206000915054906101000a900460ff1681565b6116bf848484610ff5565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611700576116ea84848484612326565b6116ff576116fe63d1a57ed660e01b611cf8565b5b5b50505050565b80601360029054906101000a900460ff16611756576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174d906130a9565b60405180910390fd5b600a548161176333611bf7565b61176d91906130f8565b11156117ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a590613178565b60405180910390fd5b600954816117ba611c4e565b6117c491906130f8565b1115611805576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fc90613178565b60405180910390fd5b80600b546118139190613198565b3414611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184b90613226565b60405180910390fd5b60006001611860611c4e565b61186a91906130f8565b90505b82611876611c4e565b61188091906130f8565b81116118c257601081908060018154018082558091505060019003906000526020600020016000909190919091505580806118ba90613246565b91505061186d565b506118cd3383611c61565b5050565b60606000600c600084815260200190815260200160002060009054906101000a900460ff16611901576012611904565b60115b805461190f906132bd565b80601f016020809104026020016040519081016040528092919081815260200182805461193b906132bd565b80156119885780601f1061195d57610100808354040283529160200191611988565b820191906000526020600020905b81548152906001019060200180831161196b57829003601f168201915b50505050509050611a6361199b84612455565b826119a586612455565b600c600088815260200190815260200160002060009054906101000a900460ff16611a05576040518060400160405280600481526020017f4265617200000000000000000000000000000000000000000000000000000000815250611a3c565b6040518060400160405280600481526020017f42756c6c000000000000000000000000000000000000000000000000000000008152505b604051602001611a4f949392919061383e565b6040516020818303038152906040526124a5565b604051602001611a739190613920565b604051602081830303815290604052915050919050565b600a5481565b60095481565b600f8181548110611aa657600080fd5b906000526020600020016000915090505481565b601360019054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b696121e2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcf906139b4565b60405180910390fd5b611be181612260565b50565b601360009054906101000a900460ff1681565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000611c58611e3f565b60005403905090565b611c7b82826040518060200160405280600081525061263c565b5050565b600081611c8a611e3f565b11611cf357600054821015611cf25760005b6000600460008581526020019081526020016000205491508103611ccb5782611cc4906139d4565b9250611c9c565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b919050565b8060005260046000fd5b6000611d0d83611327565b9050818015611d4f57508073ffffffffffffffffffffffffffffffffffffffff16611d36611f5b565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611d7b57611d6581611d60611f5b565b611acd565b611d7a57611d7963cfb3b94260e01b611cf8565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b611e3c8160006126c1565b50565b60006001905090565b600081611e53611e3f565b11611f1e576004600083815260200190815260200160002054905060008103611ef5576000548210611e9057611e8f63df2d9b4260e01b611cf8565b5b5b60046000836001900393508381526020019081526020016000205490506000810315611ef05760007c010000000000000000000000000000000000000000000000000000000082160315611f2f57611eef63df2d9b4260e01b611cf8565b5b611e91565b60007c010000000000000000000000000000000000000000000000000000000082160315611f2f575b611f2e63df2d9b4260e01b611cf8565b5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361205d57600c600083815260200190815260200160002060009054906101000a900460ff16156120585780600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461205091906130f8565b925050819055505b612183565b600c600083815260200190815260200160002060009054906101000a900460ff161561218257600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906120d390613246565b919050555060006001600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461212691906133c6565b1061218157600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061217b906139d4565b91905055505b5b5b50505050565b60008060e883901c905060e86121a08686846128f2565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6121ea6128fb565b73ffffffffffffffffffffffffffffffffffffffff16612208611457565b73ffffffffffffffffffffffffffffffffffffffff161461225e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225590613a49565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261234c611f5b565b8786866040518563ffffffff1660e01b815260040161236e9493929190613abe565b6020604051808303816000875af19250505080156123aa57506040513d601f19601f820116820180604052508101906123a79190613b1f565b60015b612402573d80600081146123da576040519150601f19603f3d011682016040523d82523d6000602084013e6123df565b606091505b5060008151036123fa576123f963d1a57ed660e01b611cf8565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060a060405101806040526020810391506000825281835b60011561249057600184039350600a81066030018453600a810490508061246e575b50828103602084039350808452505050919050565b6060600082519050600081036124cd5760405180602001604052806000815250915050612637565b600060036002836124de91906130f8565b6124e89190613b7b565b60046124f49190613198565b9050600060208261250591906130f8565b67ffffffffffffffff81111561251e5761251d612e6f565b5b6040519080825280601f01601f1916602001820160405280156125505781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001613bad604091399050600181016020830160005b868110156125f45760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b9050808452600484019350505061257b565b50600386066001811461260e576002811461261e57612629565b613d3d60f01b6002830352612629565b603d60f81b60018303525b508484525050819450505050505b919050565b6126468383612903565b60008373ffffffffffffffffffffffffffffffffffffffff163b146126bc57600080549050600083820390505b6126866000868380600101945086612326565b61269b5761269a63d1a57ed660e01b611cf8565b5b8181106126735781600054146126b9576126b8600060e01b611cf8565b5b50505b505050565b60006126cc83611e48565b905060008190506000806126df86611f34565b915091508415612727576126fb81846126f6611f5b565b611f63565b612726576127108361270b611f5b565b611acd565b612725576127246359c896be60e01b611cf8565b5b5b5b612735836000886001611fa7565b801561274057600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506127e8836127a585600088612189565b7c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000017176121b1565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085160361286e576000600187019050600060046000838152602001908152602001600020540361286c57600054811461286b578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128d88360008860016121dc565b600160008154809291906001019190505550505050505050565b60009392505050565b600033905090565b600080549050600082036129225761292163b562e8dd60e01b611cf8565b5b61292f6000848385611fa7565b61294f836129406000866000612189565b61294985612a66565b176121b1565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff1616905060008103612a0757612a06632e07630060e01b611cf8565b5b6000838301905060008390505b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103612a145781600081905550505050612a6160008483856121dc565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612abf81612a8a565b8114612aca57600080fd5b50565b600081359050612adc81612ab6565b92915050565b600060208284031215612af857612af7612a80565b5b6000612b0684828501612acd565b91505092915050565b60008115159050919050565b612b2481612b0f565b82525050565b6000602082019050612b3f6000830184612b1b565b92915050565b6000819050919050565b612b5881612b45565b8114612b6357600080fd5b50565b600081359050612b7581612b4f565b92915050565b600060208284031215612b9157612b90612a80565b5b6000612b9f84828501612b66565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612be2578082015181840152602081019050612bc7565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c0a82612ba8565b612c148185612bb3565b9350612c24818560208601612bc4565b612c2d81612bee565b840191505092915050565b60006020820190508181036000830152612c528184612bff565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c8582612c5a565b9050919050565b612c9581612c7a565b82525050565b6000602082019050612cb06000830184612c8c565b92915050565b612cbf81612c7a565b8114612cca57600080fd5b50565b600081359050612cdc81612cb6565b92915050565b60008060408385031215612cf957612cf8612a80565b5b6000612d0785828601612ccd565b9250506020612d1885828601612b66565b9150509250929050565b612d2b81612b45565b82525050565b6000602082019050612d466000830184612d22565b92915050565b600080600060608486031215612d6557612d64612a80565b5b6000612d7386828701612ccd565b9350506020612d8486828701612ccd565b9250506040612d9586828701612b66565b9150509250925092565b600060208284031215612db557612db4612a80565b5b6000612dc384828501612ccd565b91505092915050565b612dd581612b0f565b8114612de057600080fd5b50565b600081359050612df281612dcc565b92915050565b600060208284031215612e0e57612e0d612a80565b5b6000612e1c84828501612de3565b91505092915050565b60008060408385031215612e3c57612e3b612a80565b5b6000612e4a85828601612ccd565b9250506020612e5b85828601612de3565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ea782612bee565b810181811067ffffffffffffffff82111715612ec657612ec5612e6f565b5b80604052505050565b6000612ed9612a76565b9050612ee58282612e9e565b919050565b600067ffffffffffffffff821115612f0557612f04612e6f565b5b612f0e82612bee565b9050602081019050919050565b82818337600083830152505050565b6000612f3d612f3884612eea565b612ecf565b905082815260208101848484011115612f5957612f58612e6a565b5b612f64848285612f1b565b509392505050565b600082601f830112612f8157612f80612e65565b5b8135612f91848260208601612f2a565b91505092915050565b60008060008060808587031215612fb457612fb3612a80565b5b6000612fc287828801612ccd565b9450506020612fd387828801612ccd565b9350506040612fe487828801612b66565b925050606085013567ffffffffffffffff81111561300557613004612a85565b5b61301187828801612f6c565b91505092959194509250565b6000806040838503121561303457613033612a80565b5b600061304285828601612ccd565b925050602061305385828601612ccd565b9150509250929050565b7f4d696e74696e67206861736e27742073746172746564207965742e0000000000600082015250565b6000613093601b83612bb3565b915061309e8261305d565b602082019050919050565b600060208201905081810360008301526130c281613086565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061310382612b45565b915061310e83612b45565b9250828201905080821115613126576131256130c9565b5b92915050565b7f4f7574206f66206c696d69747300000000000000000000000000000000000000600082015250565b6000613162600d83612bb3565b915061316d8261312c565b602082019050919050565b6000602082019050818103600083015261319181613155565b9050919050565b60006131a382612b45565b91506131ae83612b45565b92508282026131bc81612b45565b915082820484148315176131d3576131d26130c9565b5b5092915050565b7f57726f6e672070726963652e0000000000000000000000000000000000000000600082015250565b6000613210600c83612bb3565b915061321b826131da565b602082019050919050565b6000602082019050818103600083015261323f81613203565b9050919050565b600061325182612b45565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613283576132826130c9565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806132d557607f821691505b6020821081036132e8576132e761328e565b5b50919050565b7f4e6f20726573756c7473207965742e0000000000000000000000000000000000600082015250565b6000613324600f83612bb3565b915061332f826132ee565b602082019050919050565b6000602082019050818103600083015261335381613317565b9050919050565b7f596f7520646f6e2774206f776e20746865206e66742e00000000000000000000600082015250565b6000613390601683612bb3565b915061339b8261335a565b602082019050919050565b600060208201905081810360008301526133bf81613383565b9050919050565b60006133d182612b45565b91506133dc83612b45565b92508282039050818111156133f4576133f36130c9565b5b92915050565b7f596f75206469646e27742077696e2e0000000000000000000000000000000000600082015250565b6000613430600f83612bb3565b915061343b826133fa565b602082019050919050565b6000602082019050818103600083015261345f81613423565b9050919050565b7f596f75206861766520616c7265616479206275726e656420746865206e66742e600082015250565b600061349c602083612bb3565b91506134a782613466565b602082019050919050565b600060208201905081810360008301526134cb8161348f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600081905092915050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b6000613571600983613530565b915061357c8261353b565b600982019050919050565b7f4172626948616d73746572202300000000000000000000000000000000000000600082015250565b60006135bd600d83613530565b91506135c882613587565b600d82019050919050565b60006135de82612ba8565b6135e88185613530565b93506135f8818560208601612bc4565b80840191505092915050565b50565b6000613614600083613530565b915061361f82613604565b600082019050919050565b7f222c20226465736372697074696f6e223a223333333320616e696d617465642060008201527f68616d73746572732063686173696e6720616e20417262697472756d2064726f60208201527f70206f6e20616e2041492d67656e657261746564206368617274732e222c202260408201527f696d616765223a22000000000000000000000000000000000000000000000000606082015250565b60006136d2606883613530565b91506136dd8261362a565b606882019050919050565b7f2e67696600000000000000000000000000000000000000000000000000000000600082015250565b600061371e600483613530565b9150613729826136e8565b600482019050919050565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a225460008201527f797065222c202276616c7565223a220000000000000000000000000000000000602082015250565b6000613790602f83613530565b915061379b82613734565b602f82019050919050565b7f227d5d0000000000000000000000000000000000000000000000000000000000600082015250565b60006137dc600383613530565b91506137e7826137a6565b600382019050919050565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613828600183613530565b9150613833826137f2565b600182019050919050565b600061384982613564565b9150613854826135b0565b915061386082876135d3565b915061386b82613607565b9150613876826136c5565b915061388282866135d3565b915061388e82856135d3565b915061389982613711565b91506138a482613783565b91506138b082846135d3565b91506138bb826137cf565b91506138c68261381b565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061390a601d83613530565b9150613915826138d4565b601d82019050919050565b600061392b826138fd565b915061393782846135d3565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061399e602683612bb3565b91506139a982613942565b604082019050919050565b600060208201905081810360008301526139cd81613991565b9050919050565b60006139df82612b45565b9150600082036139f2576139f16130c9565b5b600182039050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a33602083612bb3565b9150613a3e826139fd565b602082019050919050565b60006020820190508181036000830152613a6281613a26565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613a9082613a69565b613a9a8185613a74565b9350613aaa818560208601612bc4565b613ab381612bee565b840191505092915050565b6000608082019050613ad36000830187612c8c565b613ae06020830186612c8c565b613aed6040830185612d22565b8181036060830152613aff8184613a85565b905095945050505050565b600081519050613b1981612ab6565b92915050565b600060208284031215613b3557613b34612a80565b5b6000613b4384828501613b0a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613b8682612b45565b9150613b9183612b45565b925082613ba157613ba0613b4c565b5b82820490509291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122085181faf4513f5a7ce1558a3f72c3a834a6808e7d30439b2eae7eb5a60dbd5e464736f6c63430008120033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f62756c6c616e64626561722e622d63646e2e6e65742f62756c6c2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f62756c6c616e64626561722e622d63646e2e6e65742f626561722f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101f95760003560e01c8063934b7cc51161010d578063c358575c116100a0578063dd39b63c1161006f578063dd39b63c146106d1578063deb09beb1461070e578063e985e9c514610739578063f2fde38b14610776578063f63894f61461079f576101f9565b8063c358575c14610622578063c87b56dd1461063e578063cd68bfb91461067b578063d5abeb01146106a6576101f9565b8063a035b1fe116100dc578063a035b1fe14610575578063a22cb465146105a0578063b670f968146105c9578063b88d4fde14610606576101f9565b8063934b7cc5146104b957806395d89b41146104f65780639a2bc78c146105215780639d34dd0c14610538576101f9565b80633ccfd60b1161019057806370a082311161015f57806370a08231146103d4578063715018a614610411578063716c9970146104285780637f7e5a94146104655780638da5cb5b1461048e576101f9565b80633ccfd60b1461033957806342842e0e146103505780636352211e1461036c5780636ad1fe02146103a9576101f9565b8063095ea7b3116101cc578063095ea7b3146102bf5780631481bc7b146102db57806318160ddd146102f257806323b872dd1461031d576101f9565b806301ffc9a7146101fe57806303ff8e9b1461023b57806306fdde0314610257578063081812fc14610282575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612ae2565b6107ca565b6040516102329190612b2a565b60405180910390f35b61025560048036038101906102509190612b7b565b61085c565b005b34801561026357600080fd5b5061026c610a53565b6040516102799190612c38565b60405180910390f35b34801561028e57600080fd5b506102a960048036038101906102a49190612b7b565b610ae5565b6040516102b69190612c9b565b60405180910390f35b6102d960048036038101906102d49190612ce2565b610b43565b005b3480156102e757600080fd5b506102f0610b53565b005b3480156102fe57600080fd5b50610307610fde565b6040516103149190612d31565b60405180910390f35b61033760048036038101906103329190612d4c565b610ff5565b005b34801561034557600080fd5b5061034e6112b6565b005b61036a60048036038101906103659190612d4c565b611307565b005b34801561037857600080fd5b50610393600480360381019061038e9190612b7b565b611327565b6040516103a09190612c9b565b60405180910390f35b3480156103b557600080fd5b506103be611339565b6040516103cb9190612b2a565b60405180910390f35b3480156103e057600080fd5b506103fb60048036038101906103f69190612d9f565b61134c565b6040516104089190612d31565b60405180910390f35b34801561041d57600080fd5b506104266113e3565b005b34801561043457600080fd5b5061044f600480360381019061044a9190612b7b565b6113f7565b60405161045c9190612b2a565b60405180910390f35b34801561047157600080fd5b5061048c60048036038101906104879190612df8565b611417565b005b34801561049a57600080fd5b506104a3611457565b6040516104b09190612c9b565b60405180910390f35b3480156104c557600080fd5b506104e060048036038101906104db9190612d9f565b611481565b6040516104ed9190612d31565b60405180910390f35b34801561050257600080fd5b5061050b611499565b6040516105189190612c38565b60405180910390f35b34801561052d57600080fd5b5061053661152b565b005b34801561054457600080fd5b5061055f600480360381019061055a9190612b7b565b61155f565b60405161056c9190612d31565b60405180910390f35b34801561058157600080fd5b5061058a611583565b6040516105979190612d31565b60405180910390f35b3480156105ac57600080fd5b506105c760048036038101906105c29190612e25565b611589565b005b3480156105d557600080fd5b506105f060048036038101906105eb9190612d9f565b611694565b6040516105fd9190612b2a565b60405180910390f35b610620600480360381019061061b9190612f9a565b6116b4565b005b61063c60048036038101906106379190612b7b565b611706565b005b34801561064a57600080fd5b5061066560048036038101906106609190612b7b565b6118d1565b6040516106729190612c38565b60405180910390f35b34801561068757600080fd5b50610690611a8a565b60405161069d9190612d31565b60405180910390f35b3480156106b257600080fd5b506106bb611a90565b6040516106c89190612d31565b60405180910390f35b3480156106dd57600080fd5b506106f860048036038101906106f39190612b7b565b611a96565b6040516107059190612d31565b60405180910390f35b34801561071a57600080fd5b50610723611aba565b6040516107309190612b2a565b60405180910390f35b34801561074557600080fd5b50610760600480360381019061075b919061301d565b611acd565b60405161076d9190612b2a565b60405180910390f35b34801561078257600080fd5b5061079d60048036038101906107989190612d9f565b611b61565b005b3480156107ab57600080fd5b506107b4611be4565b6040516107c19190612b2a565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061082557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108555750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b80601360029054906101000a900460ff166108ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a3906130a9565b60405180910390fd5b600a54816108b933611bf7565b6108c391906130f8565b1115610904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fb90613178565b60405180910390fd5b60095481610910611c4e565b61091a91906130f8565b111561095b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095290613178565b60405180910390fd5b80600b546109699190613198565b34146109aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a190613226565b60405180910390fd5b600060016109b6611c4e565b6109c091906130f8565b90505b826109cc611c4e565b6109d691906130f8565b8111610a4457600f8190806001815401808255809150506001900390600052602060002001600090919091909150556001600c600083815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610a3c90613246565b9150506109c3565b50610a4f3383611c61565b5050565b606060028054610a62906132bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8e906132bd565b8015610adb5780601f10610ab057610100808354040283529160200191610adb565b820191906000526020600020905b815481529060010190602001808311610abe57829003601f168201915b5050505050905090565b6000610af082611c7f565b610b0557610b0463cf4700e460e01b611cf8565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610b4f82826001611d02565b5050565b6000610b5e3361134c565b9050601360009054906101000a900460ff16610baf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba69061333a565b60405180910390fd5b60008111610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be9906133a6565b60405180910390fd5b6000601360019054906101000a900460ff1615610c5057600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d37565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548210610ce857600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482610ce191906133c6565b9050610d36565b81600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d3391906133c6565b90505b5b60008111610d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7190613446565b60405180910390fd5b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610e07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfe906134b2565b60405180910390fd5b60005b81811015610fd957601360019054906101000a900460ff16610ef8576000600f805490501115610ef3576000600f6001600f80549050610e4a91906133c6565b81548110610e5b57610e5a6134d2565b5b90600052602060002001549050610e7181611e31565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600f805480610edb57610eda613501565b5b60019003818190600052602060002001600090559055505b610fc6565b60006010805490501115610fc557600060106001601080549050610f1c91906133c6565b81548110610f2d57610f2c6134d2565b5b90600052602060002001549050610f4381611e31565b6001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506010805480610fad57610fac613501565b5b60019003818190600052602060002001600090559055505b5b8080610fd190613246565b915050610e0a565b505050565b6000610fe8611e3f565b6001546000540303905090565b600061100082611e48565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110755761107463a114810060e01b611cf8565b5b60008061108184611f34565b915091506110978187611092611f5b565b611f63565b6110c2576110ac866110a7611f5b565b611acd565b6110c1576110c06359c896be60e01b611cf8565b5b5b6110cf8686866001611fa7565b80156110da57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111a885611184888887612189565b7c0200000000000000000000000000000000000000000000000000000000176121b1565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361122e576000600185019050600060046000838152602001908152602001600020540361122c57600054811461122b578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600081036112a05761129f63ea553b3460e01b611cf8565b5b6112ad87878760016121dc565b50505050505050565b6112be6121e2565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611304573d6000803e3d6000fd5b50565b611322838383604051806020016040528060008152506116b4565b505050565b600061133282611e48565b9050919050565b601360029054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361139257611391638f4eb60460e01b611cf8565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113eb6121e2565b6113f56000612260565b565b600c6020528060005260406000206000915054906101000a900460ff1681565b61141f6121e2565b6001601360006101000a81548160ff02191690831515021790555080601360016101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d6020528060005260406000206000915090505481565b6060600380546114a8906132bd565b80601f01602080910402602001604051908101604052809291908181526020018280546114d4906132bd565b80156115215780601f106114f657610100808354040283529160200191611521565b820191906000526020600020905b81548152906001019060200180831161150457829003601f168201915b5050505050905090565b6115336121e2565b601360029054906101000a900460ff1615601360026101000a81548160ff021916908315150217905550565b6010818154811061156f57600080fd5b906000526020600020016000915090505481565b600b5481565b8060076000611596611f5b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611643611f5b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116889190612b2a565b60405180910390a35050565b600e6020528060005260406000206000915054906101000a900460ff1681565b6116bf848484610ff5565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611700576116ea84848484612326565b6116ff576116fe63d1a57ed660e01b611cf8565b5b5b50505050565b80601360029054906101000a900460ff16611756576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174d906130a9565b60405180910390fd5b600a548161176333611bf7565b61176d91906130f8565b11156117ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a590613178565b60405180910390fd5b600954816117ba611c4e565b6117c491906130f8565b1115611805576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fc90613178565b60405180910390fd5b80600b546118139190613198565b3414611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184b90613226565b60405180910390fd5b60006001611860611c4e565b61186a91906130f8565b90505b82611876611c4e565b61188091906130f8565b81116118c257601081908060018154018082558091505060019003906000526020600020016000909190919091505580806118ba90613246565b91505061186d565b506118cd3383611c61565b5050565b60606000600c600084815260200190815260200160002060009054906101000a900460ff16611901576012611904565b60115b805461190f906132bd565b80601f016020809104026020016040519081016040528092919081815260200182805461193b906132bd565b80156119885780601f1061195d57610100808354040283529160200191611988565b820191906000526020600020905b81548152906001019060200180831161196b57829003601f168201915b50505050509050611a6361199b84612455565b826119a586612455565b600c600088815260200190815260200160002060009054906101000a900460ff16611a05576040518060400160405280600481526020017f4265617200000000000000000000000000000000000000000000000000000000815250611a3c565b6040518060400160405280600481526020017f42756c6c000000000000000000000000000000000000000000000000000000008152505b604051602001611a4f949392919061383e565b6040516020818303038152906040526124a5565b604051602001611a739190613920565b604051602081830303815290604052915050919050565b600a5481565b60095481565b600f8181548110611aa657600080fd5b906000526020600020016000915090505481565b601360019054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b696121e2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcf906139b4565b60405180910390fd5b611be181612260565b50565b601360009054906101000a900460ff1681565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000611c58611e3f565b60005403905090565b611c7b82826040518060200160405280600081525061263c565b5050565b600081611c8a611e3f565b11611cf357600054821015611cf25760005b6000600460008581526020019081526020016000205491508103611ccb5782611cc4906139d4565b9250611c9c565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b919050565b8060005260046000fd5b6000611d0d83611327565b9050818015611d4f57508073ffffffffffffffffffffffffffffffffffffffff16611d36611f5b565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611d7b57611d6581611d60611f5b565b611acd565b611d7a57611d7963cfb3b94260e01b611cf8565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b611e3c8160006126c1565b50565b60006001905090565b600081611e53611e3f565b11611f1e576004600083815260200190815260200160002054905060008103611ef5576000548210611e9057611e8f63df2d9b4260e01b611cf8565b5b5b60046000836001900393508381526020019081526020016000205490506000810315611ef05760007c010000000000000000000000000000000000000000000000000000000082160315611f2f57611eef63df2d9b4260e01b611cf8565b5b611e91565b60007c010000000000000000000000000000000000000000000000000000000082160315611f2f575b611f2e63df2d9b4260e01b611cf8565b5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361205d57600c600083815260200190815260200160002060009054906101000a900460ff16156120585780600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461205091906130f8565b925050819055505b612183565b600c600083815260200190815260200160002060009054906101000a900460ff161561218257600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906120d390613246565b919050555060006001600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461212691906133c6565b1061218157600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061217b906139d4565b91905055505b5b5b50505050565b60008060e883901c905060e86121a08686846128f2565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6121ea6128fb565b73ffffffffffffffffffffffffffffffffffffffff16612208611457565b73ffffffffffffffffffffffffffffffffffffffff161461225e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225590613a49565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261234c611f5b565b8786866040518563ffffffff1660e01b815260040161236e9493929190613abe565b6020604051808303816000875af19250505080156123aa57506040513d601f19601f820116820180604052508101906123a79190613b1f565b60015b612402573d80600081146123da576040519150601f19603f3d011682016040523d82523d6000602084013e6123df565b606091505b5060008151036123fa576123f963d1a57ed660e01b611cf8565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060a060405101806040526020810391506000825281835b60011561249057600184039350600a81066030018453600a810490508061246e575b50828103602084039350808452505050919050565b6060600082519050600081036124cd5760405180602001604052806000815250915050612637565b600060036002836124de91906130f8565b6124e89190613b7b565b60046124f49190613198565b9050600060208261250591906130f8565b67ffffffffffffffff81111561251e5761251d612e6f565b5b6040519080825280601f01601f1916602001820160405280156125505781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001613bad604091399050600181016020830160005b868110156125f45760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b9050808452600484019350505061257b565b50600386066001811461260e576002811461261e57612629565b613d3d60f01b6002830352612629565b603d60f81b60018303525b508484525050819450505050505b919050565b6126468383612903565b60008373ffffffffffffffffffffffffffffffffffffffff163b146126bc57600080549050600083820390505b6126866000868380600101945086612326565b61269b5761269a63d1a57ed660e01b611cf8565b5b8181106126735781600054146126b9576126b8600060e01b611cf8565b5b50505b505050565b60006126cc83611e48565b905060008190506000806126df86611f34565b915091508415612727576126fb81846126f6611f5b565b611f63565b612726576127108361270b611f5b565b611acd565b612725576127246359c896be60e01b611cf8565b5b5b5b612735836000886001611fa7565b801561274057600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506127e8836127a585600088612189565b7c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000017176121b1565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085160361286e576000600187019050600060046000838152602001908152602001600020540361286c57600054811461286b578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128d88360008860016121dc565b600160008154809291906001019190505550505050505050565b60009392505050565b600033905090565b600080549050600082036129225761292163b562e8dd60e01b611cf8565b5b61292f6000848385611fa7565b61294f836129406000866000612189565b61294985612a66565b176121b1565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff1616905060008103612a0757612a06632e07630060e01b611cf8565b5b6000838301905060008390505b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103612a145781600081905550505050612a6160008483856121dc565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612abf81612a8a565b8114612aca57600080fd5b50565b600081359050612adc81612ab6565b92915050565b600060208284031215612af857612af7612a80565b5b6000612b0684828501612acd565b91505092915050565b60008115159050919050565b612b2481612b0f565b82525050565b6000602082019050612b3f6000830184612b1b565b92915050565b6000819050919050565b612b5881612b45565b8114612b6357600080fd5b50565b600081359050612b7581612b4f565b92915050565b600060208284031215612b9157612b90612a80565b5b6000612b9f84828501612b66565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612be2578082015181840152602081019050612bc7565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c0a82612ba8565b612c148185612bb3565b9350612c24818560208601612bc4565b612c2d81612bee565b840191505092915050565b60006020820190508181036000830152612c528184612bff565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c8582612c5a565b9050919050565b612c9581612c7a565b82525050565b6000602082019050612cb06000830184612c8c565b92915050565b612cbf81612c7a565b8114612cca57600080fd5b50565b600081359050612cdc81612cb6565b92915050565b60008060408385031215612cf957612cf8612a80565b5b6000612d0785828601612ccd565b9250506020612d1885828601612b66565b9150509250929050565b612d2b81612b45565b82525050565b6000602082019050612d466000830184612d22565b92915050565b600080600060608486031215612d6557612d64612a80565b5b6000612d7386828701612ccd565b9350506020612d8486828701612ccd565b9250506040612d9586828701612b66565b9150509250925092565b600060208284031215612db557612db4612a80565b5b6000612dc384828501612ccd565b91505092915050565b612dd581612b0f565b8114612de057600080fd5b50565b600081359050612df281612dcc565b92915050565b600060208284031215612e0e57612e0d612a80565b5b6000612e1c84828501612de3565b91505092915050565b60008060408385031215612e3c57612e3b612a80565b5b6000612e4a85828601612ccd565b9250506020612e5b85828601612de3565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ea782612bee565b810181811067ffffffffffffffff82111715612ec657612ec5612e6f565b5b80604052505050565b6000612ed9612a76565b9050612ee58282612e9e565b919050565b600067ffffffffffffffff821115612f0557612f04612e6f565b5b612f0e82612bee565b9050602081019050919050565b82818337600083830152505050565b6000612f3d612f3884612eea565b612ecf565b905082815260208101848484011115612f5957612f58612e6a565b5b612f64848285612f1b565b509392505050565b600082601f830112612f8157612f80612e65565b5b8135612f91848260208601612f2a565b91505092915050565b60008060008060808587031215612fb457612fb3612a80565b5b6000612fc287828801612ccd565b9450506020612fd387828801612ccd565b9350506040612fe487828801612b66565b925050606085013567ffffffffffffffff81111561300557613004612a85565b5b61301187828801612f6c565b91505092959194509250565b6000806040838503121561303457613033612a80565b5b600061304285828601612ccd565b925050602061305385828601612ccd565b9150509250929050565b7f4d696e74696e67206861736e27742073746172746564207965742e0000000000600082015250565b6000613093601b83612bb3565b915061309e8261305d565b602082019050919050565b600060208201905081810360008301526130c281613086565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061310382612b45565b915061310e83612b45565b9250828201905080821115613126576131256130c9565b5b92915050565b7f4f7574206f66206c696d69747300000000000000000000000000000000000000600082015250565b6000613162600d83612bb3565b915061316d8261312c565b602082019050919050565b6000602082019050818103600083015261319181613155565b9050919050565b60006131a382612b45565b91506131ae83612b45565b92508282026131bc81612b45565b915082820484148315176131d3576131d26130c9565b5b5092915050565b7f57726f6e672070726963652e0000000000000000000000000000000000000000600082015250565b6000613210600c83612bb3565b915061321b826131da565b602082019050919050565b6000602082019050818103600083015261323f81613203565b9050919050565b600061325182612b45565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613283576132826130c9565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806132d557607f821691505b6020821081036132e8576132e761328e565b5b50919050565b7f4e6f20726573756c7473207965742e0000000000000000000000000000000000600082015250565b6000613324600f83612bb3565b915061332f826132ee565b602082019050919050565b6000602082019050818103600083015261335381613317565b9050919050565b7f596f7520646f6e2774206f776e20746865206e66742e00000000000000000000600082015250565b6000613390601683612bb3565b915061339b8261335a565b602082019050919050565b600060208201905081810360008301526133bf81613383565b9050919050565b60006133d182612b45565b91506133dc83612b45565b92508282039050818111156133f4576133f36130c9565b5b92915050565b7f596f75206469646e27742077696e2e0000000000000000000000000000000000600082015250565b6000613430600f83612bb3565b915061343b826133fa565b602082019050919050565b6000602082019050818103600083015261345f81613423565b9050919050565b7f596f75206861766520616c7265616479206275726e656420746865206e66742e600082015250565b600061349c602083612bb3565b91506134a782613466565b602082019050919050565b600060208201905081810360008301526134cb8161348f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600081905092915050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b6000613571600983613530565b915061357c8261353b565b600982019050919050565b7f4172626948616d73746572202300000000000000000000000000000000000000600082015250565b60006135bd600d83613530565b91506135c882613587565b600d82019050919050565b60006135de82612ba8565b6135e88185613530565b93506135f8818560208601612bc4565b80840191505092915050565b50565b6000613614600083613530565b915061361f82613604565b600082019050919050565b7f222c20226465736372697074696f6e223a223333333320616e696d617465642060008201527f68616d73746572732063686173696e6720616e20417262697472756d2064726f60208201527f70206f6e20616e2041492d67656e657261746564206368617274732e222c202260408201527f696d616765223a22000000000000000000000000000000000000000000000000606082015250565b60006136d2606883613530565b91506136dd8261362a565b606882019050919050565b7f2e67696600000000000000000000000000000000000000000000000000000000600082015250565b600061371e600483613530565b9150613729826136e8565b600482019050919050565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a225460008201527f797065222c202276616c7565223a220000000000000000000000000000000000602082015250565b6000613790602f83613530565b915061379b82613734565b602f82019050919050565b7f227d5d0000000000000000000000000000000000000000000000000000000000600082015250565b60006137dc600383613530565b91506137e7826137a6565b600382019050919050565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613828600183613530565b9150613833826137f2565b600182019050919050565b600061384982613564565b9150613854826135b0565b915061386082876135d3565b915061386b82613607565b9150613876826136c5565b915061388282866135d3565b915061388e82856135d3565b915061389982613711565b91506138a482613783565b91506138b082846135d3565b91506138bb826137cf565b91506138c68261381b565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061390a601d83613530565b9150613915826138d4565b601d82019050919050565b600061392b826138fd565b915061393782846135d3565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061399e602683612bb3565b91506139a982613942565b604082019050919050565b600060208201905081810360008301526139cd81613991565b9050919050565b60006139df82612b45565b9150600082036139f2576139f16130c9565b5b600182039050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a33602083612bb3565b9150613a3e826139fd565b602082019050919050565b60006020820190508181036000830152613a6281613a26565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613a9082613a69565b613a9a8185613a74565b9350613aaa818560208601612bc4565b613ab381612bee565b840191505092915050565b6000608082019050613ad36000830187612c8c565b613ae06020830186612c8c565b613aed6040830185612d22565b8181036060830152613aff8184613a85565b905095945050505050565b600081519050613b1981612ab6565b92915050565b600060208284031215613b3557613b34612a80565b5b6000613b4384828501613b0a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613b8682612b45565b9150613b9183612b45565b925082613ba157613ba0613b4c565b5b82820490509291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122085181faf4513f5a7ce1558a3f72c3a834a6808e7d30439b2eae7eb5a60dbd5e464736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f62756c6c616e64626561722e622d63646e2e6e65742f62756c6c2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f62756c6c616e64626561722e622d63646e2e6e65742f626561722f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _bullUri (string): https://bullandbear.b-cdn.net/bull/
Arg [1] : _bearUri (string): https://bullandbear.b-cdn.net/bear/
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [3] : 68747470733a2f2f62756c6c616e64626561722e622d63646e2e6e65742f6275
Arg [4] : 6c6c2f0000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [6] : 68747470733a2f2f62756c6c616e64626561722e622d63646e2e6e65742f6265
Arg [7] : 61722f0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.