ERC-721
Overview
Max Total Supply
8,193 CKAIJU2
Holders
1,057
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CKAIJU2Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x4aE2edF7...21eE55261 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ChubbyKaijuDAOInvasion_new
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Ownable.sol"; import "ERC721.sol"; import "ERC721Enumerable.sol"; import "IERC721.sol"; import "IChubbyKaijuDAOCorp.sol"; import "IChubbyKaijuDAOInvasion_legacy.sol"; /*************************************************************************************************** kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkxxddddddddddddddxxxxxdd kkkkkkkkkkkkkkkkkkkkkkkxxkkkkkkkkkkkkkkkkkkkkkkkkkkxxxxxkxkkkkkkkkkkkkkkkkkkkkkxxddddddddddddxxkkkxx kkkkkkkkkkkkkkkkkkkkkkkkkkkxxxkkkkkkkkkkkkkkkkkkkkkkxxdddddxxxxxkkkkkkkkkkkkkkkkxxddddddddddddxxkxkk kkkkkkkkkkkkkkkkkkkkxxxxxddddxxkxxkkxxkkkkkkkxxkkxxkkkxxddddddddxxxxkkkkkkkkxxkkkxxddddddddddddxxkkk kkkkkkkkkkkkkkkxxxxddddddddxxxxkxxoooodxkkkkkxxdooddxkxxkkkxxxxdddddxxxkkkkkkkkkkkxxdddddddddddddxkk kkkkkkkkkkkkxxxdddddoddxxxxkkkxl,.',,''.',::;'.''','',lxxxkkkkxxddddddxxxkkkxxxxxkkxddddddddddddddxk kkkkkkkkxxxdddddddddddxxxxdddo,.,d0XXK0kdl;,:ok0KKK0x;.'lxxxxxxxxddddddddxxkkxxxxxxddodddddddddddddx kkkkkxxxddddddddddddddddddddl'.:KMMMMMMMMNKXWMMMWWMMWXc..';;;:cloddddddddddxkkxxdddddodddddddddddddd kkxxxddddddddddddddddddddddc..c0WMMMMMMMMWXNMMMMMMMWk;,',;::;,'..':oxxxxddodxxxkxxdddddxdddddddddddd kxxdddddddddddddddddddddoc'.'d0XWMMMMMMMMMWMMMMMMMMWXOKNWWMMMWX0kl,.'cdkkxxxddddxdddxxkkkxxxdddddddd xddddxxxxxxdddddddddddl:'.,xXNKKNMMMMMMMMMMMMMMMMMMMWMMMMMMMMMMMMMNk:..cxkkxxxddddddxkkkkkkkxddddddd xxxxxkkkxxxdddddddddo;..ckNMMMNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNk,.,dxxkkxxxdddxkkkkkxkkxdddddd kkkkxxxxdddddddoddo:..c0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXo..cxkkkkkxxxxkkkkkkkkkxddddd kkkxxxddoddddddddd:..xNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNXNWWMMMMMMMMMMWNO,.;dkkkkkxkkxxkkkkkkkxxdddd kxxxdddddo:'',;:c;. lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWNNWMMMMMWMMMWMMMXc.'okxkkkkkkkkkkkkkkkxdddd xxdddddodo' .;,',,,:ONWMMMMMMMMMMMMMMMMMMMMMMMMMMMMXxc;;:xXMMMMMMMMMMMWNNNXd..lkkkkkkkkkxkkkkkkkxddd ddddddddddc..oKKXWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMWkc' ,0MMMMMMMMMWNNNXNWx..okkkkkkkkkkkkkkkkxdod dddddddddddl..l0XNNWWWMMWXNMMMMMMMMMMMMMMMMMMMMNd. .... :XMMMMMMWWW0l,,;d0l.,xkkkxkkkkkkkkkkkxddd ddddddddddxko'.,lxO0KXNNO;cXMMMMMMMMMMMMMMMMMMMk. ....... .kMMMMMMMWk. :x'.lkkkkkkkkkkkkkkkkxdd ddddddddxxxkkxl;'.'',:cl:..dWMMMMMMMMMMMMMMMMMWl ........ .kMMMMMMMNc ... .c, :xxkkkkkkkkkkkkkkxdd dddddddxkkkkkkkkxdoc:;,''. ;KMMMMMMMMMMMMMMMMMWl ....... ,KWWMWX0Ox' '..cxxkkkkkkkkkkkkkkxdd dddddxxkkkkkkkkxxkkxkkkkxo'.oWMMMMMMMMMMMMMMMMMO' ... .xKkoc;,,,;,. ,:;,...:dkxkkxkkkkkkkkkxdd ddddxxkkkkkkkkkkkkkxkkxxddc..kWMMMMMMMMMMMMMMMMMXdc:.. ..;:;...'oOXNWO:colkWMWXk;.,xkxkkkkkkkkkkkxdd ddxxkkxxkkkkkkkkkkkkxxddddo;.;KMMMMMMMMMMMMMMMMMMMMWX0O0XXxcod;cKMMMMWKl:OMMMMMM0,.lkxkkkkkkkkkkkxdd dxxkkkkkkkkkkkkxxkkxxddddddo,.:XMMMMMMMMMMMMMMMMMMMMMMMMMMMWMKc:KMMMMMNxoKMMWMMM0,.lkxxxkkkkkkkkxxdd xxkkkkkkkkkkkkkkkkxxddddddddl'.cXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNWMWMMMMWWMMMWMMNl.,dkkkxkkkkkkkkxddd xkkkkkkkkkkkkkkkkxdddddddddodl'.cXMMMMMMMMMMMMMMMMMMMMMMMMMMKdOWNxo0WNxlOWKcoXNo..okxxkkkkkkkkkkxddd kkkkkkkkkkkkkkkkkxddodddddddddo'.,OWMMMMMMMMMMMMMMMMMMMMMN0Oc .lc. .l:. .;. .,, .lkxxkkkkkkkkkkxxddd kkkkkkkkkkkkkkkkxddddddddddddddo' cNMMMMMMMMMMMMMMMMMMMMMKl,;'. .,,. .'. .,. '' 'xkkxkkkkkkkkkkxdddd kkkkkkkkkkkkkkkkxddoddddl:,'..';. :NMMMMMMMMMMMMMMMMMMMMMWWWWKlc0WNd,xNx;kWx;xl ,xkkkkxxkkxxkkxxdddd kkkkkkkkkkkkkkkkxdddddo:..:dxdl' ,0MMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMWWWMWWMMWWK; :kkkkkkkkkkxkkxddddd kkkkkkkkkxkkkkkxxdoddo; 'kNMWMNl.'kNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMK:.'dkkkkkxkkkkkkxdddddd kkkkkkkkkkkxkkkxxddddo' lXNMMWo.:KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0o' 'dkkkkxxkkkkkkxxdddddd kkkkkkkxkkkkkkkxdc;,,'.,kXNMMWK0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWNNXXO:,,..ckkkkxkkkxkkxxddddddd kkkkkkkkkxxkxkxc..;loox0KKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNNNNXXXXXXXXXXXKXXk'.cxkxkkxkkkxxdddddddd kkkkkkkkkkkkxkl..xNMMMMWNXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWNNWWWWWMMMMMMWO'.ckxkkxkxxxdoddddddx kkkkkkkkkkkkkx, cNMMMMMMMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx..okkkkxddddddddddxx kkkkkkkkkkkkkx, cNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWo.'dkxxddddddddddxkk kkkkkkkkkxkxxx: ,0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWMMMMMMMMMMMMMX; :ddddddddoddxxkkx kkkkkkkkxxkkxko..dNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNXXXXXXXNNWMMMMMMMMMWk..cdddddddddxxkxxd kkkkkkkxxkkxkkx, cXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNWWMMMMMMMWWWNNNNWMMMMMMMMN: ,oddddddxxxkxxdd kkkkkkkkkkkxkko..oXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNWMMMMMMMMMMMMMMMMWWWMMMMMMMMWk..ldddddxkkxkkxxx xkkkkkkkkkkxkd,.lXWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX; ;dddxxkkkkxxkkk xxkkkkkkkxkkk: :XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWo 'dxxkkkkkkkkkkk dxkkkkkkkkxkx, dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO..okxkkkkkkkkkkx ddxkkxkkkkxkd'.dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWMMMMX; ckkkkkkkkkkxxd dodxxkkkkxkkx; cWMMMMWNWMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNWMMMWc ;xkkkxkkkxxddd dddddxxkkkkxkl..OWMMWNXWMMMMMMMMMMMNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNXNMMMMd.'dkkkkxxdddddd ddddddxxkkkkkx; :KWWN0KWMMMMMMMMMMWXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXXWMMMk..okxxxdddddddd ddddddddxxkkkkl..xXX0ccKMMMMMMMMMMWXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXXWMMM0'.lxddddddddddd ***************************************************************************************************/ contract ChubbyKaijuDAOInvasion_new is ERC721Enumerable, Ownable{ using Address for address; using Strings for uint256; mapping(address => bool) public controllers; bool private ispublicSale; bool private isMutate; uint256 public migrated=2479; uint256 public zombieMinted=2479*2; uint256 public alienMinted; uint256 public superalienMinted; uint256 public undeadMinted; uint256 public superundeadMinted; //uint256 superMinted; uint256 public constant ALIEN_BASE = 6666; uint256 public constant UNDEAD_BASE = 9999; uint256 public constant SUPER_BASE = 20000; string private baseURI; address private signer; uint256 public PUBLIC_MINT_PRICE = 0.04 ether; uint16 public round_gen2; address[] public alien_leaders; address[] public zombie_leaders; address[] public undead_leaders; mapping(uint256 => uint16) public traits; // 0 for zombie, 1 for alien, 2 for undead, 10 for burned zombie IChubbyKaijuDAOCorp private chubbykaijudaocorp; IChubbyKaijuDAOInvasion_legacy private kaiju_legacy; constructor() ERC721("ChubbyKaijuDAOInvasion", "CKAIJU2"){ } function initialize(address _corpAddress, address _legacyAddress) public onlyOwner { chubbykaijudaocorp = IChubbyKaijuDAOCorp(_corpAddress); kaiju_legacy = IChubbyKaijuDAOInvasion_legacy(_legacyAddress); } function manualMigration(address[] memory addresses, uint16[] memory tokenIds) external { require(controllers[msg.sender], "Only controllers can do this"); require(addresses.length == tokenIds.length, "Must have same length"); for(uint i=0;i<tokenIds.length;i++){ if(tokenIds[i] < 6667 && !_exists(tokenIds[i])){ traits[tokenIds[i]]=0; _mint(addresses[i], tokenIds[i]); migrated++; traits[migrated]=0; _mint(addresses[i], migrated); } } } function hasMigrated(uint256 tokenId) public view returns (bool){ return _exists(tokenId); } function migration() external { require(kaiju_legacy.balanceOf(msg.sender)>0,"Must Have Zombie"); uint16[] memory tokens = kaiju_legacy.tokensOf(msg.sender); for(uint i=0; i<tokens.length;i++){ if(tokens[i] < 6667 && !_exists(tokens[i])){ traits[tokens[i]] = 0; _mint(msg.sender, tokens[i]); migrated++; traits[migrated] = 0; _mint(msg.sender, migrated); } } } function publicSale(uint16 amount) external payable { require(ispublicSale, "Not Publicsale Preiod"); require(zombieMinted+amount<6667,"All zombies are minted"); require(msg.value >= amount*PUBLIC_MINT_PRICE, "Not Enough ETH"); for(uint i=0; i<amount; i++){ zombieMinted++; traits[zombieMinted]=0; _mint(msg.sender, zombieMinted); } } function mutateWithSerum(uint256 typeId, uint256[] memory zombieIds, uint256 amount) external { require(isMutate, "Cannot mutate Yet"); require(typeId==1 || typeId==3, "typeId Should be Serum"); require(zombieIds.length==amount, "The number of zombies should be same as the amount"); require(chubbykaijudaocorp.balanceOf(msg.sender, typeId)>=amount,"Must Own the Amount of typeId"); for(uint i=0; i<zombieIds.length;i++){ require(_exists(zombieIds[i]),"Not exist zombie"); require(ownerOf(zombieIds[i])==msg.sender,"Not Owner"); require(zombieIds[i]<6667, "Only Zombie can Mutate"); if(typeId == 1) { // SERUM chubbykaijudaocorp.burnCorpForAddress(typeId, msg.sender); _burn(zombieIds[i]); undeadMinted++; _mint(msg.sender, undeadMinted+UNDEAD_BASE); traits[undeadMinted+UNDEAD_BASE] = 2; traits[zombieIds[i]] = 10; }else if(typeId == 3) { // SUPER SERUM chubbykaijudaocorp.burnCorpForAddress(typeId, msg.sender); _burn(zombieIds[i]); superundeadMinted++; _mint(msg.sender, superalienMinted+superundeadMinted+SUPER_BASE); traits[superalienMinted+superundeadMinted+SUPER_BASE] = 2; traits[zombieIds[i]] = 10; } } } function callWithRadio(uint256 typeId, uint256 amount) external { require(isMutate, "Cannot call Yet"); require(typeId==0 || typeId==2, "typeId Should be Radio"); require(chubbykaijudaocorp.balanceOf(msg.sender, typeId)>=amount,"Must Own the Amount of typeId"); for(uint i=0;i<amount;i++){ if(typeId == 0){ // RADIO chubbykaijudaocorp.burnCorpForAddress(typeId, msg.sender); alienMinted++; _mint(msg.sender, alienMinted+ALIEN_BASE); traits[alienMinted+ALIEN_BASE] = 1; }else if(typeId == 2) { // SUPER RAIDO chubbykaijudaocorp.burnCorpForAddress(typeId, msg.sender); superalienMinted++; _mint(msg.sender, superalienMinted+superundeadMinted+SUPER_BASE); traits[superalienMinted+superundeadMinted+SUPER_BASE] = 1; } } } function ownerOf(uint256 tokenId) public view override(ERC721) returns (address) { return super.ownerOf(tokenId); } function tokensOf(address owner) external view returns (uint16[] memory) { uint32 tokenCount = uint32(balanceOf(owner)); uint16[] memory tokensId = new uint16[](tokenCount); for (uint32 i = 0; i < tokenCount; i++){ tokensId[i] = uint16(tokenOfOwnerByIndex(owner, i)); } return tokensId; } function contractURI() public view returns (string memory) { //TODO change contractURI return bytes(_baseURI()).length > 0 ? string(abi.encodePacked(_baseURI(), "contracturi")) : ""; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "nonexistent token"); return bytes(_baseURI()).length > 0 ? string(abi.encodePacked(_baseURI(), tokenId.toString())) : ""; } function _baseURI() internal view override returns (string memory) { //TODO change baseURI return baseURI; } function setBaseURI(string memory uri) external onlyOwner { baseURI = uri; } function setLeadersGen2(address alien, address zombie, address undead) external onlyOwner { alien_leaders.push(alien); zombie_leaders.push(zombie); undead_leaders.push(undead); round_gen2++; } function setPublic(bool ispublic) external onlyOwner { ispublicSale = ispublic; } function setMutate(bool mutate) external onlyOwner{ isMutate=mutate; } function setSigner(address _signer) public onlyOwner { signer = _signer; } function setPrice(uint256 price) external onlyOwner { PUBLIC_MINT_PRICE = price; } function addController(address controller) external onlyOwner { controllers[controller] = true; } function removeController(address controller) external onlyOwner { controllers[controller] = false; } function withdraw() public onlyOwner{ payable(owner()).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; import "IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } function validTokens() public view returns (uint256[] memory){ return _allTokens; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /*************************************************************************************************** kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkxxddddddddddddddxxxxxdd kkkkkkkkkkkkkkkkkkkkkkkxxkkkkkkkkkkkkkkkkkkkkkkkkkkxxxxxkxkkkkkkkkkkkkkkkkkkkkkxxddddddddddddxxkkkxx kkkkkkkkkkkkkkkkkkkkkkkkkkkxxxkkkkkkkkkkkkkkkkkkkkkkxxdddddxxxxxkkkkkkkkkkkkkkkkxxddddddddddddxxkxkk kkkkkkkkkkkkkkkkkkkkxxxxxddddxxkxxkkxxkkkkkkkxxkkxxkkkxxddddddddxxxxkkkkkkkkxxkkkxxddddddddddddxxkkk kkkkkkkkkkkkkkkxxxxddddddddxxxxkxxoooodxkkkkkxxdooddxkxxkkkxxxxdddddxxxkkkkkkkkkkkxxdddddddddddddxkk kkkkkkkkkkkkxxxdddddoddxxxxkkkxl,.',,''.',::;'.''','',lxxxkkkkxxddddddxxxkkkxxxxxkkxddddddddddddddxk kkkkkkkkxxxdddddddddddxxxxdddo,.,d0XXK0kdl;,:ok0KKK0x;.'lxxxxxxxxddddddddxxkkxxxxxxddodddddddddddddx kkkkkxxxddddddddddddddddddddl'.:KMMMMMMMMNKXWMMMWWMMWXc..';;;:cloddddddddddxkkxxdddddodddddddddddddd kkxxxddddddddddddddddddddddc..c0WMMMMMMMMWXNMMMMMMMWk;,',;::;,'..':oxxxxddodxxxkxxdddddxdddddddddddd kxxdddddddddddddddddddddoc'.'d0XWMMMMMMMMMWMMMMMMMMWXOKNWWMMMWX0kl,.'cdkkxxxddddxdddxxkkkxxxdddddddd xddddxxxxxxdddddddddddl:'.,xXNKKNMMMMMMMMMMMMMMMMMMMWMMMMMMMMMMMMMNk:..cxkkxxxddddddxkkkkkkkxddddddd xxxxxkkkxxxdddddddddo;..ckNMMMNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNk,.,dxxkkxxxdddxkkkkkxkkxdddddd kkkkxxxxdddddddoddo:..c0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXo..cxkkkkkxxxxkkkkkkkkkxddddd kkkxxxddoddddddddd:..xNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNXNWWMMMMMMMMMMWNO,.;dkkkkkxkkxxkkkkkkkxxdddd kxxxdddddo:'',;:c;. lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWNNWMMMMMWMMMWMMMXc.'okxkkkkkkkkkkkkkkkxdddd xxdddddodo' .;,',,,:ONWMMMMMMMMMMMMMMMMMMMMMMMMMMMMXxc;;:xXMMMMMMMMMMMWNNNXd..lkkkkkkkkkxkkkkkkkxddd ddddddddddc..oKKXWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMWkc' ,0MMMMMMMMMWNNNXNWx..okkkkkkkkkkkkkkkkxdod dddddddddddl..l0XNNWWWMMWXNMMMMMMMMMMMMMMMMMMMMNd. .... :XMMMMMMWWW0l,,;d0l.,xkkkxkkkkkkkkkkkxddd ddddddddddxko'.,lxO0KXNNO;cXMMMMMMMMMMMMMMMMMMMk. ....... .kMMMMMMMWk. :x'.lkkkkkkkkkkkkkkkkxdd ddddddddxxxkkxl;'.'',:cl:..dWMMMMMMMMMMMMMMMMMWl ........ .kMMMMMMMNc ... .c, :xxkkkkkkkkkkkkkkxdd dddddddxkkkkkkkkxdoc:;,''. ;KMMMMMMMMMMMMMMMMMWl ....... ,KWWMWX0Ox' '..cxxkkkkkkkkkkkkkkxdd dddddxxkkkkkkkkxxkkxkkkkxo'.oWMMMMMMMMMMMMMMMMMO' ... .xKkoc;,,,;,. ,:;,...:dkxkkxkkkkkkkkkxdd ddddxxkkkkkkkkkkkkkxkkxxddc..kWMMMMMMMMMMMMMMMMMXdc:.. ..;:;...'oOXNWO:colkWMWXk;.,xkxkkkkkkkkkkkxdd ddxxkkxxkkkkkkkkkkkkxxddddo;.;KMMMMMMMMMMMMMMMMMMMMWX0O0XXxcod;cKMMMMWKl:OMMMMMM0,.lkxkkkkkkkkkkkxdd dxxkkkkkkkkkkkkxxkkxxddddddo,.:XMMMMMMMMMMMMMMMMMMMMMMMMMMMWMKc:KMMMMMNxoKMMWMMM0,.lkxxxkkkkkkkkxxdd xxkkkkkkkkkkkkkkkkxxddddddddl'.cXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNWMWMMMMWWMMMWMMNl.,dkkkxkkkkkkkkxddd xkkkkkkkkkkkkkkkkxdddddddddodl'.cXMMMMMMMMMMMMMMMMMMMMMMMMMMKdOWNxo0WNxlOWKcoXNo..okxxkkkkkkkkkkxddd kkkkkkkkkkkkkkkkkxddodddddddddo'.,OWMMMMMMMMMMMMMMMMMMMMMN0Oc .lc. .l:. .;. .,, .lkxxkkkkkkkkkkxxddd kkkkkkkkkkkkkkkkxddddddddddddddo' cNMMMMMMMMMMMMMMMMMMMMMKl,;'. .,,. .'. .,. '' 'xkkxkkkkkkkkkkxdddd kkkkkkkkkkkkkkkkxddoddddl:,'..';. :NMMMMMMMMMMMMMMMMMMMMMWWWWKlc0WNd,xNx;kWx;xl ,xkkkkxxkkxxkkxxdddd kkkkkkkkkkkkkkkkxdddddo:..:dxdl' ,0MMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMWWWMWWMMWWK; :kkkkkkkkkkxkkxddddd kkkkkkkkkxkkkkkxxdoddo; 'kNMWMNl.'kNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMK:.'dkkkkkxkkkkkkxdddddd kkkkkkkkkkkxkkkxxddddo' lXNMMWo.:KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0o' 'dkkkkxxkkkkkkxxdddddd kkkkkkkxkkkkkkkxdc;,,'.,kXNMMWK0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWNNXXO:,,..ckkkkxkkkxkkxxddddddd kkkkkkkkkxxkxkxc..;loox0KKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNNNNXXXXXXXXXXXKXXk'.cxkxkkxkkkxxdddddddd kkkkkkkkkkkkxkl..xNMMMMWNXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWNNWWWWWMMMMMMWO'.ckxkkxkxxxdoddddddx kkkkkkkkkkkkkx, cNMMMMMMMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx..okkkkxddddddddddxx kkkkkkkkkkkkkx, cNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWo.'dkxxddddddddddxkk kkkkkkkkkxkxxx: ,0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWMMMMMMMMMMMMMX; :ddddddddoddxxkkx kkkkkkkkxxkkxko..dNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNXXXXXXXNNWMMMMMMMMMWk..cdddddddddxxkxxd kkkkkkkxxkkxkkx, cXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNWWMMMMMMMWWWNNNNWMMMMMMMMN: ,oddddddxxxkxxdd kkkkkkkkkkkxkko..oXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNWMMMMMMMMMMMMMMMMWWWMMMMMMMMWk..ldddddxkkxkkxxx xkkkkkkkkkkxkd,.lXWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX; ;dddxxkkkkxxkkk xxkkkkkkkxkkk: :XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWo 'dxxkkkkkkkkkkk dxkkkkkkkkxkx, dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO..okxkkkkkkkkkkx ddxkkxkkkkxkd'.dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWMMMMX; ckkkkkkkkkkxxd dodxxkkkkxkkx; cWMMMMWNWMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNWMMMWc ;xkkkxkkkxxddd dddddxxkkkkxkl..OWMMWNXWMMMMMMMMMMMNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNXNMMMMd.'dkkkkxxdddddd ddddddxxkkkkkx; :KWWN0KWMMMMMMMMMMWXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXXWMMMk..okxxxdddddddd ddddddddxxkkkkl..xXX0ccKMMMMMMMMMMWXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXXWMMM0'.lxddddddddddd ***************************************************************************************************/ interface IChubbyKaijuDAOCorp { function burnCorpForAddress(uint256 typeId, address burnTokenAddress) external; function balanceOf(address account, uint256 id) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /*************************************************************************************************** kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkxxddddddddddddddxxxxxdd kkkkkkkkkkkkkkkkkkkkkkkxxkkkkkkkkkkkkkkkkkkkkkkkkkkxxxxxkxkkkkkkkkkkkkkkkkkkkkkxxddddddddddddxxkkkxx kkkkkkkkkkkkkkkkkkkkkkkkkkkxxxkkkkkkkkkkkkkkkkkkkkkkxxdddddxxxxxkkkkkkkkkkkkkkkkxxddddddddddddxxkxkk kkkkkkkkkkkkkkkkkkkkxxxxxddddxxkxxkkxxkkkkkkkxxkkxxkkkxxddddddddxxxxkkkkkkkkxxkkkxxddddddddddddxxkkk kkkkkkkkkkkkkkkxxxxddddddddxxxxkxxoooodxkkkkkxxdooddxkxxkkkxxxxdddddxxxkkkkkkkkkkkxxdddddddddddddxkk kkkkkkkkkkkkxxxdddddoddxxxxkkkxl,.',,''.',::;'.''','',lxxxkkkkxxddddddxxxkkkxxxxxkkxddddddddddddddxk kkkkkkkkxxxdddddddddddxxxxdddo,.,d0XXK0kdl;,:ok0KKK0x;.'lxxxxxxxxddddddddxxkkxxxxxxddodddddddddddddx kkkkkxxxddddddddddddddddddddl'.:KMMMMMMMMNKXWMMMWWMMWXc..';;;:cloddddddddddxkkxxdddddodddddddddddddd kkxxxddddddddddddddddddddddc..c0WMMMMMMMMWXNMMMMMMMWk;,',;::;,'..':oxxxxddodxxxkxxdddddxdddddddddddd kxxdddddddddddddddddddddoc'.'d0XWMMMMMMMMMWMMMMMMMMWXOKNWWMMMWX0kl,.'cdkkxxxddddxdddxxkkkxxxdddddddd xddddxxxxxxdddddddddddl:'.,xXNKKNMMMMMMMMMMMMMMMMMMMWMMMMMMMMMMMMMNk:..cxkkxxxddddddxkkkkkkkxddddddd xxxxxkkkxxxdddddddddo;..ckNMMMNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNk,.,dxxkkxxxdddxkkkkkxkkxdddddd kkkkxxxxdddddddoddo:..c0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXo..cxkkkkkxxxxkkkkkkkkkxddddd kkkxxxddoddddddddd:..xNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNXNWWMMMMMMMMMMWNO,.;dkkkkkxkkxxkkkkkkkxxdddd kxxxdddddo:'',;:c;. lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWNNWMMMMMWMMMWMMMXc.'okxkkkkkkkkkkkkkkkxdddd xxdddddodo' .;,',,,:ONWMMMMMMMMMMMMMMMMMMMMMMMMMMMMXxc;;:xXMMMMMMMMMMMWNNNXd..lkkkkkkkkkxkkkkkkkxddd ddddddddddc..oKKXWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMWkc' ,0MMMMMMMMMWNNNXNWx..okkkkkkkkkkkkkkkkxdod dddddddddddl..l0XNNWWWMMWXNMMMMMMMMMMMMMMMMMMMMNd. .... :XMMMMMMWWW0l,,;d0l.,xkkkxkkkkkkkkkkkxddd ddddddddddxko'.,lxO0KXNNO;cXMMMMMMMMMMMMMMMMMMMk. ....... .kMMMMMMMWk. :x'.lkkkkkkkkkkkkkkkkxdd ddddddddxxxkkxl;'.'',:cl:..dWMMMMMMMMMMMMMMMMMWl ........ .kMMMMMMMNc ... .c, :xxkkkkkkkkkkkkkkxdd dddddddxkkkkkkkkxdoc:;,''. ;KMMMMMMMMMMMMMMMMMWl ....... ,KWWMWX0Ox' '..cxxkkkkkkkkkkkkkkxdd dddddxxkkkkkkkkxxkkxkkkkxo'.oWMMMMMMMMMMMMMMMMMO' ... .xKkoc;,,,;,. ,:;,...:dkxkkxkkkkkkkkkxdd ddddxxkkkkkkkkkkkkkxkkxxddc..kWMMMMMMMMMMMMMMMMMXdc:.. ..;:;...'oOXNWO:colkWMWXk;.,xkxkkkkkkkkkkkxdd ddxxkkxxkkkkkkkkkkkkxxddddo;.;KMMMMMMMMMMMMMMMMMMMMWX0O0XXxcod;cKMMMMWKl:OMMMMMM0,.lkxkkkkkkkkkkkxdd dxxkkkkkkkkkkkkxxkkxxddddddo,.:XMMMMMMMMMMMMMMMMMMMMMMMMMMMWMKc:KMMMMMNxoKMMWMMM0,.lkxxxkkkkkkkkxxdd xxkkkkkkkkkkkkkkkkxxddddddddl'.cXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNWMWMMMMWWMMMWMMNl.,dkkkxkkkkkkkkxddd xkkkkkkkkkkkkkkkkxdddddddddodl'.cXMMMMMMMMMMMMMMMMMMMMMMMMMMKdOWNxo0WNxlOWKcoXNo..okxxkkkkkkkkkkxddd kkkkkkkkkkkkkkkkkxddodddddddddo'.,OWMMMMMMMMMMMMMMMMMMMMMN0Oc .lc. .l:. .;. .,, .lkxxkkkkkkkkkkxxddd kkkkkkkkkkkkkkkkxddddddddddddddo' cNMMMMMMMMMMMMMMMMMMMMMKl,;'. .,,. .'. .,. '' 'xkkxkkkkkkkkkkxdddd kkkkkkkkkkkkkkkkxddoddddl:,'..';. :NMMMMMMMMMMMMMMMMMMMMMWWWWKlc0WNd,xNx;kWx;xl ,xkkkkxxkkxxkkxxdddd kkkkkkkkkkkkkkkkxdddddo:..:dxdl' ,0MMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMWWWMWWMMWWK; :kkkkkkkkkkxkkxddddd kkkkkkkkkxkkkkkxxdoddo; 'kNMWMNl.'kNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMK:.'dkkkkkxkkkkkkxdddddd kkkkkkkkkkkxkkkxxddddo' lXNMMWo.:KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0o' 'dkkkkxxkkkkkkxxdddddd kkkkkkkxkkkkkkkxdc;,,'.,kXNMMWK0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWNNXXO:,,..ckkkkxkkkxkkxxddddddd kkkkkkkkkxxkxkxc..;loox0KKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNNNNXXXXXXXXXXXKXXk'.cxkxkkxkkkxxdddddddd kkkkkkkkkkkkxkl..xNMMMMWNXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWNNWWWWWMMMMMMWO'.ckxkkxkxxxdoddddddx kkkkkkkkkkkkkx, cNMMMMMMMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx..okkkkxddddddddddxx kkkkkkkkkkkkkx, cNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWo.'dkxxddddddddddxkk kkkkkkkkkxkxxx: ,0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWMMMMMMMMMMMMMX; :ddddddddoddxxkkx kkkkkkkkxxkkxko..dNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNXXXXXXXNNWMMMMMMMMMWk..cdddddddddxxkxxd kkkkkkkxxkkxkkx, cXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNWWMMMMMMMWWWNNNNWMMMMMMMMN: ,oddddddxxxkxxdd kkkkkkkkkkkxkko..oXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNWMMMMMMMMMMMMMMMMWWWMMMMMMMMWk..ldddddxkkxkkxxx xkkkkkkkkkkxkd,.lXWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX; ;dddxxkkkkxxkkk xxkkkkkkkxkkk: :XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWo 'dxxkkkkkkkkkkk dxkkkkkkkkxkx, dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO..okxkkkkkkkkkkx ddxkkxkkkkxkd'.dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWMMMMX; ckkkkkkkkkkxxd dodxxkkkkxkkx; cWMMMMWNWMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNWMMMWc ;xkkkxkkkxxddd dddddxxkkkkxkl..OWMMWNXWMMMMMMMMMMMNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNXNMMMMd.'dkkkkxxdddddd ddddddxxkkkkkx; :KWWN0KWMMMMMMMMMMWXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXXWMMMk..okxxxdddddddd ddddddddxxkkkkl..xXX0ccKMMMMMMMMMMWXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXXWMMM0'.lxddddddddddd ***************************************************************************************************/ interface IChubbyKaijuDAOInvasion_legacy { function ownerOf(uint256) external view returns (address owner); function traits(uint256) external returns (uint16); function tokensOf(address) external view returns (uint16[] memory); function balanceOf(address account) external view returns (uint256); }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ALIEN_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPER_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNDEAD_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"addController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"alienMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"alien_leaders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","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":"typeId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"callWithRadio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"controllers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"hasMigrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_corpAddress","type":"address"},{"internalType":"address","name":"_legacyAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"manualMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"},{"internalType":"uint256[]","name":"zombieIds","type":"uint256[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mutateWithSerum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"publicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"round_gen2","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"alien","type":"address"},{"internalType":"address","name":"zombie","type":"address"},{"internalType":"address","name":"undead","type":"address"}],"name":"setLeadersGen2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"mutate","type":"bool"}],"name":"setMutate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"ispublic","type":"bool"}],"name":"setPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"superalienMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"superundeadMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOf","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"traits","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"undeadMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"undead_leaders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zombieMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"zombie_leaders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526109af600d5561135e600e55668e1bc9bf0400006015553480156200002857600080fd5b50604080518082018252601681527f4368756262794b61696a7544414f496e766173696f6e0000000000000000000060208083019182528351808501909452600784526621a5a0a4a52a9960c91b9084015281519192916200008d916000916200011c565b508051620000a39060019060208401906200011c565b505050620000c0620000ba620000c660201b60201c565b620000ca565b620001ff565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012a90620001c2565b90600052602060002090601f0160209004810192826200014e576000855562000199565b82601f106200016957805160ff191683800117855562000199565b8280016001018555821562000199579182015b82811115620001995782518255916020019190600101906200017c565b50620001a7929150620001ab565b5090565b5b80821115620001a75760008155600101620001ac565b600181811c90821680620001d757607f821691505b60208210811415620001f957634e487b7160e01b600052602260045260246000fd5b50919050565b613a0b806200020f6000396000f3fe6080604052600436106103355760003560e01c80636c19e783116101ab578063b88d4fde116100f7578063da8c229e11610095578063f2fde38b1161006f578063f2fde38b1461096b578063f6a73e5e1461098b578063f6a74ed7146109ab578063fd5fa64f146109cb57600080fd5b8063da8c229e146108dd578063e8a3d4851461090d578063e985e9c51461092257600080fd5b8063c87b56dd116100d1578063c87b56dd14610865578063cd3f71ac14610885578063d0ca6b5e146108a5578063d2457370146108bb57600080fd5b8063b88d4fde14610812578063b8b89c9b14610832578063c69616eb1461084557600080fd5b80638ea139fe11610164578063a22cb4651161013e578063a22cb465146107a6578063a7fc7a07146107c6578063addbb33b146107e6578063b180398b146107fc57600080fd5b80638ea139fe1461075b57806391b7f5ed1461077157806395d89b411461079157600080fd5b80636c19e783146106b757806370a08231146106d7578063715018a6146106f75780637c3cb6a91461070c5780637e5a1c31146107275780638da5cb5b1461073d57600080fd5b80632c678c64116102855780634f6ccce7116102235780635a3f2672116101fd5780635a3f2672146106345780635cbcec4e146106615780636352211e146106815780636bde2627146106a157600080fd5b80634f6ccce7146105d45780635383abaa146105f457806355f804b31461061457600080fd5b80633ccfd60b1161025f5780633ccfd60b1461055f57806342842e0e14610574578063485cc955146105945780634ac9191f146105b457600080fd5b80632c678c64146104e55780632d72225b146104fb5780632f745c591461053f57600080fd5b8063095ea7b3116102f257806323b872dd116102cc57806323b872dd1461046f578063250777ac1461048f57806325986a2a146104af5780632a768b55146104c557600080fd5b8063095ea7b3146104255780631705a3bd1461044557806318160ddd1461045a57600080fd5b806301ffc9a71461033a578063057de0961461036f57806306fdde0314610391578063081812fc146103b357806308bf28c7146103eb57806309245e361461040f575b600080fd5b34801561034657600080fd5b5061035a610355366004612ff2565b6109eb565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5061038f61038a366004613121565b610a16565b005b34801561039d57600080fd5b506103a6610c1f565b6040516103669190613239565b3480156103bf57600080fd5b506103d36103ce36600461324c565b610cb1565b6040516001600160a01b039091168152602001610366565b3480156103f757600080fd5b5061040160125481565b604051908152602001610366565b34801561041b57600080fd5b50610401614e2081565b34801561043157600080fd5b5061038f610440366004613265565b610d39565b34801561045157600080fd5b5061038f610e4a565b34801561046657600080fd5b50600854610401565b34801561047b57600080fd5b5061038f61048a36600461328f565b61106f565b34801561049b57600080fd5b5061038f6104aa3660046132cb565b6110a0565b3480156104bb57600080fd5b5061040160115481565b3480156104d157600080fd5b506103d36104e036600461324c565b611653565b3480156104f157600080fd5b50610401600d5481565b34801561050757600080fd5b5061052c61051636600461324c565b601a6020526000908152604090205461ffff1681565b60405161ffff9091168152602001610366565b34801561054b57600080fd5b5061040161055a366004613265565b61167d565b34801561056b57600080fd5b5061038f611713565b34801561058057600080fd5b5061038f61058f36600461328f565b611779565b3480156105a057600080fd5b5061038f6105af366004613370565b611794565b3480156105c057600080fd5b5061038f6105cf3660046133b3565b6117ec565b3480156105e057600080fd5b506104016105ef36600461324c565b611830565b34801561060057600080fd5b506103d361060f36600461324c565b6118c3565b34801561062057600080fd5b5061038f61062f366004613426565b6118d3565b34801561064057600080fd5b5061065461064f36600461346f565b611910565b604051610366919061348a565b34801561066d57600080fd5b5061038f61067c3660046133b3565b6119d8565b34801561068d57600080fd5b506103d361069c36600461324c565b611a15565b3480156106ad57600080fd5b5061040160155481565b3480156106c357600080fd5b5061038f6106d236600461346f565b611a20565b3480156106e357600080fd5b506104016106f236600461346f565b611a6c565b34801561070357600080fd5b5061038f611af3565b34801561071857600080fd5b5060165461052c9061ffff1681565b34801561073357600080fd5b50610401600e5481565b34801561074957600080fd5b50600a546001600160a01b03166103d3565b34801561076757600080fd5b50610401600f5481565b34801561077d57600080fd5b5061038f61078c36600461324c565b611b29565b34801561079d57600080fd5b506103a6611b58565b3480156107b257600080fd5b5061038f6107c13660046134d2565b611b67565b3480156107d257600080fd5b5061038f6107e136600461346f565b611c2c565b3480156107f257600080fd5b50610401611a0a81565b34801561080857600080fd5b5061040161270f81565b34801561081e57600080fd5b5061038f61082d3660046134fc565b611c7a565b61038f610840366004613578565b611cac565b34801561085157600080fd5b5061038f610860366004613595565b611dff565b34801561087157600080fd5b506103a661088036600461324c565b612132565b34801561089157600080fd5b5061038f6108a03660046135b7565b6121d9565b3480156108b157600080fd5b5061040160105481565b3480156108c757600080fd5b506108d06122f8565b60405161036691906135fa565b3480156108e957600080fd5b5061035a6108f836600461346f565b600b6020526000908152604090205460ff1681565b34801561091957600080fd5b506103a661234f565b34801561092e57600080fd5b5061035a61093d366004613370565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561097757600080fd5b5061038f61098636600461346f565b6123a0565b34801561099757600080fd5b506103d36109a636600461324c565b612438565b3480156109b757600080fd5b5061038f6109c636600461346f565b612448565b3480156109d757600080fd5b5061035a6109e636600461324c565b612493565b60006001600160e01b0319821663780e9d6360e01b1480610a105750610a108261249e565b92915050565b336000908152600b602052604090205460ff16610a7a5760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c7920636f6e74726f6c6c6572732063616e20646f20746869730000000060448201526064015b60405180910390fd5b8051825114610ac35760405162461bcd60e51b815260206004820152601560248201527409aeae6e840d0c2ecca40e6c2daca40d8cadccee8d605b1b6044820152606401610a71565b60005b8151811015610c1a57611a0b828281518110610ae457610ae4613632565b602002602001015161ffff16108015610b205750610b1e828281518110610b0d57610b0d613632565b602002602001015161ffff166124ee565b155b15610c08576000601a6000848481518110610b3d57610b3d613632565b602002602001015161ffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff160217905550610bb1838281518110610b8657610b86613632565b6020026020010151838381518110610ba057610ba0613632565b602002602001015161ffff1661250b565b600d8054906000610bc18361365e565b9091555050600d546000908152601a60205260409020805461ffff191690558251610c0890849083908110610bf857610bf8613632565b6020026020010151600d5461250b565b80610c128161365e565b915050610ac6565b505050565b606060008054610c2e90613679565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5a90613679565b8015610ca75780601f10610c7c57610100808354040283529160200191610ca7565b820191906000526020600020905b815481529060010190602001808311610c8a57829003601f168201915b5050505050905090565b6000610cbc826124ee565b610d1d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a71565b506000908152600460205260409020546001600160a01b031690565b6000610d448261264a565b9050806001600160a01b0316836001600160a01b03161415610db25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a71565b336001600160a01b0382161480610dce5750610dce813361093d565b610e405760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a71565b610c1a83836126c1565b601c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb791906136b4565b11610ef75760405162461bcd60e51b815260206004820152601060248201526f4d7573742048617665205a6f6d62696560801b6044820152606401610a71565b601c54604051632d1f933960e11b81523360048201526000916001600160a01b031690635a3f267290602401600060405180830381865afa158015610f40573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f6891908101906136cd565b905060005b815181101561106b57611a0b828281518110610f8b57610f8b613632565b602002602001015161ffff16108015610fb65750610fb4828281518110610b0d57610b0d613632565b155b15611059576000601a6000848481518110610fd357610fd3613632565b602002602001015161ffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555061101d33838381518110610ba057610ba0613632565b600d805490600061102d8361365e565b9091555050600d80546000908152601a60205260409020805461ffff191690555461105990339061250b565b806110638161365e565b915050610f6d565b5050565b611079338261272f565b6110955760405162461bcd60e51b8152600401610a7190613767565b610c1a838383612819565b600c54610100900460ff166110eb5760405162461bcd60e51b815260206004820152601160248201527010d85b9b9bdd081b5d5d185d194816595d607a1b6044820152606401610a71565b82600114806110fa5750826003145b61113f5760405162461bcd60e51b81526020600482015260166024820152757479706549642053686f756c6420626520536572756d60501b6044820152606401610a71565b808251146111aa5760405162461bcd60e51b815260206004820152603260248201527f546865206e756d626572206f66207a6f6d626965732073686f756c64206265206044820152711cd85b5948185cc81d1a1948185b5bdd5b9d60721b6064820152608401610a71565b601b54604051627eeac760e11b81523360048201526024810185905282916001600160a01b03169062fdd58e90604401602060405180830381865afa1580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121b91906136b4565b10156112695760405162461bcd60e51b815260206004820152601d60248201527f4d757374204f776e2074686520416d6f756e74206f66207479706549640000006044820152606401610a71565b60005b825181101561164d5761129783828151811061128a5761128a613632565b60200260200101516124ee565b6112d65760405162461bcd60e51b815260206004820152601060248201526f4e6f74206578697374207a6f6d62696560801b6044820152606401610a71565b336001600160a01b03166113028483815181106112f5576112f5613632565b6020026020010151611a15565b6001600160a01b0316146113445760405162461bcd60e51b81526020600482015260096024820152682737ba1027bbb732b960b91b6044820152606401610a71565b611a0b83828151811061135957611359613632565b6020026020010151106113a75760405162461bcd60e51b81526020600482015260166024820152754f6e6c79205a6f6d6269652063616e204d757461746560501b6044820152606401610a71565b83600114156114ef57601b54604051636c01a0d160e11b8152600481018690523360248201526001600160a01b039091169063d80341a290604401600060405180830381600087803b1580156113fc57600080fd5b505af1158015611410573d6000803e3d6000fd5b5050505061143683828151811061142957611429613632565b60200260200101516129c4565b601180549060006114468361365e565b91905055506114643361270f60115461145f91906137b8565b61250b565b6002601a600061270f60115461147a91906137b8565b815260200190815260200160002060006101000a81548161ffff021916908361ffff160217905550600a601a60008584815181106114ba576114ba613632565b6020026020010151815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555061163b565b836003141561163b57601b54604051636c01a0d160e11b8152600481018690523360248201526001600160a01b039091169063d80341a290604401600060405180830381600087803b15801561154457600080fd5b505af1158015611558573d6000803e3d6000fd5b5050505061157183828151811061142957611429613632565b601280549060006115818361365e565b91905055506115a733614e2060125460105461159d91906137b8565b61145f91906137b8565b6002601a6000614e206012546010546115c091906137b8565b6115ca91906137b8565b815260200190815260200160002060006101000a81548161ffff021916908361ffff160217905550600a601a600085848151811061160a5761160a613632565b6020026020010151815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055505b806116458161365e565b91505061126c565b50505050565b6019818154811061166357600080fd5b6000918252602090912001546001600160a01b0316905081565b600061168883611a6c565b82106116ea5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a71565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b0316331461173d5760405162461bcd60e51b8152600401610a71906137d0565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611776573d6000803e3d6000fd5b50565b610c1a83838360405180602001604052806000815250611c7a565b600a546001600160a01b031633146117be5760405162461bcd60e51b8152600401610a71906137d0565b601b80546001600160a01b039384166001600160a01b031991821617909155601c8054929093169116179055565b600a546001600160a01b031633146118165760405162461bcd60e51b8152600401610a71906137d0565b600c80549115156101000261ff0019909216919091179055565b600061183b60085490565b821061189e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a71565b600882815481106118b1576118b1613632565b90600052602060002001549050919050565b6018818154811061166357600080fd5b600a546001600160a01b031633146118fd5760405162461bcd60e51b8152600401610a71906137d0565b805161106b906013906020840190612f43565b6060600061191d83611a6c565b905060008163ffffffff1667ffffffffffffffff81111561194057611940613016565b604051908082528060200260200182016040528015611969578160200160208202803683370190505b50905060005b8263ffffffff168163ffffffff1610156119d057611993858263ffffffff1661167d565b828263ffffffff16815181106119ab576119ab613632565b61ffff90921660209283029190910190910152806119c881613805565b91505061196f565b509392505050565b600a546001600160a01b03163314611a025760405162461bcd60e51b8152600401610a71906137d0565b600c805460ff1916911515919091179055565b6000610a108261264a565b600a546001600160a01b03163314611a4a5760405162461bcd60e51b8152600401610a71906137d0565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611ad75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a71565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611b1d5760405162461bcd60e51b8152600401610a71906137d0565b611b276000612a6b565b565b600a546001600160a01b03163314611b535760405162461bcd60e51b8152600401610a71906137d0565b601555565b606060018054610c2e90613679565b6001600160a01b038216331415611bc05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a71565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611c565760405162461bcd60e51b8152600401610a71906137d0565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b611c84338361272f565b611ca05760405162461bcd60e51b8152600401610a7190613767565b61164d84848484612abd565b600c5460ff16611cf65760405162461bcd60e51b8152602060048201526015602482015274139bdd08141d589b1a58dcd85b1948141c995a5bd9605a1b6044820152606401610a71565b611a0b8161ffff16600e54611d0b91906137b8565b10611d515760405162461bcd60e51b8152602060048201526016602482015275105b1b081e9bdb589a595cc8185c99481b5a5b9d195960521b6044820152606401610a71565b601554611d629061ffff8316613829565b341015611da25760405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408aa8960931b6044820152606401610a71565b60005b8161ffff1681101561106b57600e8054906000611dc18361365e565b9091555050600e80546000908152601a60205260409020805461ffff1916905554611ded90339061250b565b80611df78161365e565b915050611da5565b600c54610100900460ff16611e485760405162461bcd60e51b815260206004820152600f60248201526e10d85b9b9bdd0818d85b1b0816595d608a1b6044820152606401610a71565b811580611e555750816002145b611e9a5760405162461bcd60e51b81526020600482015260166024820152757479706549642053686f756c6420626520526164696f60501b6044820152606401610a71565b601b54604051627eeac760e11b81523360048201526024810184905282916001600160a01b03169062fdd58e90604401602060405180830381865afa158015611ee7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0b91906136b4565b1015611f595760405162461bcd60e51b815260206004820152601d60248201527f4d757374204f776e2074686520416d6f756e74206f66207479706549640000006044820152606401610a71565b60005b81811015610c1a578261203a57601b54604051636c01a0d160e11b8152600481018590523360248201526001600160a01b039091169063d80341a290604401600060405180830381600087803b158015611fb557600080fd5b505af1158015611fc9573d6000803e3d6000fd5b5050600f8054925090506000611fde8361365e565b9190505550611ff733611a0a600f5461145f91906137b8565b6001601a6000611a0a600f5461200d91906137b8565b815260200190815260200160002060006101000a81548161ffff021916908361ffff160217905550612120565b826002141561212057601b54604051636c01a0d160e11b8152600481018590523360248201526001600160a01b039091169063d80341a290604401600060405180830381600087803b15801561208f57600080fd5b505af11580156120a3573d6000803e3d6000fd5b5050601080549250905060006120b88361365e565b91905055506120d433614e2060125460105461159d91906137b8565b6001601a6000614e206012546010546120ed91906137b8565b6120f791906137b8565b815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055505b8061212a8161365e565b915050611f5c565b606061213d826124ee565b61217d5760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610a71565b6000612187612af0565b51116121a25760405180602001604052806000815250610a10565b6121aa612af0565b6121b383612aff565b6040516020016121c4929190613848565b60405160208183030381529060405292915050565b600a546001600160a01b031633146122035760405162461bcd60e51b8152600401610a71906137d0565b6017805460018181019092557fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c150180546001600160a01b038087166001600160a01b031992831617909255601880548085019091557fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e01805486841690831617905560198054938401815560009081527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96959093018054928516929091169190911790556016805461ffff16916122d883613877565b91906101000a81548161ffff021916908361ffff16021790555050505050565b60606008805480602002602001604051908101604052809291908181526020018280548015610ca757602002820191906000526020600020905b815481526020019060010190808311612332575050505050905090565b6060600061235b612af0565b5111612374575060408051602081019091526000815290565b61237c612af0565b60405160200161238c919061388f565b604051602081830303815290604052905090565b600a546001600160a01b031633146123ca5760405162461bcd60e51b8152600401610a71906137d0565b6001600160a01b03811661242f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a71565b61177681612a6b565b6017818154811061166357600080fd5b600a546001600160a01b031633146124725760405162461bcd60e51b8152600401610a71906137d0565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b6000610a10826124ee565b60006001600160e01b031982166380ac58cd60e01b14806124cf57506001600160e01b03198216635b5e139f60e01b145b80610a1057506301ffc9a760e01b6001600160e01b0319831614610a10565b6000908152600260205260409020546001600160a01b0316151590565b6001600160a01b0382166125615760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a71565b61256a816124ee565b156125b75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a71565b6125c360008383612bfd565b6001600160a01b03821660009081526003602052604081208054600192906125ec9084906137b8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b031680610a105760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a71565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126f68261264a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061273a826124ee565b61279b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a71565b60006127a68361264a565b9050806001600160a01b0316846001600160a01b031614806127e15750836001600160a01b03166127d684610cb1565b6001600160a01b0316145b8061281157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661282c8261264a565b6001600160a01b0316146128945760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a71565b6001600160a01b0382166128f65760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a71565b612901838383612bfd565b61290c6000826126c1565b6001600160a01b03831660009081526003602052604081208054600192906129359084906138be565b90915550506001600160a01b03821660009081526003602052604081208054600192906129639084906137b8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006129cf8261264a565b90506129dd81600084612bfd565b6129e86000836126c1565b6001600160a01b0381166000908152600360205260408120805460019290612a119084906138be565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612ac8848484612819565b612ad484848484612cb5565b61164d5760405162461bcd60e51b8152600401610a71906138d5565b606060138054610c2e90613679565b606081612b235750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b4d5780612b378161365e565b9150612b469050600a8361393d565b9150612b27565b60008167ffffffffffffffff811115612b6857612b68613016565b6040519080825280601f01601f191660200182016040528015612b92576020820181803683370190505b5090505b841561281157612ba76001836138be565b9150612bb4600a86613951565b612bbf9060306137b8565b60f81b818381518110612bd457612bd4613632565b60200101906001600160f81b031916908160001a905350612bf6600a8661393d565b9450612b96565b6001600160a01b038316612c5857612c5381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612c7b565b816001600160a01b0316836001600160a01b031614612c7b57612c7b8382612db3565b6001600160a01b038216612c9257610c1a81612e50565b826001600160a01b0316826001600160a01b031614610c1a57610c1a8282612eff565b60006001600160a01b0384163b15612da857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612cf9903390899088908890600401613965565b6020604051808303816000875af1925050508015612d34575060408051601f3d908101601f19168201909252612d31918101906139a2565b60015b612d8e573d808015612d62576040519150601f19603f3d011682016040523d82523d6000602084013e612d67565b606091505b508051612d865760405162461bcd60e51b8152600401610a71906138d5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612811565b506001949350505050565b60006001612dc084611a6c565b612dca91906138be565b600083815260076020526040902054909150808214612e1d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612e62906001906138be565b60008381526009602052604081205460088054939450909284908110612e8a57612e8a613632565b906000526020600020015490508060088381548110612eab57612eab613632565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612ee357612ee36139bf565b6001900381819060005260206000200160009055905550505050565b6000612f0a83611a6c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612f4f90613679565b90600052602060002090601f016020900481019282612f715760008555612fb7565b82601f10612f8a57805160ff1916838001178555612fb7565b82800160010185558215612fb7579182015b82811115612fb7578251825591602001919060010190612f9c565b50612fc3929150612fc7565b5090565b5b80821115612fc35760008155600101612fc8565b6001600160e01b03198116811461177657600080fd5b60006020828403121561300457600080fd5b813561300f81612fdc565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561305557613055613016565b604052919050565b600067ffffffffffffffff82111561307757613077613016565b5060051b60200190565b80356001600160a01b038116811461309857600080fd5b919050565b61ffff8116811461177657600080fd5b600082601f8301126130be57600080fd5b813560206130d36130ce8361305d565b61302c565b82815260059290921b840181019181810190868411156130f257600080fd5b8286015b848110156131165780356131098161309d565b83529183019183016130f6565b509695505050505050565b6000806040838503121561313457600080fd5b823567ffffffffffffffff8082111561314c57600080fd5b818501915085601f83011261316057600080fd5b813560206131706130ce8361305d565b82815260059290921b8401810191818101908984111561318f57600080fd5b948201945b838610156131b4576131a586613081565b82529482019490820190613194565b965050860135925050808211156131ca57600080fd5b506131d7858286016130ad565b9150509250929050565b60005b838110156131fc5781810151838201526020016131e4565b8381111561164d5750506000910152565b600081518084526132258160208601602086016131e1565b601f01601f19169290920160200192915050565b60208152600061300f602083018461320d565b60006020828403121561325e57600080fd5b5035919050565b6000806040838503121561327857600080fd5b61328183613081565b946020939093013593505050565b6000806000606084860312156132a457600080fd5b6132ad84613081565b92506132bb60208501613081565b9150604084013590509250925092565b6000806000606084860312156132e057600080fd5b8335925060208085013567ffffffffffffffff8111156132ff57600080fd5b8501601f8101871361331057600080fd5b803561331e6130ce8261305d565b81815260059190911b8201830190838101908983111561333d57600080fd5b928401925b8284101561335b57833582529284019290840190613342565b96999698505050506040949094013593505050565b6000806040838503121561338357600080fd5b61338c83613081565b915061339a60208401613081565b90509250929050565b8035801515811461309857600080fd5b6000602082840312156133c557600080fd5b61300f826133a3565b600067ffffffffffffffff8311156133e8576133e8613016565b6133fb601f8401601f191660200161302c565b905082815283838301111561340f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561343857600080fd5b813567ffffffffffffffff81111561344f57600080fd5b8201601f8101841361346057600080fd5b612811848235602084016133ce565b60006020828403121561348157600080fd5b61300f82613081565b6020808252825182820181905260009190848201906040850190845b818110156134c657835161ffff16835292840192918401916001016134a6565b50909695505050505050565b600080604083850312156134e557600080fd5b6134ee83613081565b915061339a602084016133a3565b6000806000806080858703121561351257600080fd5b61351b85613081565b935061352960208601613081565b925060408501359150606085013567ffffffffffffffff81111561354c57600080fd5b8501601f8101871361355d57600080fd5b61356c878235602084016133ce565b91505092959194509250565b60006020828403121561358a57600080fd5b813561300f8161309d565b600080604083850312156135a857600080fd5b50508035926020909101359150565b6000806000606084860312156135cc57600080fd5b6135d584613081565b92506135e360208501613081565b91506135f160408501613081565b90509250925092565b6020808252825182820181905260009190848201906040850190845b818110156134c657835183529284019291840191600101613616565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561367257613672613648565b5060010190565b600181811c9082168061368d57607f821691505b602082108114156136ae57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156136c657600080fd5b5051919050565b600060208083850312156136e057600080fd5b825167ffffffffffffffff8111156136f757600080fd5b8301601f8101851361370857600080fd5b80516137166130ce8261305d565b81815260059190911b8201830190838101908783111561373557600080fd5b928401925b8284101561375c57835161374d8161309d565b8252928401929084019061373a565b979650505050505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156137cb576137cb613648565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600063ffffffff8083168181141561381f5761381f613648565b6001019392505050565b600081600019048311821515161561384357613843613648565b500290565b6000835161385a8184602088016131e1565b83519083019061386e8183602088016131e1565b01949350505050565b600061ffff8083168181141561381f5761381f613648565b600082516138a18184602087016131e1565b6a636f6e747261637475726960a81b920191825250600b01919050565b6000828210156138d0576138d0613648565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261394c5761394c613927565b500490565b60008261396057613960613927565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906139989083018461320d565b9695505050505050565b6000602082840312156139b457600080fd5b815161300f81612fdc565b634e487b7160e01b600052603160045260246000fdfea26469706673582212201045e28c25e0fd0f80614a99d0c23c2abb168e4a37f5e4375b1a48099281ea4264736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106103355760003560e01c80636c19e783116101ab578063b88d4fde116100f7578063da8c229e11610095578063f2fde38b1161006f578063f2fde38b1461096b578063f6a73e5e1461098b578063f6a74ed7146109ab578063fd5fa64f146109cb57600080fd5b8063da8c229e146108dd578063e8a3d4851461090d578063e985e9c51461092257600080fd5b8063c87b56dd116100d1578063c87b56dd14610865578063cd3f71ac14610885578063d0ca6b5e146108a5578063d2457370146108bb57600080fd5b8063b88d4fde14610812578063b8b89c9b14610832578063c69616eb1461084557600080fd5b80638ea139fe11610164578063a22cb4651161013e578063a22cb465146107a6578063a7fc7a07146107c6578063addbb33b146107e6578063b180398b146107fc57600080fd5b80638ea139fe1461075b57806391b7f5ed1461077157806395d89b411461079157600080fd5b80636c19e783146106b757806370a08231146106d7578063715018a6146106f75780637c3cb6a91461070c5780637e5a1c31146107275780638da5cb5b1461073d57600080fd5b80632c678c64116102855780634f6ccce7116102235780635a3f2672116101fd5780635a3f2672146106345780635cbcec4e146106615780636352211e146106815780636bde2627146106a157600080fd5b80634f6ccce7146105d45780635383abaa146105f457806355f804b31461061457600080fd5b80633ccfd60b1161025f5780633ccfd60b1461055f57806342842e0e14610574578063485cc955146105945780634ac9191f146105b457600080fd5b80632c678c64146104e55780632d72225b146104fb5780632f745c591461053f57600080fd5b8063095ea7b3116102f257806323b872dd116102cc57806323b872dd1461046f578063250777ac1461048f57806325986a2a146104af5780632a768b55146104c557600080fd5b8063095ea7b3146104255780631705a3bd1461044557806318160ddd1461045a57600080fd5b806301ffc9a71461033a578063057de0961461036f57806306fdde0314610391578063081812fc146103b357806308bf28c7146103eb57806309245e361461040f575b600080fd5b34801561034657600080fd5b5061035a610355366004612ff2565b6109eb565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5061038f61038a366004613121565b610a16565b005b34801561039d57600080fd5b506103a6610c1f565b6040516103669190613239565b3480156103bf57600080fd5b506103d36103ce36600461324c565b610cb1565b6040516001600160a01b039091168152602001610366565b3480156103f757600080fd5b5061040160125481565b604051908152602001610366565b34801561041b57600080fd5b50610401614e2081565b34801561043157600080fd5b5061038f610440366004613265565b610d39565b34801561045157600080fd5b5061038f610e4a565b34801561046657600080fd5b50600854610401565b34801561047b57600080fd5b5061038f61048a36600461328f565b61106f565b34801561049b57600080fd5b5061038f6104aa3660046132cb565b6110a0565b3480156104bb57600080fd5b5061040160115481565b3480156104d157600080fd5b506103d36104e036600461324c565b611653565b3480156104f157600080fd5b50610401600d5481565b34801561050757600080fd5b5061052c61051636600461324c565b601a6020526000908152604090205461ffff1681565b60405161ffff9091168152602001610366565b34801561054b57600080fd5b5061040161055a366004613265565b61167d565b34801561056b57600080fd5b5061038f611713565b34801561058057600080fd5b5061038f61058f36600461328f565b611779565b3480156105a057600080fd5b5061038f6105af366004613370565b611794565b3480156105c057600080fd5b5061038f6105cf3660046133b3565b6117ec565b3480156105e057600080fd5b506104016105ef36600461324c565b611830565b34801561060057600080fd5b506103d361060f36600461324c565b6118c3565b34801561062057600080fd5b5061038f61062f366004613426565b6118d3565b34801561064057600080fd5b5061065461064f36600461346f565b611910565b604051610366919061348a565b34801561066d57600080fd5b5061038f61067c3660046133b3565b6119d8565b34801561068d57600080fd5b506103d361069c36600461324c565b611a15565b3480156106ad57600080fd5b5061040160155481565b3480156106c357600080fd5b5061038f6106d236600461346f565b611a20565b3480156106e357600080fd5b506104016106f236600461346f565b611a6c565b34801561070357600080fd5b5061038f611af3565b34801561071857600080fd5b5060165461052c9061ffff1681565b34801561073357600080fd5b50610401600e5481565b34801561074957600080fd5b50600a546001600160a01b03166103d3565b34801561076757600080fd5b50610401600f5481565b34801561077d57600080fd5b5061038f61078c36600461324c565b611b29565b34801561079d57600080fd5b506103a6611b58565b3480156107b257600080fd5b5061038f6107c13660046134d2565b611b67565b3480156107d257600080fd5b5061038f6107e136600461346f565b611c2c565b3480156107f257600080fd5b50610401611a0a81565b34801561080857600080fd5b5061040161270f81565b34801561081e57600080fd5b5061038f61082d3660046134fc565b611c7a565b61038f610840366004613578565b611cac565b34801561085157600080fd5b5061038f610860366004613595565b611dff565b34801561087157600080fd5b506103a661088036600461324c565b612132565b34801561089157600080fd5b5061038f6108a03660046135b7565b6121d9565b3480156108b157600080fd5b5061040160105481565b3480156108c757600080fd5b506108d06122f8565b60405161036691906135fa565b3480156108e957600080fd5b5061035a6108f836600461346f565b600b6020526000908152604090205460ff1681565b34801561091957600080fd5b506103a661234f565b34801561092e57600080fd5b5061035a61093d366004613370565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561097757600080fd5b5061038f61098636600461346f565b6123a0565b34801561099757600080fd5b506103d36109a636600461324c565b612438565b3480156109b757600080fd5b5061038f6109c636600461346f565b612448565b3480156109d757600080fd5b5061035a6109e636600461324c565b612493565b60006001600160e01b0319821663780e9d6360e01b1480610a105750610a108261249e565b92915050565b336000908152600b602052604090205460ff16610a7a5760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c7920636f6e74726f6c6c6572732063616e20646f20746869730000000060448201526064015b60405180910390fd5b8051825114610ac35760405162461bcd60e51b815260206004820152601560248201527409aeae6e840d0c2ecca40e6c2daca40d8cadccee8d605b1b6044820152606401610a71565b60005b8151811015610c1a57611a0b828281518110610ae457610ae4613632565b602002602001015161ffff16108015610b205750610b1e828281518110610b0d57610b0d613632565b602002602001015161ffff166124ee565b155b15610c08576000601a6000848481518110610b3d57610b3d613632565b602002602001015161ffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff160217905550610bb1838281518110610b8657610b86613632565b6020026020010151838381518110610ba057610ba0613632565b602002602001015161ffff1661250b565b600d8054906000610bc18361365e565b9091555050600d546000908152601a60205260409020805461ffff191690558251610c0890849083908110610bf857610bf8613632565b6020026020010151600d5461250b565b80610c128161365e565b915050610ac6565b505050565b606060008054610c2e90613679565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5a90613679565b8015610ca75780601f10610c7c57610100808354040283529160200191610ca7565b820191906000526020600020905b815481529060010190602001808311610c8a57829003601f168201915b5050505050905090565b6000610cbc826124ee565b610d1d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a71565b506000908152600460205260409020546001600160a01b031690565b6000610d448261264a565b9050806001600160a01b0316836001600160a01b03161415610db25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a71565b336001600160a01b0382161480610dce5750610dce813361093d565b610e405760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a71565b610c1a83836126c1565b601c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb791906136b4565b11610ef75760405162461bcd60e51b815260206004820152601060248201526f4d7573742048617665205a6f6d62696560801b6044820152606401610a71565b601c54604051632d1f933960e11b81523360048201526000916001600160a01b031690635a3f267290602401600060405180830381865afa158015610f40573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f6891908101906136cd565b905060005b815181101561106b57611a0b828281518110610f8b57610f8b613632565b602002602001015161ffff16108015610fb65750610fb4828281518110610b0d57610b0d613632565b155b15611059576000601a6000848481518110610fd357610fd3613632565b602002602001015161ffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555061101d33838381518110610ba057610ba0613632565b600d805490600061102d8361365e565b9091555050600d80546000908152601a60205260409020805461ffff191690555461105990339061250b565b806110638161365e565b915050610f6d565b5050565b611079338261272f565b6110955760405162461bcd60e51b8152600401610a7190613767565b610c1a838383612819565b600c54610100900460ff166110eb5760405162461bcd60e51b815260206004820152601160248201527010d85b9b9bdd081b5d5d185d194816595d607a1b6044820152606401610a71565b82600114806110fa5750826003145b61113f5760405162461bcd60e51b81526020600482015260166024820152757479706549642053686f756c6420626520536572756d60501b6044820152606401610a71565b808251146111aa5760405162461bcd60e51b815260206004820152603260248201527f546865206e756d626572206f66207a6f6d626965732073686f756c64206265206044820152711cd85b5948185cc81d1a1948185b5bdd5b9d60721b6064820152608401610a71565b601b54604051627eeac760e11b81523360048201526024810185905282916001600160a01b03169062fdd58e90604401602060405180830381865afa1580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121b91906136b4565b10156112695760405162461bcd60e51b815260206004820152601d60248201527f4d757374204f776e2074686520416d6f756e74206f66207479706549640000006044820152606401610a71565b60005b825181101561164d5761129783828151811061128a5761128a613632565b60200260200101516124ee565b6112d65760405162461bcd60e51b815260206004820152601060248201526f4e6f74206578697374207a6f6d62696560801b6044820152606401610a71565b336001600160a01b03166113028483815181106112f5576112f5613632565b6020026020010151611a15565b6001600160a01b0316146113445760405162461bcd60e51b81526020600482015260096024820152682737ba1027bbb732b960b91b6044820152606401610a71565b611a0b83828151811061135957611359613632565b6020026020010151106113a75760405162461bcd60e51b81526020600482015260166024820152754f6e6c79205a6f6d6269652063616e204d757461746560501b6044820152606401610a71565b83600114156114ef57601b54604051636c01a0d160e11b8152600481018690523360248201526001600160a01b039091169063d80341a290604401600060405180830381600087803b1580156113fc57600080fd5b505af1158015611410573d6000803e3d6000fd5b5050505061143683828151811061142957611429613632565b60200260200101516129c4565b601180549060006114468361365e565b91905055506114643361270f60115461145f91906137b8565b61250b565b6002601a600061270f60115461147a91906137b8565b815260200190815260200160002060006101000a81548161ffff021916908361ffff160217905550600a601a60008584815181106114ba576114ba613632565b6020026020010151815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555061163b565b836003141561163b57601b54604051636c01a0d160e11b8152600481018690523360248201526001600160a01b039091169063d80341a290604401600060405180830381600087803b15801561154457600080fd5b505af1158015611558573d6000803e3d6000fd5b5050505061157183828151811061142957611429613632565b601280549060006115818361365e565b91905055506115a733614e2060125460105461159d91906137b8565b61145f91906137b8565b6002601a6000614e206012546010546115c091906137b8565b6115ca91906137b8565b815260200190815260200160002060006101000a81548161ffff021916908361ffff160217905550600a601a600085848151811061160a5761160a613632565b6020026020010151815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055505b806116458161365e565b91505061126c565b50505050565b6019818154811061166357600080fd5b6000918252602090912001546001600160a01b0316905081565b600061168883611a6c565b82106116ea5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a71565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b0316331461173d5760405162461bcd60e51b8152600401610a71906137d0565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611776573d6000803e3d6000fd5b50565b610c1a83838360405180602001604052806000815250611c7a565b600a546001600160a01b031633146117be5760405162461bcd60e51b8152600401610a71906137d0565b601b80546001600160a01b039384166001600160a01b031991821617909155601c8054929093169116179055565b600a546001600160a01b031633146118165760405162461bcd60e51b8152600401610a71906137d0565b600c80549115156101000261ff0019909216919091179055565b600061183b60085490565b821061189e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a71565b600882815481106118b1576118b1613632565b90600052602060002001549050919050565b6018818154811061166357600080fd5b600a546001600160a01b031633146118fd5760405162461bcd60e51b8152600401610a71906137d0565b805161106b906013906020840190612f43565b6060600061191d83611a6c565b905060008163ffffffff1667ffffffffffffffff81111561194057611940613016565b604051908082528060200260200182016040528015611969578160200160208202803683370190505b50905060005b8263ffffffff168163ffffffff1610156119d057611993858263ffffffff1661167d565b828263ffffffff16815181106119ab576119ab613632565b61ffff90921660209283029190910190910152806119c881613805565b91505061196f565b509392505050565b600a546001600160a01b03163314611a025760405162461bcd60e51b8152600401610a71906137d0565b600c805460ff1916911515919091179055565b6000610a108261264a565b600a546001600160a01b03163314611a4a5760405162461bcd60e51b8152600401610a71906137d0565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611ad75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a71565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611b1d5760405162461bcd60e51b8152600401610a71906137d0565b611b276000612a6b565b565b600a546001600160a01b03163314611b535760405162461bcd60e51b8152600401610a71906137d0565b601555565b606060018054610c2e90613679565b6001600160a01b038216331415611bc05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a71565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611c565760405162461bcd60e51b8152600401610a71906137d0565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b611c84338361272f565b611ca05760405162461bcd60e51b8152600401610a7190613767565b61164d84848484612abd565b600c5460ff16611cf65760405162461bcd60e51b8152602060048201526015602482015274139bdd08141d589b1a58dcd85b1948141c995a5bd9605a1b6044820152606401610a71565b611a0b8161ffff16600e54611d0b91906137b8565b10611d515760405162461bcd60e51b8152602060048201526016602482015275105b1b081e9bdb589a595cc8185c99481b5a5b9d195960521b6044820152606401610a71565b601554611d629061ffff8316613829565b341015611da25760405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408aa8960931b6044820152606401610a71565b60005b8161ffff1681101561106b57600e8054906000611dc18361365e565b9091555050600e80546000908152601a60205260409020805461ffff1916905554611ded90339061250b565b80611df78161365e565b915050611da5565b600c54610100900460ff16611e485760405162461bcd60e51b815260206004820152600f60248201526e10d85b9b9bdd0818d85b1b0816595d608a1b6044820152606401610a71565b811580611e555750816002145b611e9a5760405162461bcd60e51b81526020600482015260166024820152757479706549642053686f756c6420626520526164696f60501b6044820152606401610a71565b601b54604051627eeac760e11b81523360048201526024810184905282916001600160a01b03169062fdd58e90604401602060405180830381865afa158015611ee7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0b91906136b4565b1015611f595760405162461bcd60e51b815260206004820152601d60248201527f4d757374204f776e2074686520416d6f756e74206f66207479706549640000006044820152606401610a71565b60005b81811015610c1a578261203a57601b54604051636c01a0d160e11b8152600481018590523360248201526001600160a01b039091169063d80341a290604401600060405180830381600087803b158015611fb557600080fd5b505af1158015611fc9573d6000803e3d6000fd5b5050600f8054925090506000611fde8361365e565b9190505550611ff733611a0a600f5461145f91906137b8565b6001601a6000611a0a600f5461200d91906137b8565b815260200190815260200160002060006101000a81548161ffff021916908361ffff160217905550612120565b826002141561212057601b54604051636c01a0d160e11b8152600481018590523360248201526001600160a01b039091169063d80341a290604401600060405180830381600087803b15801561208f57600080fd5b505af11580156120a3573d6000803e3d6000fd5b5050601080549250905060006120b88361365e565b91905055506120d433614e2060125460105461159d91906137b8565b6001601a6000614e206012546010546120ed91906137b8565b6120f791906137b8565b815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055505b8061212a8161365e565b915050611f5c565b606061213d826124ee565b61217d5760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610a71565b6000612187612af0565b51116121a25760405180602001604052806000815250610a10565b6121aa612af0565b6121b383612aff565b6040516020016121c4929190613848565b60405160208183030381529060405292915050565b600a546001600160a01b031633146122035760405162461bcd60e51b8152600401610a71906137d0565b6017805460018181019092557fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c150180546001600160a01b038087166001600160a01b031992831617909255601880548085019091557fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e01805486841690831617905560198054938401815560009081527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96959093018054928516929091169190911790556016805461ffff16916122d883613877565b91906101000a81548161ffff021916908361ffff16021790555050505050565b60606008805480602002602001604051908101604052809291908181526020018280548015610ca757602002820191906000526020600020905b815481526020019060010190808311612332575050505050905090565b6060600061235b612af0565b5111612374575060408051602081019091526000815290565b61237c612af0565b60405160200161238c919061388f565b604051602081830303815290604052905090565b600a546001600160a01b031633146123ca5760405162461bcd60e51b8152600401610a71906137d0565b6001600160a01b03811661242f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a71565b61177681612a6b565b6017818154811061166357600080fd5b600a546001600160a01b031633146124725760405162461bcd60e51b8152600401610a71906137d0565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b6000610a10826124ee565b60006001600160e01b031982166380ac58cd60e01b14806124cf57506001600160e01b03198216635b5e139f60e01b145b80610a1057506301ffc9a760e01b6001600160e01b0319831614610a10565b6000908152600260205260409020546001600160a01b0316151590565b6001600160a01b0382166125615760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a71565b61256a816124ee565b156125b75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a71565b6125c360008383612bfd565b6001600160a01b03821660009081526003602052604081208054600192906125ec9084906137b8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b031680610a105760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a71565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126f68261264a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061273a826124ee565b61279b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a71565b60006127a68361264a565b9050806001600160a01b0316846001600160a01b031614806127e15750836001600160a01b03166127d684610cb1565b6001600160a01b0316145b8061281157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661282c8261264a565b6001600160a01b0316146128945760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a71565b6001600160a01b0382166128f65760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a71565b612901838383612bfd565b61290c6000826126c1565b6001600160a01b03831660009081526003602052604081208054600192906129359084906138be565b90915550506001600160a01b03821660009081526003602052604081208054600192906129639084906137b8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006129cf8261264a565b90506129dd81600084612bfd565b6129e86000836126c1565b6001600160a01b0381166000908152600360205260408120805460019290612a119084906138be565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612ac8848484612819565b612ad484848484612cb5565b61164d5760405162461bcd60e51b8152600401610a71906138d5565b606060138054610c2e90613679565b606081612b235750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b4d5780612b378161365e565b9150612b469050600a8361393d565b9150612b27565b60008167ffffffffffffffff811115612b6857612b68613016565b6040519080825280601f01601f191660200182016040528015612b92576020820181803683370190505b5090505b841561281157612ba76001836138be565b9150612bb4600a86613951565b612bbf9060306137b8565b60f81b818381518110612bd457612bd4613632565b60200101906001600160f81b031916908160001a905350612bf6600a8661393d565b9450612b96565b6001600160a01b038316612c5857612c5381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612c7b565b816001600160a01b0316836001600160a01b031614612c7b57612c7b8382612db3565b6001600160a01b038216612c9257610c1a81612e50565b826001600160a01b0316826001600160a01b031614610c1a57610c1a8282612eff565b60006001600160a01b0384163b15612da857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612cf9903390899088908890600401613965565b6020604051808303816000875af1925050508015612d34575060408051601f3d908101601f19168201909252612d31918101906139a2565b60015b612d8e573d808015612d62576040519150601f19603f3d011682016040523d82523d6000602084013e612d67565b606091505b508051612d865760405162461bcd60e51b8152600401610a71906138d5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612811565b506001949350505050565b60006001612dc084611a6c565b612dca91906138be565b600083815260076020526040902054909150808214612e1d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612e62906001906138be565b60008381526009602052604081205460088054939450909284908110612e8a57612e8a613632565b906000526020600020015490508060088381548110612eab57612eab613632565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612ee357612ee36139bf565b6001900381819060005260206000200160009055905550505050565b6000612f0a83611a6c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612f4f90613679565b90600052602060002090601f016020900481019282612f715760008555612fb7565b82601f10612f8a57805160ff1916838001178555612fb7565b82800160010185558215612fb7579182015b82811115612fb7578251825591602001919060010190612f9c565b50612fc3929150612fc7565b5090565b5b80821115612fc35760008155600101612fc8565b6001600160e01b03198116811461177657600080fd5b60006020828403121561300457600080fd5b813561300f81612fdc565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561305557613055613016565b604052919050565b600067ffffffffffffffff82111561307757613077613016565b5060051b60200190565b80356001600160a01b038116811461309857600080fd5b919050565b61ffff8116811461177657600080fd5b600082601f8301126130be57600080fd5b813560206130d36130ce8361305d565b61302c565b82815260059290921b840181019181810190868411156130f257600080fd5b8286015b848110156131165780356131098161309d565b83529183019183016130f6565b509695505050505050565b6000806040838503121561313457600080fd5b823567ffffffffffffffff8082111561314c57600080fd5b818501915085601f83011261316057600080fd5b813560206131706130ce8361305d565b82815260059290921b8401810191818101908984111561318f57600080fd5b948201945b838610156131b4576131a586613081565b82529482019490820190613194565b965050860135925050808211156131ca57600080fd5b506131d7858286016130ad565b9150509250929050565b60005b838110156131fc5781810151838201526020016131e4565b8381111561164d5750506000910152565b600081518084526132258160208601602086016131e1565b601f01601f19169290920160200192915050565b60208152600061300f602083018461320d565b60006020828403121561325e57600080fd5b5035919050565b6000806040838503121561327857600080fd5b61328183613081565b946020939093013593505050565b6000806000606084860312156132a457600080fd5b6132ad84613081565b92506132bb60208501613081565b9150604084013590509250925092565b6000806000606084860312156132e057600080fd5b8335925060208085013567ffffffffffffffff8111156132ff57600080fd5b8501601f8101871361331057600080fd5b803561331e6130ce8261305d565b81815260059190911b8201830190838101908983111561333d57600080fd5b928401925b8284101561335b57833582529284019290840190613342565b96999698505050506040949094013593505050565b6000806040838503121561338357600080fd5b61338c83613081565b915061339a60208401613081565b90509250929050565b8035801515811461309857600080fd5b6000602082840312156133c557600080fd5b61300f826133a3565b600067ffffffffffffffff8311156133e8576133e8613016565b6133fb601f8401601f191660200161302c565b905082815283838301111561340f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561343857600080fd5b813567ffffffffffffffff81111561344f57600080fd5b8201601f8101841361346057600080fd5b612811848235602084016133ce565b60006020828403121561348157600080fd5b61300f82613081565b6020808252825182820181905260009190848201906040850190845b818110156134c657835161ffff16835292840192918401916001016134a6565b50909695505050505050565b600080604083850312156134e557600080fd5b6134ee83613081565b915061339a602084016133a3565b6000806000806080858703121561351257600080fd5b61351b85613081565b935061352960208601613081565b925060408501359150606085013567ffffffffffffffff81111561354c57600080fd5b8501601f8101871361355d57600080fd5b61356c878235602084016133ce565b91505092959194509250565b60006020828403121561358a57600080fd5b813561300f8161309d565b600080604083850312156135a857600080fd5b50508035926020909101359150565b6000806000606084860312156135cc57600080fd5b6135d584613081565b92506135e360208501613081565b91506135f160408501613081565b90509250925092565b6020808252825182820181905260009190848201906040850190845b818110156134c657835183529284019291840191600101613616565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561367257613672613648565b5060010190565b600181811c9082168061368d57607f821691505b602082108114156136ae57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156136c657600080fd5b5051919050565b600060208083850312156136e057600080fd5b825167ffffffffffffffff8111156136f757600080fd5b8301601f8101851361370857600080fd5b80516137166130ce8261305d565b81815260059190911b8201830190838101908783111561373557600080fd5b928401925b8284101561375c57835161374d8161309d565b8252928401929084019061373a565b979650505050505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156137cb576137cb613648565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600063ffffffff8083168181141561381f5761381f613648565b6001019392505050565b600081600019048311821515161561384357613843613648565b500290565b6000835161385a8184602088016131e1565b83519083019061386e8183602088016131e1565b01949350505050565b600061ffff8083168181141561381f5761381f613648565b600082516138a18184602087016131e1565b6a636f6e747261637475726960a81b920191825250600b01919050565b6000828210156138d0576138d0613648565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261394c5761394c613927565b500490565b60008261396057613960613927565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906139989083018461320d565b9695505050505050565b6000602082840312156139b457600080fd5b815161300f81612fdc565b634e487b7160e01b600052603160045260246000fdfea26469706673582212201045e28c25e0fd0f80614a99d0c23c2abb168e4a37f5e4375b1a48099281ea4264736f6c634300080a0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.