Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14878406 | 963 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
C0
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // cell/c0 // // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@# ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@(@@@@@@ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,/@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@% ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@ @@@@@@@@@&&&,,,,,,,,,,,,,,,,,,@@@@@@%@@@@@@@@@ // @@@@@@@@#@@@@@@ @@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@ // @@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@ // @@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,&@@@@@@@@@@@ // @@@@@@@@@@& *@@@@@@@@@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,@@@@@@@@@@ // @@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@.................,@@@@@@@@@@ // @@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@..................@@@@@@@@@@@@ // @@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@..................@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@,.................@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@/ ..............................@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@ ..............................@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@ ..............................@@@@@@%@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@ ..............................@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@ ..............................@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@, ..............................@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@ ..............................@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// pragma solidity ^0.8.9; import "./ERC721.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol"; interface IRelation { function burned(uint256 tokenId) external view returns (address); function ownerOf(uint256 tokenId) external view returns (address); function balanceOf(address account) external view returns (uint256); } contract C0 is Initializable, ERC721Upgradeable, OwnableUpgradeable, EIP712Upgradeable { using ECDSAUpgradeable for bytes32; // // Events // event WithdrawerUpdated(Withdrawer withdrawer); event StateUpdated(uint indexed state); event BaseURIUpdated(string uri); event NSUpdated(string name, string symbol); bytes32 public constant RELATION_TYPE_HASH = keccak256("Relation(uint8 code,address addr,uint256 id)"); bytes32 public constant BODY_TYPE_HASH = keccak256("Body(uint256 id,uint8 encoding,address sender,address receiver,uint128 value,uint64 start,uint64 end,bytes32 sendersHash,bytes32 receiversHash,bytes32 puzzleHash,Relation[] relations)Relation(uint8 code,address addr,uint256 id)"); bytes32 private constant EMPTY_ARRAY_HASH = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // keccak256(abi.encodePacked(new bytes32[](0))) // // Struct declaration // struct Relation { uint8 code; address addr; // contract address uint256 id; // tokenId/value } struct Body { uint256 id; uint128 value; uint64 start; uint64 end; address sender; address receiver; uint8 encoding; // 0: raw, 1: dag-pb bytes32 sendersHash; bytes32 receiversHash; bytes32 puzzleHash; Relation[] relations; bytes signature; } struct Gift { uint256 id; address receiver; uint8 encoding; // 0: raw, 1: dag-pb Relation[] relations; } struct Input { address receiver; bytes puzzle; bytes32[] sendersProof; bytes32[] receiversProof; } struct Royalty { address receiver; uint96 amount; } struct Withdrawer { address account; bool permanent; } // // Member variables // mapping(uint256 => Royalty) public royalty; mapping(uint256 => uint8) public encoding; mapping(uint256 => address) public burned; Withdrawer public withdrawer; string public baseURI; uint public state; // 0: open, 1: paused, 2: frozen // // Core interface functions // function initialize(string calldata name, string calldata symbol) initializer external { __ERC721_init(name, symbol); __EIP712_init(name, "1"); __Ownable_init(); } // // Allow direct receiving of funds // receive() external payable {} // // gift tokens (c0.gift.send()) // function gift(Gift[] calldata gifts) external payable onlyOwner { require(state == 0, "0"); // cannot gift when the state is paused or frozen for(uint i=0;i<gifts.length;) { Gift calldata g = gifts[i]; _mint(g.receiver, g.id); if (g.relations.length > 0) { royalty[g.id] = Royalty(g.relations[0].addr, uint96(g.relations[0].id)); } unchecked { ++i; } } } // // mint tokens (c0.token.send()) // function token(Body[] calldata bodies, Input[] calldata inputs) external payable { require(state == 0, "0"); // cannot mint when the state is paused or frozen uint val; for(uint i=0; i<bodies.length;) { Body calldata body = bodies[i]; Input calldata input = inputs[i]; // // 1. Burned check: disallow reminting if already burned // require(burned[body.id] == address(0), "1"); // cannot mint if it was already burned // Who receives the token when minted? // if body.receiver is set (not 0) => body.receiver // if body.receiver is NOT set => input.receiver address receiver = (body.receiver != address(0) ? body.receiver : input.receiver); // // 2. Signature check // if (body.relations.length == 0) { bytes32 bodyhash = keccak256( abi.encode( BODY_TYPE_HASH, body.id, body.encoding, body.sender, body.receiver, body.value, body.start, body.end, body.sendersHash, body.receiversHash, body.puzzleHash, EMPTY_ARRAY_HASH ) ); require(_hashTypedDataV4(bodyhash).recover(body.signature) == owner(), "2"); // check script signature } else { bytes memory relationBytes; uint outgoing; // // Relation handling // A relation is the token's relationship with another address. // It can be either incoming (INPUTS) or outgoing (OUTPUTS) // // Inputs: decides whether the virtual machine will accept the conditions related to other addresses // Outputs: dictates how payments will be sent out (either the mint revenue or the royalty revenue) // for(uint j=0; j<body.relations.length;) { Relation memory relation = body.relations[j]; // // relation.code := // // INPUTS: input conditions // 0: burned by sender // 1: burned by receiver // 2: owned by sender // 3: owned by receiver // 4. balance by sender // 5. balance by receiver // // OUTPUTS: output transfer declarations // 10. mint payment handling // 11. royalty payment handling // // INPUT // 0. burned by sender if (relation.code == 0) { if (relation.addr == address(0)) { require(burned[relation.id] == _msgSender(), "8a"); // local burnership check for sender } else { require(IRelation(relation.addr).burned(relation.id) == _msgSender(), "8a"); // remote contract burnership check for sender } } // 1. burned by receiver else if (relation.code == 1) { if (relation.addr == address(0)) { require(burned[relation.id] == receiver, "8b"); // local burnership check for receiver } else { require(IRelation(relation.addr).burned(relation.id) == receiver, "8b"); // remote contract burnership check for receiver } } // 2. owned by sender else if (relation.code == 2) { if (relation.addr == address(0)) { require(ownerOf(relation.id) == _msgSender(), "9a"); // local ownership check for sender } else { require(IRelation(relation.addr).ownerOf(relation.id) == _msgSender(), "9a"); // remote contract ownership check for sender } } // 3. owned by receiver else if (relation.code == 3) { if (relation.addr == address(0)) { require(ownerOf(relation.id) == receiver, "9b"); // local ownership check for receiver } else { require(IRelation(relation.addr).ownerOf(relation.id) == receiver, "9b"); // remote contract ownership check for receiver } } // 4. balance by sender else if (relation.code == 4) { if (relation.addr == address(0)) { require(balanceOf(_msgSender()) >= relation.id, "10a"); // local balance check for sender } else { require(IRelation(relation.addr).balanceOf(_msgSender()) >= relation.id, "10a"); // remote contract balance check for sender } } // 5. balance by receiver else if (relation.code == 5) { if (relation.addr == address(0)) { require(balanceOf(receiver) >= relation.id, "10b"); // local balance check for receiver } else { require(IRelation(relation.addr).balanceOf(receiver) >= relation.id, "10b"); // remote contract balance check for receiver } } // OUTPUT // 10. Make a transfer (relation.id / 10^6 percent of msg.value) to the relation.receiver else if (relation.code == 10) { outgoing += relation.id; require(outgoing <= 1e6, "10c"); // the sum of all payment split shares must not exceed 1,000,000 (1e6) _transfer(relation.addr, msg.value * relation.id / 1e6); } // 11. Set EIP-2981 royalty info else if (relation.code == 11) { royalty[body.id] = Royalty(relation.addr, uint96(relation.id)); } relationBytes = abi.encodePacked(relationBytes, keccak256(abi.encode( RELATION_TYPE_HASH, relation.code, relation.addr, relation.id ))); unchecked { ++j; } } bytes32 bodyhash = keccak256( abi.encode( BODY_TYPE_HASH, body.id, body.encoding, body.sender, body.receiver, body.value, body.start, body.end, body.sendersHash, body.receiversHash, body.puzzleHash, keccak256(relationBytes) ) ); require(_hashTypedDataV4(bodyhash).recover(body.signature) == owner(), "2"); // check script signature } // // 3. Sender check: if body.sender is specified, the body.sender must match _msgSender() // if (body.sender != address(0)) require(body.sender == _msgSender(), "3"); // sender lock validation // // 4. Start timelock check // require(body.start <= block.timestamp, "4"); // start time lock validation // // 5. End timelock check // require(body.end >= block.timestamp, "5"); // end time lock validation // // 6. Puzzle input check => the hash of the provided preimage string (input.puzzle) must match the hash (body.puzzleHash) // if (body.puzzleHash != 0) { require(input.puzzle.length > 0 && keccak256(input.puzzle) == body.puzzleHash, "6"); // hash puzzle lock validation } // // 7. Merkle input check => The _msgSender() must be included in the merkle tree specified by the body.merkleHash (verified using merkleproof input.merkle) // if (body.sendersHash != 0) { require(verify(body.sendersHash, input.sendersProof, _msgSender()), "7a"); // senders merkle proof lock validation } if (body.receiversHash != 0) { require(verify(body.receiversHash, input.receiversProof, receiver), "7b"); // receivers merkle proof lock validation } // // // A. Token storage logic => The token is actually created // // // // A.1. Set CID encoding: 0 if raw, 1 if dag-pb // (In most cases it will be "raw" since metadata JSON files are small files and will be encoded as "raw", therefore saving gas) // if (body.encoding != 0) encoding[body.id] = body.encoding; // // A.2. Mint the token // _mint(receiver, body.id); unchecked { val+=body.value; ++i; } } // // 10. Revert everything if not enough money was sent // require(val == msg.value, "11"); // value lock validation } function burn(uint[] calldata _tokenIds) external { for(uint i=0; i<_tokenIds.length;) { uint _tokenId = _tokenIds[i]; require(_isApprovedOrOwner(_msgSender(), _tokenId), "15"); // only the owner or the approved can burn _burn(_tokenId); burned[_tokenId] = _msgSender(); unchecked { ++i; } } } // // Universal tokenId engine: tokenId to CID // function tokenURI(uint tokenId) public view override(ERC721Upgradeable) returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); bytes32 data = bytes32(tokenId); bytes memory alphabet = bytes("abcdefghijklmnopqrstuvwxyz234567"); string memory base = (bytes(baseURI).length > 0 ? baseURI : "ipfs://"); bytes memory cid = bytes(abi.encodePacked(base, (encoding[tokenId] == 0 ? "bafkrei" : "bafybei"))); uint bits = 2; uint buffer = 24121888; uint bitsPerChar = 5; uint mask = uint((1 << bitsPerChar) - 1); for(uint i=0; i<data.length; ++i) { bytes1 char = bytes1(bytes32(tokenId << (8*i))); buffer = (uint32(buffer) << 8) | uint(uint8(char)); bits += 8; while (bits > bitsPerChar) { bits -= bitsPerChar; cid = abi.encodePacked(cid, alphabet[mask & (buffer >> bits)]); } } if (bits > 0) { cid = abi.encodePacked(cid, alphabet[mask & (buffer << (bitsPerChar-bits))]); } return string(cid); } // // Merkle proof verifier // function verify(bytes32 root, bytes32[] calldata proof, address account) internal pure returns (bool) { bytes32 computedHash = keccak256(abi.encodePacked(account)); for (uint256 i = 0; i < proof.length;) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } unchecked { ++i; } } return computedHash == root; } // // Royalty functions // function royaltyInfo(uint tokenId, uint value) external view returns (address receiver, uint256 royaltyAmount) { Royalty memory r = royalty[tokenId]; return (r.receiver, value * r.amount/1e6); // total 1e6 (1,000,000) } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable) returns (bool) { return (interfaceId == 0x2a55205a || super.supportsInterface(interfaceId)); } // // Admin functions // function setWithdrawer(Withdrawer calldata _withdrawer) external onlyOwner { require(!withdrawer.permanent, "20"); // only can set withdrawer if it's not yet permanent withdrawer = _withdrawer; emit WithdrawerUpdated(_withdrawer); } function withdraw(uint value) external payable { // // Authorization: Either the owner or the withdrawer (in case it's set) can initiate withdraw() // require(_msgSender() == owner() || _msgSender() == withdrawer.account, "30"); // only the owner or the withdrawer (if set) can trigger a withdraw // // Custom withdrawl: value + receiver // // // Value: If specified (value > 0), withdraw that amount. Otherwise withdraw all. // uint amount = (value > 0 ? value : address(this).balance); // // Receiver: If "withdrawer" is set, the withdrawer. Otherwise, the contract owner // _transfer((withdrawer.account == address(0) ? owner() : withdrawer.account), amount); } function setState(uint _state) external onlyOwner { require(state != 2, "40"); // can set state only when the state is not frozen (2) state = _state; emit StateUpdated(_state); } function setBaseURI(string calldata b) external onlyOwner { require(state == 0, "50"); // can set baseURI only when the state is not frozen (2) baseURI = b; emit BaseURIUpdated(b); } function setNS(string calldata name_, string calldata symbol_) external onlyOwner { require(state == 0, "60"); // can set name and symbol only when the state is not frozen (2) _name = name_; _symbol = symbol_; emit NSUpdated(_name, _symbol); } error TransferFailed(); function _transfer(address to, uint256 amount) internal { bool callStatus; assembly { callStatus := call(gas(), to, amount, 0, 0, 0, 0) } if (!callStatus) revert TransferFailed(); } }
// SPDX-License-Identifier: MIT /*************************************************************************************************** * * This file is identical to * @openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol * with one exception: * * _name and _symbol are "internal" types inatead of "private" * => so the inheriting F1.sol contract can dynamically update it using setNS() * ***************************************************************************************************/ pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string internal _name; // Token symbol string internal _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. */ function __ERC721_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).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 = ERC721Upgradeable.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 = ERC721Upgradeable.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 = ERC721Upgradeable.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(ERC721Upgradeable.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(ERC721Upgradeable.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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.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 {} uint256[44] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _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); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ECDSAUpgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712Upgradeable is Initializable { /* solhint-disable var-name-mixedcase */ bytes32 private _HASHED_NAME; bytes32 private _HASHED_VERSION; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ function __EIP712_init(string memory name, string memory version) internal initializer { __EIP712_init_unchained(name, version); } function __EIP712_init_unchained(string memory name, string memory version) internal initializer { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash()); } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev The hash of the name parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712NameHash() internal virtual view returns (bytes32) { return _HASHED_NAME; } /** * @dev The hash of the version parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712VersionHash() internal virtual view returns (bytes32) { return _HASHED_VERSION; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSAUpgradeable { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @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 "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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 AddressUpgradeable { /** * @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 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; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { 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 "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// 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 IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"NSUpdated","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":"uint256","name":"state","type":"uint256"}],"name":"StateUpdated","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"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"permanent","type":"bool"}],"indexed":false,"internalType":"struct C0.Withdrawer","name":"withdrawer","type":"tuple"}],"name":"WithdrawerUpdated","type":"event"},{"inputs":[],"name":"BODY_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RELATION_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burned","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"encoding","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint8","name":"encoding","type":"uint8"},{"components":[{"internalType":"uint8","name":"code","type":"uint8"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"internalType":"struct C0.Relation[]","name":"relations","type":"tuple[]"}],"internalType":"struct C0.Gift[]","name":"gifts","type":"tuple[]"}],"name":"gift","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royalty","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"amount","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"b","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"name":"setNS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_state","type":"uint256"}],"name":"setState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"permanent","type":"bool"}],"internalType":"struct C0.Withdrawer","name":"_withdrawer","type":"tuple"}],"name":"setWithdrawer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"state","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":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint128","name":"value","type":"uint128"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint8","name":"encoding","type":"uint8"},{"internalType":"bytes32","name":"sendersHash","type":"bytes32"},{"internalType":"bytes32","name":"receiversHash","type":"bytes32"},{"internalType":"bytes32","name":"puzzleHash","type":"bytes32"},{"components":[{"internalType":"uint8","name":"code","type":"uint8"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"internalType":"struct C0.Relation[]","name":"relations","type":"tuple[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct C0.Body[]","name":"bodies","type":"tuple[]"},{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes","name":"puzzle","type":"bytes"},{"internalType":"bytes32[]","name":"sendersProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"receiversProof","type":"bytes32[]"}],"internalType":"struct C0.Input[]","name":"inputs","type":"tuple[]"}],"name":"token","outputs":[],"stateMutability":"payable","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawer","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"permanent","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50614c11806100206000396000f3fe60806040526004361061021d5760003560e01c80638da5cb5b1161011d578063c19d93fb116100b0578063e1b220461161007f578063e985e9c511610064578063e985e9c514610706578063f2fde38b1461074f578063fc41e4f31461076f57600080fd5b8063e1b2204614610659578063e814cb711461068d57600080fd5b8063c19d93fb146105a2578063c87b56dd146105b9578063ccc0b1ec146105d9578063cdc184241461060d57600080fd5b8063a22cb465116100ec578063a22cb46514610522578063a9e966b714610542578063b80f55c914610562578063b88d4fde1461058257600080fd5b80638da5cb5b1461049a57806393d19f6d146104b857806395d89b41146104fa57806399676c4e1461050f57600080fd5b806335c93885116101b057806355f804b31161017f5780636c0360eb116101645780636c0360eb1461044257806370a0823114610457578063715018a61461048557600080fd5b806355f804b3146104025780636352211e1461042257600080fd5b806335c938851461038257806342842e0e146103a25780634cd88b76146103c25780634fc41a42146103e257600080fd5b806323250cae116101ec57806323250cae146102da57806323b872dd146103105780632a55205a146103305780632e1a7d4d1461036f57600080fd5b806301ffc9a71461022957806306fdde031461025e578063081812fc14610280578063095ea7b3146102b857600080fd5b3661022457005b600080fd5b34801561023557600080fd5b5061024961024436600461411a565b610782565b60405190151581526020015b60405180910390f35b34801561026a57600080fd5b506102736107c6565b6040516102559190614196565b34801561028c57600080fd5b506102a061029b3660046141a9565b610858565b6040516001600160a01b039091168152602001610255565b3480156102c457600080fd5b506102d86102d33660046141d7565b6108f2565b005b3480156102e657600080fd5b506102a06102f53660046141a9565b60ff602052600090815260409020546001600160a01b031681565b34801561031c57600080fd5b506102d861032b366004614203565b610a24565b34801561033c57600080fd5b5061035061034b366004614244565b610aac565b604080516001600160a01b039093168352602083019190915201610255565b6102d861037d3660046141a9565b610b17565b34801561038e57600080fd5b506102d861039d3660046142a8565b610be3565b3480156103ae57600080fd5b506102d86103bd366004614203565b610ce9565b3480156103ce57600080fd5b506102d86103dd3660046142a8565b610d04565b3480156103ee57600080fd5b506102d86103fd366004614314565b610e8e565b34801561040e57600080fd5b506102d861041d36600461432c565b610f8e565b34801561042e57600080fd5b506102a061043d3660046141a9565b611084565b34801561044e57600080fd5b5061027361110f565b34801561046357600080fd5b5061047761047236600461436e565b61119e565b604051908152602001610255565b34801561049157600080fd5b506102d8611238565b3480156104a657600080fd5b506097546001600160a01b03166102a0565b3480156104c457600080fd5b506104e86104d33660046141a9565b60fe6020526000908152604090205460ff1681565b60405160ff9091168152602001610255565b34801561050657600080fd5b5061027361129e565b6102d861051d3660046143d0565b6112ad565b34801561052e57600080fd5b506102d861053d366004614414565b611467565b34801561054e57600080fd5b506102d861055d3660046141a9565b61152c565b34801561056e57600080fd5b506102d861057d3660046143d0565b61160e565b34801561058e57600080fd5b506102d861059d366004614494565b6116bb565b3480156105ae57600080fd5b506104776101025481565b3480156105c557600080fd5b506102736105d43660046141a9565b611749565b3480156105e557600080fd5b506104777fd5c13995ee2c903b8566a2b01173a2e42e98f3821f01841396633b28a9b0cb2281565b34801561061957600080fd5b506101005461063a906001600160a01b03811690600160a01b900460ff1682565b604080516001600160a01b039093168352901515602083015201610255565b34801561066557600080fd5b506104777fa8429bfd1dd4da6c67a09e5c5a89115acae264879c22f767979685932461d1c281565b34801561069957600080fd5b506106da6106a83660046141a9565b60fd602052600090815260409020546001600160a01b03811690600160a01b90046bffffffffffffffffffffffff1682565b604080516001600160a01b0390931683526bffffffffffffffffffffffff909116602083015201610255565b34801561071257600080fd5b50610249610721366004614558565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561075b57600080fd5b506102d861076a36600461436e565b611acc565b6102d861077d366004614586565b611bae565b60007f2a55205a000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806107c057506107c082612d48565b92915050565b6060606580546107d5906145e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906145e6565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108d65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b60006108fd82611084565b9050806001600160a01b0316836001600160a01b031614156109875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016108cd565b336001600160a01b03821614806109a357506109a38133610721565b610a155760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108cd565b610a1f8383612de3565b505050565b610a2f335b82612e51565b610aa15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108cd565b610a1f838383612f48565b600082815260fd602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282018390528392620f424090610b009087614631565b610b0a9190614650565b92509250505b9250929050565b6097546001600160a01b0316331480610b445750610100546001600160a01b0316336001600160a01b0316145b610b905760405162461bcd60e51b815260206004820152600260248201527f333000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b6000808211610b9f5747610ba1565b815b61010054909150610bdf906001600160a01b031615610bcc57610100546001600160a01b0316610bd9565b6097546001600160a01b03165b82613115565b5050565b6097546001600160a01b03163314610c3d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b6101025415610c8e5760405162461bcd60e51b815260206004820152600260248201527f363000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b610c9a60658585613ff7565b50610ca760668383613ff7565b507f934066d47a89bfcab72db908a0701b9145131ee303cefb44553121c73419e8dd60656066604051610cdb929190614712565b60405180910390a150505050565b610a1f838383604051806020016040528060008152506116bb565b600054610100900460ff1680610d1d575060005460ff16155b610d805760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff16158015610da2576000805461ffff19166101011790555b610e1585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8901819004810282018101909252878152925087915086908190840183828082843760009201919091525061315a92505050565b610e6d85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040805180820190915260018152603160f81b602082015291506132289050565b610e756132d0565b8015610e87576000805461ff00191690555b5050505050565b6097546001600160a01b03163314610ee85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b61010054600160a01b900460ff1615610f435760405162461bcd60e51b815260206004820152600260248201527f323000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b80610100610f518282614740565b9050507f5d121f0c2b2c4877a2b0a1457c73ce1c28628e5705271cb91db3e49792715cf581604051610f8391906147c1565b60405180910390a150565b6097546001600160a01b03163314610fe85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b61010254156110395760405162461bcd60e51b815260206004820152600260248201527f353000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b6110466101018383613ff7565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad82826040516110789291906147f8565b60405180910390a15050565b6000818152606760205260408120546001600160a01b0316806107c05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016108cd565b610101805461111d906145e6565b80601f0160208091040260200160405190810160405280929190818152602001828054611149906145e6565b80156111965780601f1061116b57610100808354040283529160200191611196565b820191906000526020600020905b81548152906001019060200180831161117957829003601f168201915b505050505081565b60006001600160a01b03821661121c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016108cd565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146112925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b61129c6000613392565b565b6060606680546107d5906145e6565b6097546001600160a01b031633146113075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b610102541561133c5760405162461bcd60e51b81526020600482015260016024820152600360fc1b60448201526064016108cd565b60005b81811015610a1f573683838381811061135a5761135a614827565b905060200281019061136c919061483d565b9050611388611381604083016020840161436e565b82356133e4565b6000611397606083018361485d565b9050111561145e5760408051808201909152806113b7606084018461485d565b60008181106113c8576113c8614827565b90506060020160200160208101906113e0919061436e565b6001600160a01b031681526020016113fb606084018461485d565b600081811061140c5761140c614827565b6bffffffffffffffffffffffff60406060909202939093018101358316909352508335600090815260fd60209081529290208351939092015116600160a01b026001600160a01b039092169190911790555b5060010161133f565b6001600160a01b0382163314156114c05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108cd565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6097546001600160a01b031633146115865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b61010254600214156115da5760405162461bcd60e51b815260206004820152600260248201527f343000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b61010281905560405181907f118f8ba10d647100925b2343f3030d110623f17b284ced4316cbe4b8f138883f90600090a250565b60005b81811015610a1f57600083838381811061162d5761162d614827565b905060200201359050611640610a293390565b61168c5760405162461bcd60e51b815260206004820152600260248201527f313500000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b61169581613526565b600090815260ff6020526040902080546001600160a01b03191633179055600101611611565b6116c53383612e51565b6117375760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108cd565b611743848484846135c1565b50505050565b6000818152606760205260409020546060906001600160a01b03166117d65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016108cd565b6040805180820190915260208082527f6162636465666768696a6b6c6d6e6f707172737475767778797a323334353637908201526101018054849291600091829190611821906145e6565b905011611863576040518060400160405280600781526020017f697066733a2f2f000000000000000000000000000000000000000000000000008152506118f0565b6101018054611871906145e6565b80601f016020809104026020016040519081016040528092919081815260200182805461189d906145e6565b80156118ea5780601f106118bf576101008083540402835291602001916118ea565b820191906000526020600020905b8154815290600101906020018083116118cd57829003601f168201915b50505050505b600086815260fe602052604081205491925090829060ff1615611948576040518060400160405280600781526020017f626166796265690000000000000000000000000000000000000000000000000081525061197f565b6040518060400160405280600781526020017f6261666b726569000000000000000000000000000000000000000000000000008152505b6040516020016119909291906148a6565b60408051601f19818403018152919052905060026301701220600560006119b9600160206148d5565b905060005b6020811015611a685760006119d4826008614631565b8c901b60f881901c600896871b63ffffff001617959091506119f690876148ec565b95505b83861115611a5757611a0b84876148d5565b955086898787901c851681518110611a2557611a25614827565b602001015160f81c60f81b604051602001611a41929190614904565b60405160208183030381529060405296506119f9565b50611a618161494b565b90506119be565b508315611abe578487611a7b86856148d5565b85901b831681518110611a9057611a90614827565b602001015160f81c60f81b604051602001611aac929190614904565b60405160208183030381529060405294505b509298975050505050505050565b6097546001600160a01b03163314611b265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b6001600160a01b038116611ba25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108cd565b611bab81613392565b50565b6101025415611be35760405162461bcd60e51b81526020600482015260016024820152600360fc1b60448201526064016108cd565b6000805b84811015612cf85736868683818110611c0257611c02614827565b9050602002810190611c149190614966565b905036858584818110611c2957611c29614827565b9050602002810190611c3b919061483d565b8235600090815260ff60205260409020549091506001600160a01b031615611c895760405162461bcd60e51b81526020600482015260016024820152603160f81b60448201526064016108cd565b600080611c9c60c0850160a0860161436e565b6001600160a01b03161415611cbd57611cb8602083018361436e565b611ccd565b611ccd60c0840160a0850161436e565b9050611cdd61014084018461485d565b15159050611eeb5760007fd5c13995ee2c903b8566a2b01173a2e42e98f3821f01841396633b28a9b0cb228435611d1a60e0870160c08801614993565b611d2a60a088016080890161436e565b611d3a60c0890160a08a0161436e565b611d4a60408a0160208b016149ae565b611d5a60608b0160408c016149e0565b611d6a60808c0160608d016149e0565b60408051602081019990995288019690965260ff90941660608701526001600160a01b039283166080870152911660a08501526fffffffffffffffffffffffffffffffff1660c084015267ffffffffffffffff90811660e0848101919091529116610100838101919091529086013561012083810191909152908601356101408301528501356101608201527fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4706101808201526101a001604051602081830303815290604052805190602001209050611e4b6097546001600160a01b031690565b6001600160a01b0316611eab611e65610160870187614a0a565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ea5925086915061364a9050565b906136b3565b6001600160a01b031614611ee55760405162461bcd60e51b81526020600482015260016024820152601960f91b60448201526064016108cd565b50612996565b60606000805b611eff61014087018761485d565b90508110156127dd576000611f1861014088018861485d565b83818110611f2857611f28614827565b905060600201803603810190611f3e9190614a51565b805190915060ff166120875760208101516001600160a01b0316611faf57604081810151600090815260ff60205220546001600160a01b03163314611faa5760405162461bcd60e51b8152602060048201526002602482015261386160f01b60448201526064016108cd565b612747565b602081015160408083015190517f23250cae000000000000000000000000000000000000000000000000000000008152600481019190915233916001600160a01b0316906323250cae9060240160206040518083038186803b15801561201457600080fd5b505afa158015612028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204c9190614aba565b6001600160a01b031614611faa5760405162461bcd60e51b8152602060048201526002602482015261386160f01b60448201526064016108cd565b806000015160ff16600114156121c55760208101516001600160a01b03166120fa57604081810151600090815260ff60205220546001600160a01b03868116911614611faa5760405162461bcd60e51b81526020600482015260026024820152611c3160f11b60448201526064016108cd565b846001600160a01b031681602001516001600160a01b03166323250cae83604001516040518263ffffffff1660e01b815260040161213a91815260200190565b60206040518083038186803b15801561215257600080fd5b505afa158015612166573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218a9190614aba565b6001600160a01b031614611faa5760405162461bcd60e51b81526020600482015260026024820152611c3160f11b60448201526064016108cd565b806000015160ff16600214156122f15760208101516001600160a01b031661225457336001600160a01b03166121fe8260400151611084565b6001600160a01b031614611faa5760405162461bcd60e51b815260206004820152600260248201527f396100000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b602081015160408083015190517f6352211e000000000000000000000000000000000000000000000000000000008152600481019190915233916001600160a01b031690636352211e9060240160206040518083038186803b1580156122b957600080fd5b505afa1580156122cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121fe9190614aba565b806000015160ff16600314156124105760208101516001600160a01b031661238057846001600160a01b031661232a8260400151611084565b6001600160a01b031614611faa5760405162461bcd60e51b815260206004820152600260248201527f396200000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b846001600160a01b031681602001516001600160a01b0316636352211e83604001516040518263ffffffff1660e01b81526004016123c091815260200190565b60206040518083038186803b1580156123d857600080fd5b505afa1580156123ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232a9190614aba565b806000015160ff166004141561251e5760208101516001600160a01b031661248e5760408101516124403361119e565b1015611faa5760405162461bcd60e51b815260206004820152600360248201527f313061000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b604081015160208201516001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156124e657600080fd5b505afa1580156124fa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124409190614ad7565b806000015160ff166005141561263c5760208101516001600160a01b031661259c57806040015161254e8661119e565b1015611faa5760405162461bcd60e51b815260206004820152600360248201527f313062000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b604080820151602083015191517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152919291909116906370a082319060240160206040518083038186803b15801561260457600080fd5b505afa158015612618573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254e9190614ad7565b806000015160ff16600a14156126db57604081015161265b90846148ec565b9250620f42408311156126b05760405162461bcd60e51b815260206004820152600360248201527f313063000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b611faa8160200151620f42408360400151346126cc9190614631565b6126d69190614650565b613115565b806000015160ff16600b1415612747576040805180820182526020808401516001600160a01b039081168352848401516bffffffffffffffffffffffff9081168385019081528c35600090815260fd9094529490922092519351909116600160a01b0292169190911790555b805160208083015160408085015181517fa8429bfd1dd4da6c67a09e5c5a89115acae264879c22f767979685932461d1c28186015260ff909516858301526001600160a01b0390921660608501526080808501929092528051808503909201825260a08401905280519101206127c29186919060c001614af0565b60408051601f19818403018152919052935050600101611ef1565b5060007fd5c13995ee2c903b8566a2b01173a2e42e98f3821f01841396633b28a9b0cb22863561281360e0890160c08a01614993565b61282360a08a0160808b0161436e565b61283360c08b0160a08c0161436e565b61284360408c0160208d016149ae565b61285360608d0160408e016149e0565b61286360808e0160608f016149e0565b8d60e001358e61010001358f61012001358d805190602001206040516020016129149c9b9a999897969594939291909b8c5260208c019a909a5260ff9890981660408b01526001600160a01b0396871660608b01529490951660808901526fffffffffffffffffffffffffffffffff9290921660a088015267ffffffffffffffff90811660c08801521660e08601526101008501919091526101208401526101408301526101608201526101800190565b60405160208183030381529060405280519060200120905061293e6097546001600160a01b031690565b6001600160a01b0316612958611e65610160890189614a0a565b6001600160a01b0316146129925760405162461bcd60e51b81526020600482015260016024820152601960f91b60448201526064016108cd565b5050505b60006129a860a085016080860161436e565b6001600160a01b031614612a1d57336129c760a085016080860161436e565b6001600160a01b031614612a1d5760405162461bcd60e51b815260206004820152600160248201527f330000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b42612a2e60608501604086016149e0565b67ffffffffffffffff161115612a865760405162461bcd60e51b815260206004820152600160248201527f340000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b42612a9760808501606086016149e0565b67ffffffffffffffff161015612aef5760405162461bcd60e51b815260206004820152600160248201527f350000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b61012083013515612b8a576000612b096020840184614a0a565b9050118015612b3e5750610120830135612b266020840184614a0a565b604051612b34929190614b12565b6040518091039020145b612b8a5760405162461bcd60e51b815260206004820152600160248201527f360000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b60e083013515612bfb57612baf60e0840135612ba96040850185614b22565b336136d7565b612bfb5760405162461bcd60e51b815260206004820152600260248201527f376100000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b61010083013515612c6e57612c22610100840135612c1c6060850185614b22565b846136d7565b612c6e5760405162461bcd60e51b815260206004820152600260248201527f376200000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b612c7e60e0840160c08501614993565b60ff1615612cb957612c9660e0840160c08501614993565b8335600090815260fe60205260409020805460ff191660ff929092169190911790555b612cc48184356133e4565b612cd460408401602085016149ae565b6fffffffffffffffffffffffffffffffff1685019450836001019350505050611be7565b50348114610e875760405162461bcd60e51b815260206004820152600260248201527f313100000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612dab57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107c057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107c0565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e1882611084565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b0316612eca5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108cd565b6000612ed583611084565b9050806001600160a01b0316846001600160a01b03161480612f105750836001600160a01b0316612f0584610858565b6001600160a01b0316145b80612f4057506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612f5b82611084565b6001600160a01b031614612fd75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016108cd565b6001600160a01b0382166130525760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108cd565b61305d600082612de3565b6001600160a01b03831660009081526068602052604081208054600192906130869084906148d5565b90915550506001600160a01b03821660009081526068602052604081208054600192906130b49084906148ec565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080600080600085875af1905080610a1f576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600054610100900460ff1680613173575060005460ff16155b6131d65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff161580156131f8576000805461ffff19166101011790555b6132006137b5565b6132086137b5565b6132128383613866565b8015610a1f576000805461ff0019169055505050565b600054610100900460ff1680613241575060005460ff16155b6132a45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff161580156132c6576000805461ffff19166101011790555b6132128383613942565b600054610100900460ff16806132e9575060005460ff16155b61334c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff1615801561336e576000805461ffff19166101011790555b6133766137b5565b61337e613a13565b8015611bab576000805461ff001916905550565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661343a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108cd565b6000818152606760205260409020546001600160a01b03161561349f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108cd565b6001600160a01b03821660009081526068602052604081208054600192906134c89084906148ec565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061353182611084565b905061353e600083612de3565b6001600160a01b03811660009081526068602052604081208054600192906135679084906148d5565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6135cc848484612f48565b6135d884848484613aba565b6117435760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108cd565b60006107c0613657613c1a565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006136c28585613c9a565b915091506136cf81613d07565b509392505050565b6040516bffffffffffffffffffffffff19606083901b166020820152600090819060340160405160208183030381529060405280519060200120905060005b848110156137a957600086868381811061373257613732614827565b9050602002013590508083116137735760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506137a0565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50600101613716565b50909414949350505050565b600054610100900460ff16806137ce575060005460ff16155b6138315760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff1615801561337e576000805461ffff19166101011790558015611bab576000805461ff001916905550565b600054610100900460ff168061387f575060005460ff16155b6138e25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff16158015613904576000805461ffff19166101011790555b825161391790606590602086019061407b565b50815161392b90606690602085019061407b565b508015610a1f576000805461ff0019169055505050565b600054610100900460ff168061395b575060005460ff16155b6139be5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff161580156139e0576000805461ffff19166101011790555b825160208085019190912083519184019190912060c99190915560ca558015610a1f576000805461ff0019169055505050565b600054610100900460ff1680613a2c575060005460ff16155b613a8f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff16158015613ab1576000805461ffff19166101011790555b61337e33613392565b60006001600160a01b0384163b15613c1257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613afe903390899088908890600401614b6c565b602060405180830381600087803b158015613b1857600080fd5b505af1925050508015613b48575060408051601f3d908101601f19168201909252613b4591810190614ba8565b60015b613bf8573d808015613b76576040519150601f19603f3d011682016040523d82523d6000602084013e613b7b565b606091505b508051613bf05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108cd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612f40565b506001612f40565b6000613c957f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f613c4960c95490565b60ca546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b905090565b600080825160411415613cd15760208301516040840151606085015160001a613cc587828585613ec2565b94509450505050610b10565b825160401415613cfb5760208301516040840151613cf0868383613faf565b935093505050610b10565b50600090506002610b10565b6000816004811115613d1b57613d1b614bc5565b1415613d245750565b6001816004811115613d3857613d38614bc5565b1415613d865760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108cd565b6002816004811115613d9a57613d9a614bc5565b1415613de85760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108cd565b6003816004811115613dfc57613dfc614bc5565b1415613e555760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108cd565b6004816004811115613e6957613e69614bc5565b1415611bab5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108cd565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613ef95750600090506003613fa6565b8460ff16601b14158015613f1157508460ff16601c14155b15613f225750600090506004613fa6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613f76573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613f9f57600060019250925050613fa6565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613fe987828885613ec2565b935093505050935093915050565b828054614003906145e6565b90600052602060002090601f016020900481019282614025576000855561406b565b82601f1061403e5782800160ff1982351617855561406b565b8280016001018555821561406b579182015b8281111561406b578235825591602001919060010190614050565b506140779291506140ef565b5090565b828054614087906145e6565b90600052602060002090601f0160209004810192826140a9576000855561406b565b82601f106140c257805160ff191683800117855561406b565b8280016001018555821561406b579182015b8281111561406b5782518255916020019190600101906140d4565b5b8082111561407757600081556001016140f0565b6001600160e01b031981168114611bab57600080fd5b60006020828403121561412c57600080fd5b813561413781614104565b9392505050565b60005b83811015614159578181015183820152602001614141565b838111156117435750506000910152565b6000815180845261418281602086016020860161413e565b601f01601f19169290920160200192915050565b602081526000614137602083018461416a565b6000602082840312156141bb57600080fd5b5035919050565b6001600160a01b0381168114611bab57600080fd5b600080604083850312156141ea57600080fd5b82356141f5816141c2565b946020939093013593505050565b60008060006060848603121561421857600080fd5b8335614223816141c2565b92506020840135614233816141c2565b929592945050506040919091013590565b6000806040838503121561425757600080fd5b50508035926020909101359150565b60008083601f84011261427857600080fd5b50813567ffffffffffffffff81111561429057600080fd5b602083019150836020828501011115610b1057600080fd5b600080600080604085870312156142be57600080fd5b843567ffffffffffffffff808211156142d657600080fd5b6142e288838901614266565b909650945060208701359150808211156142fb57600080fd5b5061430887828801614266565b95989497509550505050565b60006040828403121561432657600080fd5b50919050565b6000806020838503121561433f57600080fd5b823567ffffffffffffffff81111561435657600080fd5b61436285828601614266565b90969095509350505050565b60006020828403121561438057600080fd5b8135614137816141c2565b60008083601f84011261439d57600080fd5b50813567ffffffffffffffff8111156143b557600080fd5b6020830191508360208260051b8501011115610b1057600080fd5b600080602083850312156143e357600080fd5b823567ffffffffffffffff8111156143fa57600080fd5b6143628582860161438b565b8015158114611bab57600080fd5b6000806040838503121561442757600080fd5b8235614432816141c2565b9150602083013561444281614406565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561448c5761448c61444d565b604052919050565b600080600080608085870312156144aa57600080fd5b84356144b5816141c2565b93506020858101356144c6816141c2565b935060408601359250606086013567ffffffffffffffff808211156144ea57600080fd5b818801915088601f8301126144fe57600080fd5b8135818111156145105761451061444d565b614522601f8201601f19168501614463565b9150808252898482850101111561453857600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561456b57600080fd5b8235614576816141c2565b91506020830135614442816141c2565b6000806000806040858703121561459c57600080fd5b843567ffffffffffffffff808211156145b457600080fd5b6145c08883890161438b565b909650945060208701359150808211156145d957600080fd5b506143088782880161438b565b600181811c908216806145fa57607f821691505b6020821081141561432657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561464b5761464b61461b565b500290565b60008261466d57634e487b7160e01b600052601260045260246000fd5b500490565b8054600090600181811c908083168061468c57607f831692505b60208084108214156146ae57634e487b7160e01b600052602260045260246000fd5b838852602088018280156146c957600181146146da57614705565b60ff19871682528282019750614705565b60008981526020902060005b878110156146ff578154848201529086019084016146e6565b83019850505b5050505050505092915050565b6040815260006147256040830185614672565b82810360208401526147378185614672565b95945050505050565b813561474b816141c2565b6001600160a01b03811690508154816001600160a01b03198216178355602084013561477681614406565b7fffffffffffffffffffffff0000000000000000000000000000000000000000009190911690911790151560a01b74ff00000000000000000000000000000000000000001617905550565b6040810182356147d0816141c2565b6001600160a01b0316825260208301356147e981614406565b80151560208401525092915050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052603260045260246000fd5b60008235607e1983360301811261485357600080fd5b9190910192915050565b6000808335601e1984360301811261487457600080fd5b83018035915067ffffffffffffffff82111561488f57600080fd5b6020019150606081023603821315610b1057600080fd5b600083516148b881846020880161413e565b8351908301906148cc81836020880161413e565b01949350505050565b6000828210156148e7576148e761461b565b500390565b600082198211156148ff576148ff61461b565b500190565b6000835161491681846020880161413e565b7fff00000000000000000000000000000000000000000000000000000000000000939093169190920190815260010192915050565b600060001982141561495f5761495f61461b565b5060010190565b6000823561017e1983360301811261485357600080fd5b803560ff8116811461498e57600080fd5b919050565b6000602082840312156149a557600080fd5b6141378261497d565b6000602082840312156149c057600080fd5b81356fffffffffffffffffffffffffffffffff8116811461413757600080fd5b6000602082840312156149f257600080fd5b813567ffffffffffffffff8116811461413757600080fd5b6000808335601e19843603018112614a2157600080fd5b83018035915067ffffffffffffffff821115614a3c57600080fd5b602001915036819003821315610b1057600080fd5b600060608284031215614a6357600080fd5b6040516060810181811067ffffffffffffffff82111715614a8657614a8661444d565b604052614a928361497d565b81526020830135614aa2816141c2565b60208201526040928301359281019290925250919050565b600060208284031215614acc57600080fd5b8151614137816141c2565b600060208284031215614ae957600080fd5b5051919050565b60008351614b0281846020880161413e565b9190910191825250602001919050565b8183823760009101908152919050565b6000808335601e19843603018112614b3957600080fd5b83018035915067ffffffffffffffff821115614b5457600080fd5b6020019150600581901b3603821315610b1057600080fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152614b9e608083018461416a565b9695505050505050565b600060208284031215614bba57600080fd5b815161413781614104565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d0e00c9cb1ccefd08d278a10349ddfd758adee65c9ec5e116129a67a11c676be64736f6c63430008090033
Deployed Bytecode
0x60806040526004361061021d5760003560e01c80638da5cb5b1161011d578063c19d93fb116100b0578063e1b220461161007f578063e985e9c511610064578063e985e9c514610706578063f2fde38b1461074f578063fc41e4f31461076f57600080fd5b8063e1b2204614610659578063e814cb711461068d57600080fd5b8063c19d93fb146105a2578063c87b56dd146105b9578063ccc0b1ec146105d9578063cdc184241461060d57600080fd5b8063a22cb465116100ec578063a22cb46514610522578063a9e966b714610542578063b80f55c914610562578063b88d4fde1461058257600080fd5b80638da5cb5b1461049a57806393d19f6d146104b857806395d89b41146104fa57806399676c4e1461050f57600080fd5b806335c93885116101b057806355f804b31161017f5780636c0360eb116101645780636c0360eb1461044257806370a0823114610457578063715018a61461048557600080fd5b806355f804b3146104025780636352211e1461042257600080fd5b806335c938851461038257806342842e0e146103a25780634cd88b76146103c25780634fc41a42146103e257600080fd5b806323250cae116101ec57806323250cae146102da57806323b872dd146103105780632a55205a146103305780632e1a7d4d1461036f57600080fd5b806301ffc9a71461022957806306fdde031461025e578063081812fc14610280578063095ea7b3146102b857600080fd5b3661022457005b600080fd5b34801561023557600080fd5b5061024961024436600461411a565b610782565b60405190151581526020015b60405180910390f35b34801561026a57600080fd5b506102736107c6565b6040516102559190614196565b34801561028c57600080fd5b506102a061029b3660046141a9565b610858565b6040516001600160a01b039091168152602001610255565b3480156102c457600080fd5b506102d86102d33660046141d7565b6108f2565b005b3480156102e657600080fd5b506102a06102f53660046141a9565b60ff602052600090815260409020546001600160a01b031681565b34801561031c57600080fd5b506102d861032b366004614203565b610a24565b34801561033c57600080fd5b5061035061034b366004614244565b610aac565b604080516001600160a01b039093168352602083019190915201610255565b6102d861037d3660046141a9565b610b17565b34801561038e57600080fd5b506102d861039d3660046142a8565b610be3565b3480156103ae57600080fd5b506102d86103bd366004614203565b610ce9565b3480156103ce57600080fd5b506102d86103dd3660046142a8565b610d04565b3480156103ee57600080fd5b506102d86103fd366004614314565b610e8e565b34801561040e57600080fd5b506102d861041d36600461432c565b610f8e565b34801561042e57600080fd5b506102a061043d3660046141a9565b611084565b34801561044e57600080fd5b5061027361110f565b34801561046357600080fd5b5061047761047236600461436e565b61119e565b604051908152602001610255565b34801561049157600080fd5b506102d8611238565b3480156104a657600080fd5b506097546001600160a01b03166102a0565b3480156104c457600080fd5b506104e86104d33660046141a9565b60fe6020526000908152604090205460ff1681565b60405160ff9091168152602001610255565b34801561050657600080fd5b5061027361129e565b6102d861051d3660046143d0565b6112ad565b34801561052e57600080fd5b506102d861053d366004614414565b611467565b34801561054e57600080fd5b506102d861055d3660046141a9565b61152c565b34801561056e57600080fd5b506102d861057d3660046143d0565b61160e565b34801561058e57600080fd5b506102d861059d366004614494565b6116bb565b3480156105ae57600080fd5b506104776101025481565b3480156105c557600080fd5b506102736105d43660046141a9565b611749565b3480156105e557600080fd5b506104777fd5c13995ee2c903b8566a2b01173a2e42e98f3821f01841396633b28a9b0cb2281565b34801561061957600080fd5b506101005461063a906001600160a01b03811690600160a01b900460ff1682565b604080516001600160a01b039093168352901515602083015201610255565b34801561066557600080fd5b506104777fa8429bfd1dd4da6c67a09e5c5a89115acae264879c22f767979685932461d1c281565b34801561069957600080fd5b506106da6106a83660046141a9565b60fd602052600090815260409020546001600160a01b03811690600160a01b90046bffffffffffffffffffffffff1682565b604080516001600160a01b0390931683526bffffffffffffffffffffffff909116602083015201610255565b34801561071257600080fd5b50610249610721366004614558565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561075b57600080fd5b506102d861076a36600461436e565b611acc565b6102d861077d366004614586565b611bae565b60007f2a55205a000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806107c057506107c082612d48565b92915050565b6060606580546107d5906145e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906145e6565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108d65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b60006108fd82611084565b9050806001600160a01b0316836001600160a01b031614156109875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016108cd565b336001600160a01b03821614806109a357506109a38133610721565b610a155760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108cd565b610a1f8383612de3565b505050565b610a2f335b82612e51565b610aa15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108cd565b610a1f838383612f48565b600082815260fd602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282018390528392620f424090610b009087614631565b610b0a9190614650565b92509250505b9250929050565b6097546001600160a01b0316331480610b445750610100546001600160a01b0316336001600160a01b0316145b610b905760405162461bcd60e51b815260206004820152600260248201527f333000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b6000808211610b9f5747610ba1565b815b61010054909150610bdf906001600160a01b031615610bcc57610100546001600160a01b0316610bd9565b6097546001600160a01b03165b82613115565b5050565b6097546001600160a01b03163314610c3d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b6101025415610c8e5760405162461bcd60e51b815260206004820152600260248201527f363000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b610c9a60658585613ff7565b50610ca760668383613ff7565b507f934066d47a89bfcab72db908a0701b9145131ee303cefb44553121c73419e8dd60656066604051610cdb929190614712565b60405180910390a150505050565b610a1f838383604051806020016040528060008152506116bb565b600054610100900460ff1680610d1d575060005460ff16155b610d805760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff16158015610da2576000805461ffff19166101011790555b610e1585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8901819004810282018101909252878152925087915086908190840183828082843760009201919091525061315a92505050565b610e6d85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040805180820190915260018152603160f81b602082015291506132289050565b610e756132d0565b8015610e87576000805461ff00191690555b5050505050565b6097546001600160a01b03163314610ee85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b61010054600160a01b900460ff1615610f435760405162461bcd60e51b815260206004820152600260248201527f323000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b80610100610f518282614740565b9050507f5d121f0c2b2c4877a2b0a1457c73ce1c28628e5705271cb91db3e49792715cf581604051610f8391906147c1565b60405180910390a150565b6097546001600160a01b03163314610fe85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b61010254156110395760405162461bcd60e51b815260206004820152600260248201527f353000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b6110466101018383613ff7565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad82826040516110789291906147f8565b60405180910390a15050565b6000818152606760205260408120546001600160a01b0316806107c05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016108cd565b610101805461111d906145e6565b80601f0160208091040260200160405190810160405280929190818152602001828054611149906145e6565b80156111965780601f1061116b57610100808354040283529160200191611196565b820191906000526020600020905b81548152906001019060200180831161117957829003601f168201915b505050505081565b60006001600160a01b03821661121c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016108cd565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146112925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b61129c6000613392565b565b6060606680546107d5906145e6565b6097546001600160a01b031633146113075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b610102541561133c5760405162461bcd60e51b81526020600482015260016024820152600360fc1b60448201526064016108cd565b60005b81811015610a1f573683838381811061135a5761135a614827565b905060200281019061136c919061483d565b9050611388611381604083016020840161436e565b82356133e4565b6000611397606083018361485d565b9050111561145e5760408051808201909152806113b7606084018461485d565b60008181106113c8576113c8614827565b90506060020160200160208101906113e0919061436e565b6001600160a01b031681526020016113fb606084018461485d565b600081811061140c5761140c614827565b6bffffffffffffffffffffffff60406060909202939093018101358316909352508335600090815260fd60209081529290208351939092015116600160a01b026001600160a01b039092169190911790555b5060010161133f565b6001600160a01b0382163314156114c05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108cd565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6097546001600160a01b031633146115865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b61010254600214156115da5760405162461bcd60e51b815260206004820152600260248201527f343000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b61010281905560405181907f118f8ba10d647100925b2343f3030d110623f17b284ced4316cbe4b8f138883f90600090a250565b60005b81811015610a1f57600083838381811061162d5761162d614827565b905060200201359050611640610a293390565b61168c5760405162461bcd60e51b815260206004820152600260248201527f313500000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b61169581613526565b600090815260ff6020526040902080546001600160a01b03191633179055600101611611565b6116c53383612e51565b6117375760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108cd565b611743848484846135c1565b50505050565b6000818152606760205260409020546060906001600160a01b03166117d65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016108cd565b6040805180820190915260208082527f6162636465666768696a6b6c6d6e6f707172737475767778797a323334353637908201526101018054849291600091829190611821906145e6565b905011611863576040518060400160405280600781526020017f697066733a2f2f000000000000000000000000000000000000000000000000008152506118f0565b6101018054611871906145e6565b80601f016020809104026020016040519081016040528092919081815260200182805461189d906145e6565b80156118ea5780601f106118bf576101008083540402835291602001916118ea565b820191906000526020600020905b8154815290600101906020018083116118cd57829003601f168201915b50505050505b600086815260fe602052604081205491925090829060ff1615611948576040518060400160405280600781526020017f626166796265690000000000000000000000000000000000000000000000000081525061197f565b6040518060400160405280600781526020017f6261666b726569000000000000000000000000000000000000000000000000008152505b6040516020016119909291906148a6565b60408051601f19818403018152919052905060026301701220600560006119b9600160206148d5565b905060005b6020811015611a685760006119d4826008614631565b8c901b60f881901c600896871b63ffffff001617959091506119f690876148ec565b95505b83861115611a5757611a0b84876148d5565b955086898787901c851681518110611a2557611a25614827565b602001015160f81c60f81b604051602001611a41929190614904565b60405160208183030381529060405296506119f9565b50611a618161494b565b90506119be565b508315611abe578487611a7b86856148d5565b85901b831681518110611a9057611a90614827565b602001015160f81c60f81b604051602001611aac929190614904565b60405160208183030381529060405294505b509298975050505050505050565b6097546001600160a01b03163314611b265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108cd565b6001600160a01b038116611ba25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108cd565b611bab81613392565b50565b6101025415611be35760405162461bcd60e51b81526020600482015260016024820152600360fc1b60448201526064016108cd565b6000805b84811015612cf85736868683818110611c0257611c02614827565b9050602002810190611c149190614966565b905036858584818110611c2957611c29614827565b9050602002810190611c3b919061483d565b8235600090815260ff60205260409020549091506001600160a01b031615611c895760405162461bcd60e51b81526020600482015260016024820152603160f81b60448201526064016108cd565b600080611c9c60c0850160a0860161436e565b6001600160a01b03161415611cbd57611cb8602083018361436e565b611ccd565b611ccd60c0840160a0850161436e565b9050611cdd61014084018461485d565b15159050611eeb5760007fd5c13995ee2c903b8566a2b01173a2e42e98f3821f01841396633b28a9b0cb228435611d1a60e0870160c08801614993565b611d2a60a088016080890161436e565b611d3a60c0890160a08a0161436e565b611d4a60408a0160208b016149ae565b611d5a60608b0160408c016149e0565b611d6a60808c0160608d016149e0565b60408051602081019990995288019690965260ff90941660608701526001600160a01b039283166080870152911660a08501526fffffffffffffffffffffffffffffffff1660c084015267ffffffffffffffff90811660e0848101919091529116610100838101919091529086013561012083810191909152908601356101408301528501356101608201527fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4706101808201526101a001604051602081830303815290604052805190602001209050611e4b6097546001600160a01b031690565b6001600160a01b0316611eab611e65610160870187614a0a565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ea5925086915061364a9050565b906136b3565b6001600160a01b031614611ee55760405162461bcd60e51b81526020600482015260016024820152601960f91b60448201526064016108cd565b50612996565b60606000805b611eff61014087018761485d565b90508110156127dd576000611f1861014088018861485d565b83818110611f2857611f28614827565b905060600201803603810190611f3e9190614a51565b805190915060ff166120875760208101516001600160a01b0316611faf57604081810151600090815260ff60205220546001600160a01b03163314611faa5760405162461bcd60e51b8152602060048201526002602482015261386160f01b60448201526064016108cd565b612747565b602081015160408083015190517f23250cae000000000000000000000000000000000000000000000000000000008152600481019190915233916001600160a01b0316906323250cae9060240160206040518083038186803b15801561201457600080fd5b505afa158015612028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204c9190614aba565b6001600160a01b031614611faa5760405162461bcd60e51b8152602060048201526002602482015261386160f01b60448201526064016108cd565b806000015160ff16600114156121c55760208101516001600160a01b03166120fa57604081810151600090815260ff60205220546001600160a01b03868116911614611faa5760405162461bcd60e51b81526020600482015260026024820152611c3160f11b60448201526064016108cd565b846001600160a01b031681602001516001600160a01b03166323250cae83604001516040518263ffffffff1660e01b815260040161213a91815260200190565b60206040518083038186803b15801561215257600080fd5b505afa158015612166573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218a9190614aba565b6001600160a01b031614611faa5760405162461bcd60e51b81526020600482015260026024820152611c3160f11b60448201526064016108cd565b806000015160ff16600214156122f15760208101516001600160a01b031661225457336001600160a01b03166121fe8260400151611084565b6001600160a01b031614611faa5760405162461bcd60e51b815260206004820152600260248201527f396100000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b602081015160408083015190517f6352211e000000000000000000000000000000000000000000000000000000008152600481019190915233916001600160a01b031690636352211e9060240160206040518083038186803b1580156122b957600080fd5b505afa1580156122cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121fe9190614aba565b806000015160ff16600314156124105760208101516001600160a01b031661238057846001600160a01b031661232a8260400151611084565b6001600160a01b031614611faa5760405162461bcd60e51b815260206004820152600260248201527f396200000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b846001600160a01b031681602001516001600160a01b0316636352211e83604001516040518263ffffffff1660e01b81526004016123c091815260200190565b60206040518083038186803b1580156123d857600080fd5b505afa1580156123ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232a9190614aba565b806000015160ff166004141561251e5760208101516001600160a01b031661248e5760408101516124403361119e565b1015611faa5760405162461bcd60e51b815260206004820152600360248201527f313061000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b604081015160208201516001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156124e657600080fd5b505afa1580156124fa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124409190614ad7565b806000015160ff166005141561263c5760208101516001600160a01b031661259c57806040015161254e8661119e565b1015611faa5760405162461bcd60e51b815260206004820152600360248201527f313062000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b604080820151602083015191517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152919291909116906370a082319060240160206040518083038186803b15801561260457600080fd5b505afa158015612618573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254e9190614ad7565b806000015160ff16600a14156126db57604081015161265b90846148ec565b9250620f42408311156126b05760405162461bcd60e51b815260206004820152600360248201527f313063000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b611faa8160200151620f42408360400151346126cc9190614631565b6126d69190614650565b613115565b806000015160ff16600b1415612747576040805180820182526020808401516001600160a01b039081168352848401516bffffffffffffffffffffffff9081168385019081528c35600090815260fd9094529490922092519351909116600160a01b0292169190911790555b805160208083015160408085015181517fa8429bfd1dd4da6c67a09e5c5a89115acae264879c22f767979685932461d1c28186015260ff909516858301526001600160a01b0390921660608501526080808501929092528051808503909201825260a08401905280519101206127c29186919060c001614af0565b60408051601f19818403018152919052935050600101611ef1565b5060007fd5c13995ee2c903b8566a2b01173a2e42e98f3821f01841396633b28a9b0cb22863561281360e0890160c08a01614993565b61282360a08a0160808b0161436e565b61283360c08b0160a08c0161436e565b61284360408c0160208d016149ae565b61285360608d0160408e016149e0565b61286360808e0160608f016149e0565b8d60e001358e61010001358f61012001358d805190602001206040516020016129149c9b9a999897969594939291909b8c5260208c019a909a5260ff9890981660408b01526001600160a01b0396871660608b01529490951660808901526fffffffffffffffffffffffffffffffff9290921660a088015267ffffffffffffffff90811660c08801521660e08601526101008501919091526101208401526101408301526101608201526101800190565b60405160208183030381529060405280519060200120905061293e6097546001600160a01b031690565b6001600160a01b0316612958611e65610160890189614a0a565b6001600160a01b0316146129925760405162461bcd60e51b81526020600482015260016024820152601960f91b60448201526064016108cd565b5050505b60006129a860a085016080860161436e565b6001600160a01b031614612a1d57336129c760a085016080860161436e565b6001600160a01b031614612a1d5760405162461bcd60e51b815260206004820152600160248201527f330000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b42612a2e60608501604086016149e0565b67ffffffffffffffff161115612a865760405162461bcd60e51b815260206004820152600160248201527f340000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b42612a9760808501606086016149e0565b67ffffffffffffffff161015612aef5760405162461bcd60e51b815260206004820152600160248201527f350000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b61012083013515612b8a576000612b096020840184614a0a565b9050118015612b3e5750610120830135612b266020840184614a0a565b604051612b34929190614b12565b6040518091039020145b612b8a5760405162461bcd60e51b815260206004820152600160248201527f360000000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b60e083013515612bfb57612baf60e0840135612ba96040850185614b22565b336136d7565b612bfb5760405162461bcd60e51b815260206004820152600260248201527f376100000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b61010083013515612c6e57612c22610100840135612c1c6060850185614b22565b846136d7565b612c6e5760405162461bcd60e51b815260206004820152600260248201527f376200000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b612c7e60e0840160c08501614993565b60ff1615612cb957612c9660e0840160c08501614993565b8335600090815260fe60205260409020805460ff191660ff929092169190911790555b612cc48184356133e4565b612cd460408401602085016149ae565b6fffffffffffffffffffffffffffffffff1685019450836001019350505050611be7565b50348114610e875760405162461bcd60e51b815260206004820152600260248201527f313100000000000000000000000000000000000000000000000000000000000060448201526064016108cd565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612dab57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107c057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107c0565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e1882611084565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b0316612eca5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108cd565b6000612ed583611084565b9050806001600160a01b0316846001600160a01b03161480612f105750836001600160a01b0316612f0584610858565b6001600160a01b0316145b80612f4057506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612f5b82611084565b6001600160a01b031614612fd75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016108cd565b6001600160a01b0382166130525760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108cd565b61305d600082612de3565b6001600160a01b03831660009081526068602052604081208054600192906130869084906148d5565b90915550506001600160a01b03821660009081526068602052604081208054600192906130b49084906148ec565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080600080600085875af1905080610a1f576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600054610100900460ff1680613173575060005460ff16155b6131d65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff161580156131f8576000805461ffff19166101011790555b6132006137b5565b6132086137b5565b6132128383613866565b8015610a1f576000805461ff0019169055505050565b600054610100900460ff1680613241575060005460ff16155b6132a45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff161580156132c6576000805461ffff19166101011790555b6132128383613942565b600054610100900460ff16806132e9575060005460ff16155b61334c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff1615801561336e576000805461ffff19166101011790555b6133766137b5565b61337e613a13565b8015611bab576000805461ff001916905550565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661343a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108cd565b6000818152606760205260409020546001600160a01b03161561349f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108cd565b6001600160a01b03821660009081526068602052604081208054600192906134c89084906148ec565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061353182611084565b905061353e600083612de3565b6001600160a01b03811660009081526068602052604081208054600192906135679084906148d5565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6135cc848484612f48565b6135d884848484613aba565b6117435760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108cd565b60006107c0613657613c1a565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006136c28585613c9a565b915091506136cf81613d07565b509392505050565b6040516bffffffffffffffffffffffff19606083901b166020820152600090819060340160405160208183030381529060405280519060200120905060005b848110156137a957600086868381811061373257613732614827565b9050602002013590508083116137735760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506137a0565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50600101613716565b50909414949350505050565b600054610100900460ff16806137ce575060005460ff16155b6138315760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff1615801561337e576000805461ffff19166101011790558015611bab576000805461ff001916905550565b600054610100900460ff168061387f575060005460ff16155b6138e25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff16158015613904576000805461ffff19166101011790555b825161391790606590602086019061407b565b50815161392b90606690602085019061407b565b508015610a1f576000805461ff0019169055505050565b600054610100900460ff168061395b575060005460ff16155b6139be5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff161580156139e0576000805461ffff19166101011790555b825160208085019190912083519184019190912060c99190915560ca558015610a1f576000805461ff0019169055505050565b600054610100900460ff1680613a2c575060005460ff16155b613a8f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cd565b600054610100900460ff16158015613ab1576000805461ffff19166101011790555b61337e33613392565b60006001600160a01b0384163b15613c1257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613afe903390899088908890600401614b6c565b602060405180830381600087803b158015613b1857600080fd5b505af1925050508015613b48575060408051601f3d908101601f19168201909252613b4591810190614ba8565b60015b613bf8573d808015613b76576040519150601f19603f3d011682016040523d82523d6000602084013e613b7b565b606091505b508051613bf05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108cd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612f40565b506001612f40565b6000613c957f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f613c4960c95490565b60ca546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b905090565b600080825160411415613cd15760208301516040840151606085015160001a613cc587828585613ec2565b94509450505050610b10565b825160401415613cfb5760208301516040840151613cf0868383613faf565b935093505050610b10565b50600090506002610b10565b6000816004811115613d1b57613d1b614bc5565b1415613d245750565b6001816004811115613d3857613d38614bc5565b1415613d865760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108cd565b6002816004811115613d9a57613d9a614bc5565b1415613de85760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108cd565b6003816004811115613dfc57613dfc614bc5565b1415613e555760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108cd565b6004816004811115613e6957613e69614bc5565b1415611bab5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108cd565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613ef95750600090506003613fa6565b8460ff16601b14158015613f1157508460ff16601c14155b15613f225750600090506004613fa6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613f76573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613f9f57600060019250925050613fa6565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613fe987828885613ec2565b935093505050935093915050565b828054614003906145e6565b90600052602060002090601f016020900481019282614025576000855561406b565b82601f1061403e5782800160ff1982351617855561406b565b8280016001018555821561406b579182015b8281111561406b578235825591602001919060010190614050565b506140779291506140ef565b5090565b828054614087906145e6565b90600052602060002090601f0160209004810192826140a9576000855561406b565b82601f106140c257805160ff191683800117855561406b565b8280016001018555821561406b579182015b8281111561406b5782518255916020019190600101906140d4565b5b8082111561407757600081556001016140f0565b6001600160e01b031981168114611bab57600080fd5b60006020828403121561412c57600080fd5b813561413781614104565b9392505050565b60005b83811015614159578181015183820152602001614141565b838111156117435750506000910152565b6000815180845261418281602086016020860161413e565b601f01601f19169290920160200192915050565b602081526000614137602083018461416a565b6000602082840312156141bb57600080fd5b5035919050565b6001600160a01b0381168114611bab57600080fd5b600080604083850312156141ea57600080fd5b82356141f5816141c2565b946020939093013593505050565b60008060006060848603121561421857600080fd5b8335614223816141c2565b92506020840135614233816141c2565b929592945050506040919091013590565b6000806040838503121561425757600080fd5b50508035926020909101359150565b60008083601f84011261427857600080fd5b50813567ffffffffffffffff81111561429057600080fd5b602083019150836020828501011115610b1057600080fd5b600080600080604085870312156142be57600080fd5b843567ffffffffffffffff808211156142d657600080fd5b6142e288838901614266565b909650945060208701359150808211156142fb57600080fd5b5061430887828801614266565b95989497509550505050565b60006040828403121561432657600080fd5b50919050565b6000806020838503121561433f57600080fd5b823567ffffffffffffffff81111561435657600080fd5b61436285828601614266565b90969095509350505050565b60006020828403121561438057600080fd5b8135614137816141c2565b60008083601f84011261439d57600080fd5b50813567ffffffffffffffff8111156143b557600080fd5b6020830191508360208260051b8501011115610b1057600080fd5b600080602083850312156143e357600080fd5b823567ffffffffffffffff8111156143fa57600080fd5b6143628582860161438b565b8015158114611bab57600080fd5b6000806040838503121561442757600080fd5b8235614432816141c2565b9150602083013561444281614406565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561448c5761448c61444d565b604052919050565b600080600080608085870312156144aa57600080fd5b84356144b5816141c2565b93506020858101356144c6816141c2565b935060408601359250606086013567ffffffffffffffff808211156144ea57600080fd5b818801915088601f8301126144fe57600080fd5b8135818111156145105761451061444d565b614522601f8201601f19168501614463565b9150808252898482850101111561453857600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561456b57600080fd5b8235614576816141c2565b91506020830135614442816141c2565b6000806000806040858703121561459c57600080fd5b843567ffffffffffffffff808211156145b457600080fd5b6145c08883890161438b565b909650945060208701359150808211156145d957600080fd5b506143088782880161438b565b600181811c908216806145fa57607f821691505b6020821081141561432657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561464b5761464b61461b565b500290565b60008261466d57634e487b7160e01b600052601260045260246000fd5b500490565b8054600090600181811c908083168061468c57607f831692505b60208084108214156146ae57634e487b7160e01b600052602260045260246000fd5b838852602088018280156146c957600181146146da57614705565b60ff19871682528282019750614705565b60008981526020902060005b878110156146ff578154848201529086019084016146e6565b83019850505b5050505050505092915050565b6040815260006147256040830185614672565b82810360208401526147378185614672565b95945050505050565b813561474b816141c2565b6001600160a01b03811690508154816001600160a01b03198216178355602084013561477681614406565b7fffffffffffffffffffffff0000000000000000000000000000000000000000009190911690911790151560a01b74ff00000000000000000000000000000000000000001617905550565b6040810182356147d0816141c2565b6001600160a01b0316825260208301356147e981614406565b80151560208401525092915050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052603260045260246000fd5b60008235607e1983360301811261485357600080fd5b9190910192915050565b6000808335601e1984360301811261487457600080fd5b83018035915067ffffffffffffffff82111561488f57600080fd5b6020019150606081023603821315610b1057600080fd5b600083516148b881846020880161413e565b8351908301906148cc81836020880161413e565b01949350505050565b6000828210156148e7576148e761461b565b500390565b600082198211156148ff576148ff61461b565b500190565b6000835161491681846020880161413e565b7fff00000000000000000000000000000000000000000000000000000000000000939093169190920190815260010192915050565b600060001982141561495f5761495f61461b565b5060010190565b6000823561017e1983360301811261485357600080fd5b803560ff8116811461498e57600080fd5b919050565b6000602082840312156149a557600080fd5b6141378261497d565b6000602082840312156149c057600080fd5b81356fffffffffffffffffffffffffffffffff8116811461413757600080fd5b6000602082840312156149f257600080fd5b813567ffffffffffffffff8116811461413757600080fd5b6000808335601e19843603018112614a2157600080fd5b83018035915067ffffffffffffffff821115614a3c57600080fd5b602001915036819003821315610b1057600080fd5b600060608284031215614a6357600080fd5b6040516060810181811067ffffffffffffffff82111715614a8657614a8661444d565b604052614a928361497d565b81526020830135614aa2816141c2565b60208201526040928301359281019290925250919050565b600060208284031215614acc57600080fd5b8151614137816141c2565b600060208284031215614ae957600080fd5b5051919050565b60008351614b0281846020880161413e565b9190910191825250602001919050565b8183823760009101908152919050565b6000808335601e19843603018112614b3957600080fd5b83018035915067ffffffffffffffff821115614b5457600080fd5b6020019150600581901b3603821315610b1057600080fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152614b9e608083018461416a565b9695505050505050565b600060208284031215614bba57600080fd5b815161413781614104565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d0e00c9cb1ccefd08d278a10349ddfd758adee65c9ec5e116129a67a11c676be64736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.