Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
13 PASTEL
Holders
13
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PASTELLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ONFT
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ONFT721.sol"; contract ONFT is ONFT721, Pausable, ReentrancyGuard { using Strings for uint; uint public supply; string public contractURI; address public feeCollectorAddress; /// @notice Constructor for the ONFT /// @param _name the name of the token /// @param _symbol the token symbol /// @param _baseTokenURI the base URI for computing the tokenURI /// @param _layerZeroEndpoint handles message transmission across chains /// @param _feeCollectorAddress the address fee collector constructor(string memory _name, string memory _symbol, string memory _baseTokenURI, address _layerZeroEndpoint, address _feeCollectorAddress) ONFT721(_name, _symbol, _layerZeroEndpoint) { setBaseURI(_baseTokenURI); contractURI = _baseTokenURI; feeCollectorAddress = _feeCollectorAddress; } function mintHonorary(address to, uint tokenId) external onlyOwner { _mint(to, tokenId); supply++; } function _beforeSend(address, uint16, bytes memory, uint _tokenId) internal override whenNotPaused { _burn(_tokenId); } function pauseSendTokens(bool pause) external onlyOwner { pause ? _pause() : _unpause(); } function tokenURI(uint tokenId) public view override returns (string memory) { return string(abi.encodePacked(_baseURI(), tokenId.toString())); } function setFeeCollector(address _feeCollectorAddress) external onlyOwner { feeCollectorAddress = _feeCollectorAddress; } function setContractURI(string memory _contractURI) public onlyOwner { contractURI = _contractURI; } function totalSupply() public view virtual returns (uint) { return supply; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); 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); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./interfaces/ILayerZeroReceiver.sol"; import "./interfaces/ILayerZeroUserApplicationConfig.sol"; import "./interfaces/ILayerZeroEndpoint.sol"; /* * a generic LzReceiver implementation */ abstract contract LzApp is AccessControl, ILayerZeroReceiver, ILayerZeroUserApplicationConfig { ILayerZeroEndpoint internal immutable lzEndpoint; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); mapping(uint16 => bytes) internal trustedRemoteLookup; event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress); modifier onlyOwner() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Must have admin role."); _; } constructor(address _endpoint) { lzEndpoint = ILayerZeroEndpoint(_endpoint); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) external override { // lzReceive must be called by the endpoint for security require(_msgSender() == address(lzEndpoint)); // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote. require(_srcAddress.length == trustedRemoteLookup[_srcChainId].length && keccak256(_srcAddress) == keccak256(trustedRemoteLookup[_srcChainId]), "LzReceiver: invalid source sending contract"); _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual; function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParam) internal { require(trustedRemoteLookup[_dstChainId].length != 0, "LzSend: destination chain is not a trusted source."); lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemoteLookup[_dstChainId], _payload, _refundAddress, _zroPaymentAddress, _adapterParam); } //---------------------------UserApplication config---------------------------------------- function getConfig(uint16, uint16 _chainId, address, uint _configType) external view returns (bytes memory) { return lzEndpoint.getConfig(lzEndpoint.getSendVersion(address(this)), _chainId, address(this), _configType); } // generic config for LayerZero user Application function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner { lzEndpoint.setConfig(_version, _chainId, _configType, _config); } function setSendVersion(uint16 _version) external override onlyOwner { lzEndpoint.setSendVersion(_version); } function setReceiveVersion(uint16 _version) external override onlyOwner { lzEndpoint.setReceiveVersion(_version); } function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner { lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress); } // allow owner to set it multiple times. function setTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external onlyOwner { trustedRemoteLookup[_srcChainId] = _srcAddress; emit SetTrustedRemote(_srcChainId, _srcAddress); } function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) { bytes memory trustedSource = trustedRemoteLookup[_srcChainId]; return keccak256(trustedSource) == keccak256(_srcAddress); } //--------------------------- VIEW FUNCTION ---------------------------------------- // interacting with the LayerZero Endpoint and remote contracts function getTrustedRemote(uint16 _chainId) external view returns (bytes memory) { return trustedRemoteLookup[_chainId]; } function getLzEndpoint() external view returns (address) { return address(lzEndpoint); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./LzApp.sol"; /* * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress) */ abstract contract NonblockingLzApp is LzApp { constructor(address _endpoint) LzApp(_endpoint) {} mapping(uint16 => mapping(bytes => mapping(uint => bytes32))) public failedMessages; event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload); // overriding the virtual function in LzReceiver function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override { // try-catch all errors/exceptions try this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload) { // do nothing } catch { // error / exception failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload); emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload); } } function nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual { // only internal transaction require(_msgSender() == address(this), "LzReceiver: caller must be Bridge."); _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } //@notice override this function function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual; function retryMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes calldata _payload) external payable virtual { // assert there is message to retry bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce]; require(payloadHash != bytes32(0), "LzReceiver: no stored message"); require(keccak256(_payload) == payloadHash, "LzReceiver: invalid payload"); // clear the stored message failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0); // execute the message. revert if it fails again this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "./interfaces/IONFT721.sol"; import "./NonblockingLzApp.sol"; // NOTE: this ONFT contract has no public minting logic. // must implement your own minting logic in child classes contract ONFT721 is IONFT721, NonblockingLzApp, ERC721 { string public baseTokenURI; constructor( string memory _name, string memory _symbol, address _lzEndpoint ) ERC721(_name, _symbol) NonblockingLzApp(_lzEndpoint) {} function estimateSendFee( uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, bool _payInZRO, bytes calldata _adapterParams ) external view virtual returns (uint nativeFee, uint _zroFee) { bytes memory payload = abi.encode(_toAddress, _tokenId); return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _payInZRO, _adapterParams); } function sendFrom( address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam ) external payable virtual override { _send(_from, _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParam); } function send( uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam ) external payable virtual override { _send(_msgSender(), _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParam); } function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165,AccessControl, ERC721) returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } function _send( address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam ) internal virtual { require(_isApprovedOrOwner(_msgSender(), _tokenId), "ERC721: transfer caller is not owner nor approved"); _beforeSend(_from, _dstChainId, _toAddress, _tokenId); bytes memory payload = abi.encode(_toAddress, _tokenId); _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParam); uint64 nonce = lzEndpoint.getOutboundNonce(_dstChainId, address(this)); emit SendToChain(_from, _dstChainId, _toAddress, _tokenId, nonce); _afterSend(_from, _dstChainId, _toAddress, _tokenId); } function _nonblockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual override { _beforeReceive(_srcChainId, _srcAddress, _payload); // decode and load the toAddress (bytes memory toAddress, uint tokenId) = abi.decode(_payload, (bytes, uint)); address localToAddress; assembly { localToAddress := mload(add(toAddress, 20)) } // if the toAddress is 0x0, convert to dead address, or it will get cached if (localToAddress == address(0x0)) localToAddress == address(0xdEaD); _afterReceive(_srcChainId, localToAddress, tokenId); emit ReceiveFromChain(_srcChainId, localToAddress, tokenId, _nonce); } function _beforeSend( address, /* _from */ uint16, /* _dstChainId */ bytes memory, /* _toAddress */ uint _tokenId ) internal virtual { _burn(_tokenId); } function _afterSend( address, /* _from */ uint16, /* _dstChainId */ bytes memory, /* _toAddress */ uint /* _tokenId */ ) internal virtual {} function _beforeReceive( uint16, /* _srcChainId */ bytes memory, /* _srcAddress */ bytes memory /* _payload */ ) internal virtual {} function _afterReceive( uint16, /* _srcChainId */ address _toAddress, uint _tokenId ) internal virtual { _safeMint(_toAddress, _tokenId); } function setBaseURI(string memory _baseTokenURI) public onlyOwner { baseTokenURI = _baseTokenURI; } function _baseURI() internal view override returns (string memory) { return baseTokenURI; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "./ILayerZeroUserApplicationConfig.sol"; interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice send a LayerZero message to the specified address at a LayerZero endpoint. // @param _dstChainId - the destination chain identifier // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable; // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain // @param _dstAddress - the address on destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external; // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64); // @notice get the outboundNonce from this source chain which, consequently, is always an EVM // @param _srcAddress - the source chain contract address function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64); // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery // @param _dstChainId - the destination chain identifier // @param _userApplication - the user app address on this EVM chain // @param _payload - the custom message to send over LayerZero // @param _payInZRO - if false, user app pays the protocol fee in native token // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee); // @notice get this Endpoint's immutable source identifier function getChainId() external view returns (uint16); // @notice the interface to retry failed message on this Endpoint destination // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address // @param _payload - the payload to be retried function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external; // @notice query if any STORED payload (message blocking) at the endpoint. // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool); // @notice query if the _libraryAddress is valid for sending msgs. // @param _userApplication - the user app address on this EVM chain function getSendLibraryAddress(address _userApplication) external view returns (address); // @notice query if the _libraryAddress is valid for receiving msgs. // @param _userApplication - the user app address on this EVM chain function getReceiveLibraryAddress(address _userApplication) external view returns (address); // @notice query if the non-reentrancy guard for send() is on // @return true if the guard is on. false otherwise function isSendingPayload() external view returns (bool); // @notice query if the non-reentrancy guard for receive() is on // @return true if the guard is on. false otherwise function isReceivingPayload() external view returns (bool); // @notice get the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _userApplication - the contract address of the user application // @param _configType - type of configuration. every messaging library has its own convention. function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory); // @notice get the send() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getSendVersion(address _userApplication) external view returns (uint16); // @notice get the lzReceive() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getReceiveVersion(address _userApplication) external view returns (uint16); }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface ILayerZeroReceiver { // @notice LayerZero endpoint will invoke this function to deliver the message on the destination // @param _srcChainId - the source endpoint identifier // @param _srcAddress - the source sending contract address from the source chain // @param _nonce - the ordered message nonce // @param _payload - the signed payload is the UA bytes has encoded to be sent function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface ILayerZeroUserApplicationConfig { // @notice set the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _configType - type of configuration. every messaging library has its own convention. // @param _config - configuration in the bytes. can encode arbitrary content. function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external; // @notice set the send() LayerZero messaging library version to _version // @param _version - new messaging library version function setSendVersion(uint16 _version) external; // @notice set the lzReceive() LayerZero messaging library version to _version // @param _version - new messaging library version function setReceiveVersion(uint16 _version) external; // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload // @param _srcChainId - the chainId of the source chain // @param _srcAddress - the contract address of the source contract at the source chain function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /** * @dev Interface of the ONFT standard */ interface IONFT721 is IERC721 { /** * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`) * `_toAddress` can be any size depending on the `dstChainId`. * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParam` is a flexible bytes array to indicate messaging adapter services */ function send(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable; /** * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`) from `_from` * `_toAddress` can be any size depending on the `dstChainId`. * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParam` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable; /** * @dev Emitted when `_tokenId` are moved from the `_sender` to (`_dstChainId`, `_toAddress`) * `_nonce` is the outbound nonce from */ event SendToChain(address indexed _sender, uint16 indexed _dstChainId, bytes indexed _toAddress, uint _tokenId, uint64 _nonce); /** * @dev Emitted when `_tokenId` are sent from `_srcChainId` to the `_toAddress` at this chain. `_nonce` is the inbound nonce. */ event ReceiveFromChain(uint16 _srcChainId, address _toAddress, uint _tokenId, uint64 _nonce); }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 30000 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"address","name":"_layerZeroEndpoint","type":"address"},{"internalType":"address","name":"_feeCollectorAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_payInZRO","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"_zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollectorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLzEndpoint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"}],"name":"getTrustedRemote","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintHonorary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"pauseSendTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParam","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParam","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollectorAddress","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162005222380380620052228339810160408190526200003491620003a7565b6001600160601b0319606083901b16608052848483828282806200005a600033620000e9565b505081516200007190600390602085019062000231565b5080516200008790600490602084019062000231565b5050600a805460ff1916905550506001600b5550620000a8905083620000f9565b8251620000bd90600d90602086019062000231565b50600e80546001600160a01b0319166001600160a01b039290921691909117905550620004ad92505050565b620000f5828262000191565b5050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166200017c5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e0000000000000000000000604482015260640160405180910390fd5b8051620000f590600990602084019062000231565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000f5576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001ed3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200023f906200045a565b90600052602060002090601f016020900481019282620002635760008555620002ae565b82601f106200027e57805160ff1916838001178555620002ae565b82800160010185558215620002ae579182015b82811115620002ae57825182559160200191906001019062000291565b50620002bc929150620002c0565b5090565b5b80821115620002bc5760008155600101620002c1565b80516001600160a01b0381168114620002ef57600080fd5b919050565b600082601f83011262000305578081fd5b81516001600160401b038082111562000322576200032262000497565b604051601f8301601f19908116603f011681019082821181831017156200034d576200034d62000497565b8160405283815260209250868385880101111562000369578485fd5b8491505b838210156200038c57858201830151818301840152908201906200036d565b838211156200039d57848385830101525b9695505050505050565b600080600080600060a08688031215620003bf578081fd5b85516001600160401b0380821115620003d6578283fd5b620003e489838a01620002f4565b96506020880151915080821115620003fa578283fd5b6200040889838a01620002f4565b955060408801519150808211156200041e578283fd5b506200042d88828901620002f4565b9350506200043e60608701620002d7565b91506200044e60808701620002d7565b90509295509295909350565b600181811c908216806200046f57607f821691505b602082108114156200049157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c614d176200050b60003960008181610888015281816109ba01528181610c7d01528181610fbb015281816111090152818161140801528181611b5e0152818161204101528181612aff015261379b0152614d176000f3fe6080604052600436106103075760003560e01c806370a082311161019a578063d1deba1f116100e1578063e985e9c51161008a578063f108e22511610064578063f108e2251461094a578063f187892214610977578063f5ecbdbc1461099757600080fd5b8063e985e9c5146108c1578063eb8d72b714610917578063eed33cef1461093757600080fd5b8063d547cfb7116100bb578063d547cfb714610864578063dacbcbe214610879578063e8a3d485146108ac57600080fd5b8063d1deba1f146107fd578063d539139314610810578063d547741f1461084457600080fd5b8063a22cb46511610143578063b88d4fde1161011d578063b88d4fde1461079d578063c87b56dd146107bd578063cbed8b9c146107dd57600080fd5b8063a22cb4651461073d578063a42dce801461075d578063b2dcc6a71461077d57600080fd5b8063938e3d7b11610174578063938e3d7b146106f357806395d89b4114610713578063a217fddf1461072857600080fd5b806370a08231146106335780638ee749121461065357806391d14854146106a257600080fd5b80632a205e3d1161025e57806351905636116102075780636352211e116101e15780636352211e146105d357806366ad5c8a146105f357806369b41f951461061357600080fd5b8063519056361461058857806355f804b31461059b5780635c975abb146105bb57600080fd5b80633d8b38f6116102385780633d8b38f61461052857806342842e0e1461054857806342d65a8d1461056857600080fd5b80632a205e3d146104b35780632f2ff15d146104e857806336568abe1461050857600080fd5b8063081812fc116102c057806318160ddd1161029a57806318160ddd1461044e57806323b872dd14610463578063248a9ca31461048357600080fd5b8063081812fc146103c9578063095ea7b31461040e57806310ddb1371461042e57600080fd5b8063047fc9aa116102f1578063047fc9aa1461036357806306fdde031461038757806307e0db17146103a957600080fd5b80621d35671461030c57806301ffc9a71461032e575b600080fd5b34801561031857600080fd5b5061032c610327366004614399565b6109b7565b005b34801561033a57600080fd5b5061034e610349366004613fec565b610adf565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b50610379600c5481565b60405190815260200161035a565b34801561039357600080fd5b5061039c610b3b565b60405161035a9190614748565b3480156103b557600080fd5b5061032c6103c43660046140e2565b610bcd565b3480156103d557600080fd5b506103e96103e4366004613fb0565b610cf2565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161035a565b34801561041a57600080fd5b5061032c610429366004613f6b565b610db2565b34801561043a57600080fd5b5061032c6104493660046140e2565b610f0b565b34801561045a57600080fd5b50600c54610379565b34801561046f57600080fd5b5061032c61047e366004613dc6565b610fff565b34801561048f57600080fd5b5061037961049e366004613fb0565b60009081526020819052604090206001015490565b3480156104bf57600080fd5b506104d36104ce366004614276565b611086565b6040805192835260208301919091520161035a565b3480156104f457600080fd5b5061032c610503366004613fc8565b6111a7565b34801561051457600080fd5b5061032c610523366004613fc8565b6111cd565b34801561053457600080fd5b5061034e61054336600461411a565b611266565b34801561055457600080fd5b5061032c610563366004613dc6565b611332565b34801561057457600080fd5b5061032c61058336600461411a565b61134d565b61032c610596366004613ea4565b611478565b3480156105a757600080fd5b5061032c6105b636600461409c565b6114cb565b3480156105c757600080fd5b50600a5460ff1661034e565b3480156105df57600080fd5b506103e96105ee366004613fb0565b61155c565b3480156105ff57600080fd5b5061032c61060e366004614399565b6115f4565b34801561061f57600080fd5b5061039c61062e3660046140e2565b611675565b34801561063f57600080fd5b5061037961064e366004613d72565b61171c565b34801561065f57600080fd5b5061037961066e36600461421f565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156106ae57600080fd5b5061034e6106bd366004613fc8565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156106ff57600080fd5b5061032c61070e36600461409c565b6117d0565b34801561071f57600080fd5b5061039c611861565b34801561073457600080fd5b50610379600081565b34801561074957600080fd5b5061032c610758366004613e70565b611870565b34801561076957600080fd5b5061032c610778366004613d72565b61187b565b34801561078957600080fd5b5061032c610798366004613f6b565b611940565b3480156107a957600080fd5b5061032c6107b8366004613e06565b6119e1565b3480156107c957600080fd5b5061039c6107d8366004613fb0565b611a69565b3480156107e957600080fd5b5061032c6107f8366004614465565b611aa3565b61032c61080b36600461430a565b611bc9565b34801561081c57600080fd5b506103797f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561085057600080fd5b5061032c61085f366004613fc8565b611d8a565b34801561087057600080fd5b5061039c611db0565b34801561088557600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103e9565b3480156108b857600080fd5b5061039c611e3e565b3480156108cd57600080fd5b5061034e6108dc366004613d8e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561092357600080fd5b5061032c61093236600461411a565b611e4b565b61032c61094536600461416d565b611f28565b34801561095657600080fd5b50600e546103e99073ffffffffffffffffffffffffffffffffffffffff1681565b34801561098357600080fd5b5061032c610992366004613f96565b611f7a565b3480156109a357600080fd5b5061039c6109b2366004614415565b612010565b337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16146109f957600080fd5b61ffff841660009081526001602052604090208054610a1790614b3d565b90508351148015610a56575061ffff8416600090815260016020526040908190209051610a4491906145c2565b60405180910390208380519060200120145b610acd5760405162461bcd60e51b815260206004820152602b60248201527f4c7a52656365697665723a20696e76616c696420736f757263652073656e646960448201527f6e6720636f6e747261637400000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610ad9848484846121a4565b50505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b355750610b35826122af565b92915050565b606060038054610b4a90614b3d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7690614b3d565b8015610bc35780601f10610b9857610100808354040283529160200191610bc3565b820191906000526020600020905b815481529060010190602001808311610ba657829003601f168201915b5050505050905090565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16610c4b5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6040517f07e0db1700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906307e0db17906024015b600060405180830381600087803b158015610cd757600080fd5b505af1158015610ceb573d6000803e3d6000fd5b5050505050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff16610d895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ac4565b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610dbd8261155c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e615760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ac4565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e8a5750610e8a81336108dc565b610efc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ac4565b610f068383612351565b505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16610f895760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6040517f10ddb13700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906310ddb13790602401610cbd565b61100933826123f1565b61107b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac4565b610f06838383612543565b6000806000878760405160200161109e92919061475b565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f40a7bb10000000000000000000000000000000000000000000000000000000008252915073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090611148908c90309086908c908c908c9060040161477d565b604080518083038186803b15801561115f57600080fd5b505afa158015611173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119791906144c5565b9250925050965096945050505050565b6000828152602081905260409020600101546111c38133612776565b610f06838361282c565b73ffffffffffffffffffffffffffffffffffffffff811633146112585760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ac4565b611262828261291c565b5050565b61ffff83166000908152600160205260408120805482919061128790614b3d565b80601f01602080910402602001604051908101604052809291908181526020018280546112b390614b3d565b80156113005780601f106112d557610100808354040283529160200191611300565b820191906000526020600020905b8154815290600101906020018083116112e357829003601f168201915b505050505090508383604051611317929190614596565b60405180910390208180519060200120149150509392505050565b610f06838383604051806020016040528060008152506119e1565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166113cb5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6040517f42d65a8d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d90611441908690869086906004016147de565b600060405180830381600087803b15801561145b57600080fd5b505af115801561146f573d6000803e3d6000fd5b50505050505050565b6114c0898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a915089905088886129d3565b505050505050505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166115495760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b8051611262906009906020840190613b4b565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610b355760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ac4565b3330146116695760405162461bcd60e51b815260206004820152602260248201527f4c7a52656365697665723a2063616c6c6572206d75737420626520427269646760448201527f652e0000000000000000000000000000000000000000000000000000000000006064820152608401610ac4565b610ad984848484612c0a565b61ffff8116600090815260016020526040902080546060919061169790614b3d565b80601f01602080910402602001604051908101604052809291908181526020018280546116c390614b3d565b80156117105780601f106116e557610100808354040283529160200191611710565b820191906000526020600020905b8154815290600101906020018083116116f357829003601f168201915b50505050509050919050565b600073ffffffffffffffffffffffffffffffffffffffff82166117a75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ac4565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205490565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff1661184e5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b805161126290600d906020840190613b4b565b606060048054610b4a90614b3d565b611262338383612ca9565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166118f95760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166119be5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6119c88282612dbd565b600c80549060006119d883614b91565b91905055505050565b6119eb33836123f1565b611a5d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac4565b610ad984848484612f4b565b6060611a73612fd4565b611a7c83612fe3565b604051602001611a8d92919061464f565b6040516020818303038152906040529050919050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611b215760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6040517fcbed8b9c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90611b9b9088908890889088908890600401614999565b600060405180830381600087803b158015611bb557600080fd5b505af11580156114c0573d6000803e3d6000fd5b61ffff85166000908152600260205260408082209051611bea9087906145a6565b908152604080516020928190038301902067ffffffffffffffff871660009081529252902054905080611c5f5760405162461bcd60e51b815260206004820152601d60248201527f4c7a52656365697665723a206e6f2073746f726564206d6573736167650000006044820152606401610ac4565b808383604051611c70929190614596565b604051809103902014611cc55760405162461bcd60e51b815260206004820152601b60248201527f4c7a52656365697665723a20696e76616c6964207061796c6f616400000000006044820152606401610ac4565b61ffff86166000908152600260205260408082209051611ce69088906145a6565b90815260408051918290036020908101832067ffffffffffffffff89166000908152915220919091557f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a90611d5090899089908990899089906004016147fc565b600060405180830381600087803b158015611d6a57600080fd5b505af1158015611d7e573d6000803e3d6000fd5b50505050505050505050565b600082815260208190526040902060010154611da68133612776565b610f06838361291c565b60098054611dbd90614b3d565b80601f0160208091040260200160405190810160405280929190818152602001828054611de990614b3d565b8015611e365780601f10611e0b57610100808354040283529160200191611e36565b820191906000526020600020905b815481529060010190602001808311611e1957829003601f168201915b505050505081565b600d8054611dbd90614b3d565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611ec95760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b61ffff83166000908152600160205260409020611ee7908383613bcf565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611f1b939291906147de565b60405180910390a1505050565b611f70338989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a915089905088886129d3565b5050505050505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611ff85760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b8061200857612005613163565b50565b61200561322a565b6040517f096568f60000000000000000000000000000000000000000000000000000000081523060048201526060907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063f5ecbdbc90829063096568f69060240160206040518083038186803b1580156120a057600080fd5b505afa1580156120b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d891906140fe565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815261ffff918216600482015290871660248201523060448201526064810185905260840160006040518083038186803b15801561213f57600080fd5b505afa158015612153573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526121999190810190614024565b90505b949350505050565b6040517f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a906121e6908790879087908790600401614848565b600060405180830381600087803b15801561220057600080fd5b505af1925050508015612211575060015b610ad9578080519060200120600260008661ffff1661ffff1681526020019081526020016000208460405161224691906145a6565b90815260408051918290036020908101832067ffffffffffffffff87166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906122a2908690869086908690614848565b60405180910390a1610ad9565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061234257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b355750610b35826132d0565b600081815260076020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906123ab8261155c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff166124885760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ac4565b60006124938361155c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061250257508373ffffffffffffffffffffffffffffffffffffffff166124ea84610cf2565b73ffffffffffffffffffffffffffffffffffffffff16145b8061219c575073ffffffffffffffffffffffffffffffffffffffff80821660009081526008602090815260408083209388168352929052205460ff1661219c565b8273ffffffffffffffffffffffffffffffffffffffff166125638261155c565b73ffffffffffffffffffffffffffffffffffffffff16146125ec5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ac4565b73ffffffffffffffffffffffffffffffffffffffff82166126745760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ac4565b61267f600082612351565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602052604081208054600192906126b5908490614ac5565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604081208054600192906126f0908490614a5c565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611262576127cc8173ffffffffffffffffffffffffffffffffffffffff166014613367565b6127d7836020613367565b6040516020016127e892919061467e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b8252610ac491600401614748565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166112625760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556128be3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156112625760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6129dd33866123f1565b612a4f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac4565b612a5b8888888861365a565b60008686604051602001612a7092919061475b565b6040516020818303038152906040529050612ac48882878787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506136b692505050565b6040517f7a14574800000000000000000000000000000000000000000000000000000000815261ffff891660048201523060248201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690637a1457489060440160206040518083038186803b158015612b5657600080fd5b505afa158015612b6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b8e91906144e8565b905087604051612b9e91906145a6565b6040805191829003822089835267ffffffffffffffff841660208401529161ffff8c169173ffffffffffffffffffffffffffffffffffffffff8e16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4611d7e565b60008082806020019051810190612c219190614057565b60148201519193509150612c368782846137f4565b6040805161ffff8916815273ffffffffffffffffffffffffffffffffffffffff8316602082015290810183905267ffffffffffffffff861660608201527fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db9060800160405180910390a150505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d255760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac4565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526008602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8216612e205760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac4565b60008181526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612e925760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac4565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120805460019290612ec8908490614a5c565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b612f56848484612543565b612f62848484846137fe565b610ad95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac4565b606060098054610b4a90614b3d565b60608161302357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561304d578061303781614b91565b91506130469050600a83614a74565b9150613027565b60008167ffffffffffffffff81111561308f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130b9576020820181803683370190505b5090505b841561219c576130ce600183614ac5565b91506130db600a86614bca565b6130e6906030614a5c565b60f81b818381518110613122577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061315c600a86614a74565b94506130bd565b600a5460ff166131b55760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ac4565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600a5460ff161561327d5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ac4565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132003390565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b3557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b35565b60606000613376836002614a88565b613381906002614a5c565b67ffffffffffffffff8111156133c0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133ea576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613448577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061350e846002614a88565b613519906001614a5c565b90505b6001811115613604577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613581577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106135be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936135fd81614b08565b905061351c565b5083156136535760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ac4565b9392505050565b600a5460ff16156136ad5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ac4565b610ad9816139e0565b61ffff8516600090815260016020526040902080546136d490614b3d565b1515905061374a5760405162461bcd60e51b815260206004820152603260248201527f4c7a53656e643a2064657374696e6174696f6e20636861696e206973206e6f7460448201527f2061207472757374656420736f757263652e00000000000000000000000000006064820152608401610ac4565b61ffff85166000908152600160205260409081902090517fc580310000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163c58031009134916137db918a91908a908a908a908a90600401614892565b6000604051808303818588803b158015611d6a57600080fd5b610f068282613aad565b600073ffffffffffffffffffffffffffffffffffffffff84163b156139d8576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906138759033908990889088906004016146ff565b602060405180830381600087803b15801561388f57600080fd5b505af19250505080156138dd575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526138da91810190614008565b60015b61398d573d80801561390b576040519150601f19603f3d011682016040523d82523d6000602084013e613910565b606091505b5080516139855760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac4565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061219c565b50600161219c565b60006139eb8261155c565b90506139f8600083612351565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660205260408120805460019290613a2e908490614ac5565b909155505060008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611262828260405180602001604052806000815250613acc8383612dbd565b613ad960008484846137fe565b610f065760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac4565b828054613b5790614b3d565b90600052602060002090601f016020900481019282613b795760008555613bbf565b82601f10613b9257805160ff1916838001178555613bbf565b82800160010185558215613bbf579182015b82811115613bbf578251825591602001919060010190613ba4565b50613bcb929150613c61565b5090565b828054613bdb90614b3d565b90600052602060002090601f016020900481019282613bfd5760008555613bbf565b82601f10613c34578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613bbf565b82800160010185558215613bbf579182015b82811115613bbf578235825591602001919060010190613c46565b5b80821115613bcb5760008155600101613c62565b6000613c89613c8484614a16565b6149c7565b9050828152838383011115613c9d57600080fd5b828260208301376000602084830101529392505050565b80358015158114613cc457600080fd5b919050565b60008083601f840112613cda578182fd5b50813567ffffffffffffffff811115613cf1578182fd5b602083019150836020828501011115613d0957600080fd5b9250929050565b600082601f830112613d20578081fd5b61365383833560208501613c76565b600082601f830112613d3f578081fd5b8151613d4d613c8482614a16565b818152846020838601011115613d61578283fd5b61219c826020830160208701614adc565b600060208284031215613d83578081fd5b813561365381614c6b565b60008060408385031215613da0578081fd5b8235613dab81614c6b565b91506020830135613dbb81614c6b565b809150509250929050565b600080600060608486031215613dda578081fd5b8335613de581614c6b565b92506020840135613df581614c6b565b929592945050506040919091013590565b60008060008060808587031215613e1b578081fd5b8435613e2681614c6b565b93506020850135613e3681614c6b565b925060408501359150606085013567ffffffffffffffff811115613e58578182fd5b613e6487828801613d10565b91505092959194509250565b60008060408385031215613e82578182fd5b8235613e8d81614c6b565b9150613e9b60208401613cb4565b90509250929050565b600080600080600080600080600060e08a8c031215613ec1578485fd5b8935613ecc81614c6b565b985060208a0135613edc81614cbb565b975060408a013567ffffffffffffffff80821115613ef8578687fd5b613f048d838e01613cc9565b909950975060608c0135965060808c01359150613f2082614c6b565b90945060a08b013590613f3282614c6b565b90935060c08b01359080821115613f47578384fd5b50613f548c828d01613cc9565b915080935050809150509295985092959850929598565b60008060408385031215613f7d578182fd5b8235613f8881614c6b565b946020939093013593505050565b600060208284031215613fa7578081fd5b61365382613cb4565b600060208284031215613fc1578081fd5b5035919050565b60008060408385031215613fda578182fd5b823591506020830135613dbb81614c6b565b600060208284031215613ffd578081fd5b813561365381614c8d565b600060208284031215614019578081fd5b815161365381614c8d565b600060208284031215614035578081fd5b815167ffffffffffffffff81111561404b578182fd5b61219c84828501613d2f565b60008060408385031215614069578182fd5b825167ffffffffffffffff81111561407f578283fd5b61408b85828601613d2f565b925050602083015190509250929050565b6000602082840312156140ad578081fd5b813567ffffffffffffffff8111156140c3578182fd5b8201601f810184136140d3578182fd5b61219c84823560208401613c76565b6000602082840312156140f3578081fd5b813561365381614cbb565b60006020828403121561410f578081fd5b815161365381614cbb565b60008060006040848603121561412e578081fd5b833561413981614cbb565b9250602084013567ffffffffffffffff811115614154578182fd5b61416086828701613cc9565b9497909650939450505050565b60008060008060008060008060c0898b031215614188578182fd5b883561419381614cbb565b9750602089013567ffffffffffffffff808211156141af578384fd5b6141bb8c838d01613cc9565b909950975060408b0135965060608b013591506141d782614c6b565b90945060808a0135906141e982614c6b565b90935060a08a013590808211156141fe578384fd5b5061420b8b828c01613cc9565b999c989b5096995094979396929594505050565b600080600060608486031215614233578081fd5b833561423e81614cbb565b9250602084013567ffffffffffffffff811115614259578182fd5b61426586828701613d10565b925050604084013590509250925092565b60008060008060008060a0878903121561428e578384fd5b863561429981614cbb565b9550602087013567ffffffffffffffff808211156142b5578586fd5b6142c18a838b01613d10565b9650604089013595506142d660608a01613cb4565b945060808901359150808211156142eb578384fd5b506142f889828a01613cc9565b979a9699509497509295939492505050565b600080600080600060808688031215614321578283fd5b853561432c81614cbb565b9450602086013567ffffffffffffffff80821115614348578485fd5b61435489838a01613d10565b95506040880135915061436682614ccb565b9093506060870135908082111561437b578283fd5b5061438888828901613cc9565b969995985093965092949392505050565b600080600080608085870312156143ae578182fd5b84356143b981614cbb565b9350602085013567ffffffffffffffff808211156143d5578384fd5b6143e188838901613d10565b9450604087013591506143f382614ccb565b90925060608601359080821115614408578283fd5b50613e6487828801613d10565b6000806000806080858703121561442a578182fd5b843561443581614cbb565b9350602085013561444581614cbb565b9250604085013561445581614c6b565b9396929550929360600135925050565b60008060008060006080868803121561447c578283fd5b853561448781614cbb565b9450602086013561449781614cbb565b935060408601359250606086013567ffffffffffffffff8111156144b9578182fd5b61438888828901613cc9565b600080604083850312156144d7578182fd5b505080516020909101519092909150565b6000602082840312156144f9578081fd5b815161365381614ccb565b81835281816020850137506000806020838501015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b60008151808452614564816020860160208601614adc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8183823760009101908152919050565b600082516145b8818460208701614adc565b9190910192915050565b60008083546145d081614b3d565b600182811680156145e8576001811461461757614643565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00841687528287019450614643565b8786526020808720875b8581101561463a5781548a820152908401908201614621565b50505082870194505b50929695505050505050565b60008351614661818460208801614adc565b835190830190614675818360208801614adc565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516146b6816017850160208801614adc565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516146f3816028840160208801614adc565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261473e608083018461454c565b9695505050505050565b602081526000613653602083018461454c565b60408152600061476e604083018561454c565b90508260208301529392505050565b61ffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a0604082015260006147b660a083018761454c565b851515606084015282810360808401526147d1818587614504565b9998505050505050505050565b61ffff84168152604060208201526000612199604083018486614504565b61ffff86168152608060208201526000614819608083018761454c565b67ffffffffffffffff86166040840152828103606084015261483c818587614504565b98975050505050505050565b61ffff85168152608060208201526000614865608083018661454c565b67ffffffffffffffff851660408401528281036060840152614887818561454c565b979650505050505050565b61ffff871681526000602060c0818401528188546148af81614b3d565b8060c087015260e06001808416600081146148d157600181146149045761492f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838a01526101008901955061492f565b8d8852868820885b858110156149275781548b820186015290830190880161490c565b8a0184019650505b50505050508381036040850152614946818961454c565b91505061496b606084018773ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff8516608084015282810360a08401526147d1818561454c565b600061ffff808816835280871660208401525084604083015260806060830152614887608083018486614504565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614a0e57614a0e614c3c565b604052919050565b600067ffffffffffffffff821115614a3057614a30614c3c565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115614a6f57614a6f614bde565b500190565b600082614a8357614a83614c0d565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ac057614ac0614bde565b500290565b600082821015614ad757614ad7614bde565b500390565b60005b83811015614af7578181015183820152602001614adf565b83811115610ad95750506000910152565b600081614b1757614b17614bde565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680614b5157607f821691505b60208210811415614b8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bc357614bc3614bde565b5060010190565b600082614bd957614bd9614c0d565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461200557600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461200557600080fd5b61ffff8116811461200557600080fd5b67ffffffffffffffff8116811461200557600080fdfea2646970667358221220cfffa04848a7ad3e96b6a7620c7750c9789cc87eebaf8d1ecf9ee6b361e6a11864736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc4000000000000000000000000000000000000000000000000000000000000001750617374656c20576f726c6420486f6e6f726172696573000000000000000000000000000000000000000000000000000000000000000000000000000000000650415354454c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f62616679626569646936326b747833366e6e6a36727134716164347570706e736e327a6a796a633476667465723765327176656466783766647565000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103075760003560e01c806370a082311161019a578063d1deba1f116100e1578063e985e9c51161008a578063f108e22511610064578063f108e2251461094a578063f187892214610977578063f5ecbdbc1461099757600080fd5b8063e985e9c5146108c1578063eb8d72b714610917578063eed33cef1461093757600080fd5b8063d547cfb7116100bb578063d547cfb714610864578063dacbcbe214610879578063e8a3d485146108ac57600080fd5b8063d1deba1f146107fd578063d539139314610810578063d547741f1461084457600080fd5b8063a22cb46511610143578063b88d4fde1161011d578063b88d4fde1461079d578063c87b56dd146107bd578063cbed8b9c146107dd57600080fd5b8063a22cb4651461073d578063a42dce801461075d578063b2dcc6a71461077d57600080fd5b8063938e3d7b11610174578063938e3d7b146106f357806395d89b4114610713578063a217fddf1461072857600080fd5b806370a08231146106335780638ee749121461065357806391d14854146106a257600080fd5b80632a205e3d1161025e57806351905636116102075780636352211e116101e15780636352211e146105d357806366ad5c8a146105f357806369b41f951461061357600080fd5b8063519056361461058857806355f804b31461059b5780635c975abb146105bb57600080fd5b80633d8b38f6116102385780633d8b38f61461052857806342842e0e1461054857806342d65a8d1461056857600080fd5b80632a205e3d146104b35780632f2ff15d146104e857806336568abe1461050857600080fd5b8063081812fc116102c057806318160ddd1161029a57806318160ddd1461044e57806323b872dd14610463578063248a9ca31461048357600080fd5b8063081812fc146103c9578063095ea7b31461040e57806310ddb1371461042e57600080fd5b8063047fc9aa116102f1578063047fc9aa1461036357806306fdde031461038757806307e0db17146103a957600080fd5b80621d35671461030c57806301ffc9a71461032e575b600080fd5b34801561031857600080fd5b5061032c610327366004614399565b6109b7565b005b34801561033a57600080fd5b5061034e610349366004613fec565b610adf565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b50610379600c5481565b60405190815260200161035a565b34801561039357600080fd5b5061039c610b3b565b60405161035a9190614748565b3480156103b557600080fd5b5061032c6103c43660046140e2565b610bcd565b3480156103d557600080fd5b506103e96103e4366004613fb0565b610cf2565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161035a565b34801561041a57600080fd5b5061032c610429366004613f6b565b610db2565b34801561043a57600080fd5b5061032c6104493660046140e2565b610f0b565b34801561045a57600080fd5b50600c54610379565b34801561046f57600080fd5b5061032c61047e366004613dc6565b610fff565b34801561048f57600080fd5b5061037961049e366004613fb0565b60009081526020819052604090206001015490565b3480156104bf57600080fd5b506104d36104ce366004614276565b611086565b6040805192835260208301919091520161035a565b3480156104f457600080fd5b5061032c610503366004613fc8565b6111a7565b34801561051457600080fd5b5061032c610523366004613fc8565b6111cd565b34801561053457600080fd5b5061034e61054336600461411a565b611266565b34801561055457600080fd5b5061032c610563366004613dc6565b611332565b34801561057457600080fd5b5061032c61058336600461411a565b61134d565b61032c610596366004613ea4565b611478565b3480156105a757600080fd5b5061032c6105b636600461409c565b6114cb565b3480156105c757600080fd5b50600a5460ff1661034e565b3480156105df57600080fd5b506103e96105ee366004613fb0565b61155c565b3480156105ff57600080fd5b5061032c61060e366004614399565b6115f4565b34801561061f57600080fd5b5061039c61062e3660046140e2565b611675565b34801561063f57600080fd5b5061037961064e366004613d72565b61171c565b34801561065f57600080fd5b5061037961066e36600461421f565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156106ae57600080fd5b5061034e6106bd366004613fc8565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156106ff57600080fd5b5061032c61070e36600461409c565b6117d0565b34801561071f57600080fd5b5061039c611861565b34801561073457600080fd5b50610379600081565b34801561074957600080fd5b5061032c610758366004613e70565b611870565b34801561076957600080fd5b5061032c610778366004613d72565b61187b565b34801561078957600080fd5b5061032c610798366004613f6b565b611940565b3480156107a957600080fd5b5061032c6107b8366004613e06565b6119e1565b3480156107c957600080fd5b5061039c6107d8366004613fb0565b611a69565b3480156107e957600080fd5b5061032c6107f8366004614465565b611aa3565b61032c61080b36600461430a565b611bc9565b34801561081c57600080fd5b506103797f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561085057600080fd5b5061032c61085f366004613fc8565b611d8a565b34801561087057600080fd5b5061039c611db0565b34801561088557600080fd5b507f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756103e9565b3480156108b857600080fd5b5061039c611e3e565b3480156108cd57600080fd5b5061034e6108dc366004613d8e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561092357600080fd5b5061032c61093236600461411a565b611e4b565b61032c61094536600461416d565b611f28565b34801561095657600080fd5b50600e546103e99073ffffffffffffffffffffffffffffffffffffffff1681565b34801561098357600080fd5b5061032c610992366004613f96565b611f7a565b3480156109a357600080fd5b5061039c6109b2366004614415565b612010565b337f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff16146109f957600080fd5b61ffff841660009081526001602052604090208054610a1790614b3d565b90508351148015610a56575061ffff8416600090815260016020526040908190209051610a4491906145c2565b60405180910390208380519060200120145b610acd5760405162461bcd60e51b815260206004820152602b60248201527f4c7a52656365697665723a20696e76616c696420736f757263652073656e646960448201527f6e6720636f6e747261637400000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610ad9848484846121a4565b50505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b355750610b35826122af565b92915050565b606060038054610b4a90614b3d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7690614b3d565b8015610bc35780601f10610b9857610100808354040283529160200191610bc3565b820191906000526020600020905b815481529060010190602001808311610ba657829003601f168201915b5050505050905090565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16610c4b5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6040517f07e0db1700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff16906307e0db17906024015b600060405180830381600087803b158015610cd757600080fd5b505af1158015610ceb573d6000803e3d6000fd5b5050505050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff16610d895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ac4565b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610dbd8261155c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e615760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ac4565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e8a5750610e8a81336108dc565b610efc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ac4565b610f068383612351565b505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16610f895760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6040517f10ddb13700000000000000000000000000000000000000000000000000000000815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff16906310ddb13790602401610cbd565b61100933826123f1565b61107b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac4565b610f06838383612543565b6000806000878760405160200161109e92919061475b565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f40a7bb10000000000000000000000000000000000000000000000000000000008252915073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906340a7bb1090611148908c90309086908c908c908c9060040161477d565b604080518083038186803b15801561115f57600080fd5b505afa158015611173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119791906144c5565b9250925050965096945050505050565b6000828152602081905260409020600101546111c38133612776565b610f06838361282c565b73ffffffffffffffffffffffffffffffffffffffff811633146112585760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ac4565b611262828261291c565b5050565b61ffff83166000908152600160205260408120805482919061128790614b3d565b80601f01602080910402602001604051908101604052809291908181526020018280546112b390614b3d565b80156113005780601f106112d557610100808354040283529160200191611300565b820191906000526020600020905b8154815290600101906020018083116112e357829003601f168201915b505050505090508383604051611317929190614596565b60405180910390208180519060200120149150509392505050565b610f06838383604051806020016040528060008152506119e1565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166113cb5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6040517f42d65a8d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906342d65a8d90611441908690869086906004016147de565b600060405180830381600087803b15801561145b57600080fd5b505af115801561146f573d6000803e3d6000fd5b50505050505050565b6114c0898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a915089905088886129d3565b505050505050505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166115495760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b8051611262906009906020840190613b4b565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610b355760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ac4565b3330146116695760405162461bcd60e51b815260206004820152602260248201527f4c7a52656365697665723a2063616c6c6572206d75737420626520427269646760448201527f652e0000000000000000000000000000000000000000000000000000000000006064820152608401610ac4565b610ad984848484612c0a565b61ffff8116600090815260016020526040902080546060919061169790614b3d565b80601f01602080910402602001604051908101604052809291908181526020018280546116c390614b3d565b80156117105780601f106116e557610100808354040283529160200191611710565b820191906000526020600020905b8154815290600101906020018083116116f357829003601f168201915b50505050509050919050565b600073ffffffffffffffffffffffffffffffffffffffff82166117a75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ac4565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205490565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff1661184e5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b805161126290600d906020840190613b4b565b606060048054610b4a90614b3d565b611262338383612ca9565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166118f95760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166119be5760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6119c88282612dbd565b600c80549060006119d883614b91565b91905055505050565b6119eb33836123f1565b611a5d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac4565b610ad984848484612f4b565b6060611a73612fd4565b611a7c83612fe3565b604051602001611a8d92919061464f565b6040516020818303038152906040529050919050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611b215760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b6040517fcbed8b9c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063cbed8b9c90611b9b9088908890889088908890600401614999565b600060405180830381600087803b158015611bb557600080fd5b505af11580156114c0573d6000803e3d6000fd5b61ffff85166000908152600260205260408082209051611bea9087906145a6565b908152604080516020928190038301902067ffffffffffffffff871660009081529252902054905080611c5f5760405162461bcd60e51b815260206004820152601d60248201527f4c7a52656365697665723a206e6f2073746f726564206d6573736167650000006044820152606401610ac4565b808383604051611c70929190614596565b604051809103902014611cc55760405162461bcd60e51b815260206004820152601b60248201527f4c7a52656365697665723a20696e76616c6964207061796c6f616400000000006044820152606401610ac4565b61ffff86166000908152600260205260408082209051611ce69088906145a6565b90815260408051918290036020908101832067ffffffffffffffff89166000908152915220919091557f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a90611d5090899089908990899089906004016147fc565b600060405180830381600087803b158015611d6a57600080fd5b505af1158015611d7e573d6000803e3d6000fd5b50505050505050505050565b600082815260208190526040902060010154611da68133612776565b610f06838361291c565b60098054611dbd90614b3d565b80601f0160208091040260200160405190810160405280929190818152602001828054611de990614b3d565b8015611e365780601f10611e0b57610100808354040283529160200191611e36565b820191906000526020600020905b815481529060010190602001808311611e1957829003601f168201915b505050505081565b600d8054611dbd90614b3d565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611ec95760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b61ffff83166000908152600160205260409020611ee7908383613bcf565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611f1b939291906147de565b60405180910390a1505050565b611f70338989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a915089905088886129d3565b5050505050505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611ff85760405162461bcd60e51b815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ac4565b8061200857612005613163565b50565b61200561322a565b6040517f096568f60000000000000000000000000000000000000000000000000000000081523060048201526060907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff169063f5ecbdbc90829063096568f69060240160206040518083038186803b1580156120a057600080fd5b505afa1580156120b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d891906140fe565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815261ffff918216600482015290871660248201523060448201526064810185905260840160006040518083038186803b15801561213f57600080fd5b505afa158015612153573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526121999190810190614024565b90505b949350505050565b6040517f66ad5c8a00000000000000000000000000000000000000000000000000000000815230906366ad5c8a906121e6908790879087908790600401614848565b600060405180830381600087803b15801561220057600080fd5b505af1925050508015612211575060015b610ad9578080519060200120600260008661ffff1661ffff1681526020019081526020016000208460405161224691906145a6565b90815260408051918290036020908101832067ffffffffffffffff87166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906122a2908690869086908690614848565b60405180910390a1610ad9565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061234257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b355750610b35826132d0565b600081815260076020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906123ab8261155c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526005602052604081205473ffffffffffffffffffffffffffffffffffffffff166124885760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ac4565b60006124938361155c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061250257508373ffffffffffffffffffffffffffffffffffffffff166124ea84610cf2565b73ffffffffffffffffffffffffffffffffffffffff16145b8061219c575073ffffffffffffffffffffffffffffffffffffffff80821660009081526008602090815260408083209388168352929052205460ff1661219c565b8273ffffffffffffffffffffffffffffffffffffffff166125638261155c565b73ffffffffffffffffffffffffffffffffffffffff16146125ec5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ac4565b73ffffffffffffffffffffffffffffffffffffffff82166126745760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ac4565b61267f600082612351565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602052604081208054600192906126b5908490614ac5565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604081208054600192906126f0908490614a5c565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611262576127cc8173ffffffffffffffffffffffffffffffffffffffff166014613367565b6127d7836020613367565b6040516020016127e892919061467e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b8252610ac491600401614748565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166112625760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556128be3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156112625760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6129dd33866123f1565b612a4f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac4565b612a5b8888888861365a565b60008686604051602001612a7092919061475b565b6040516020818303038152906040529050612ac48882878787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506136b692505050565b6040517f7a14574800000000000000000000000000000000000000000000000000000000815261ffff891660048201523060248201526000907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67573ffffffffffffffffffffffffffffffffffffffff1690637a1457489060440160206040518083038186803b158015612b5657600080fd5b505afa158015612b6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b8e91906144e8565b905087604051612b9e91906145a6565b6040805191829003822089835267ffffffffffffffff841660208401529161ffff8c169173ffffffffffffffffffffffffffffffffffffffff8e16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4611d7e565b60008082806020019051810190612c219190614057565b60148201519193509150612c368782846137f4565b6040805161ffff8916815273ffffffffffffffffffffffffffffffffffffffff8316602082015290810183905267ffffffffffffffff861660608201527fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db9060800160405180910390a150505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d255760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac4565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526008602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8216612e205760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac4565b60008181526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612e925760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac4565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120805460019290612ec8908490614a5c565b909155505060008181526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b612f56848484612543565b612f62848484846137fe565b610ad95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac4565b606060098054610b4a90614b3d565b60608161302357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561304d578061303781614b91565b91506130469050600a83614a74565b9150613027565b60008167ffffffffffffffff81111561308f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130b9576020820181803683370190505b5090505b841561219c576130ce600183614ac5565b91506130db600a86614bca565b6130e6906030614a5c565b60f81b818381518110613122577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061315c600a86614a74565b94506130bd565b600a5460ff166131b55760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ac4565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600a5460ff161561327d5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ac4565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132003390565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b3557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b35565b60606000613376836002614a88565b613381906002614a5c565b67ffffffffffffffff8111156133c0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133ea576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613448577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061350e846002614a88565b613519906001614a5c565b90505b6001811115613604577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613581577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106135be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936135fd81614b08565b905061351c565b5083156136535760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ac4565b9392505050565b600a5460ff16156136ad5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ac4565b610ad9816139e0565b61ffff8516600090815260016020526040902080546136d490614b3d565b1515905061374a5760405162461bcd60e51b815260206004820152603260248201527f4c7a53656e643a2064657374696e6174696f6e20636861696e206973206e6f7460448201527f2061207472757374656420736f757263652e00000000000000000000000000006064820152608401610ac4565b61ffff85166000908152600160205260409081902090517fc580310000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169163c58031009134916137db918a91908a908a908a908a90600401614892565b6000604051808303818588803b158015611d6a57600080fd5b610f068282613aad565b600073ffffffffffffffffffffffffffffffffffffffff84163b156139d8576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906138759033908990889088906004016146ff565b602060405180830381600087803b15801561388f57600080fd5b505af19250505080156138dd575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526138da91810190614008565b60015b61398d573d80801561390b576040519150601f19603f3d011682016040523d82523d6000602084013e613910565b606091505b5080516139855760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac4565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061219c565b50600161219c565b60006139eb8261155c565b90506139f8600083612351565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660205260408120805460019290613a2e908490614ac5565b909155505060008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611262828260405180602001604052806000815250613acc8383612dbd565b613ad960008484846137fe565b610f065760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac4565b828054613b5790614b3d565b90600052602060002090601f016020900481019282613b795760008555613bbf565b82601f10613b9257805160ff1916838001178555613bbf565b82800160010185558215613bbf579182015b82811115613bbf578251825591602001919060010190613ba4565b50613bcb929150613c61565b5090565b828054613bdb90614b3d565b90600052602060002090601f016020900481019282613bfd5760008555613bbf565b82601f10613c34578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613bbf565b82800160010185558215613bbf579182015b82811115613bbf578235825591602001919060010190613c46565b5b80821115613bcb5760008155600101613c62565b6000613c89613c8484614a16565b6149c7565b9050828152838383011115613c9d57600080fd5b828260208301376000602084830101529392505050565b80358015158114613cc457600080fd5b919050565b60008083601f840112613cda578182fd5b50813567ffffffffffffffff811115613cf1578182fd5b602083019150836020828501011115613d0957600080fd5b9250929050565b600082601f830112613d20578081fd5b61365383833560208501613c76565b600082601f830112613d3f578081fd5b8151613d4d613c8482614a16565b818152846020838601011115613d61578283fd5b61219c826020830160208701614adc565b600060208284031215613d83578081fd5b813561365381614c6b565b60008060408385031215613da0578081fd5b8235613dab81614c6b565b91506020830135613dbb81614c6b565b809150509250929050565b600080600060608486031215613dda578081fd5b8335613de581614c6b565b92506020840135613df581614c6b565b929592945050506040919091013590565b60008060008060808587031215613e1b578081fd5b8435613e2681614c6b565b93506020850135613e3681614c6b565b925060408501359150606085013567ffffffffffffffff811115613e58578182fd5b613e6487828801613d10565b91505092959194509250565b60008060408385031215613e82578182fd5b8235613e8d81614c6b565b9150613e9b60208401613cb4565b90509250929050565b600080600080600080600080600060e08a8c031215613ec1578485fd5b8935613ecc81614c6b565b985060208a0135613edc81614cbb565b975060408a013567ffffffffffffffff80821115613ef8578687fd5b613f048d838e01613cc9565b909950975060608c0135965060808c01359150613f2082614c6b565b90945060a08b013590613f3282614c6b565b90935060c08b01359080821115613f47578384fd5b50613f548c828d01613cc9565b915080935050809150509295985092959850929598565b60008060408385031215613f7d578182fd5b8235613f8881614c6b565b946020939093013593505050565b600060208284031215613fa7578081fd5b61365382613cb4565b600060208284031215613fc1578081fd5b5035919050565b60008060408385031215613fda578182fd5b823591506020830135613dbb81614c6b565b600060208284031215613ffd578081fd5b813561365381614c8d565b600060208284031215614019578081fd5b815161365381614c8d565b600060208284031215614035578081fd5b815167ffffffffffffffff81111561404b578182fd5b61219c84828501613d2f565b60008060408385031215614069578182fd5b825167ffffffffffffffff81111561407f578283fd5b61408b85828601613d2f565b925050602083015190509250929050565b6000602082840312156140ad578081fd5b813567ffffffffffffffff8111156140c3578182fd5b8201601f810184136140d3578182fd5b61219c84823560208401613c76565b6000602082840312156140f3578081fd5b813561365381614cbb565b60006020828403121561410f578081fd5b815161365381614cbb565b60008060006040848603121561412e578081fd5b833561413981614cbb565b9250602084013567ffffffffffffffff811115614154578182fd5b61416086828701613cc9565b9497909650939450505050565b60008060008060008060008060c0898b031215614188578182fd5b883561419381614cbb565b9750602089013567ffffffffffffffff808211156141af578384fd5b6141bb8c838d01613cc9565b909950975060408b0135965060608b013591506141d782614c6b565b90945060808a0135906141e982614c6b565b90935060a08a013590808211156141fe578384fd5b5061420b8b828c01613cc9565b999c989b5096995094979396929594505050565b600080600060608486031215614233578081fd5b833561423e81614cbb565b9250602084013567ffffffffffffffff811115614259578182fd5b61426586828701613d10565b925050604084013590509250925092565b60008060008060008060a0878903121561428e578384fd5b863561429981614cbb565b9550602087013567ffffffffffffffff808211156142b5578586fd5b6142c18a838b01613d10565b9650604089013595506142d660608a01613cb4565b945060808901359150808211156142eb578384fd5b506142f889828a01613cc9565b979a9699509497509295939492505050565b600080600080600060808688031215614321578283fd5b853561432c81614cbb565b9450602086013567ffffffffffffffff80821115614348578485fd5b61435489838a01613d10565b95506040880135915061436682614ccb565b9093506060870135908082111561437b578283fd5b5061438888828901613cc9565b969995985093965092949392505050565b600080600080608085870312156143ae578182fd5b84356143b981614cbb565b9350602085013567ffffffffffffffff808211156143d5578384fd5b6143e188838901613d10565b9450604087013591506143f382614ccb565b90925060608601359080821115614408578283fd5b50613e6487828801613d10565b6000806000806080858703121561442a578182fd5b843561443581614cbb565b9350602085013561444581614cbb565b9250604085013561445581614c6b565b9396929550929360600135925050565b60008060008060006080868803121561447c578283fd5b853561448781614cbb565b9450602086013561449781614cbb565b935060408601359250606086013567ffffffffffffffff8111156144b9578182fd5b61438888828901613cc9565b600080604083850312156144d7578182fd5b505080516020909101519092909150565b6000602082840312156144f9578081fd5b815161365381614ccb565b81835281816020850137506000806020838501015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b60008151808452614564816020860160208601614adc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8183823760009101908152919050565b600082516145b8818460208701614adc565b9190910192915050565b60008083546145d081614b3d565b600182811680156145e8576001811461461757614643565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00841687528287019450614643565b8786526020808720875b8581101561463a5781548a820152908401908201614621565b50505082870194505b50929695505050505050565b60008351614661818460208801614adc565b835190830190614675818360208801614adc565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516146b6816017850160208801614adc565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516146f3816028840160208801614adc565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261473e608083018461454c565b9695505050505050565b602081526000613653602083018461454c565b60408152600061476e604083018561454c565b90508260208301529392505050565b61ffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a0604082015260006147b660a083018761454c565b851515606084015282810360808401526147d1818587614504565b9998505050505050505050565b61ffff84168152604060208201526000612199604083018486614504565b61ffff86168152608060208201526000614819608083018761454c565b67ffffffffffffffff86166040840152828103606084015261483c818587614504565b98975050505050505050565b61ffff85168152608060208201526000614865608083018661454c565b67ffffffffffffffff851660408401528281036060840152614887818561454c565b979650505050505050565b61ffff871681526000602060c0818401528188546148af81614b3d565b8060c087015260e06001808416600081146148d157600181146149045761492f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838a01526101008901955061492f565b8d8852868820885b858110156149275781548b820186015290830190880161490c565b8a0184019650505b50505050508381036040850152614946818961454c565b91505061496b606084018773ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff8516608084015282810360a08401526147d1818561454c565b600061ffff808816835280871660208401525084604083015260806060830152614887608083018486614504565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614a0e57614a0e614c3c565b604052919050565b600067ffffffffffffffff821115614a3057614a30614c3c565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115614a6f57614a6f614bde565b500190565b600082614a8357614a83614c0d565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ac057614ac0614bde565b500290565b600082821015614ad757614ad7614bde565b500390565b60005b83811015614af7578181015183820152602001614adf565b83811115610ad95750506000910152565b600081614b1757614b17614bde565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680614b5157607f821691505b60208210811415614b8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bc357614bc3614bde565b5060010190565b600082614bd957614bd9614c0d565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461200557600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461200557600080fd5b61ffff8116811461200557600080fd5b67ffffffffffffffff8116811461200557600080fdfea2646970667358221220cfffa04848a7ad3e96b6a7620c7750c9789cc87eebaf8d1ecf9ee6b361e6a11864736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc4000000000000000000000000000000000000000000000000000000000000001750617374656c20576f726c6420486f6e6f726172696573000000000000000000000000000000000000000000000000000000000000000000000000000000000650415354454c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f62616679626569646936326b747833366e6e6a36727134716164347570706e736e327a6a796a633476667465723765327176656466783766647565000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Pastel World Honoraries
Arg [1] : _symbol (string): PASTEL
Arg [2] : _baseTokenURI (string): ipfs://bafybeidi62ktx36nnj6rq4qad4uppnsn2zjyjc4vfter7e2qvedfx7fdue
Arg [3] : _layerZeroEndpoint (address): 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675
Arg [4] : _feeCollectorAddress (address): 0xD465A03ad59D86dd67db03d08343A1F11a7f3dC4
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Arg [4] : 000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc4
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [6] : 50617374656c20576f726c6420486f6e6f726172696573000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 50415354454c0000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [10] : 697066733a2f2f62616679626569646936326b747833366e6e6a367271347161
Arg [11] : 64347570706e736e327a6a796a63347666746572376532717665646678376664
Arg [12] : 7565000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.