Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Initialize | 12864484 | 1270 days ago | IN | 0 ETH | 0.00662604 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
UNSRegistry
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// @author Unstoppable Domains, Inc. // @date June 16th, 2021 pragma solidity ^0.8.0; import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol'; import '@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol'; import '@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol'; import './IUNSRegistry.sol'; import './RecordStorage.sol'; import './metatx/ERC2771RegistryContext.sol'; import './metatx/RegistryForwarder.sol'; /** * @title UNSRegistry * @dev An ERC721 Token see https://eips.ethereum.org/EIPS/eip-721. With * additional functions so other trusted contracts to interact with the tokens. */ contract UNSRegistry is Initializable, ContextUpgradeable, ERC721Upgradeable, ERC2771RegistryContext, RecordStorage, RegistryForwarder, IUNSRegistry { using AddressUpgradeable for address; string public constant NAME = 'UNS: Registry'; string public constant VERSION = '0.1.0'; string internal _prefix; address internal _mintingManager; modifier onlyApprovedOrOwner(uint256 tokenId) { require(_isApprovedOrOwner(_msgSender(), tokenId), 'Registry: SENDER_IS_NOT_APPROVED_OR_OWNER'); _; } modifier onlyMintingManager() { require(_msgSender() == _mintingManager, 'Registry: SENDER_IS_NOT_MINTING_MANAGER'); _; } modifier protectTokenOperation(uint256 tokenId) { if (isTrustedForwarder(msg.sender)) { require(tokenId == _msgToken(), 'Registry: TOKEN_INVALID'); } _invalidateNonce(tokenId); _; } function initialize(address mintingManager) public initializer { _mintingManager = mintingManager; __ERC721_init_unchained('Unstoppable Domains', 'UD'); __ERC2771RegistryContext_init_unchained(); __RegistryForwarder_init_unchained(); } /// ERC721 Metadata extension function setTokenURIPrefix(string calldata prefix) external override onlyMintingManager { _prefix = prefix; emit NewURIPrefix(prefix); } /// Ownership function isApprovedOrOwner(address spender, uint256 tokenId) external view override returns (bool) { return _isApprovedOrOwner(spender, tokenId); } function approve(address to, uint256 tokenId) public override(IERC721Upgradeable, ERC721Upgradeable) protectTokenOperation(tokenId) { super.approve(to, tokenId); } /// Registry Constants function root() public pure returns (uint256) { return 0; } function childIdOf(uint256 tokenId, string calldata label) external pure override returns (uint256) { return _childId(tokenId, label); } function exists(uint256 tokenId) external view override returns (bool) { return _exists(tokenId); } /// Minting function mint( address to, uint256 tokenId, string calldata uri ) external override onlyMintingManager { _mint(to, tokenId, uri); } function safeMint( address to, uint256 tokenId, string calldata uri ) external override onlyMintingManager { _safeMint(to, tokenId, uri, ''); } function safeMint( address to, uint256 tokenId, string calldata uri, bytes calldata data ) external override onlyMintingManager { _safeMint(to, tokenId, uri, data); } function mintWithRecords( address to, uint256 tokenId, string calldata uri, string[] calldata keys, string[] calldata values ) external override onlyMintingManager { _mint(to, tokenId, uri); _setMany(keys, values, tokenId); } function safeMintWithRecords( address to, uint256 tokenId, string calldata uri, string[] calldata keys, string[] calldata values ) external override onlyMintingManager { _safeMintWithRecords(to, tokenId, uri, keys, values, ''); } function safeMintWithRecords( address to, uint256 tokenId, string calldata uri, string[] calldata keys, string[] calldata values, bytes calldata data ) external override onlyMintingManager { _safeMintWithRecords(to, tokenId, uri, keys, values, data); } /// Transfering function setOwner(address to, uint256 tokenId) external override onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _transfer(ownerOf(tokenId), to, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override(IERC721Upgradeable, ERC721Upgradeable) onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _reset(tokenId); _transfer(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override(IERC721Upgradeable, ERC721Upgradeable) onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _reset(tokenId); _safeTransfer(from, to, tokenId, data); } /// Burning function burn(uint256 tokenId) external override onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _reset(tokenId); _burn(tokenId); } /// Resolution function resolverOf(uint256 tokenId) external view override returns (address) { return _exists(tokenId) ? address(this) : address(0x0); } function set( string calldata key, string calldata value, uint256 tokenId ) external override onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _set(key, value, tokenId); } function setMany( string[] calldata keys, string[] calldata values, uint256 tokenId ) external override onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _setMany(keys, values, tokenId); } function setByHash( uint256 keyHash, string calldata value, uint256 tokenId ) external override onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _setByHash(keyHash, value, tokenId); } function setManyByHash( uint256[] calldata keyHashes, string[] calldata values, uint256 tokenId ) external override onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _setManyByHash(keyHashes, values, tokenId); } function reconfigure( string[] calldata keys, string[] calldata values, uint256 tokenId ) external override onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _reconfigure(keys, values, tokenId); } function reset(uint256 tokenId) external override onlyApprovedOrOwner(tokenId) protectTokenOperation(tokenId) { _reset(tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view override(ERC721Upgradeable, IERC165Upgradeable) returns (bool) { return super.supportsInterface(interfaceId); } /// Internal function _childId(uint256 tokenId, string memory label) internal pure returns (uint256) { require(bytes(label).length != 0, 'Registry: LABEL_EMPTY'); return uint256(keccak256(abi.encodePacked(tokenId, keccak256(abi.encodePacked(label))))); } function _mint( address to, uint256 tokenId, string memory uri ) internal { _mint(to, tokenId); emit NewURI(tokenId, uri); } function _safeMint( address to, uint256 tokenId, string memory uri, bytes memory data ) internal { _safeMint(to, tokenId, data); emit NewURI(tokenId, uri); } function _safeMintWithRecords( address to, uint256 tokenId, string calldata uri, string[] calldata keys, string[] calldata values, bytes memory data ) internal { _safeMint(to, tokenId, uri, data); _setMany(keys, values, tokenId); } function _baseURI() internal view override(ERC721Upgradeable) returns (string memory) { return _prefix; } function _msgSender() internal view override(ContextUpgradeable, ERC2771RegistryContext) returns (address sender) { return super._msgSender(); } function _msgData() internal view override(ContextUpgradeable, ERC2771RegistryContext) returns (bytes calldata) { return super._msgData(); } // Reserved storage space to allow for layout changes in the future. uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version 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 "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../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 private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ 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}. 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly 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` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } uint256[44] private __gap; }
// 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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; }
// @author Unstoppable Domains, Inc. // @date June 16th, 2021 pragma solidity ^0.8.0; import '@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol'; import './IRecordStorage.sol'; interface IUNSRegistry is IERC721MetadataUpgradeable, IRecordStorage { event NewURI(uint256 indexed tokenId, string uri); event NewURIPrefix(string prefix); /** * @dev Function to set the token URI Prefix for all tokens. * @param prefix string URI to assign */ function setTokenURIPrefix(string calldata prefix) external; /** * @dev Returns whether the given spender can transfer a given token ID. * @param spender address of the spender to query * @param tokenId uint256 ID of the token to be transferred * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of the token */ function isApprovedOrOwner(address spender, uint256 tokenId) external view returns (bool); /** * @dev Gets the resolver of the specified token ID. * @param tokenId uint256 ID of the token to query the resolver of * @return address currently marked as the resolver of the given token ID */ function resolverOf(uint256 tokenId) external view returns (address); /** * @dev Provides child token (subdomain) of provided tokenId. * @param tokenId uint256 ID of the token * @param label label of subdomain (for `aaa.bbb.crypto` it will be `aaa`) */ function childIdOf(uint256 tokenId, string calldata label) external pure returns (uint256); /** * @dev Existence of token. * @param tokenId uint256 ID of the token */ function exists(uint256 tokenId) external view returns (bool); /** * @dev Transfer domain ownership without resetting domain records. * @param to address of new domain owner * @param tokenId uint256 ID of the token to be transferred */ function setOwner(address to, uint256 tokenId) external; /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; /** * @dev Mints token. * @param to address to mint the new SLD to. * @param tokenId id of token. * @param uri domain URI. */ function mint( address to, uint256 tokenId, string calldata uri ) external; /** * @dev Safely mints token. * Implements a ERC721Reciever check unlike mint. * @param to address to mint the new SLD to. * @param tokenId id of token. * @param uri domain URI. */ function safeMint( address to, uint256 tokenId, string calldata uri ) external; /** * @dev Safely mints token. * Implements a ERC721Reciever check unlike mint. * @param to address to mint the new SLD to. * @param tokenId id of token. * @param uri domain URI. * @param data bytes data to send along with a safe transfer check */ function safeMint( address to, uint256 tokenId, string calldata uri, bytes calldata data ) external; /** * @dev Mints token with records * @param to address to mint the new SLD to * @param tokenId id of token * @param keys New record keys * @param values New record values * @param uri domain URI */ function mintWithRecords( address to, uint256 tokenId, string calldata uri, string[] calldata keys, string[] calldata values ) external; /** * @dev Safely mints token with records * @param to address to mint the new SLD to * @param tokenId id of token * @param keys New record keys * @param values New record values * @param uri domain URI */ function safeMintWithRecords( address to, uint256 tokenId, string calldata uri, string[] calldata keys, string[] calldata values ) external; /** * @dev Safely mints token with records * @param to address to mint the new SLD to * @param tokenId id of token * @param keys New record keys * @param values New record values * @param uri domain URI * @param data bytes data to send along with a safe transfer check */ function safeMintWithRecords( address to, uint256 tokenId, string calldata uri, string[] calldata keys, string[] calldata values, bytes calldata data ) external; }
// @author Unstoppable Domains, Inc. // @date June 16th, 2021 pragma solidity ^0.8.0; import './IRecordStorage.sol'; import './KeyStorage.sol'; abstract contract RecordStorage is KeyStorage, IRecordStorage { /// @dev mapping of presetIds to keyIds to values mapping(uint256 => mapping(uint256 => string)) internal _records; /// @dev mapping of tokenIds to presetIds mapping(uint256 => uint256) internal _tokenPresets; function get(string calldata key, uint256 tokenId) external view override returns (string memory value) { value = _get(key, tokenId); } function getMany(string[] calldata keys, uint256 tokenId) external view override returns (string[] memory values) { values = new string[](keys.length); for (uint256 i = 0; i < keys.length; i++) { values[i] = _get(keys[i], tokenId); } } function getByHash(uint256 keyHash, uint256 tokenId) external view override returns (string memory key, string memory value) { (key, value) = _getByHash(keyHash, tokenId); } function getManyByHash(uint256[] calldata keyHashes, uint256 tokenId) external view override returns (string[] memory keys, string[] memory values) { keys = new string[](keyHashes.length); values = new string[](keyHashes.length); for (uint256 i = 0; i < keyHashes.length; i++) { (keys[i], values[i]) = _getByHash(keyHashes[i], tokenId); } } function _presetOf(uint256 tokenId) internal view virtual returns (uint256) { return _tokenPresets[tokenId] == 0 ? tokenId : _tokenPresets[tokenId]; } function _set( string calldata key, string calldata value, uint256 tokenId ) internal { uint256 keyHash = uint256(keccak256(abi.encodePacked(key))); _addKey(keyHash, key); _set(keyHash, key, value, tokenId); } function _setMany( string[] calldata keys, string[] calldata values, uint256 tokenId ) internal { for (uint256 i = 0; i < keys.length; i++) { _set(keys[i], values[i], tokenId); } } function _setByHash( uint256 keyHash, string calldata value, uint256 tokenId ) internal { require(_existsKey(keyHash), 'RecordStorage: KEY_NOT_FOUND'); _set(keyHash, getKey(keyHash), value, tokenId); } function _setManyByHash( uint256[] calldata keyHashes, string[] calldata values, uint256 tokenId ) internal { for (uint256 i = 0; i < keyHashes.length; i++) { _setByHash(keyHashes[i], values[i], tokenId); } } function _reconfigure( string[] calldata keys, string[] calldata values, uint256 tokenId ) internal { _reset(tokenId); _setMany(keys, values, tokenId); } function _reset(uint256 tokenId) internal { _tokenPresets[tokenId] = uint256(keccak256(abi.encodePacked(_presetOf(tokenId)))); emit ResetRecords(tokenId); } function _get(string memory key, uint256 tokenId) private view returns (string memory) { return _get(uint256(keccak256(abi.encodePacked(key))), tokenId); } function _getByHash(uint256 keyHash, uint256 tokenId) private view returns (string memory key, string memory value) { key = getKey(keyHash); value = _get(keyHash, tokenId); } function _get(uint256 keyHash, uint256 tokenId) private view returns (string memory) { return _records[_presetOf(tokenId)][keyHash]; } function _set( uint256 keyHash, string memory key, string memory value, uint256 tokenId ) private { if (bytes(_records[_presetOf(tokenId)][keyHash]).length == 0) { emit NewKey(tokenId, key, key); } _records[_presetOf(tokenId)][keyHash] = value; emit Set(tokenId, key, value, key, value); } }
// @author Unstoppable Domains, Inc. // @date June 16th, 2021 pragma solidity ^0.8.0; import '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol'; /** * @dev https://eips.ethereum.org/EIPS/eip-2771[EIP 2771] is a standard for native meta transactions. * * A base contract to be inherited by any contract that want to receive forwarded transactions. * The contract designed to be stateless, it supports a scenario when a inherited contract is * TrustedForwarder and Recipient at the same time. * * The contract supports token based nonce, that is why standard calldata extended by tokenId. * * Forwarded calldata layout: {bytes:data}{address:from}{uint256:tokenId} */ abstract contract ERC2771RegistryContext is Initializable, ContextUpgradeable { // solhint-disable-next-line func-name-mixedcase function __ERC2771RegistryContext_init() internal initializer { __Context_init_unchained(); __ERC2771RegistryContext_init_unchained(); } // solhint-disable-next-line func-name-mixedcase function __ERC2771RegistryContext_init_unchained() internal initializer {} /** * @dev Return bool whether provided address is the trusted forwarder. */ function isTrustedForwarder(address forwarder) public view virtual returns (bool) { return forwarder == address(this); } /** * @dev Return the tokenId of this call. * If the call came through our trusted forwarder, return the original tokenId. * otherwise, return zero tokenId. */ function _msgToken() internal view virtual returns (uint256 tokenId) { if (isTrustedForwarder(msg.sender)) { assembly { tokenId := calldataload(sub(calldatasize(), 32)) } } } /** * @dev Return the sender of this call. * If the call came through our trusted forwarder, return the original sender. * otherwise, return `msg.sender`. * Should be used in the contract anywhere instead of msg.sender */ function _msgSender() internal view virtual override returns (address sender) { if (isTrustedForwarder(msg.sender)) { // The assembly code is more direct than the Solidity version using `abi.decode`. assembly { sender := shr(96, calldataload(sub(calldatasize(), 52))) } } else { return super._msgSender(); } } /** * @dev Return the data of this call. * If the call came through our trusted forwarder, return the original data. * otherwise, return `msg.data`. * Should be used in the contract anywhere instead of msg.data */ function _msgData() internal view virtual override returns (bytes calldata) { if (isTrustedForwarder(msg.sender)) { return msg.data[:msg.data.length - 52]; } else { return super._msgData(); } } uint256[50] private __gap; }
// @author Unstoppable Domains, Inc. // @date June 16th, 2021 pragma solidity ^0.8.0; import '@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol'; import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol'; /** * @dev https://eips.ethereum.org/EIPS/eip-2771[EIP 2771] is a standard for native meta transactions. * * A base contract to be inherited by any contract that want to forward transactions. */ abstract contract RegistryForwarder is Initializable, EIP712Upgradeable { using ECDSAUpgradeable for bytes32; struct ForwardRequest { address from; uint256 gas; uint256 tokenId; uint256 nonce; bytes data; } bytes32 private constant _TYPEHASH = keccak256('ForwardRequest(address from,uint256 gas,uint256 tokenId,uint256 nonce,bytes data)'); mapping(uint256 => uint256) private _nonces; // solhint-disable-next-line func-name-mixedcase function __RegistryForwarder_init() internal initializer { __RegistryForwarder_init_unchained(); } // solhint-disable-next-line func-name-mixedcase function __RegistryForwarder_init_unchained() internal initializer { __EIP712_init_unchained('RegistryForwarder', '0.0.1'); } /* * 0x23b872dd == bytes4(keccak256('transferFrom(address,address,uint256)')) */ function transferFromFor( address from, address to, uint256 tokenId, bytes calldata signature ) external { _executeFor(abi.encodeWithSelector(0x23b872dd, from, to, tokenId), tokenId, signature); } /* * 0x42842e0e == bytes4(keccak256('safeTransferFrom(address,address,uint256)')) */ function safeTransferFromFor( address from, address to, uint256 tokenId, bytes calldata signature ) external { _executeFor(abi.encodeWithSelector(0x42842e0e, from, to, tokenId), tokenId, signature); } /* * 0xb88d4fde == bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) */ function safeTransferFromFor( address from, address to, uint256 tokenId, bytes calldata data, bytes calldata signature ) external { _executeFor(abi.encodeWithSelector(0xb88d4fde, from, to, tokenId, data), tokenId, signature); } /* * 0x42966c68 == bytes4(keccak256('burn(uint256)')) */ function burnFor(uint256 tokenId, bytes calldata signature) external { _executeFor(abi.encodeWithSelector(0x42966c68, tokenId), tokenId, signature); } /* * 0x310bd74b == bytes4(keccak256('reset(uint256)')) */ function resetFor(uint256 tokenId, bytes calldata signature) external { _executeFor(abi.encodeWithSelector(0x310bd74b, tokenId), tokenId, signature); } /* * 0x47c81699 == bytes4(keccak256('set(string,string,uint256)')) */ function setFor( string calldata key, string calldata value, uint256 tokenId, bytes calldata signature ) external { _executeFor(abi.encodeWithSelector(0x47c81699, key, value, tokenId), tokenId, signature); } /* * 0xce92b33e == bytes4(keccak256('setMany(string[],string[],uint256)')) */ function setManyFor( string[] calldata keys, string[] calldata values, uint256 tokenId, bytes calldata signature ) external { _executeFor(abi.encodeWithSelector(0xce92b33e, keys, values, tokenId), tokenId, signature); } /* * 0xec129eea == bytes4(keccak256('reconfigure(string[],string[],uint256)')) */ function reconfigureFor( string[] calldata keys, string[] calldata values, uint256 tokenId, bytes calldata signature ) public { _executeFor(abi.encodeWithSelector(0xec129eea, keys, values, tokenId), tokenId, signature); } function nonceOf(uint256 tokenId) public view returns (uint256) { return _nonces[tokenId]; } function verify(ForwardRequest calldata req, bytes calldata signature) public view returns (bool) { address signer = _hashTypedDataV4( keccak256(abi.encode(_TYPEHASH, req.from, req.gas, req.tokenId, req.nonce, keccak256(req.data))) ) .recover(signature); return _nonces[req.tokenId] == req.nonce && signer == req.from; } function execute(ForwardRequest calldata req, bytes calldata signature) public returns (bool, bytes memory) { require(verify(req, signature), 'RegistryForwarder: SIGNATURE_INVALID'); _nonces[req.tokenId] = req.nonce + 1; // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(this).call{gas: req.gas}(abi.encodePacked(req.data, req.from, req.tokenId)); // Validate that the relayer has sent enough gas for the call. // See https://ronan.eth.link/blog/ethereum-gas-dangers/ assert(gasleft() > req.gas / 63); return (success, returndata); } function _recover( bytes32 digest, uint256 tokenId, bytes memory signature ) internal returns (address signer) { signer = keccak256(abi.encodePacked(digest, address(this), _nonces[tokenId])).toEthSignedMessageHash().recover( signature ); _invalidateNonce(tokenId); } function _invalidateNonce(uint256 tokenId) internal { _nonces[tokenId] = _nonces[tokenId] + 1; } function _executeFor( bytes memory data, uint256 tokenId, bytes memory signature ) private returns (bytes memory) { uint256 gas = gasleft(); address from = _recover(keccak256(data), tokenId, signature); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(this).call{gas: gas}(abi.encodePacked(data, from, tokenId)); // Validate that the relayer has sent enough gas for the call. // See https://ronan.eth.link/blog/ethereum-gas-dangers/ assert(gasleft() > gas / 63); return _verifyCallResult(success, returndata, 'RegistryForwarder: CALL_FAILED'); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } uint256[50] private __gap; }
// 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 String operations. */ library StringsUpgradeable { bytes16 private constant alphabet = "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] = alphabet[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); }
// @author Unstoppable Domains, Inc. // @date June 16th, 2021 pragma solidity ^0.8.0; import './IRecordReader.sol'; interface IRecordStorage is IRecordReader { event Set(uint256 indexed tokenId, string indexed keyIndex, string indexed valueIndex, string key, string value); event NewKey(uint256 indexed tokenId, string indexed keyIndex, string key); event ResetRecords(uint256 indexed tokenId); /** * @dev Set record by key * @param key The key set the value of * @param value The value to set key to * @param tokenId ERC-721 token id to set */ function set( string calldata key, string calldata value, uint256 tokenId ) external; /** * @dev Set records by keys * @param keys The keys set the values of * @param values Records values * @param tokenId ERC-721 token id of the domain */ function setMany( string[] memory keys, string[] memory values, uint256 tokenId ) external; /** * @dev Set record by key hash * @param keyHash The key hash set the value of * @param value The value to set key to * @param tokenId ERC-721 token id to set */ function setByHash( uint256 keyHash, string calldata value, uint256 tokenId ) external; /** * @dev Set records by key hashes * @param keyHashes The key hashes set the values of * @param values Records values * @param tokenId ERC-721 token id of the domain */ function setManyByHash( uint256[] calldata keyHashes, string[] calldata values, uint256 tokenId ) external; /** * @dev Reset all domain records and set new ones * @param keys New record keys * @param values New record values * @param tokenId ERC-721 token id of the domain */ function reconfigure( string[] memory keys, string[] memory values, uint256 tokenId ) external; /** * @dev Function to reset all existing records on a domain. * @param tokenId ERC-721 token id to set. */ function reset(uint256 tokenId) external; }
// @author Unstoppable Domains, Inc. // @date June 16th, 2021 pragma solidity ^0.8.0; interface IRecordReader { /** * @dev Function to get record. * @param key The key to query the value of. * @param tokenId The token id to fetch. * @return The value string. */ function get(string calldata key, uint256 tokenId) external view returns (string memory); /** * @dev Function to get multiple record. * @param keys The keys to query the value of. * @param tokenId The token id to fetch. * @return The values. */ function getMany(string[] calldata keys, uint256 tokenId) external view returns (string[] memory); /** * @dev Function get value by provied key hash. * @param keyHash The key to query the value of. * @param tokenId The token id to set. */ function getByHash(uint256 keyHash, uint256 tokenId) external view returns (string memory key, string memory value); /** * @dev Function get values by provied key hashes. * @param keyHashes The key to query the value of. * @param tokenId The token id to set. */ function getManyByHash(uint256[] calldata keyHashes, uint256 tokenId) external view returns (string[] memory keys, string[] memory values); }
// @author Unstoppable Domains, Inc. // @date June 16th, 2021 pragma solidity ^0.8.0; abstract contract KeyStorage { mapping(uint256 => string) private _keys; function getKey(uint256 keyHash) public view returns (string memory) { return _keys[keyHash]; } function getKeys(uint256[] calldata hashes) public view returns (string[] memory values) { values = new string[](hashes.length); for (uint256 i = 0; i < hashes.length; i++) { values[i] = getKey(hashes[i]); } } function addKey(string memory key) external { _addKey(uint256(keccak256(abi.encodePacked(key))), key); } function _existsKey(uint256 keyHash) internal view returns (bool) { return bytes(_keys[keyHash]).length > 0; } function _addKey(uint256 keyHash, string memory key) internal { if (!_existsKey(keyHash)) { _keys[keyHash] = key; } } }
// 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 { /** * @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) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // 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) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @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) { // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @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 "./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 name, bytes32 version) private view returns (bytes32) { return keccak256( abi.encode( typeHash, name, version, 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; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"string","name":"keyIndex","type":"string"},{"indexed":false,"internalType":"string","name":"key","type":"string"}],"name":"NewKey","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"NewURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"prefix","type":"string"}],"name":"NewURIPrefix","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ResetRecords","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"string","name":"keyIndex","type":"string"},{"indexed":true,"internalType":"string","name":"valueIndex","type":"string"},{"indexed":false,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"string","name":"value","type":"string"}],"name":"Set","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"}],"name":"addKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"burnFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"label","type":"string"}],"name":"childIdOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct RegistryForwarder.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"get","outputs":[{"internalType":"string","name":"value","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"keyHash","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getByHash","outputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"string","name":"value","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"keyHash","type":"uint256"}],"name":"getKey","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"hashes","type":"uint256[]"}],"name":"getKeys","outputs":[{"internalType":"string[]","name":"values","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMany","outputs":[{"internalType":"string[]","name":"values","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"keyHashes","type":"uint256[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getManyByHash","outputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"mintingManager","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"}],"name":"mintWithRecords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"nonceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"reconfigure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"reconfigureFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"reset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"resetFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resolverOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"}],"name":"safeMintWithRecords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeMintWithRecords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"safeTransferFromFor","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":"signature","type":"bytes"}],"name":"safeTransferFromFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"string","name":"value","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"set","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":"uint256","name":"keyHash","type":"uint256"},{"internalType":"string","name":"value","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setByHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"string","name":"value","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"setFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"keyHashes","type":"uint256[]"},{"internalType":"string[]","name":"values","type":"string[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setManyByHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"keys","type":"string[]"},{"internalType":"string[]","name":"values","type":"string[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"setManyFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"transferFromFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct RegistryForwarder.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50614b12806100206000396000f3fe608060405234801561001057600080fd5b506004361061035d5760003560e01c806370a08231116101d3578063bb5b27e111610104578063e985e9c5116100a2578063ef2c30881161007c578063ef2c308814610775578063efda4d3e14610788578063f5c1f76e1461079b578063ffa1ad74146107ae5761035d565b8063e985e9c514610747578063ebf0c7171461075a578063ec129eea146107625761035d565b8063c87b56dd116100de578063c87b56dd146106fb578063cd279c7c1461070e578063ce92b33e14610721578063d3fc9864146107345761035d565b8063bb5b27e1146106c2578063c4d66de8146106d5578063c5974073146106e85761035d565b8063ab3b87fe11610171578063b55bc6171161014b578063b55bc61714610668578063b85afd281461067b578063b87abc111461069c578063b88d4fde146106af5761035d565b8063ab3b87fe1461062f578063b0f5917714610642578063b3f9e4cb146106555761035d565b806399e0dd7c116101ad57806399e0dd7c146105ee578063a22cb46514610601578063a3557e6c14610614578063a3f4df7e146106275761035d565b806370a08231146105c05780638f69c188146105d357806395d89b41146105e65761035d565b806342966c68116102ad578063572b6c051161024b578063672b9f8111610225578063672b9f811461055957806368b62d321461057a5780636ccbae5f1461059a5780636debcb8d146105ad5761035d565b8063572b6c051461052057806361603dd9146105335780636352211e146105465761035d565b806347c816991161028757806347c81699146104d45780634a72584d146104e75780634f558e79146104fa57806350382c1a1461050d5761035d565b806342966c681461049b578063430c2081146104ae5780634348b562146104c15761035d565b80631bd8cc1a1161031a57806327f18975116102f457806327f189751461044f578063280d9b0514610462578063310bd74b1461047557806342842e0e146104885761035d565b80631bd8cc1a146104095780631be5e7ed1461042957806323b872dd1461043c5761035d565b806301ffc9a71461036257806306fdde031461038b578063081812fc146103a0578063095ea7b3146103c05780631796e180146103d5578063185be4e5146103e8575b600080fd5b610375610370366004613ba9565b6107b6565b6040516103829190614208565b60405180910390f35b6103936107c9565b60405161038291906142e4565b6103b36103ae366004613db8565b61085c565b60405161038291906140ec565b6103d36103ce3660046137ae565b6108a8565b005b6103756103e3366004613d4c565b6108f5565b6103fb6103f6366004613d4c565b610a1a565b604051610382929190614213565b61041c610417366004613b2d565b610b41565b60405161038291906141d0565b610393610437366004613cd2565b610c61565b6103d361044a3660046135be565b610cac565b6103d361045d366004613a3e565b610d33565b6103d3610470366004613665565b610daf565b6103d3610483366004613db8565b610e43565b6103d36104963660046135be565b610eb2565b6103d36104a9366004613db8565b610ecd565b6103756104bc3660046137ae565b610f45565b6103d36104cf36600461382e565b610f51565b6103d36104e2366004613c14565b610fac565b6103d36104f5366004613e0c565b61101f565b610375610508366004613db8565b611099565b6103d361051b366004613d07565b6110a4565b61037561052e36600461357b565b6110da565b6103d3610541366004613dd0565b6110eb565b6103b3610554366004613db8565b611173565b61056c610567366004613e5c565b6111a8565b6040516103829291906142f7565b61058d610588366004613dd0565b6111c0565b60405161038291906140d5565b61058d6105a8366004613db8565b611202565b6103d36105bb3660046135f9565b611215565b61058d6105ce36600461357b565b611232565b6103d36105e1366004613aae565b611276565b610393611297565b6103d36105fc366004613be1565b6112a6565b6103d361060f366004613774565b61132c565b6103d3610622366004613aae565b6113fa565b61039361141b565b6103d361063d3660046137ae565b611444565b6103d361065036600461382e565b6114bd565b6103b3610663366004613db8565b611546565b6103d36106763660046139b8565b611563565b61068e610689366004613b2d565b611613565b6040516103829291906141e3565b6103d36106aa366004613dd0565b61177b565b6103d36106bd3660046136fc565b611794565b6103936106d0366004613db8565b61180f565b6103d36106e336600461357b565b6118b1565b6103d36106f6366004613c72565b61199f565b610393610709366004613db8565b6119c0565b6103d361071c3660046137d7565b611a42565b6103d361072f366004613a3e565b611acc565b6103d36107423660046137d7565b611b3f565b610375610755366004613595565b611bbb565b61058d611be9565b6103d3610770366004613a3e565b611bee565b6103d36107833660046135f9565b611c61565b6103d36107963660046138dd565b611c7e565b61041c6107a9366004613b76565b611d0c565b610393611de9565b60006107c182611e0a565b90505b919050565b6060606580546107d890614a1a565b80601f016020809104026020016040519081016040528092919081815260200182805461080490614a1a565b80156108515780601f1061082657610100808354040283529160200191610851565b820191906000526020600020905b81548152906001019060200180831161083457829003601f168201915b505050505090505b90565b600061086782611e4a565b61088c5760405162461bcd60e51b8152600401610883906147cf565b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b806108b2336110da565b156108dd576108bf611e67565b81146108dd5760405162461bcd60e51b8152600401610883906145e3565b6108e681611e81565b6108f08383611eaf565b505050565b6000806109ca84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109c492507fbef6336eb668d2978cbfbc9a9c0885fa2ceac0ff0081fb58b62c67b4282cbc8a9150610965905060208a018a61357b565b60208a013560408b013560608c013561098160808e018e614967565b60405161098f929190613fc6565b6040519081900381206109a996959493929160200161422e565b60405160208183030381529060405280519060200120611f42565b90611f55565b604080870135600090815261010060205220549091506060860135148015610a0f57506109fa602086018661357b565b6001600160a01b0316816001600160a01b0316145b9150505b9392505050565b60006060610a298585856108f5565b610a455760405162461bcd60e51b815260040161088390614923565b610a54606086013560016149ab565b604080870135600090815261010060209081529181209290925581903090880135610a8260808a018a614967565b610a8f60208c018c61357b565b8b60400135604051602001610aa79493929190613fd6565b60408051601f1981840301815290829052610ac191614004565b60006040518083038160008787f1925050503d8060008114610aff576040519150601f19603f3d011682016040523d82523d6000602084013e610b04565b606091505b509092509050610b19603f60208901356149c3565b5a11610b3557634e487b7160e01b600052600160045260246000fd5b90969095509350505050565b6060826001600160401b03811115610b6957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610b9c57816020015b6060815260200190600190039081610b875790505b50905060005b83811015610c5957610c1b858583818110610bcd57634e487b7160e01b600052603260045260246000fd5b9050602002810190610bdf9190614967565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250611fdb915050565b828281518110610c3b57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610c5190614a55565b915050610ba2565b509392505050565b6060610ca484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869250611fdb915050565b949350505050565b80610cbe610cb8612010565b8261201f565b610cda5760405162461bcd60e51b81526004016108839061438a565b81610ce4336110da565b15610d0f57610cf1611e67565b8114610d0f5760405162461bcd60e51b8152600401610883906145e3565b610d1881611e81565b610d218361209c565b610d2c858585612107565b5050505050565b80610d3f610cb8612010565b610d5b5760405162461bcd60e51b81526004016108839061438a565b81610d65336110da565b15610d9057610d72611e67565b8114610d905760405162461bcd60e51b8152600401610883906145e3565b610d9981611e81565b610da68787878787612234565b50505050505050565b610e3963b88d4fde8888888888604051602401610dd0959493929190614124565b6040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050508684848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122b392505050565b5050505050505050565b80610e4f610cb8612010565b610e6b5760405162461bcd60e51b81526004016108839061438a565b81610e75336110da565b15610ea057610e82611e67565b8114610ea05760405162461bcd60e51b8152600401610883906145e3565b610ea981611e81565b6108f08361209c565b6108f083838360405180602001604052806000815250611794565b80610ed9610cb8612010565b610ef55760405162461bcd60e51b81526004016108839061438a565b81610eff336110da565b15610f2a57610f0c611e67565b8114610f2a5760405162461bcd60e51b8152600401610883906145e3565b610f3381611e81565b610f3c8361209c565b6108f0836123c9565b6000610a13838361201f565b610134546001600160a01b0316610f66612010565b6001600160a01b031614610f8c5760405162461bcd60e51b815260040161088390614550565b610e39888888888888888860405180602001604052806000815250612470565b80610fb8610cb8612010565b610fd45760405162461bcd60e51b81526004016108839061438a565b81610fde336110da565b1561100957610feb611e67565b81146110095760405162461bcd60e51b8152600401610883906145e3565b61101281611e81565b610da687878787876124cb565b8061102b610cb8612010565b6110475760405162461bcd60e51b81526004016108839061438a565b81611051336110da565b1561107c5761105e611e67565b811461107c5760405162461bcd60e51b8152600401610883906145e3565b61108581611e81565b611091868686866125aa565b505050505050565b60006107c182611e4a565b6110d7816040516020016110b89190614004565b6040516020818303038152906040528051906020012060001c8261261a565b50565b6001600160a01b0381163014919050565b61116d6342966c688460405160240161110491906140d5565b6040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050508484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122b392505050565b50505050565b6000818152606760205260408120546001600160a01b0316806107c15760405162461bcd60e51b8152600401610883906146c1565b6060806111b58484612646565b909590945092505050565b6000610ca48484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061266792505050565b6000908152610100602052604090205490565b6110916342842e0e86868660405160240161110493929190614100565b60006001600160a01b03821661125a5760405162461bcd60e51b815260040161088390614677565b506001600160a01b031660009081526068602052604090205490565b610e3963ce92b33e8888888888604051602401611104959493929190614196565b6060606680546107d890614a1a565b610134546001600160a01b03166112bb612010565b6001600160a01b0316146112e15760405162461bcd60e51b815260040161088390614550565b6112ee6101338383613365565b507f4b120d6a959a84a520fa48f5f937cca0e79129423487af7901213b5d2e89313b82826040516113209291906142a9565b60405180910390a15050565b611334612010565b6001600160a01b0316826001600160a01b031614156113655760405162461bcd60e51b8152600401610883906144d7565b80606a6000611372612010565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556113b6612010565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113ee9190614208565b60405180910390a35050565b610e3963ec129eea8888888888604051602401611104959493929190614196565b6040518060400160405280600d81526020016c554e533a20526567697374727960981b81525081565b80611450610cb8612010565b61146c5760405162461bcd60e51b81526004016108839061438a565b81611476336110da565b156114a157611483611e67565b81146114a15760405162461bcd60e51b8152600401610883906145e3565b6114aa81611e81565b61116d6114b684611173565b8585612107565b610134546001600160a01b03166114d2612010565b6001600160a01b0316146114f85760405162461bcd60e51b815260040161088390614550565b611539888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126e392505050565b610e39848484848b61272a565b600061155182611e4a565b61155c5760006107c1565b5030919050565b610134546001600160a01b0316611578612010565b6001600160a01b03161461159e5760405162461bcd60e51b815260040161088390614550565b611091868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a0181900481028201810190925288815292508891508790819084018382808284376000920191909152506127b492505050565b606080836001600160401b0381111561163c57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561166f57816020015b606081526020019060019003908161165a5790505b509150836001600160401b0381111561169857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156116cb57816020015b60608152602001906001900390816116b65790505b50905060005b84811015611772576117098686838181106116fc57634e487b7160e01b600052603260045260246000fd5b9050602002013585612646565b84838151811061172957634e487b7160e01b600052603260045260246000fd5b6020026020010184848151811061175057634e487b7160e01b600052603260045260246000fd5b602002602001018290528290525050808061176a90614a55565b9150506116d1565b50935093915050565b61116d63310bd74b8460405160240161110491906140d5565b816117a0610cb8612010565b6117bc5760405162461bcd60e51b81526004016108839061438a565b826117c6336110da565b156117f1576117d3611e67565b81146117f15760405162461bcd60e51b8152600401610883906145e3565b6117fa81611e81565b6118038461209c565b611091868686866127fd565b600081815260c96020526040902080546060919061182c90614a1a565b80601f016020809104026020016040519081016040528092919081815260200182805461185890614a1a565b80156118a55780601f1061187a576101008083540402835291602001916118a5565b820191906000526020600020905b81548152906001019060200180831161188857829003601f168201915b50505050509050919050565b600054610100900460ff16806118ca575060005460ff16155b6118e65760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff16158015611911576000805460ff1961ff0019909116610100171660011790555b61013480546001600160a01b0319166001600160a01b0384161790556040805180820182526013815272556e73746f707061626c6520446f6d61696e7360681b60208083019190915282518084019093526002835261155160f21b9083015261197991612830565b6119816128ce565b611989612942565b801561199b576000805461ff00191690555b5050565b610e396347c8169988888888886040516024016111049594939291906142bd565b60606119cb82611e4a565b6119e75760405162461bcd60e51b815260040161088390614864565b60006119f16129f2565b90506000815111611a115760405180602001604052806000815250610a13565b80611a1b84612a02565b604051602001611a2c92919061405a565b6040516020818303038152906040529392505050565b610134546001600160a01b0316611a57612010565b6001600160a01b031614611a7d5760405162461bcd60e51b815260040161088390614550565b61116d848484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250604080516020810190915290815292506127b4915050565b80611ad8610cb8612010565b611af45760405162461bcd60e51b81526004016108839061438a565b81611afe336110da565b15611b2957611b0b611e67565b8114611b295760405162461bcd60e51b8152600401610883906145e3565b611b3281611e81565b610da6878787878761272a565b610134546001600160a01b0316611b54612010565b6001600160a01b031614611b7a5760405162461bcd60e51b815260040161088390614550565b61116d848484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126e392505050565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b600090565b80611bfa610cb8612010565b611c165760405162461bcd60e51b81526004016108839061438a565b81611c20336110da565b15611c4b57611c2d611e67565b8114611c4b5760405162461bcd60e51b8152600401610883906145e3565b611c5481611e81565b610da68787878787612b1c565b6110916323b872dd86868660405160240161110493929190614100565b610134546001600160a01b0316611c93612010565b6001600160a01b031614611cb95760405162461bcd60e51b815260040161088390614550565b611d008a8a8a8a8a8a8a8a8a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061247092505050565b50505050505050505050565b6060816001600160401b03811115611d3457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611d6757816020015b6060815260200190600190039081611d525790505b50905060005b82811015611de257611da4848483818110611d9857634e487b7160e01b600052603260045260246000fd5b9050602002013561180f565b828281518110611dc457634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080611dda90614a55565b915050611d6d565b5092915050565b604051806040016040528060058152602001640302e312e360dc1b81525081565b60006001600160e01b031982166380ac58cd60e01b1480611e3b57506001600160e01b03198216635b5e139f60e01b145b806107c157506107c182612b32565b6000908152606760205260409020546001600160a01b0316151590565b6000611e72336110da565b156108595750601f1936013590565b60008181526101006020526040902054611e9c9060016149ab565b6000918252610100602052604090912055565b6000611eba82611173565b9050806001600160a01b0316836001600160a01b03161415611eee5760405162461bcd60e51b8152600401610883906148b3565b806001600160a01b0316611f00612010565b6001600160a01b03161480611f1c5750611f1c81610755612010565b611f385760405162461bcd60e51b81526004016108839061461a565b6108f08383612b4b565b60006107c1611f4f612bb9565b83612bf4565b600080600080845160411415611f7f5750505060208201516040830151606084015160001a611fc5565b845160401415611fad5750505060408201516020830151906001600160ff1b0381169060ff1c601b01611fc5565b60405162461bcd60e51b815260040161088390614353565b611fd186828585612c27565b9695505050505050565b6060610a1383604051602001611ff19190614004565b6040516020818303038152906040528051906020012060001c83612d1d565b600061201a612ddc565b905090565b600061202a82611e4a565b6120465760405162461bcd60e51b815260040161088390614597565b600061205183611173565b9050806001600160a01b0316846001600160a01b0316148061208c5750836001600160a01b03166120818461085c565b6001600160a01b0316145b80610ca45750610ca48185611bbb565b6120a581612e0a565b6040516020016120b591906140d5565b60408051601f198184030181528282528051602091820120600085815260cb9092529181209190915582917f185c30856dadb58bf097c1f665a52ada7029752dbcad008ea3fefc73bee8c9fe9190a250565b826001600160a01b031661211a82611173565b6001600160a01b0316146121405760405162461bcd60e51b81526004016108839061481b565b6001600160a01b0382166121665760405162461bcd60e51b815260040161088390614493565b6121718383836108f0565b61217c600082612b4b565b6001600160a01b03831660009081526068602052604081208054600192906121a59084906149d7565b90915550506001600160a01b03821660009081526068602052604081208054600192906121d39084906149ab565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b84811015611091576122a186868381811061226257634e487b7160e01b600052603260045260246000fd5b9050602002013585858481811061228957634e487b7160e01b600052603260045260246000fd5b905060200281019061229b9190614967565b856125aa565b806122ab81614a55565b915050612237565b606060005a905060006122ce86805190602001208686612e36565b9050600080306001600160a01b03168489858a6040516020016122f393929190614020565b60408051601f198184030181529082905261230d91614004565b60006040518083038160008787f1925050503d806000811461234b576040519150601f19603f3d011682016040523d82523d6000602084013e612350565b606091505b509092509050612361603f856149c3565b5a1161237d57634e487b7160e01b600052600160045260246000fd5b6123bd82826040518060400160405280601e81526020017f5265676973747279466f727761726465723a2043414c4c5f4641494c45440000815250612e8e565b98975050505050505050565b60006123d482611173565b90506123e2816000846108f0565b6123ed600083612b4b565b6001600160a01b03811660009081526068602052604081208054600192906124169084906149d7565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6124b3898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792506127b4915050565b6124c0858585858c61272a565b505050505050505050565b600085856040516020016124e0929190613fc6565b60408051601f198184030181528282528051602091820120601f8901829004820284018201909252878352909250612534918391899089908190840183828082843760009201919091525061261a92505050565b6110918187878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b018190048102820181019092528981529250899150889081908401838280828437600092019190915250889250612ec7915050565b6125b384613002565b6125cf5760405162461bcd60e51b815260040161088390614425565b61116d846125dc8661180f565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250612ec7915050565b61262382613002565b61199b57600082815260c96020908152604090912082516108f0928401906133e5565b6060806126528461180f565b915061265e8484612d1d565b90509250929050565b600081516000141561268b5760405162461bcd60e51b8152600401610883906148f4565b828260405160200161269d9190614004565b604051602081830303815290604052805190602001206040516020016126c49291906140de565b60408051601f1981840301815291905280516020909101209392505050565b6126ed8383613028565b817fc5beef08f693b11c316c0c8394a377a0033c9cf701b8cd8afd79cecef60c39528260405161271d91906142e4565b60405180910390a2505050565b60005b84811015611091576127a286868381811061275857634e487b7160e01b600052603260045260246000fd5b905060200281019061276a9190614967565b86868581811061278a57634e487b7160e01b600052603260045260246000fd5b905060200281019061279c9190614967565b866124cb565b806127ac81614a55565b91505061272d565b6127bf848483613107565b827fc5beef08f693b11c316c0c8394a377a0033c9cf701b8cd8afd79cecef60c3952836040516127ef91906142e4565b60405180910390a250505050565b612808848484612107565b6128148484848461313a565b61116d5760405162461bcd60e51b8152600401610883906143d3565b600054610100900460ff1680612849575060005460ff16155b6128655760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff16158015612890576000805460ff1961ff0019909116610100171660011790555b82516128a39060659060208601906133e5565b5081516128b79060669060208501906133e5565b5080156108f0576000805461ff0019169055505050565b600054610100900460ff16806128e7575060005460ff16155b6129035760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff1615801561292e576000805460ff1961ff0019909116610100171660011790555b80156110d7576000805461ff001916905550565b600054610100900460ff168061295b575060005460ff16155b6129775760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff161580156129a2576000805460ff1961ff0019909116610100171660011790555b61292e604051806040016040528060118152602001702932b3b4b9ba393ca337b93bb0b93232b960791b81525060405180604001604052806005815260200164302e302e3160d81b815250613252565b606061013380546107d890614a1a565b606081612a2757506040805180820190915260018152600360fc1b60208201526107c4565b8160005b8115612a515780612a3b81614a55565b9150612a4a9050600a836149c3565b9150612a2b565b6000816001600160401b03811115612a7957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aa3576020820181803683370190505b5090505b8415610ca457612ab86001836149d7565b9150612ac5600a86614a70565b612ad09060306149ab565b60f81b818381518110612af357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b15600a866149c3565b9450612aa7565b612b258161209c565b610d2c858585858561272a565b6001600160e01b031981166301ffc9a760e01b14919050565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b8082611173565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061201a7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612be76132e5565b612bef6132eb565b6132f1565b60008282604051602001612c099291906140ba565b60405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612c695760405162461bcd60e51b81526004016108839061450e565b8360ff16601b1480612c7e57508360ff16601c145b612c9a5760405162461bcd60e51b815260040161088390614758565b600060018686868660405160008152602001604052604051612cbf949392919061428b565b6020604051602081039080840390855afa158015612ce1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612d145760405162461bcd60e51b81526004016108839061431c565b95945050505050565b606060ca6000612d2c84612e0a565b815260200190815260200160002060008481526020019081526020016000208054612d5690614a1a565b80601f0160208091040260200160405190810160405280929190818152602001828054612d8290614a1a565b8015612dcf5780601f10612da457610100808354040283529160200191612dcf565b820191906000526020600020905b815481529060010190602001808311612db257829003601f168201915b5050505050905092915050565b6000612de7336110da565b15612dfb575060331936013560601c610859565b612e0361332b565b9050610859565b600081815260cb602052604081205415612e3257600082815260cb60205260409020546107c1565b5090565b6000612e83826109c48630610100600089815260200190815260200160002054604051602001612e6893929190613fa3565b6040516020818303038152906040528051906020012061332f565b9050610a1383611e81565b60608315612e9d575081610a13565b825115612ead5782518084602001fd5b8160405162461bcd60e51b815260040161088391906142e4565b60ca6000612ed483612e0a565b815260200190815260200160002060008581526020019081526020016000208054612efe90614a1a565b15159050612f555782604051612f149190614004565b6040518091039020817f7ae4f661958fbecc2f77be6b0eb280d2a6f604b29e1e7221c82b9da0c4af7f8685604051612f4c91906142e4565b60405180910390a35b8160ca6000612f6384612e0a565b815260200190815260200160002060008681526020019081526020016000209080519060200190612f959291906133e5565b5081604051612fa49190614004565b604051809103902083604051612fba9190614004565b6040518091039020827f851ffe8e74d5015261dba0a1f9e1b0e5d42c5af5d2ad1908fee897c7d80a0d928686604051612ff49291906142f7565b60405180910390a450505050565b600081815260c960205260408120805482919061301e90614a1a565b9050119050919050565b6001600160a01b03821661304e5760405162461bcd60e51b81526004016108839061479a565b61305781611e4a565b156130745760405162461bcd60e51b81526004016108839061445c565b613080600083836108f0565b6001600160a01b03821660009081526068602052604081208054600192906130a99084906149ab565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6131118383613028565b61311e600084848461313a565b6108f05760405162461bcd60e51b8152600401610883906143d3565b600061314e846001600160a01b031661335f565b1561324a57836001600160a01b031663150b7a0261316a612010565b8786866040518563ffffffff1660e01b815260040161318c9493929190614163565b602060405180830381600087803b1580156131a657600080fd5b505af19250505080156131d6575060408051601f3d908101601f191682019092526131d391810190613bc5565b60015b613230573d808015613204576040519150601f19603f3d011682016040523d82523d6000602084013e613209565b606091505b5080516132285760405162461bcd60e51b8152600401610883906143d3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ca4565b506001610ca4565b600054610100900460ff168061326b575060005460ff16155b6132875760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff161580156132b2576000805460ff1961ff0019909116610100171660011790555b825160208085019190912083519184019190912060cc9190915560cd5580156108f0576000805461ff0019169055505050565b60cc5490565b60cd5490565b6000838383463060405160200161330c95949392919061425f565b6040516020818303038152906040528051906020012090509392505050565b3390565b6000816040516020016133429190614089565b604051602081830303815290604052805190602001209050919050565b3b151590565b82805461337190614a1a565b90600052602060002090601f01602090048101928261339357600085556133d9565b82601f106133ac5782800160ff198235161785556133d9565b828001600101855582156133d9579182015b828111156133d95782358255916020019190600101906133be565b50612e32929150613459565b8280546133f190614a1a565b90600052602060002090601f01602090048101928261341357600085556133d9565b82601f1061342c57805160ff19168380011785556133d9565b828001600101855582156133d9579182015b828111156133d957825182559160200191906001019061343e565b5b80821115612e32576000815560010161345a565b60006001600160401b038084111561348857613488614ab0565b604051601f8501601f1916810160200182811182821017156134ac576134ac614ab0565b6040528481529150818385018610156134c457600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146107c457600080fd5b60008083601f840112613505578081fd5b5081356001600160401b0381111561351b578182fd5b602083019150836020808302850101111561353557600080fd5b9250929050565b60008083601f84011261354d578182fd5b5081356001600160401b03811115613563578182fd5b60208301915083602082850101111561353557600080fd5b60006020828403121561358c578081fd5b610a13826134dd565b600080604083850312156135a7578081fd5b6135b0836134dd565b915061265e602084016134dd565b6000806000606084860312156135d2578081fd5b6135db846134dd565b92506135e9602085016134dd565b9150604084013590509250925092565b600080600080600060808688031215613610578081fd5b613619866134dd565b9450613627602087016134dd565b93506040860135925060608601356001600160401b03811115613648578182fd5b6136548882890161353c565b969995985093965092949392505050565b600080600080600080600060a0888a03121561367f578182fd5b613688886134dd565b9650613696602089016134dd565b95506040880135945060608801356001600160401b03808211156136b8578384fd5b6136c48b838c0161353c565b909650945060808a01359150808211156136dc578384fd5b506136e98a828b0161353c565b989b979a50959850939692959293505050565b60008060008060808587031215613711578384fd5b61371a856134dd565b9350613728602086016134dd565b92506040850135915060608501356001600160401b03811115613749578182fd5b8501601f81018713613759578182fd5b6137688782356020840161346e565b91505092959194509250565b60008060408385031215613786578182fd5b61378f836134dd565b9150602083013580151581146137a3578182fd5b809150509250929050565b600080604083850312156137c0578182fd5b6137c9836134dd565b946020939093013593505050565b600080600080606085870312156137ec578182fd5b6137f5856134dd565b93506020850135925060408501356001600160401b03811115613816578283fd5b6138228782880161353c565b95989497509550505050565b60008060008060008060008060a0898b031215613849578182fd5b613852896134dd565b97506020890135965060408901356001600160401b0380821115613874578384fd5b6138808c838d0161353c565b909850965060608b0135915080821115613898578384fd5b6138a48c838d016134f4565b909650945060808b01359150808211156138bc578384fd5b506138c98b828c016134f4565b999c989b5096995094979396929594505050565b60008060008060008060008060008060c08b8d0312156138fb578384fd5b6139048b6134dd565b995060208b0135985060408b01356001600160401b0380821115613926578586fd5b6139328e838f0161353c565b909a50985060608d013591508082111561394a578586fd5b6139568e838f016134f4565b909850965060808d013591508082111561396e578586fd5b61397a8e838f016134f4565b909650945060a08d0135915080821115613992578384fd5b5061399f8d828e0161353c565b915080935050809150509295989b9194979a5092959850565b600080600080600080608087890312156139d0578384fd5b6139d9876134dd565b95506020870135945060408701356001600160401b03808211156139fb578586fd5b613a078a838b0161353c565b90965094506060890135915080821115613a1f578384fd5b50613a2c89828a0161353c565b979a9699509497509295939492505050565b600080600080600060608688031215613a55578283fd5b85356001600160401b0380821115613a6b578485fd5b613a7789838a016134f4565b90975095506020880135915080821115613a8f578485fd5b50613a9c888289016134f4565b96999598509660400135949350505050565b60008060008060008060006080888a031215613ac8578081fd5b87356001600160401b0380821115613ade578283fd5b613aea8b838c016134f4565b909950975060208a0135915080821115613b02578283fd5b613b0e8b838c016134f4565b909750955060408a0135945060608a01359150808211156136dc578283fd5b600080600060408486031215613b41578081fd5b83356001600160401b03811115613b56578182fd5b613b62868287016134f4565b909790965060209590950135949350505050565b60008060208385031215613b88578182fd5b82356001600160401b03811115613b9d578283fd5b610b35858286016134f4565b600060208284031215613bba578081fd5b8135610a1381614ac6565b600060208284031215613bd6578081fd5b8151610a1381614ac6565b60008060208385031215613bf3578182fd5b82356001600160401b03811115613c08578283fd5b610b358582860161353c565b600080600080600060608688031215613c2b578283fd5b85356001600160401b0380821115613c41578485fd5b613c4d89838a0161353c565b90975095506020880135915080821115613c65578485fd5b50613a9c8882890161353c565b60008060008060008060006080888a031215613c8c578081fd5b87356001600160401b0380821115613ca2578283fd5b613cae8b838c0161353c565b909950975060208a0135915080821115613cc6578283fd5b613b0e8b838c0161353c565b600080600060408486031215613ce6578081fd5b83356001600160401b03811115613cfb578182fd5b613b628682870161353c565b600060208284031215613d18578081fd5b81356001600160401b03811115613d2d578182fd5b8201601f81018413613d3d578182fd5b610ca48482356020840161346e565b600080600060408486031215613d60578081fd5b83356001600160401b0380821115613d76578283fd5b9085019060a08288031215613d89578283fd5b90935060208501359080821115613d9e578283fd5b50613dab8682870161353c565b9497909650939450505050565b600060208284031215613dc9578081fd5b5035919050565b600080600060408486031215613de4578081fd5b8335925060208401356001600160401b03811115613e00578182fd5b613dab8682870161353c565b60008060008060608587031215613e21578182fd5b8435935060208501356001600160401b03811115613e3d578283fd5b613e498782880161353c565b9598909750949560400135949350505050565b60008060408385031215613e6e578182fd5b50508035926020909101359150565b818352602080840193600091908185020181018584845b87811015613efa5782840389528135601e19883603018112613eb4578687fd5b870180356001600160401b03811115613ecb578788fd5b803603891315613ed9578788fd5b613ee68682898501613f4d565b9a87019a9550505090840190600101613e94565b5091979650505050505050565b6000815180845260208085018081965082840281019150828601855b85811015613efa578284038952613f3b848351613f77565b98850198935090840190600101613f23565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452613f8f8160208601602086016149ee565b601f01601f19169290920160200192915050565b92835260609190911b6001600160601b0319166020830152603482015260540190565b6000828483379101908152919050565b6000848683375060609290921b6001600160601b031916919092019081526014810191909152603401919050565b600082516140168184602087016149ee565b9190910192915050565b600084516140328184602089016149ee565b60609490941b6001600160601b03191691909301908152601481019190915260340192915050565b6000835161406c8184602088016149ee565b8351908301906140808183602088016149ee565b01949350505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b61190160f01b81526002810192909252602282015260420190565b90815260200190565b918252602082015260400190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03868116825285166020820152604081018490526080606082018190526000906141589083018486613f4d565b979650505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611fd190830184613f77565b6000606082526141aa606083018789613e7d565b82810360208401526141bd818688613e7d565b9150508260408301529695505050505050565b600060208252610a136020830184613f07565b6000604082526141f66040830185613f07565b8281036020840152610a0f8185613f07565b901515815260200190565b6000831515825260406020830152610ca46040830184613f77565b9586526001600160a01b0394909416602086015260408501929092526060840152608083015260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252610ca4602083018486613f4d565b6000606082526142d1606083018789613f4d565b82810360208401526141bd818688613f4d565b600060208252610a136020830184613f77565b60006040825261430a6040830185613f77565b8281036020840152610a0f8185613f77565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526029908201527f52656769737472793a2053454e4445525f49535f4e4f545f415050524f5645446040820152682fa7a92fa7aba722a960b91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f5265636f726453746f726167653a204b45595f4e4f545f464f554e4400000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b60208082526027908201527f52656769737472793a2053454e4445525f49535f4e4f545f4d494e54494e475f60408201526626a0a720a3a2a960c91b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526017908201527f52656769737472793a20544f4b454e5f494e56414c4944000000000000000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526015908201527452656769737472793a204c4142454c5f454d50545960581b604082015260600190565b60208082526024908201527f5265676973747279466f727761726465723a205349474e41545552455f494e566040820152631053125160e21b606082015260800190565b6000808335601e1984360301811261497d578283fd5b8301803591506001600160401b03821115614996578283fd5b60200191503681900382131561353557600080fd5b600082198211156149be576149be614a84565b500190565b6000826149d2576149d2614a9a565b500490565b6000828210156149e9576149e9614a84565b500390565b60005b83811015614a095781810151838201526020016149f1565b8381111561116d5750506000910152565b600281046001821680614a2e57607f821691505b60208210811415614a4f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614a6957614a69614a84565b5060010190565b600082614a7f57614a7f614a9a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110d757600080fdfea2646970667358221220d71520351ac5c801bbfdc5f3dc2b94f314271c304f58e3b0fac22d0baa9ef47964736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061035d5760003560e01c806370a08231116101d3578063bb5b27e111610104578063e985e9c5116100a2578063ef2c30881161007c578063ef2c308814610775578063efda4d3e14610788578063f5c1f76e1461079b578063ffa1ad74146107ae5761035d565b8063e985e9c514610747578063ebf0c7171461075a578063ec129eea146107625761035d565b8063c87b56dd116100de578063c87b56dd146106fb578063cd279c7c1461070e578063ce92b33e14610721578063d3fc9864146107345761035d565b8063bb5b27e1146106c2578063c4d66de8146106d5578063c5974073146106e85761035d565b8063ab3b87fe11610171578063b55bc6171161014b578063b55bc61714610668578063b85afd281461067b578063b87abc111461069c578063b88d4fde146106af5761035d565b8063ab3b87fe1461062f578063b0f5917714610642578063b3f9e4cb146106555761035d565b806399e0dd7c116101ad57806399e0dd7c146105ee578063a22cb46514610601578063a3557e6c14610614578063a3f4df7e146106275761035d565b806370a08231146105c05780638f69c188146105d357806395d89b41146105e65761035d565b806342966c68116102ad578063572b6c051161024b578063672b9f8111610225578063672b9f811461055957806368b62d321461057a5780636ccbae5f1461059a5780636debcb8d146105ad5761035d565b8063572b6c051461052057806361603dd9146105335780636352211e146105465761035d565b806347c816991161028757806347c81699146104d45780634a72584d146104e75780634f558e79146104fa57806350382c1a1461050d5761035d565b806342966c681461049b578063430c2081146104ae5780634348b562146104c15761035d565b80631bd8cc1a1161031a57806327f18975116102f457806327f189751461044f578063280d9b0514610462578063310bd74b1461047557806342842e0e146104885761035d565b80631bd8cc1a146104095780631be5e7ed1461042957806323b872dd1461043c5761035d565b806301ffc9a71461036257806306fdde031461038b578063081812fc146103a0578063095ea7b3146103c05780631796e180146103d5578063185be4e5146103e8575b600080fd5b610375610370366004613ba9565b6107b6565b6040516103829190614208565b60405180910390f35b6103936107c9565b60405161038291906142e4565b6103b36103ae366004613db8565b61085c565b60405161038291906140ec565b6103d36103ce3660046137ae565b6108a8565b005b6103756103e3366004613d4c565b6108f5565b6103fb6103f6366004613d4c565b610a1a565b604051610382929190614213565b61041c610417366004613b2d565b610b41565b60405161038291906141d0565b610393610437366004613cd2565b610c61565b6103d361044a3660046135be565b610cac565b6103d361045d366004613a3e565b610d33565b6103d3610470366004613665565b610daf565b6103d3610483366004613db8565b610e43565b6103d36104963660046135be565b610eb2565b6103d36104a9366004613db8565b610ecd565b6103756104bc3660046137ae565b610f45565b6103d36104cf36600461382e565b610f51565b6103d36104e2366004613c14565b610fac565b6103d36104f5366004613e0c565b61101f565b610375610508366004613db8565b611099565b6103d361051b366004613d07565b6110a4565b61037561052e36600461357b565b6110da565b6103d3610541366004613dd0565b6110eb565b6103b3610554366004613db8565b611173565b61056c610567366004613e5c565b6111a8565b6040516103829291906142f7565b61058d610588366004613dd0565b6111c0565b60405161038291906140d5565b61058d6105a8366004613db8565b611202565b6103d36105bb3660046135f9565b611215565b61058d6105ce36600461357b565b611232565b6103d36105e1366004613aae565b611276565b610393611297565b6103d36105fc366004613be1565b6112a6565b6103d361060f366004613774565b61132c565b6103d3610622366004613aae565b6113fa565b61039361141b565b6103d361063d3660046137ae565b611444565b6103d361065036600461382e565b6114bd565b6103b3610663366004613db8565b611546565b6103d36106763660046139b8565b611563565b61068e610689366004613b2d565b611613565b6040516103829291906141e3565b6103d36106aa366004613dd0565b61177b565b6103d36106bd3660046136fc565b611794565b6103936106d0366004613db8565b61180f565b6103d36106e336600461357b565b6118b1565b6103d36106f6366004613c72565b61199f565b610393610709366004613db8565b6119c0565b6103d361071c3660046137d7565b611a42565b6103d361072f366004613a3e565b611acc565b6103d36107423660046137d7565b611b3f565b610375610755366004613595565b611bbb565b61058d611be9565b6103d3610770366004613a3e565b611bee565b6103d36107833660046135f9565b611c61565b6103d36107963660046138dd565b611c7e565b61041c6107a9366004613b76565b611d0c565b610393611de9565b60006107c182611e0a565b90505b919050565b6060606580546107d890614a1a565b80601f016020809104026020016040519081016040528092919081815260200182805461080490614a1a565b80156108515780601f1061082657610100808354040283529160200191610851565b820191906000526020600020905b81548152906001019060200180831161083457829003601f168201915b505050505090505b90565b600061086782611e4a565b61088c5760405162461bcd60e51b8152600401610883906147cf565b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b806108b2336110da565b156108dd576108bf611e67565b81146108dd5760405162461bcd60e51b8152600401610883906145e3565b6108e681611e81565b6108f08383611eaf565b505050565b6000806109ca84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109c492507fbef6336eb668d2978cbfbc9a9c0885fa2ceac0ff0081fb58b62c67b4282cbc8a9150610965905060208a018a61357b565b60208a013560408b013560608c013561098160808e018e614967565b60405161098f929190613fc6565b6040519081900381206109a996959493929160200161422e565b60405160208183030381529060405280519060200120611f42565b90611f55565b604080870135600090815261010060205220549091506060860135148015610a0f57506109fa602086018661357b565b6001600160a01b0316816001600160a01b0316145b9150505b9392505050565b60006060610a298585856108f5565b610a455760405162461bcd60e51b815260040161088390614923565b610a54606086013560016149ab565b604080870135600090815261010060209081529181209290925581903090880135610a8260808a018a614967565b610a8f60208c018c61357b565b8b60400135604051602001610aa79493929190613fd6565b60408051601f1981840301815290829052610ac191614004565b60006040518083038160008787f1925050503d8060008114610aff576040519150601f19603f3d011682016040523d82523d6000602084013e610b04565b606091505b509092509050610b19603f60208901356149c3565b5a11610b3557634e487b7160e01b600052600160045260246000fd5b90969095509350505050565b6060826001600160401b03811115610b6957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610b9c57816020015b6060815260200190600190039081610b875790505b50905060005b83811015610c5957610c1b858583818110610bcd57634e487b7160e01b600052603260045260246000fd5b9050602002810190610bdf9190614967565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250611fdb915050565b828281518110610c3b57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610c5190614a55565b915050610ba2565b509392505050565b6060610ca484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869250611fdb915050565b949350505050565b80610cbe610cb8612010565b8261201f565b610cda5760405162461bcd60e51b81526004016108839061438a565b81610ce4336110da565b15610d0f57610cf1611e67565b8114610d0f5760405162461bcd60e51b8152600401610883906145e3565b610d1881611e81565b610d218361209c565b610d2c858585612107565b5050505050565b80610d3f610cb8612010565b610d5b5760405162461bcd60e51b81526004016108839061438a565b81610d65336110da565b15610d9057610d72611e67565b8114610d905760405162461bcd60e51b8152600401610883906145e3565b610d9981611e81565b610da68787878787612234565b50505050505050565b610e3963b88d4fde8888888888604051602401610dd0959493929190614124565b6040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050508684848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122b392505050565b5050505050505050565b80610e4f610cb8612010565b610e6b5760405162461bcd60e51b81526004016108839061438a565b81610e75336110da565b15610ea057610e82611e67565b8114610ea05760405162461bcd60e51b8152600401610883906145e3565b610ea981611e81565b6108f08361209c565b6108f083838360405180602001604052806000815250611794565b80610ed9610cb8612010565b610ef55760405162461bcd60e51b81526004016108839061438a565b81610eff336110da565b15610f2a57610f0c611e67565b8114610f2a5760405162461bcd60e51b8152600401610883906145e3565b610f3381611e81565b610f3c8361209c565b6108f0836123c9565b6000610a13838361201f565b610134546001600160a01b0316610f66612010565b6001600160a01b031614610f8c5760405162461bcd60e51b815260040161088390614550565b610e39888888888888888860405180602001604052806000815250612470565b80610fb8610cb8612010565b610fd45760405162461bcd60e51b81526004016108839061438a565b81610fde336110da565b1561100957610feb611e67565b81146110095760405162461bcd60e51b8152600401610883906145e3565b61101281611e81565b610da687878787876124cb565b8061102b610cb8612010565b6110475760405162461bcd60e51b81526004016108839061438a565b81611051336110da565b1561107c5761105e611e67565b811461107c5760405162461bcd60e51b8152600401610883906145e3565b61108581611e81565b611091868686866125aa565b505050505050565b60006107c182611e4a565b6110d7816040516020016110b89190614004565b6040516020818303038152906040528051906020012060001c8261261a565b50565b6001600160a01b0381163014919050565b61116d6342966c688460405160240161110491906140d5565b6040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050508484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122b392505050565b50505050565b6000818152606760205260408120546001600160a01b0316806107c15760405162461bcd60e51b8152600401610883906146c1565b6060806111b58484612646565b909590945092505050565b6000610ca48484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061266792505050565b6000908152610100602052604090205490565b6110916342842e0e86868660405160240161110493929190614100565b60006001600160a01b03821661125a5760405162461bcd60e51b815260040161088390614677565b506001600160a01b031660009081526068602052604090205490565b610e3963ce92b33e8888888888604051602401611104959493929190614196565b6060606680546107d890614a1a565b610134546001600160a01b03166112bb612010565b6001600160a01b0316146112e15760405162461bcd60e51b815260040161088390614550565b6112ee6101338383613365565b507f4b120d6a959a84a520fa48f5f937cca0e79129423487af7901213b5d2e89313b82826040516113209291906142a9565b60405180910390a15050565b611334612010565b6001600160a01b0316826001600160a01b031614156113655760405162461bcd60e51b8152600401610883906144d7565b80606a6000611372612010565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556113b6612010565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113ee9190614208565b60405180910390a35050565b610e3963ec129eea8888888888604051602401611104959493929190614196565b6040518060400160405280600d81526020016c554e533a20526567697374727960981b81525081565b80611450610cb8612010565b61146c5760405162461bcd60e51b81526004016108839061438a565b81611476336110da565b156114a157611483611e67565b81146114a15760405162461bcd60e51b8152600401610883906145e3565b6114aa81611e81565b61116d6114b684611173565b8585612107565b610134546001600160a01b03166114d2612010565b6001600160a01b0316146114f85760405162461bcd60e51b815260040161088390614550565b611539888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126e392505050565b610e39848484848b61272a565b600061155182611e4a565b61155c5760006107c1565b5030919050565b610134546001600160a01b0316611578612010565b6001600160a01b03161461159e5760405162461bcd60e51b815260040161088390614550565b611091868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a0181900481028201810190925288815292508891508790819084018382808284376000920191909152506127b492505050565b606080836001600160401b0381111561163c57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561166f57816020015b606081526020019060019003908161165a5790505b509150836001600160401b0381111561169857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156116cb57816020015b60608152602001906001900390816116b65790505b50905060005b84811015611772576117098686838181106116fc57634e487b7160e01b600052603260045260246000fd5b9050602002013585612646565b84838151811061172957634e487b7160e01b600052603260045260246000fd5b6020026020010184848151811061175057634e487b7160e01b600052603260045260246000fd5b602002602001018290528290525050808061176a90614a55565b9150506116d1565b50935093915050565b61116d63310bd74b8460405160240161110491906140d5565b816117a0610cb8612010565b6117bc5760405162461bcd60e51b81526004016108839061438a565b826117c6336110da565b156117f1576117d3611e67565b81146117f15760405162461bcd60e51b8152600401610883906145e3565b6117fa81611e81565b6118038461209c565b611091868686866127fd565b600081815260c96020526040902080546060919061182c90614a1a565b80601f016020809104026020016040519081016040528092919081815260200182805461185890614a1a565b80156118a55780601f1061187a576101008083540402835291602001916118a5565b820191906000526020600020905b81548152906001019060200180831161188857829003601f168201915b50505050509050919050565b600054610100900460ff16806118ca575060005460ff16155b6118e65760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff16158015611911576000805460ff1961ff0019909116610100171660011790555b61013480546001600160a01b0319166001600160a01b0384161790556040805180820182526013815272556e73746f707061626c6520446f6d61696e7360681b60208083019190915282518084019093526002835261155160f21b9083015261197991612830565b6119816128ce565b611989612942565b801561199b576000805461ff00191690555b5050565b610e396347c8169988888888886040516024016111049594939291906142bd565b60606119cb82611e4a565b6119e75760405162461bcd60e51b815260040161088390614864565b60006119f16129f2565b90506000815111611a115760405180602001604052806000815250610a13565b80611a1b84612a02565b604051602001611a2c92919061405a565b6040516020818303038152906040529392505050565b610134546001600160a01b0316611a57612010565b6001600160a01b031614611a7d5760405162461bcd60e51b815260040161088390614550565b61116d848484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250604080516020810190915290815292506127b4915050565b80611ad8610cb8612010565b611af45760405162461bcd60e51b81526004016108839061438a565b81611afe336110da565b15611b2957611b0b611e67565b8114611b295760405162461bcd60e51b8152600401610883906145e3565b611b3281611e81565b610da6878787878761272a565b610134546001600160a01b0316611b54612010565b6001600160a01b031614611b7a5760405162461bcd60e51b815260040161088390614550565b61116d848484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126e392505050565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b600090565b80611bfa610cb8612010565b611c165760405162461bcd60e51b81526004016108839061438a565b81611c20336110da565b15611c4b57611c2d611e67565b8114611c4b5760405162461bcd60e51b8152600401610883906145e3565b611c5481611e81565b610da68787878787612b1c565b6110916323b872dd86868660405160240161110493929190614100565b610134546001600160a01b0316611c93612010565b6001600160a01b031614611cb95760405162461bcd60e51b815260040161088390614550565b611d008a8a8a8a8a8a8a8a8a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061247092505050565b50505050505050505050565b6060816001600160401b03811115611d3457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611d6757816020015b6060815260200190600190039081611d525790505b50905060005b82811015611de257611da4848483818110611d9857634e487b7160e01b600052603260045260246000fd5b9050602002013561180f565b828281518110611dc457634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080611dda90614a55565b915050611d6d565b5092915050565b604051806040016040528060058152602001640302e312e360dc1b81525081565b60006001600160e01b031982166380ac58cd60e01b1480611e3b57506001600160e01b03198216635b5e139f60e01b145b806107c157506107c182612b32565b6000908152606760205260409020546001600160a01b0316151590565b6000611e72336110da565b156108595750601f1936013590565b60008181526101006020526040902054611e9c9060016149ab565b6000918252610100602052604090912055565b6000611eba82611173565b9050806001600160a01b0316836001600160a01b03161415611eee5760405162461bcd60e51b8152600401610883906148b3565b806001600160a01b0316611f00612010565b6001600160a01b03161480611f1c5750611f1c81610755612010565b611f385760405162461bcd60e51b81526004016108839061461a565b6108f08383612b4b565b60006107c1611f4f612bb9565b83612bf4565b600080600080845160411415611f7f5750505060208201516040830151606084015160001a611fc5565b845160401415611fad5750505060408201516020830151906001600160ff1b0381169060ff1c601b01611fc5565b60405162461bcd60e51b815260040161088390614353565b611fd186828585612c27565b9695505050505050565b6060610a1383604051602001611ff19190614004565b6040516020818303038152906040528051906020012060001c83612d1d565b600061201a612ddc565b905090565b600061202a82611e4a565b6120465760405162461bcd60e51b815260040161088390614597565b600061205183611173565b9050806001600160a01b0316846001600160a01b0316148061208c5750836001600160a01b03166120818461085c565b6001600160a01b0316145b80610ca45750610ca48185611bbb565b6120a581612e0a565b6040516020016120b591906140d5565b60408051601f198184030181528282528051602091820120600085815260cb9092529181209190915582917f185c30856dadb58bf097c1f665a52ada7029752dbcad008ea3fefc73bee8c9fe9190a250565b826001600160a01b031661211a82611173565b6001600160a01b0316146121405760405162461bcd60e51b81526004016108839061481b565b6001600160a01b0382166121665760405162461bcd60e51b815260040161088390614493565b6121718383836108f0565b61217c600082612b4b565b6001600160a01b03831660009081526068602052604081208054600192906121a59084906149d7565b90915550506001600160a01b03821660009081526068602052604081208054600192906121d39084906149ab565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b84811015611091576122a186868381811061226257634e487b7160e01b600052603260045260246000fd5b9050602002013585858481811061228957634e487b7160e01b600052603260045260246000fd5b905060200281019061229b9190614967565b856125aa565b806122ab81614a55565b915050612237565b606060005a905060006122ce86805190602001208686612e36565b9050600080306001600160a01b03168489858a6040516020016122f393929190614020565b60408051601f198184030181529082905261230d91614004565b60006040518083038160008787f1925050503d806000811461234b576040519150601f19603f3d011682016040523d82523d6000602084013e612350565b606091505b509092509050612361603f856149c3565b5a1161237d57634e487b7160e01b600052600160045260246000fd5b6123bd82826040518060400160405280601e81526020017f5265676973747279466f727761726465723a2043414c4c5f4641494c45440000815250612e8e565b98975050505050505050565b60006123d482611173565b90506123e2816000846108f0565b6123ed600083612b4b565b6001600160a01b03811660009081526068602052604081208054600192906124169084906149d7565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6124b3898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792506127b4915050565b6124c0858585858c61272a565b505050505050505050565b600085856040516020016124e0929190613fc6565b60408051601f198184030181528282528051602091820120601f8901829004820284018201909252878352909250612534918391899089908190840183828082843760009201919091525061261a92505050565b6110918187878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b018190048102820181019092528981529250899150889081908401838280828437600092019190915250889250612ec7915050565b6125b384613002565b6125cf5760405162461bcd60e51b815260040161088390614425565b61116d846125dc8661180f565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250612ec7915050565b61262382613002565b61199b57600082815260c96020908152604090912082516108f0928401906133e5565b6060806126528461180f565b915061265e8484612d1d565b90509250929050565b600081516000141561268b5760405162461bcd60e51b8152600401610883906148f4565b828260405160200161269d9190614004565b604051602081830303815290604052805190602001206040516020016126c49291906140de565b60408051601f1981840301815291905280516020909101209392505050565b6126ed8383613028565b817fc5beef08f693b11c316c0c8394a377a0033c9cf701b8cd8afd79cecef60c39528260405161271d91906142e4565b60405180910390a2505050565b60005b84811015611091576127a286868381811061275857634e487b7160e01b600052603260045260246000fd5b905060200281019061276a9190614967565b86868581811061278a57634e487b7160e01b600052603260045260246000fd5b905060200281019061279c9190614967565b866124cb565b806127ac81614a55565b91505061272d565b6127bf848483613107565b827fc5beef08f693b11c316c0c8394a377a0033c9cf701b8cd8afd79cecef60c3952836040516127ef91906142e4565b60405180910390a250505050565b612808848484612107565b6128148484848461313a565b61116d5760405162461bcd60e51b8152600401610883906143d3565b600054610100900460ff1680612849575060005460ff16155b6128655760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff16158015612890576000805460ff1961ff0019909116610100171660011790555b82516128a39060659060208601906133e5565b5081516128b79060669060208501906133e5565b5080156108f0576000805461ff0019169055505050565b600054610100900460ff16806128e7575060005460ff16155b6129035760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff1615801561292e576000805460ff1961ff0019909116610100171660011790555b80156110d7576000805461ff001916905550565b600054610100900460ff168061295b575060005460ff16155b6129775760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff161580156129a2576000805460ff1961ff0019909116610100171660011790555b61292e604051806040016040528060118152602001702932b3b4b9ba393ca337b93bb0b93232b960791b81525060405180604001604052806005815260200164302e302e3160d81b815250613252565b606061013380546107d890614a1a565b606081612a2757506040805180820190915260018152600360fc1b60208201526107c4565b8160005b8115612a515780612a3b81614a55565b9150612a4a9050600a836149c3565b9150612a2b565b6000816001600160401b03811115612a7957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aa3576020820181803683370190505b5090505b8415610ca457612ab86001836149d7565b9150612ac5600a86614a70565b612ad09060306149ab565b60f81b818381518110612af357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b15600a866149c3565b9450612aa7565b612b258161209c565b610d2c858585858561272a565b6001600160e01b031981166301ffc9a760e01b14919050565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b8082611173565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061201a7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612be76132e5565b612bef6132eb565b6132f1565b60008282604051602001612c099291906140ba565b60405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612c695760405162461bcd60e51b81526004016108839061450e565b8360ff16601b1480612c7e57508360ff16601c145b612c9a5760405162461bcd60e51b815260040161088390614758565b600060018686868660405160008152602001604052604051612cbf949392919061428b565b6020604051602081039080840390855afa158015612ce1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612d145760405162461bcd60e51b81526004016108839061431c565b95945050505050565b606060ca6000612d2c84612e0a565b815260200190815260200160002060008481526020019081526020016000208054612d5690614a1a565b80601f0160208091040260200160405190810160405280929190818152602001828054612d8290614a1a565b8015612dcf5780601f10612da457610100808354040283529160200191612dcf565b820191906000526020600020905b815481529060010190602001808311612db257829003601f168201915b5050505050905092915050565b6000612de7336110da565b15612dfb575060331936013560601c610859565b612e0361332b565b9050610859565b600081815260cb602052604081205415612e3257600082815260cb60205260409020546107c1565b5090565b6000612e83826109c48630610100600089815260200190815260200160002054604051602001612e6893929190613fa3565b6040516020818303038152906040528051906020012061332f565b9050610a1383611e81565b60608315612e9d575081610a13565b825115612ead5782518084602001fd5b8160405162461bcd60e51b815260040161088391906142e4565b60ca6000612ed483612e0a565b815260200190815260200160002060008581526020019081526020016000208054612efe90614a1a565b15159050612f555782604051612f149190614004565b6040518091039020817f7ae4f661958fbecc2f77be6b0eb280d2a6f604b29e1e7221c82b9da0c4af7f8685604051612f4c91906142e4565b60405180910390a35b8160ca6000612f6384612e0a565b815260200190815260200160002060008681526020019081526020016000209080519060200190612f959291906133e5565b5081604051612fa49190614004565b604051809103902083604051612fba9190614004565b6040518091039020827f851ffe8e74d5015261dba0a1f9e1b0e5d42c5af5d2ad1908fee897c7d80a0d928686604051612ff49291906142f7565b60405180910390a450505050565b600081815260c960205260408120805482919061301e90614a1a565b9050119050919050565b6001600160a01b03821661304e5760405162461bcd60e51b81526004016108839061479a565b61305781611e4a565b156130745760405162461bcd60e51b81526004016108839061445c565b613080600083836108f0565b6001600160a01b03821660009081526068602052604081208054600192906130a99084906149ab565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6131118383613028565b61311e600084848461313a565b6108f05760405162461bcd60e51b8152600401610883906143d3565b600061314e846001600160a01b031661335f565b1561324a57836001600160a01b031663150b7a0261316a612010565b8786866040518563ffffffff1660e01b815260040161318c9493929190614163565b602060405180830381600087803b1580156131a657600080fd5b505af19250505080156131d6575060408051601f3d908101601f191682019092526131d391810190613bc5565b60015b613230573d808015613204576040519150601f19603f3d011682016040523d82523d6000602084013e613209565b606091505b5080516132285760405162461bcd60e51b8152600401610883906143d3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ca4565b506001610ca4565b600054610100900460ff168061326b575060005460ff16155b6132875760405162461bcd60e51b81526004016108839061470a565b600054610100900460ff161580156132b2576000805460ff1961ff0019909116610100171660011790555b825160208085019190912083519184019190912060cc9190915560cd5580156108f0576000805461ff0019169055505050565b60cc5490565b60cd5490565b6000838383463060405160200161330c95949392919061425f565b6040516020818303038152906040528051906020012090509392505050565b3390565b6000816040516020016133429190614089565b604051602081830303815290604052805190602001209050919050565b3b151590565b82805461337190614a1a565b90600052602060002090601f01602090048101928261339357600085556133d9565b82601f106133ac5782800160ff198235161785556133d9565b828001600101855582156133d9579182015b828111156133d95782358255916020019190600101906133be565b50612e32929150613459565b8280546133f190614a1a565b90600052602060002090601f01602090048101928261341357600085556133d9565b82601f1061342c57805160ff19168380011785556133d9565b828001600101855582156133d9579182015b828111156133d957825182559160200191906001019061343e565b5b80821115612e32576000815560010161345a565b60006001600160401b038084111561348857613488614ab0565b604051601f8501601f1916810160200182811182821017156134ac576134ac614ab0565b6040528481529150818385018610156134c457600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146107c457600080fd5b60008083601f840112613505578081fd5b5081356001600160401b0381111561351b578182fd5b602083019150836020808302850101111561353557600080fd5b9250929050565b60008083601f84011261354d578182fd5b5081356001600160401b03811115613563578182fd5b60208301915083602082850101111561353557600080fd5b60006020828403121561358c578081fd5b610a13826134dd565b600080604083850312156135a7578081fd5b6135b0836134dd565b915061265e602084016134dd565b6000806000606084860312156135d2578081fd5b6135db846134dd565b92506135e9602085016134dd565b9150604084013590509250925092565b600080600080600060808688031215613610578081fd5b613619866134dd565b9450613627602087016134dd565b93506040860135925060608601356001600160401b03811115613648578182fd5b6136548882890161353c565b969995985093965092949392505050565b600080600080600080600060a0888a03121561367f578182fd5b613688886134dd565b9650613696602089016134dd565b95506040880135945060608801356001600160401b03808211156136b8578384fd5b6136c48b838c0161353c565b909650945060808a01359150808211156136dc578384fd5b506136e98a828b0161353c565b989b979a50959850939692959293505050565b60008060008060808587031215613711578384fd5b61371a856134dd565b9350613728602086016134dd565b92506040850135915060608501356001600160401b03811115613749578182fd5b8501601f81018713613759578182fd5b6137688782356020840161346e565b91505092959194509250565b60008060408385031215613786578182fd5b61378f836134dd565b9150602083013580151581146137a3578182fd5b809150509250929050565b600080604083850312156137c0578182fd5b6137c9836134dd565b946020939093013593505050565b600080600080606085870312156137ec578182fd5b6137f5856134dd565b93506020850135925060408501356001600160401b03811115613816578283fd5b6138228782880161353c565b95989497509550505050565b60008060008060008060008060a0898b031215613849578182fd5b613852896134dd565b97506020890135965060408901356001600160401b0380821115613874578384fd5b6138808c838d0161353c565b909850965060608b0135915080821115613898578384fd5b6138a48c838d016134f4565b909650945060808b01359150808211156138bc578384fd5b506138c98b828c016134f4565b999c989b5096995094979396929594505050565b60008060008060008060008060008060c08b8d0312156138fb578384fd5b6139048b6134dd565b995060208b0135985060408b01356001600160401b0380821115613926578586fd5b6139328e838f0161353c565b909a50985060608d013591508082111561394a578586fd5b6139568e838f016134f4565b909850965060808d013591508082111561396e578586fd5b61397a8e838f016134f4565b909650945060a08d0135915080821115613992578384fd5b5061399f8d828e0161353c565b915080935050809150509295989b9194979a5092959850565b600080600080600080608087890312156139d0578384fd5b6139d9876134dd565b95506020870135945060408701356001600160401b03808211156139fb578586fd5b613a078a838b0161353c565b90965094506060890135915080821115613a1f578384fd5b50613a2c89828a0161353c565b979a9699509497509295939492505050565b600080600080600060608688031215613a55578283fd5b85356001600160401b0380821115613a6b578485fd5b613a7789838a016134f4565b90975095506020880135915080821115613a8f578485fd5b50613a9c888289016134f4565b96999598509660400135949350505050565b60008060008060008060006080888a031215613ac8578081fd5b87356001600160401b0380821115613ade578283fd5b613aea8b838c016134f4565b909950975060208a0135915080821115613b02578283fd5b613b0e8b838c016134f4565b909750955060408a0135945060608a01359150808211156136dc578283fd5b600080600060408486031215613b41578081fd5b83356001600160401b03811115613b56578182fd5b613b62868287016134f4565b909790965060209590950135949350505050565b60008060208385031215613b88578182fd5b82356001600160401b03811115613b9d578283fd5b610b35858286016134f4565b600060208284031215613bba578081fd5b8135610a1381614ac6565b600060208284031215613bd6578081fd5b8151610a1381614ac6565b60008060208385031215613bf3578182fd5b82356001600160401b03811115613c08578283fd5b610b358582860161353c565b600080600080600060608688031215613c2b578283fd5b85356001600160401b0380821115613c41578485fd5b613c4d89838a0161353c565b90975095506020880135915080821115613c65578485fd5b50613a9c8882890161353c565b60008060008060008060006080888a031215613c8c578081fd5b87356001600160401b0380821115613ca2578283fd5b613cae8b838c0161353c565b909950975060208a0135915080821115613cc6578283fd5b613b0e8b838c0161353c565b600080600060408486031215613ce6578081fd5b83356001600160401b03811115613cfb578182fd5b613b628682870161353c565b600060208284031215613d18578081fd5b81356001600160401b03811115613d2d578182fd5b8201601f81018413613d3d578182fd5b610ca48482356020840161346e565b600080600060408486031215613d60578081fd5b83356001600160401b0380821115613d76578283fd5b9085019060a08288031215613d89578283fd5b90935060208501359080821115613d9e578283fd5b50613dab8682870161353c565b9497909650939450505050565b600060208284031215613dc9578081fd5b5035919050565b600080600060408486031215613de4578081fd5b8335925060208401356001600160401b03811115613e00578182fd5b613dab8682870161353c565b60008060008060608587031215613e21578182fd5b8435935060208501356001600160401b03811115613e3d578283fd5b613e498782880161353c565b9598909750949560400135949350505050565b60008060408385031215613e6e578182fd5b50508035926020909101359150565b818352602080840193600091908185020181018584845b87811015613efa5782840389528135601e19883603018112613eb4578687fd5b870180356001600160401b03811115613ecb578788fd5b803603891315613ed9578788fd5b613ee68682898501613f4d565b9a87019a9550505090840190600101613e94565b5091979650505050505050565b6000815180845260208085018081965082840281019150828601855b85811015613efa578284038952613f3b848351613f77565b98850198935090840190600101613f23565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452613f8f8160208601602086016149ee565b601f01601f19169290920160200192915050565b92835260609190911b6001600160601b0319166020830152603482015260540190565b6000828483379101908152919050565b6000848683375060609290921b6001600160601b031916919092019081526014810191909152603401919050565b600082516140168184602087016149ee565b9190910192915050565b600084516140328184602089016149ee565b60609490941b6001600160601b03191691909301908152601481019190915260340192915050565b6000835161406c8184602088016149ee565b8351908301906140808183602088016149ee565b01949350505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b61190160f01b81526002810192909252602282015260420190565b90815260200190565b918252602082015260400190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03868116825285166020820152604081018490526080606082018190526000906141589083018486613f4d565b979650505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611fd190830184613f77565b6000606082526141aa606083018789613e7d565b82810360208401526141bd818688613e7d565b9150508260408301529695505050505050565b600060208252610a136020830184613f07565b6000604082526141f66040830185613f07565b8281036020840152610a0f8185613f07565b901515815260200190565b6000831515825260406020830152610ca46040830184613f77565b9586526001600160a01b0394909416602086015260408501929092526060840152608083015260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252610ca4602083018486613f4d565b6000606082526142d1606083018789613f4d565b82810360208401526141bd818688613f4d565b600060208252610a136020830184613f77565b60006040825261430a6040830185613f77565b8281036020840152610a0f8185613f77565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526029908201527f52656769737472793a2053454e4445525f49535f4e4f545f415050524f5645446040820152682fa7a92fa7aba722a960b91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f5265636f726453746f726167653a204b45595f4e4f545f464f554e4400000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b60208082526027908201527f52656769737472793a2053454e4445525f49535f4e4f545f4d494e54494e475f60408201526626a0a720a3a2a960c91b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526017908201527f52656769737472793a20544f4b454e5f494e56414c4944000000000000000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526015908201527452656769737472793a204c4142454c5f454d50545960581b604082015260600190565b60208082526024908201527f5265676973747279466f727761726465723a205349474e41545552455f494e566040820152631053125160e21b606082015260800190565b6000808335601e1984360301811261497d578283fd5b8301803591506001600160401b03821115614996578283fd5b60200191503681900382131561353557600080fd5b600082198211156149be576149be614a84565b500190565b6000826149d2576149d2614a9a565b500490565b6000828210156149e9576149e9614a84565b500390565b60005b83811015614a095781810151838201526020016149f1565b8381111561116d5750506000910152565b600281046001821680614a2e57607f821691505b60208210811415614a4f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614a6957614a69614a84565b5060010190565b600082614a7f57614a7f614a9a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110d757600080fdfea2646970667358221220d71520351ac5c801bbfdc5f3dc2b94f314271c304f58e3b0fac22d0baa9ef47964736f6c63430008000033
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.