Contract Overview
Balance:
0 ETH
ETH Value:
$0.00
My Name Tag:
Not Available
TokenTracker:
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
DP2
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.7; // ---------------------------. // ..-**-::::::...=++++==++++=::=-=+****+:... // ++==-:::.::. ....-===---===: ...... -==+= // .=== .......:.. .::.-==---==:.. . ..:::.:+= // :=- ..:...=+----=+: -======-:::.... .:++++= *- // :+=. .::..-**++=-----**++====-::::::-. .-**-=:..:-*-@. // *=:...:. ..:::::=::::::...+**=--:+: .-@.:++=-=== .::-+@: // @...::: ===-:::=#**%@@@@@+===+=...=: .==:%+--+##====+**::++: // @@-:::. -++++@@@@@@@@@*. .+=. ::#*+*@@@@+. ++=+- // :@-..:....+-.. .*#@@@@@#. .-+: .-*+-@@@@@+....%@+ // *- .-+=-*-+++=.++++#@@@@++++++++@: ..:+===+*%@%*+:=#= // @=::::-*. .:=*--.:..::: .....+ .::. .:.:-=---==-+@- // -# .:::. :::-=--..::::. ... . :--::..::-=--==-:-===--*= // :%: :...:==-.::::. ..---::::::-==------==++-.. :==:--*+. // -*-:.. :::=*#+--******########################*****##*+*=++ // %+:. :+**==*%%**************************************%#%### // %+:: +*-:=*%*******##***************************##******#@# // #+::. @ .:+%#*******##%%%%%%%%%%%##############%%#********### // #+:.. @.:::-+%*******************##############**********#*=@ // %+..... ::::::*#%%%%#*********************************%%*: .@ // %= .::::::. .:=#*#*############********#########-: .== // #+: ...::: .::... .:--::::---+######%#-=====-:: -+=. // @@%*=. ...::::::...: . .. ..::::::-=::::.:--:.+=. // .===#:.-#@+ :::--...: . :: ..:..:-===-....=**@+@@*: // .*@@@+*-: :**%=::: .:-=-:..: .. ......:--:.:..:*%*++%@@%#+: // +%*:-*@@%%=... ---+#= :===-:: :-------==-:....:-=+*%@%-+##=:=#. // ##- :=%@@@@@+. ..... ...:=-: :--=+==+++=:..:-##@@@#=-*#%- .+@ // @#*****+++==+++@@@@#=+++++===+***=====+=++++=+++++%@@@@@*::+#+ *- *@. // @=::::: -+--.+=+###%@@@@%###############****####*:.=*##=. :+: #%- // @=:::::::. .=#+::--. .:-=**##+=-:-----:... ...:-++---:-***%**=:. :+- // @=--=-::#%#==#@ -#- .-++. .::##########************- +%%*======+%@* *= // @+=====:@@@@@@@@ -+- ==. @%+=*%===%*===#@ *= // @+=-....@#%@@%#@ -+= .-+=:: .@+===*%===%*=====@:.+*: // @+-:....@=*%%*:@::** .::=:.. :@====*#===#*==+==@: :*# // @-.....-@=-==:.@ ==: --=++++ :@==*+========*%==@: .+# // @*+++++*@=-:...@+. ============+###@#+*#*===**#*=*@ := // @-......@=-:...@ ..==#@**%--=#@#++*#*+=+#%#. :% // @: :%=-: .:@: .+*+==%#-*=--+##******=-: :@ // @: .*@-::....=@*: .=#=-+*+.=##+: :@ // @: +%**--... %= %+-+*= +. @ // @: -*@+@#- .% #= .=**+. @ // @: .-@@:. -@**%- @ // @: @++++#@@@@: :+++++++++++++: @ // @: -========%%#+:::::......:+*++**@@*==== ..@ // @#****************++++++*-:::::----::::--.......:: .-:.:-=#*++++++**++++***@ // @%####%**##***#####*******#############%%##########***##**#####**#########**##@ // @@%%%%% #%= :%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= :%@ // +@@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= :%@ // #@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= :@@ // #@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= :@: // #@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= :@ // #@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= :@ // #@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%@#.....*@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= :@ // #@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%@* +@%%%%%%%%#-=-*%+---%---+*-==%%%= :@ // #@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%@* +@%%%%%%%%#:%+.*==# % -:=+.==%%%= :@ // #@%%%% #%= :%%%%%%%%%%%%%%%%%%%%%@* +@%%%%%%%%#.+ -#=:= % #%%+.++%%%= :@ // #@@@@@- :*= :%%%%%%%%%%%%%%%%%%%%%@* =%@%%%%%%%%###%%####%#%%%%###%%%*-=@ // :::::-%**##**%%@%@@%%%%%%%%%%%%%%@@+ -%%%%%@@%%%%%%%%%%%%%%%%%%%%@%%%%%% // @:-+++@============: -===+@+++*%%=========== // @. .-@ .@.:--+# // .@. :@........::: .%%---:=@*+++******#. // @+. --========@@- :*%=-:..-= .:=***@*++++ // @-... .. :++*@*+++- -@*:...::: .:::-******+- // @*+-:..... .====+++#%+ :*++=+++=--..=*******%+ // ..*#****%-::-=======** .......**********#- import "./UniversalONFT721.sol"; /// @title Diamond Pepes 2 - Duel Pepes NFT contracts /// @notice Omnichain NFT contracts - groppa. /// Each contract deployed to a chain should carefully set a `_startMintIndex` and a `_maxMint` /// value to set a range of allowed mintable nftIds (so that no two chains can mint the same id!) contract DP2 is UniversalONFT721 { constructor( address _trustedMinter, address _layerZeroEndpoint, uint _endMintId ) UniversalONFT721(_trustedMinter, "Duel Pepes", "DP-2", _layerZeroEndpoint, _endMintId) {} }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.7; import "./ONFT721.sol"; import {IDuelPepesWhitelist} from './interfaces/IDuelPepesWhitelist.sol'; import {IDuelPepes} from './interfaces/IDuelPepes.sol'; /// @title Interface of the UniversalONFT standard contract UniversalONFT721 is ONFT721 { address public trustedMinter; uint public nextMintId; uint public publicMints; uint public maxPublicMints; /// @notice Constructor for the UniversalONFT /// @param _maxPublicMints the max number of public sale mints on this chain /// @param _trustedMinter whitelisted address /// @param _name the name of the token /// @param _symbol the token symbol /// @param _layerZeroEndpoint handles message transmission across chains /// @param _maxPublicMints the max number of public sale mints on this chain constructor( address _trustedMinter, string memory _name, string memory _symbol, address _layerZeroEndpoint, uint _maxPublicMints ) ONFT721(_name, _symbol, _layerZeroEndpoint) { maxPublicMints = _maxPublicMints; trustedMinter = _trustedMinter; } /// @notice Mint your ONFT function mint(uint256 number, address receiver) external { require(msg.sender == trustedMinter, "Not authorized"); require(publicMints + number - 1 <= maxPublicMints, "ONFT: Max Mint limit reached"); uint256 newId; for (uint i = 0; i < number; ++i) { newId = nextMintId; nextMintId++; _safeMint(receiver, newId); } } /// @notice Mint admin NFTs function adminMint() external onlyOwner { uint newId = nextMintId; nextMintId++; _safeMint(msg.sender, newId); } /// @notice Set trusted minter function adminSetTrustedMinter(address minter) external onlyOwner { trustedMinter = minter; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/IONFT721.sol"; import "./lzApp/NonblockingLzApp.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; contract ONFT721 is IONFT721, NonblockingLzApp, ERC721 { constructor( string memory _name, string memory _symbol, address _lzEndpoint ) ERC721(_name, _symbol) NonblockingLzApp(_lzEndpoint) {} function estimateSendFee( uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, bool _useZro, bytes calldata _adapterParams ) public view virtual override returns (uint nativeFee, uint zroFee) { // mock the payload for send() bytes memory payload = abi.encode(_toAddress, _tokenId); return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams); } function sendFrom( address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams ) public payable virtual override { _send(_from, _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParams); } function send( uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams ) public payable virtual override { _send(_msgSender(), _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParams); } function _send( address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams ) internal virtual { require(_isApprovedOrOwner(_msgSender(), _tokenId), "ONFT721: send caller is not owner nor approved"); require(ERC721.ownerOf(_tokenId) == _from, "ONFT721: send from incorrect owner"); _beforeSend(_from, _dstChainId, _toAddress, _tokenId); bytes memory payload = abi.encode(_toAddress, _tokenId); _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParams); 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 toAddressBytes, uint tokenId) = abi.decode(_payload, (bytes, uint)); address toAddress; assembly { toAddress := mload(add(toAddressBytes, 20)) } _afterReceive(_srcChainId, toAddress, tokenId); emit ReceiveFromChain(_srcChainId, toAddress, 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); } }
interface IDuelPepesWhitelist { function isWhitelistActive() external returns (bool); function isWhitelisted(address duellor) external returns (bool); }
interface IDuelPepes { struct Duel { // unique identifier for duel (salt) bytes32 identifier; // 0 index = creator, 1 index = challenger address[2] duellors; // Wager amount in WETH uint wager; // Fees at the time of duel creation uint fees; // Initial hashed move set signature when creating duel bytes initialMovesSignature; // Moves selected by duel participants // 0 index = creator, 1 index = challenger uint[5][2] moves; // Who won the duel bool isCreatorWinner; // 0 index - Time created, 1 index - time challenged, 2 - time decided uint[3] timestamps; } enum Moves { // Accurate [1, 1, 0] Punch, // Strength [2, 0, 0] Kick, // Defense [0, 0, 3] Block, // Special attack [3, 0, 0] Special } function getDuel(uint _id) external view returns (Duel memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /** * @dev Interface of the ONFT standard */ interface IONFT721 is IERC721 { /** * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`) * _dstChainId - L0 defined chain id to send tokens too * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain * _tokenId - token Id to transfer * _useZro - indicates to use zro to pay L0 fees * _adapterParams - flexible bytes array to indicate messaging adapter services in L0 */ function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); /** * @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) * `_adapterParams` 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 _adapterParams) 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) * `_adapterParams` 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 _adapterParams) 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); }
// 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(uint64 => 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 LzApp"); _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) public 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 _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } }
// 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 (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/Ownable.sol"; import "../interfaces/ILayerZeroReceiver.sol"; import "../interfaces/ILayerZeroUserApplicationConfig.sol"; import "../interfaces/ILayerZeroEndpoint.sol"; /* * a generic LzReceiver implementation */ abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig { ILayerZeroEndpoint public immutable lzEndpoint; mapping(uint16 => bytes) public trustedRemoteLookup; event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress); constructor(address _endpoint) { lzEndpoint = ILayerZeroEndpoint(_endpoint); } function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual override { // lzReceive must be called by the endpoint for security require(_msgSender() == address(lzEndpoint)); bytes memory trustedRemote = trustedRemoteLookup[_srcChainId]; // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote. require(_srcAddress.length == trustedRemote.length && keccak256(_srcAddress) == keccak256(trustedRemote), "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 _adapterParams) internal virtual { bytes memory trustedRemote = trustedRemoteLookup[_dstChainId]; require(trustedRemote.length != 0, "LzSend: destination chain is not a trusted source."); lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams); } //---------------------------UserApplication config---------------------------------------- function getConfig(uint16 _version, uint16 _chainId, address, uint _configType) external view returns (bytes memory) { return lzEndpoint.getConfig(_version, _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); } //--------------------------- VIEW FUNCTION ---------------------------------------- function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) { bytes memory trustedSource = trustedRemoteLookup[_srcChainId]; return keccak256(trustedSource) == keccak256(_srcAddress); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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.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 // 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 (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/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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_trustedMinter","type":"address"},{"internalType":"address","name":"_layerZeroEndpoint","type":"address"},{"internalType":"uint256","name":"_endMintId","type":"uint256"}],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":"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"},{"inputs":[],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"adminSetTrustedMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_useZro","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":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"_version","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":[{"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":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"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":[],"name":"maxPublicMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"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":"_adapterParams","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":"_adapterParams","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":"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":"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":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trustedMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162005f1938038062005f1983398181016040528101906200003791906200033d565b826040518060400160405280600a81526020017f4475656c205065706573000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f44502d3200000000000000000000000000000000000000000000000000000000815250848483838382828280620000cd620000c16200019360201b60201c565b6200019b60201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505081600390805190602001906200011e9291906200025f565b508060049080519060200190620001379291906200025f565b50505050505080600c8190555084600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505062000475565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200026d90620003d7565b90600052602060002090601f016020900481019282620002915760008555620002dd565b82601f10620002ac57805160ff1916838001178555620002dd565b82800160010185558215620002dd579182015b82811115620002dc578251825591602001919060010190620002bf565b5b509050620002ec9190620002f0565b5090565b5b808211156200030b576000816000905550600101620002f1565b5090565b600081519050620003208162000441565b92915050565b60008151905062000337816200045b565b92915050565b6000806000606084860312156200035957620003586200043c565b5b600062000369868287016200030f565b93505060206200037c868287016200030f565b92505060406200038f8682870162000326565b9150509250925092565b6000620003a682620003ad565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620003f057607f821691505b602082108114156200040757620004066200040d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6200044c8162000399565b81146200045857600080fd5b50565b6200046681620003cd565b81146200047257600080fd5b50565b60805160601c615a46620004d36000396000818161091701528181610c7e01528181610f25015281816110440152818161127701528181611a6c01528181611c1b0152818161214b0152818161294f01526130280152615a466000f3fe60806040526004361061022f5760003560e01c8063715018a61161012e578063b88d4fde116100ab578063e985e9c51161006f578063e985e9c51461082d578063eb8d72b71461086a578063eed33cef14610893578063f2fde38b146108af578063f5ecbdbc146108d85761022f565b8063b88d4fde14610757578063c7b0dcbc14610780578063c87b56dd146107ab578063cbed8b9c146107e8578063d1deba1f146108115761022f565b806395d89b41116100f257806395d89b411461068457806395fdca1e146106af57806398252519146106d8578063a22cb46514610703578063b353aaa71461072c5761022f565b8063715018a6146105c55780637533d788146105dc578063895fc788146106195780638da5cb5b1461063057806394bf804d1461065b5761022f565b80632a205e3d116101bc5780635b8c41e6116101805780635b8c41e6146104ba5780636352211e146104f757806366ad5c8a146105345780636aa99da31461055d57806370a08231146105885761022f565b80632a205e3d146103d15780633d8b38f61461040f57806342842e0e1461044c57806342d65a8d14610475578063519056361461049e5761022f565b8063081812fc11610203578063081812fc146102ee578063095ea7b31461032b57806310ddb137146103545780632336296a1461037d57806323b872dd146103a85761022f565b80621d35671461023457806301ffc9a71461025d57806306fdde031461029a57806307e0db17146102c5575b600080fd5b34801561024057600080fd5b5061025b60048036038101906102569190613f64565b610915565b005b34801561026957600080fd5b50610284600480360381019061027f9190613b3a565b610a8c565b6040516102919190614790565b60405180910390f35b3480156102a657600080fd5b506102af610b6e565b6040516102bc9190614865565b60405180910390f35b3480156102d157600080fd5b506102ec60048036038101906102e79190613c39565b610c00565b005b3480156102fa57600080fd5b50610315600480360381019061031091906140f2565b610d0a565b6040516103229190614729565b60405180910390f35b34801561033757600080fd5b50610352600480360381019061034d9190613afa565b610d8f565b005b34801561036057600080fd5b5061037b60048036038101906103769190613c39565b610ea7565b005b34801561038957600080fd5b50610392610fb1565b60405161039f9190614e21565b60405180910390f35b3480156103b457600080fd5b506103cf60048036038101906103ca9190613902565b610fb7565b005b3480156103dd57600080fd5b506103f860048036038101906103f39190613d95565b611017565b604051610406929190614e3c565b60405180910390f35b34801561041b57600080fd5b5061043660048036038101906104319190613c66565b611105565b6040516104439190614790565b60405180910390f35b34801561045857600080fd5b50610473600480360381019061046e9190613902565b6111d9565b005b34801561048157600080fd5b5061049c60048036038101906104979190613c66565b6111f9565b005b6104b860048036038101906104b39190613a18565b611309565b005b3480156104c657600080fd5b506104e160048036038101906104dc9190613e51565b611368565b6040516104ee91906147ab565b60405180910390f35b34801561050357600080fd5b5061051e600480360381019061051991906140f2565b6113b0565b60405161052b9190614729565b60405180910390f35b34801561054057600080fd5b5061055b60048036038101906105569190613f64565b611462565b005b34801561056957600080fd5b506105726114e9565b60405161057f9190614e21565b60405180910390f35b34801561059457600080fd5b506105af60048036038101906105aa9190613895565b6114ef565b6040516105bc9190614e21565b60405180910390f35b3480156105d157600080fd5b506105da6115a7565b005b3480156105e857600080fd5b5061060360048036038101906105fe9190613c39565b61162f565b60405161061091906147f8565b60405180910390f35b34801561062557600080fd5b5061062e6116cf565b005b34801561063c57600080fd5b50610645611777565b6040516106529190614729565b60405180910390f35b34801561066757600080fd5b50610682600480360381019061067d919061411f565b6117a0565b005b34801561069057600080fd5b506106996118dc565b6040516106a69190614865565b60405180910390f35b3480156106bb57600080fd5b506106d660048036038101906106d19190613895565b61196e565b005b3480156106e457600080fd5b506106ed611a2e565b6040516106fa9190614729565b60405180910390f35b34801561070f57600080fd5b5061072a600480360381019061072591906139d8565b611a54565b005b34801561073857600080fd5b50610741611a6a565b60405161074e919061484a565b60405180910390f35b34801561076357600080fd5b5061077e60048036038101906107799190613955565b611a8e565b005b34801561078c57600080fd5b50610795611af0565b6040516107a29190614e21565b60405180910390f35b3480156107b757600080fd5b506107d260048036038101906107cd91906140f2565b611af6565b6040516107df9190614865565b60405180910390f35b3480156107f457600080fd5b5061080f600480360381019061080a919061406a565b611b9d565b005b61082b60048036038101906108269190613ec0565b611cb3565b005b34801561083957600080fd5b50610854600480360381019061084f91906138c2565b611e6f565b6040516108619190614790565b60405180910390f35b34801561087657600080fd5b50610891600480360381019061088c9190613c66565b611f03565b005b6108ad60048036038101906108a89190613cc6565b611fea565b005b3480156108bb57600080fd5b506108d660048036038101906108d19190613895565b61204f565b005b3480156108e457600080fd5b506108ff60048036038101906108fa9190614003565b612147565b60405161090c91906147f8565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610954612207565b73ffffffffffffffffffffffffffffffffffffffff161461097457600080fd5b6000600160008661ffff1661ffff168152602001908152602001600020805461099c90615117565b80601f01602080910402602001604051908101604052809291908181526020018280546109c890615117565b8015610a155780601f106109ea57610100808354040283529160200191610a15565b820191906000526020600020905b8154815290600101906020018083116109f857829003601f168201915b5050505050905080518451148015610a3a575080805190602001208480519060200120145b610a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7090614927565b60405180910390fd5b610a858585858561220f565b5050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b5757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b675750610b668261232e565b5b9050919050565b606060038054610b7d90615117565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba990615117565b8015610bf65780601f10610bcb57610100808354040283529160200191610bf6565b820191906000526020600020905b815481529060010190602001808311610bd957829003601f168201915b5050505050905090565b610c08612207565b73ffffffffffffffffffffffffffffffffffffffff16610c26611777565b73ffffffffffffffffffffffffffffffffffffffff1614610c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7390614ae7565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166307e0db17826040518263ffffffff1660e01b8152600401610cd59190614ba7565b600060405180830381600087803b158015610cef57600080fd5b505af1158015610d03573d6000803e3d6000fd5b5050505050565b6000610d1582612398565b610d54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4b90614a87565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d9a826113b0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0290614b27565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e2a612207565b73ffffffffffffffffffffffffffffffffffffffff161480610e595750610e5881610e53612207565b611e6f565b5b610e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8f906149c7565b60405180910390fd5b610ea28383612404565b505050565b610eaf612207565b73ffffffffffffffffffffffffffffffffffffffff16610ecd611777565b73ffffffffffffffffffffffffffffffffffffffff1614610f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1a90614ae7565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166310ddb137826040518263ffffffff1660e01b8152600401610f7c9190614ba7565b600060405180830381600087803b158015610f9657600080fd5b505af1158015610faa573d6000803e3d6000fd5b5050505050565b600b5481565b610fc8610fc2612207565b826124bd565b611007576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffe90614b47565b60405180910390fd5b61101283838361259b565b505050565b6000806000888888604051602001611031939291906147c6565b60405160208183030381529060405290507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340a7bb108b30848a8a8a6040518763ffffffff1660e01b81526004016110a596959493929190614beb565b604080518083038186803b1580156110bc57600080fd5b505afa1580156110d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f4919061415f565b925092505097509795505050505050565b600080600160008661ffff1661ffff168152602001908152602001600020805461112e90615117565b80601f016020809104026020016040519081016040528092919081815260200182805461115a90615117565b80156111a75780601f1061117c576101008083540402835291602001916111a7565b820191906000526020600020905b81548152906001019060200180831161118a57829003601f168201915b5050505050905083836040516111be9291906146d5565b60405180910390208180519060200120149150509392505050565b6111f483838360405180602001604052806000815250611a8e565b505050565b611201612207565b73ffffffffffffffffffffffffffffffffffffffff1661121f611777565b73ffffffffffffffffffffffffffffffffffffffff1614611275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126c90614ae7565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342d65a8d8484846040518463ffffffff1660e01b81526004016112d293929190614c93565b600060405180830381600087803b1580156112ec57600080fd5b505af1158015611300573d6000803e3d6000fd5b50505050505050565b61135d898989898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508888888888612802565b505050505050505050565b60026020528260005260406000208280516020810182018051848252602083016020850120818352809550505050505060205280600052604060002060009250925050505481565b6000806005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145090614a07565b60405180910390fd5b80915050919050565b3073ffffffffffffffffffffffffffffffffffffffff16611481612207565b73ffffffffffffffffffffffffffffffffffffffff16146114d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ce90614887565b60405180910390fd5b6114e384848484612a7d565b50505050565b600a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611560576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611557906149e7565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115af612207565b73ffffffffffffffffffffffffffffffffffffffff166115cd611777565b73ffffffffffffffffffffffffffffffffffffffff1614611623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161a90614ae7565b60405180910390fd5b61162d6000612afd565b565b6001602052806000526040600020600091509050805461164e90615117565b80601f016020809104026020016040519081016040528092919081815260200182805461167a90615117565b80156116c75780601f1061169c576101008083540402835291602001916116c7565b820191906000526020600020905b8154815290600101906020018083116116aa57829003601f168201915b505050505081565b6116d7612207565b73ffffffffffffffffffffffffffffffffffffffff166116f5611777565b73ffffffffffffffffffffffffffffffffffffffff161461174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290614ae7565b60405180910390fd5b6000600a549050600a60008154809291906117659061517a565b91905055506117743382612bc1565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611830576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182790614b87565b60405180910390fd5b600c54600183600b546118439190614f32565b61184d9190614fb9565b111561188e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188590614b67565b60405180910390fd5b600080600090505b838110156118d657600a549150600a60008154809291906118b69061517a565b91905055506118c58383612bc1565b806118cf9061517a565b9050611896565b50505050565b6060600480546118eb90615117565b80601f016020809104026020016040519081016040528092919081815260200182805461191790615117565b80156119645780601f1061193957610100808354040283529160200191611964565b820191906000526020600020905b81548152906001019060200180831161194757829003601f168201915b5050505050905090565b611976612207565b73ffffffffffffffffffffffffffffffffffffffff16611994611777565b73ffffffffffffffffffffffffffffffffffffffff16146119ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e190614ae7565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a66611a5f612207565b8383612bdf565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611a9f611a99612207565b836124bd565b611ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad590614b47565b60405180910390fd5b611aea84848484612d4c565b50505050565b600c5481565b6060611b0182612398565b611b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3790614b07565b60405180910390fd5b6000611b4a612da8565b90506000815111611b6a5760405180602001604052806000815250611b95565b80611b7484612dbf565b604051602001611b85929190614705565b6040516020818303038152906040525b915050919050565b611ba5612207565b73ffffffffffffffffffffffffffffffffffffffff16611bc3611777565b73ffffffffffffffffffffffffffffffffffffffff1614611c19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1090614ae7565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663cbed8b9c86868686866040518663ffffffff1660e01b8152600401611c7a959493929190614dd3565b600060405180830381600087803b158015611c9457600080fd5b505af1158015611ca8573d6000803e3d6000fd5b505050505050505050565b6000600260008761ffff1661ffff16815260200190815260200160002085604051611cde91906146ee565b908152602001604051809103902060008567ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000205490506000801b811415611d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5190614aa7565b60405180910390fd5b808383604051611d6b9291906146d5565b604051809103902014611db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daa90614a67565b60405180910390fd5b6000801b600260008861ffff1661ffff16815260200190815260200160002086604051611de091906146ee565b908152602001604051809103902060008667ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002081905550611e6786868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612a7d565b505050505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f0b612207565b73ffffffffffffffffffffffffffffffffffffffff16611f29611777565b73ffffffffffffffffffffffffffffffffffffffff1614611f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7690614ae7565b60405180910390fd5b8181600160008661ffff1661ffff1681526020019081526020016000209190611fa99291906135ea565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611fdd93929190614c93565b60405180910390a1505050565b612045611ff5612207565b8989898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508888888888612802565b5050505050505050565b612057612207565b73ffffffffffffffffffffffffffffffffffffffff16612075611777565b73ffffffffffffffffffffffffffffffffffffffff16146120cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c290614ae7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561213b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612132906148c7565b60405180910390fd5b61214481612afd565b50565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f5ecbdbc868630866040518563ffffffff1660e01b81526004016121a89493929190614d8e565b60006040518083038186803b1580156121c057600080fd5b505afa1580156121d4573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121fd9190613b94565b9050949350505050565b600033905090565b3073ffffffffffffffffffffffffffffffffffffffff166366ad5c8a858585856040518563ffffffff1660e01b815260040161224e9493929190614d3b565b600060405180830381600087803b15801561226857600080fd5b505af1925050508015612279575060015b612327578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516122ae91906146ee565b908152602001604051809103902060008467ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020819055507fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d8484848460405161231a9493929190614d3b565b60405180910390a1612328565b5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816007600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612477836113b0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006124c882612398565b612507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fe906149a7565b60405180910390fd5b6000612512836113b0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061258157508373ffffffffffffffffffffffffffffffffffffffff1661256984610d0a565b73ffffffffffffffffffffffffffffffffffffffff16145b8061259257506125918185611e6f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166125bb826113b0565b73ffffffffffffffffffffffffffffffffffffffff1614612611576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612608906148e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267890614967565b60405180910390fd5b61268c838383612f20565b612697600082612404565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126e79190614fb9565b925050819055506001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461273e9190614f32565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127fd838383612f25565b505050565b61281361280d612207565b866124bd565b612852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284990614ac7565b60405180910390fd5b8773ffffffffffffffffffffffffffffffffffffffff16612872866113b0565b73ffffffffffffffffffffffffffffffffffffffff16146128c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128bf90614947565b60405180910390fd5b6128d488888888612f2a565b600086866040516020016128e992919061481a565b604051602081830303815290604052905061294b8882878787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612f39565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637a1457488a306040518363ffffffff1660e01b81526004016129a8929190614bc2565b60206040518083038186803b1580156129c057600080fd5b505afa1580156129d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f8919061419f565b905087604051612a0891906146ee565b60405180910390208961ffff168b73ffffffffffffffffffffffffffffffffffffffff167f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce15438a85604051612a5d929190614e65565b60405180910390a4612a718a8a8a8a6130c4565b50505050505050505050565b612a888484836130ca565b60008082806020019051810190612a9f9190613bdd565b91509150600060148301519050612ab78782846130cf565b7fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db87828488604051612aec9493929190614c4e565b60405180910390a150505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612bdb8282604051806020016040528060008152506130de565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4590614987565b60405180910390fd5b80600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612d3f9190614790565b60405180910390a3505050565b612d5784848461259b565b612d6384848484613139565b612da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d99906148a7565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b60606000821415612e07576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f1b565b600082905060005b60008214612e39578080612e229061517a565b915050600a82612e329190614f88565b9150612e0f565b60008167ffffffffffffffff811115612e5557612e546152b0565b5b6040519080825280601f01601f191660200182016040528015612e875781602001600182028036833780820191505090505b5090505b60008514612f1457600182612ea09190614fb9565b9150600a85612eaf91906151c3565b6030612ebb9190614f32565b60f81b818381518110612ed157612ed0615281565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f0d9190614f88565b9450612e8b565b8093505050505b919050565b505050565b505050565b612f33816132d0565b50505050565b6000600160008761ffff1661ffff1681526020019081526020016000208054612f6190615117565b80601f0160208091040260200160405190810160405280929190818152602001828054612f8d90615117565b8015612fda5780601f10612faf57610100808354040283529160200191612fda565b820191906000526020600020905b815481529060010190602001808311612fbd57829003601f168201915b50505050509050600081511415613026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301d90614a27565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c5803100348884898989896040518863ffffffff1660e01b815260040161308a96959493929190614cc5565b6000604051808303818588803b1580156130a357600080fd5b505af11580156130b7573d6000803e3d6000fd5b5050505050505050505050565b50505050565b505050565b6130d98282612bc1565b505050565b6130e883836133ed565b6130f56000848484613139565b613134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312b906148a7565b60405180910390fd5b505050565b600061315a8473ffffffffffffffffffffffffffffffffffffffff166135c7565b156132c3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613183612207565b8786866040518563ffffffff1660e01b81526004016131a59493929190614744565b602060405180830381600087803b1580156131bf57600080fd5b505af19250505080156131f057506040513d601f19601f820116820180604052508101906131ed9190613b67565b60015b613273573d8060008114613220576040519150601f19603f3d011682016040523d82523d6000602084013e613225565b606091505b5060008151141561326b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613262906148a7565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132c8565b600190505b949350505050565b60006132db826113b0565b90506132e981600084612f20565b6132f4600083612404565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546133449190614fb9565b925050819055506005600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133e981600084612f25565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561345d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345490614a47565b60405180910390fd5b61346681612398565b156134a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349d90614907565b60405180910390fd5b6134b260008383612f20565b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135029190614f32565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135c360008383612f25565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546135f690615117565b90600052602060002090601f016020900481019282613618576000855561365f565b82601f1061363157803560ff191683800117855561365f565b8280016001018555821561365f579182015b8281111561365e578235825591602001919060010190613643565b5b50905061366c9190613670565b5090565b5b80821115613689576000816000905550600101613671565b5090565b60006136a061369b84614eb3565b614e8e565b9050828152602081018484840111156136bc576136bb6152ee565b5b6136c78482856150d5565b509392505050565b60006136e26136dd84614eb3565b614e8e565b9050828152602081018484840111156136fe576136fd6152ee565b5b6137098482856150e4565b509392505050565b6000813590506137208161596f565b92915050565b60008135905061373581615986565b92915050565b60008135905061374a8161599d565b92915050565b60008135905061375f816159b4565b92915050565b600081519050613774816159b4565b92915050565b60008083601f8401126137905761378f6152e4565b5b8235905067ffffffffffffffff8111156137ad576137ac6152df565b5b6020830191508360018202830111156137c9576137c86152e9565b5b9250929050565b600082601f8301126137e5576137e46152e4565b5b81356137f584826020860161368d565b91505092915050565b600082601f830112613813576138126152e4565b5b81516138238482602086016136cf565b91505092915050565b60008135905061383b816159cb565b92915050565b600081359050613850816159e2565b92915050565b600081519050613865816159e2565b92915050565b60008135905061387a816159f9565b92915050565b60008151905061388f816159f9565b92915050565b6000602082840312156138ab576138aa6152f8565b5b60006138b984828501613711565b91505092915050565b600080604083850312156138d9576138d86152f8565b5b60006138e785828601613711565b92505060206138f885828601613711565b9150509250929050565b60008060006060848603121561391b5761391a6152f8565b5b600061392986828701613711565b935050602061393a86828701613711565b925050604061394b86828701613841565b9150509250925092565b6000806000806080858703121561396f5761396e6152f8565b5b600061397d87828801613711565b945050602061398e87828801613711565b935050604061399f87828801613841565b925050606085013567ffffffffffffffff8111156139c0576139bf6152f3565b5b6139cc878288016137d0565b91505092959194509250565b600080604083850312156139ef576139ee6152f8565b5b60006139fd85828601613711565b9250506020613a0e8582860161373b565b9150509250929050565b600080600080600080600080600060e08a8c031215613a3a57613a396152f8565b5b6000613a488c828d01613711565b9950506020613a598c828d0161382c565b98505060408a013567ffffffffffffffff811115613a7a57613a796152f3565b5b613a868c828d0161377a565b97509750506060613a998c828d01613841565b9550506080613aaa8c828d01613726565b94505060a0613abb8c828d01613711565b93505060c08a013567ffffffffffffffff811115613adc57613adb6152f3565b5b613ae88c828d0161377a565b92509250509295985092959850929598565b60008060408385031215613b1157613b106152f8565b5b6000613b1f85828601613711565b9250506020613b3085828601613841565b9150509250929050565b600060208284031215613b5057613b4f6152f8565b5b6000613b5e84828501613750565b91505092915050565b600060208284031215613b7d57613b7c6152f8565b5b6000613b8b84828501613765565b91505092915050565b600060208284031215613baa57613ba96152f8565b5b600082015167ffffffffffffffff811115613bc857613bc76152f3565b5b613bd4848285016137fe565b91505092915050565b60008060408385031215613bf457613bf36152f8565b5b600083015167ffffffffffffffff811115613c1257613c116152f3565b5b613c1e858286016137fe565b9250506020613c2f85828601613856565b9150509250929050565b600060208284031215613c4f57613c4e6152f8565b5b6000613c5d8482850161382c565b91505092915050565b600080600060408486031215613c7f57613c7e6152f8565b5b6000613c8d8682870161382c565b935050602084013567ffffffffffffffff811115613cae57613cad6152f3565b5b613cba8682870161377a565b92509250509250925092565b60008060008060008060008060c0898b031215613ce657613ce56152f8565b5b6000613cf48b828c0161382c565b985050602089013567ffffffffffffffff811115613d1557613d146152f3565b5b613d218b828c0161377a565b97509750506040613d348b828c01613841565b9550506060613d458b828c01613726565b9450506080613d568b828c01613711565b93505060a089013567ffffffffffffffff811115613d7757613d766152f3565b5b613d838b828c0161377a565b92509250509295985092959890939650565b600080600080600080600060a0888a031215613db457613db36152f8565b5b6000613dc28a828b0161382c565b975050602088013567ffffffffffffffff811115613de357613de26152f3565b5b613def8a828b0161377a565b96509650506040613e028a828b01613841565b9450506060613e138a828b0161373b565b935050608088013567ffffffffffffffff811115613e3457613e336152f3565b5b613e408a828b0161377a565b925092505092959891949750929550565b600080600060608486031215613e6a57613e696152f8565b5b6000613e788682870161382c565b935050602084013567ffffffffffffffff811115613e9957613e986152f3565b5b613ea5868287016137d0565b9250506040613eb68682870161386b565b9150509250925092565b600080600080600060808688031215613edc57613edb6152f8565b5b6000613eea8882890161382c565b955050602086013567ffffffffffffffff811115613f0b57613f0a6152f3565b5b613f17888289016137d0565b9450506040613f288882890161386b565b935050606086013567ffffffffffffffff811115613f4957613f486152f3565b5b613f558882890161377a565b92509250509295509295909350565b60008060008060808587031215613f7e57613f7d6152f8565b5b6000613f8c8782880161382c565b945050602085013567ffffffffffffffff811115613fad57613fac6152f3565b5b613fb9878288016137d0565b9350506040613fca8782880161386b565b925050606085013567ffffffffffffffff811115613feb57613fea6152f3565b5b613ff7878288016137d0565b91505092959194509250565b6000806000806080858703121561401d5761401c6152f8565b5b600061402b8782880161382c565b945050602061403c8782880161382c565b935050604061404d87828801613711565b925050606061405e87828801613841565b91505092959194509250565b600080600080600060808688031215614086576140856152f8565b5b60006140948882890161382c565b95505060206140a58882890161382c565b94505060406140b688828901613841565b935050606086013567ffffffffffffffff8111156140d7576140d66152f3565b5b6140e38882890161377a565b92509250509295509295909350565b600060208284031215614108576141076152f8565b5b600061411684828501613841565b91505092915050565b60008060408385031215614136576141356152f8565b5b600061414485828601613841565b925050602061415585828601613711565b9150509250929050565b60008060408385031215614176576141756152f8565b5b600061418485828601613856565b925050602061419585828601613856565b9150509250929050565b6000602082840312156141b5576141b46152f8565b5b60006141c384828501613880565b91505092915050565b6141d581614fff565b82525050565b6141e481614fed565b82525050565b6141f381615011565b82525050565b6142028161501d565b82525050565b60006142148385614efa565b93506142218385846150d5565b61422a836152fd565b840190509392505050565b60006142418385614f0b565b935061424e8385846150d5565b82840190509392505050565b600061426582614ee4565b61426f8185614efa565b935061427f8185602086016150e4565b614288816152fd565b840191505092915050565b600061429e82614ee4565b6142a88185614f0b565b93506142b88185602086016150e4565b80840191505092915050565b6142cd8161509f565b82525050565b60006142de82614eef565b6142e88185614f16565b93506142f88185602086016150e4565b614301816152fd565b840191505092915050565b600061431782614eef565b6143218185614f27565b93506143318185602086016150e4565b80840191505092915050565b600061434a602083614f16565b91506143558261530e565b602082019050919050565b600061436d603283614f16565b915061437882615337565b604082019050919050565b6000614390602683614f16565b915061439b82615386565b604082019050919050565b60006143b3602583614f16565b91506143be826153d5565b604082019050919050565b60006143d6601c83614f16565b91506143e182615424565b602082019050919050565b60006143f9602b83614f16565b91506144048261544d565b604082019050919050565b600061441c602283614f16565b91506144278261549c565b604082019050919050565b600061443f602483614f16565b915061444a826154eb565b604082019050919050565b6000614462601983614f16565b915061446d8261553a565b602082019050919050565b6000614485602c83614f16565b915061449082615563565b604082019050919050565b60006144a8603883614f16565b91506144b3826155b2565b604082019050919050565b60006144cb602a83614f16565b91506144d682615601565b604082019050919050565b60006144ee602983614f16565b91506144f982615650565b604082019050919050565b6000614511603283614f16565b915061451c8261569f565b604082019050919050565b6000614534602083614f16565b915061453f826156ee565b602082019050919050565b6000614557601b83614f16565b915061456282615717565b602082019050919050565b600061457a602c83614f16565b915061458582615740565b604082019050919050565b600061459d601d83614f16565b91506145a88261578f565b602082019050919050565b60006145c0602e83614f16565b91506145cb826157b8565b604082019050919050565b60006145e3602083614f16565b91506145ee82615807565b602082019050919050565b6000614606602f83614f16565b915061461182615830565b604082019050919050565b6000614629602183614f16565b91506146348261587f565b604082019050919050565b600061464c603183614f16565b9150614657826158ce565b604082019050919050565b600061466f601c83614f16565b915061467a8261591d565b602082019050919050565b6000614692600e83614f16565b915061469d82615946565b602082019050919050565b6146b181615053565b82525050565b6146c081615081565b82525050565b6146cf8161508b565b82525050565b60006146e2828486614235565b91508190509392505050565b60006146fa8284614293565b915081905092915050565b6000614711828561430c565b915061471d828461430c565b91508190509392505050565b600060208201905061473e60008301846141db565b92915050565b600060808201905061475960008301876141db565b61476660208301866141db565b61477360408301856146b7565b8181036060830152614785818461425a565b905095945050505050565b60006020820190506147a560008301846141ea565b92915050565b60006020820190506147c060008301846141f9565b92915050565b600060408201905081810360008301526147e1818587614208565b90506147f060208301846146b7565b949350505050565b60006020820190508181036000830152614812818461425a565b905092915050565b60006040820190508181036000830152614834818561425a565b905061484360208301846146b7565b9392505050565b600060208201905061485f60008301846142c4565b92915050565b6000602082019050818103600083015261487f81846142d3565b905092915050565b600060208201905081810360008301526148a08161433d565b9050919050565b600060208201905081810360008301526148c081614360565b9050919050565b600060208201905081810360008301526148e081614383565b9050919050565b60006020820190508181036000830152614900816143a6565b9050919050565b60006020820190508181036000830152614920816143c9565b9050919050565b60006020820190508181036000830152614940816143ec565b9050919050565b600060208201905081810360008301526149608161440f565b9050919050565b6000602082019050818103600083015261498081614432565b9050919050565b600060208201905081810360008301526149a081614455565b9050919050565b600060208201905081810360008301526149c081614478565b9050919050565b600060208201905081810360008301526149e08161449b565b9050919050565b60006020820190508181036000830152614a00816144be565b9050919050565b60006020820190508181036000830152614a20816144e1565b9050919050565b60006020820190508181036000830152614a4081614504565b9050919050565b60006020820190508181036000830152614a6081614527565b9050919050565b60006020820190508181036000830152614a808161454a565b9050919050565b60006020820190508181036000830152614aa08161456d565b9050919050565b60006020820190508181036000830152614ac081614590565b9050919050565b60006020820190508181036000830152614ae0816145b3565b9050919050565b60006020820190508181036000830152614b00816145d6565b9050919050565b60006020820190508181036000830152614b20816145f9565b9050919050565b60006020820190508181036000830152614b408161461c565b9050919050565b60006020820190508181036000830152614b608161463f565b9050919050565b60006020820190508181036000830152614b8081614662565b9050919050565b60006020820190508181036000830152614ba081614685565b9050919050565b6000602082019050614bbc60008301846146a8565b92915050565b6000604082019050614bd760008301856146a8565b614be460208301846141db565b9392505050565b600060a082019050614c0060008301896146a8565b614c0d60208301886141db565b8181036040830152614c1f818761425a565b9050614c2e60608301866141ea565b8181036080830152614c41818486614208565b9050979650505050505050565b6000608082019050614c6360008301876146a8565b614c7060208301866141db565b614c7d60408301856146b7565b614c8a60608301846146c6565b95945050505050565b6000604082019050614ca860008301866146a8565b8181036020830152614cbb818486614208565b9050949350505050565b600060c082019050614cda60008301896146a8565b8181036020830152614cec818861425a565b90508181036040830152614d00818761425a565b9050614d0f60608301866141cc565b614d1c60808301856141db565b81810360a0830152614d2e818461425a565b9050979650505050505050565b6000608082019050614d5060008301876146a8565b8181036020830152614d62818661425a565b9050614d7160408301856146c6565b8181036060830152614d83818461425a565b905095945050505050565b6000608082019050614da360008301876146a8565b614db060208301866146a8565b614dbd60408301856141db565b614dca60608301846146b7565b95945050505050565b6000608082019050614de860008301886146a8565b614df560208301876146a8565b614e0260408301866146b7565b8181036060830152614e15818486614208565b90509695505050505050565b6000602082019050614e3660008301846146b7565b92915050565b6000604082019050614e5160008301856146b7565b614e5e60208301846146b7565b9392505050565b6000604082019050614e7a60008301856146b7565b614e8760208301846146c6565b9392505050565b6000614e98614ea9565b9050614ea48282615149565b919050565b6000604051905090565b600067ffffffffffffffff821115614ece57614ecd6152b0565b5b614ed7826152fd565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f3d82615081565b9150614f4883615081565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f7d57614f7c6151f4565b5b828201905092915050565b6000614f9382615081565b9150614f9e83615081565b925082614fae57614fad615223565b5b828204905092915050565b6000614fc482615081565b9150614fcf83615081565b925082821015614fe257614fe16151f4565b5b828203905092915050565b6000614ff882615061565b9050919050565b600061500a82615061565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b60006150aa826150b1565b9050919050565b60006150bc826150c3565b9050919050565b60006150ce82615061565b9050919050565b82818337600083830152505050565b60005b838110156151025780820151818401526020810190506150e7565b83811115615111576000848401525b50505050565b6000600282049050600182168061512f57607f821691505b6020821081141561514357615142615252565b5b50919050565b615152826152fd565b810181811067ffffffffffffffff82111715615171576151706152b0565b5b80604052505050565b600061518582615081565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151b8576151b76151f4565b5b600182019050919050565b60006151ce82615081565b91506151d983615081565b9250826151e9576151e8615223565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4c7a52656365697665723a2063616c6c6572206d757374206265204c7a417070600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4c7a52656365697665723a20696e76616c696420736f757263652073656e646960008201527f6e6720636f6e7472616374000000000000000000000000000000000000000000602082015250565b7f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4c7a53656e643a2064657374696e6174696f6e20636861696e206973206e6f7460008201527f2061207472757374656420736f757263652e0000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4c7a52656365697665723a20696e76616c6964207061796c6f61640000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4c7a52656365697665723a206e6f2073746f726564206d657373616765000000600082015250565b7f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4f4e46543a204d6178204d696e74206c696d6974207265616368656400000000600082015250565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b61597881614fed565b811461598357600080fd5b50565b61598f81614fff565b811461599a57600080fd5b50565b6159a681615011565b81146159b157600080fd5b50565b6159bd81615027565b81146159c857600080fd5b50565b6159d481615053565b81146159df57600080fd5b50565b6159eb81615081565b81146159f657600080fd5b50565b615a028161508b565b8114615a0d57600080fd5b5056fea2646970667358221220694686ea6e93b238ba3754a04f4f0810e61d7248b9883f7838747f0cf794312464736f6c63430008070033000000000000000000000000044a7a6a9a68052f1c8f06354986137dbb388dc90000000000000000000000003c2269811836af69497e5f486a85d7316753cf6200000000000000000000000000000000000000000000000000000000000007d0
Deployed Bytecode
0x60806040526004361061022f5760003560e01c8063715018a61161012e578063b88d4fde116100ab578063e985e9c51161006f578063e985e9c51461082d578063eb8d72b71461086a578063eed33cef14610893578063f2fde38b146108af578063f5ecbdbc146108d85761022f565b8063b88d4fde14610757578063c7b0dcbc14610780578063c87b56dd146107ab578063cbed8b9c146107e8578063d1deba1f146108115761022f565b806395d89b41116100f257806395d89b411461068457806395fdca1e146106af57806398252519146106d8578063a22cb46514610703578063b353aaa71461072c5761022f565b8063715018a6146105c55780637533d788146105dc578063895fc788146106195780638da5cb5b1461063057806394bf804d1461065b5761022f565b80632a205e3d116101bc5780635b8c41e6116101805780635b8c41e6146104ba5780636352211e146104f757806366ad5c8a146105345780636aa99da31461055d57806370a08231146105885761022f565b80632a205e3d146103d15780633d8b38f61461040f57806342842e0e1461044c57806342d65a8d14610475578063519056361461049e5761022f565b8063081812fc11610203578063081812fc146102ee578063095ea7b31461032b57806310ddb137146103545780632336296a1461037d57806323b872dd146103a85761022f565b80621d35671461023457806301ffc9a71461025d57806306fdde031461029a57806307e0db17146102c5575b600080fd5b34801561024057600080fd5b5061025b60048036038101906102569190613f64565b610915565b005b34801561026957600080fd5b50610284600480360381019061027f9190613b3a565b610a8c565b6040516102919190614790565b60405180910390f35b3480156102a657600080fd5b506102af610b6e565b6040516102bc9190614865565b60405180910390f35b3480156102d157600080fd5b506102ec60048036038101906102e79190613c39565b610c00565b005b3480156102fa57600080fd5b50610315600480360381019061031091906140f2565b610d0a565b6040516103229190614729565b60405180910390f35b34801561033757600080fd5b50610352600480360381019061034d9190613afa565b610d8f565b005b34801561036057600080fd5b5061037b60048036038101906103769190613c39565b610ea7565b005b34801561038957600080fd5b50610392610fb1565b60405161039f9190614e21565b60405180910390f35b3480156103b457600080fd5b506103cf60048036038101906103ca9190613902565b610fb7565b005b3480156103dd57600080fd5b506103f860048036038101906103f39190613d95565b611017565b604051610406929190614e3c565b60405180910390f35b34801561041b57600080fd5b5061043660048036038101906104319190613c66565b611105565b6040516104439190614790565b60405180910390f35b34801561045857600080fd5b50610473600480360381019061046e9190613902565b6111d9565b005b34801561048157600080fd5b5061049c60048036038101906104979190613c66565b6111f9565b005b6104b860048036038101906104b39190613a18565b611309565b005b3480156104c657600080fd5b506104e160048036038101906104dc9190613e51565b611368565b6040516104ee91906147ab565b60405180910390f35b34801561050357600080fd5b5061051e600480360381019061051991906140f2565b6113b0565b60405161052b9190614729565b60405180910390f35b34801561054057600080fd5b5061055b60048036038101906105569190613f64565b611462565b005b34801561056957600080fd5b506105726114e9565b60405161057f9190614e21565b60405180910390f35b34801561059457600080fd5b506105af60048036038101906105aa9190613895565b6114ef565b6040516105bc9190614e21565b60405180910390f35b3480156105d157600080fd5b506105da6115a7565b005b3480156105e857600080fd5b5061060360048036038101906105fe9190613c39565b61162f565b60405161061091906147f8565b60405180910390f35b34801561062557600080fd5b5061062e6116cf565b005b34801561063c57600080fd5b50610645611777565b6040516106529190614729565b60405180910390f35b34801561066757600080fd5b50610682600480360381019061067d919061411f565b6117a0565b005b34801561069057600080fd5b506106996118dc565b6040516106a69190614865565b60405180910390f35b3480156106bb57600080fd5b506106d660048036038101906106d19190613895565b61196e565b005b3480156106e457600080fd5b506106ed611a2e565b6040516106fa9190614729565b60405180910390f35b34801561070f57600080fd5b5061072a600480360381019061072591906139d8565b611a54565b005b34801561073857600080fd5b50610741611a6a565b60405161074e919061484a565b60405180910390f35b34801561076357600080fd5b5061077e60048036038101906107799190613955565b611a8e565b005b34801561078c57600080fd5b50610795611af0565b6040516107a29190614e21565b60405180910390f35b3480156107b757600080fd5b506107d260048036038101906107cd91906140f2565b611af6565b6040516107df9190614865565b60405180910390f35b3480156107f457600080fd5b5061080f600480360381019061080a919061406a565b611b9d565b005b61082b60048036038101906108269190613ec0565b611cb3565b005b34801561083957600080fd5b50610854600480360381019061084f91906138c2565b611e6f565b6040516108619190614790565b60405180910390f35b34801561087657600080fd5b50610891600480360381019061088c9190613c66565b611f03565b005b6108ad60048036038101906108a89190613cc6565b611fea565b005b3480156108bb57600080fd5b506108d660048036038101906108d19190613895565b61204f565b005b3480156108e457600080fd5b506108ff60048036038101906108fa9190614003565b612147565b60405161090c91906147f8565b60405180910390f35b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff16610954612207565b73ffffffffffffffffffffffffffffffffffffffff161461097457600080fd5b6000600160008661ffff1661ffff168152602001908152602001600020805461099c90615117565b80601f01602080910402602001604051908101604052809291908181526020018280546109c890615117565b8015610a155780601f106109ea57610100808354040283529160200191610a15565b820191906000526020600020905b8154815290600101906020018083116109f857829003601f168201915b5050505050905080518451148015610a3a575080805190602001208480519060200120145b610a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7090614927565b60405180910390fd5b610a858585858561220f565b5050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b5757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b675750610b668261232e565b5b9050919050565b606060038054610b7d90615117565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba990615117565b8015610bf65780601f10610bcb57610100808354040283529160200191610bf6565b820191906000526020600020905b815481529060010190602001808311610bd957829003601f168201915b5050505050905090565b610c08612207565b73ffffffffffffffffffffffffffffffffffffffff16610c26611777565b73ffffffffffffffffffffffffffffffffffffffff1614610c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7390614ae7565b60405180910390fd5b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff166307e0db17826040518263ffffffff1660e01b8152600401610cd59190614ba7565b600060405180830381600087803b158015610cef57600080fd5b505af1158015610d03573d6000803e3d6000fd5b5050505050565b6000610d1582612398565b610d54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4b90614a87565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d9a826113b0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0290614b27565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e2a612207565b73ffffffffffffffffffffffffffffffffffffffff161480610e595750610e5881610e53612207565b611e6f565b5b610e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8f906149c7565b60405180910390fd5b610ea28383612404565b505050565b610eaf612207565b73ffffffffffffffffffffffffffffffffffffffff16610ecd611777565b73ffffffffffffffffffffffffffffffffffffffff1614610f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1a90614ae7565b60405180910390fd5b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff166310ddb137826040518263ffffffff1660e01b8152600401610f7c9190614ba7565b600060405180830381600087803b158015610f9657600080fd5b505af1158015610faa573d6000803e3d6000fd5b5050505050565b600b5481565b610fc8610fc2612207565b826124bd565b611007576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffe90614b47565b60405180910390fd5b61101283838361259b565b505050565b6000806000888888604051602001611031939291906147c6565b60405160208183030381529060405290507f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff166340a7bb108b30848a8a8a6040518763ffffffff1660e01b81526004016110a596959493929190614beb565b604080518083038186803b1580156110bc57600080fd5b505afa1580156110d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f4919061415f565b925092505097509795505050505050565b600080600160008661ffff1661ffff168152602001908152602001600020805461112e90615117565b80601f016020809104026020016040519081016040528092919081815260200182805461115a90615117565b80156111a75780601f1061117c576101008083540402835291602001916111a7565b820191906000526020600020905b81548152906001019060200180831161118a57829003601f168201915b5050505050905083836040516111be9291906146d5565b60405180910390208180519060200120149150509392505050565b6111f483838360405180602001604052806000815250611a8e565b505050565b611201612207565b73ffffffffffffffffffffffffffffffffffffffff1661121f611777565b73ffffffffffffffffffffffffffffffffffffffff1614611275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126c90614ae7565b60405180910390fd5b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff166342d65a8d8484846040518463ffffffff1660e01b81526004016112d293929190614c93565b600060405180830381600087803b1580156112ec57600080fd5b505af1158015611300573d6000803e3d6000fd5b50505050505050565b61135d898989898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508888888888612802565b505050505050505050565b60026020528260005260406000208280516020810182018051848252602083016020850120818352809550505050505060205280600052604060002060009250925050505481565b6000806005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145090614a07565b60405180910390fd5b80915050919050565b3073ffffffffffffffffffffffffffffffffffffffff16611481612207565b73ffffffffffffffffffffffffffffffffffffffff16146114d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ce90614887565b60405180910390fd5b6114e384848484612a7d565b50505050565b600a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611560576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611557906149e7565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115af612207565b73ffffffffffffffffffffffffffffffffffffffff166115cd611777565b73ffffffffffffffffffffffffffffffffffffffff1614611623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161a90614ae7565b60405180910390fd5b61162d6000612afd565b565b6001602052806000526040600020600091509050805461164e90615117565b80601f016020809104026020016040519081016040528092919081815260200182805461167a90615117565b80156116c75780601f1061169c576101008083540402835291602001916116c7565b820191906000526020600020905b8154815290600101906020018083116116aa57829003601f168201915b505050505081565b6116d7612207565b73ffffffffffffffffffffffffffffffffffffffff166116f5611777565b73ffffffffffffffffffffffffffffffffffffffff161461174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290614ae7565b60405180910390fd5b6000600a549050600a60008154809291906117659061517a565b91905055506117743382612bc1565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611830576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182790614b87565b60405180910390fd5b600c54600183600b546118439190614f32565b61184d9190614fb9565b111561188e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188590614b67565b60405180910390fd5b600080600090505b838110156118d657600a549150600a60008154809291906118b69061517a565b91905055506118c58383612bc1565b806118cf9061517a565b9050611896565b50505050565b6060600480546118eb90615117565b80601f016020809104026020016040519081016040528092919081815260200182805461191790615117565b80156119645780601f1061193957610100808354040283529160200191611964565b820191906000526020600020905b81548152906001019060200180831161194757829003601f168201915b5050505050905090565b611976612207565b73ffffffffffffffffffffffffffffffffffffffff16611994611777565b73ffffffffffffffffffffffffffffffffffffffff16146119ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e190614ae7565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a66611a5f612207565b8383612bdf565b5050565b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6281565b611a9f611a99612207565b836124bd565b611ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad590614b47565b60405180910390fd5b611aea84848484612d4c565b50505050565b600c5481565b6060611b0182612398565b611b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3790614b07565b60405180910390fd5b6000611b4a612da8565b90506000815111611b6a5760405180602001604052806000815250611b95565b80611b7484612dbf565b604051602001611b85929190614705565b6040516020818303038152906040525b915050919050565b611ba5612207565b73ffffffffffffffffffffffffffffffffffffffff16611bc3611777565b73ffffffffffffffffffffffffffffffffffffffff1614611c19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1090614ae7565b60405180910390fd5b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff1663cbed8b9c86868686866040518663ffffffff1660e01b8152600401611c7a959493929190614dd3565b600060405180830381600087803b158015611c9457600080fd5b505af1158015611ca8573d6000803e3d6000fd5b505050505050505050565b6000600260008761ffff1661ffff16815260200190815260200160002085604051611cde91906146ee565b908152602001604051809103902060008567ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000205490506000801b811415611d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5190614aa7565b60405180910390fd5b808383604051611d6b9291906146d5565b604051809103902014611db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daa90614a67565b60405180910390fd5b6000801b600260008861ffff1661ffff16815260200190815260200160002086604051611de091906146ee565b908152602001604051809103902060008667ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002081905550611e6786868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612a7d565b505050505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f0b612207565b73ffffffffffffffffffffffffffffffffffffffff16611f29611777565b73ffffffffffffffffffffffffffffffffffffffff1614611f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7690614ae7565b60405180910390fd5b8181600160008661ffff1661ffff1681526020019081526020016000209190611fa99291906135ea565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611fdd93929190614c93565b60405180910390a1505050565b612045611ff5612207565b8989898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508888888888612802565b5050505050505050565b612057612207565b73ffffffffffffffffffffffffffffffffffffffff16612075611777565b73ffffffffffffffffffffffffffffffffffffffff16146120cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c290614ae7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561213b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612132906148c7565b60405180910390fd5b61214481612afd565b50565b60607f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff1663f5ecbdbc868630866040518563ffffffff1660e01b81526004016121a89493929190614d8e565b60006040518083038186803b1580156121c057600080fd5b505afa1580156121d4573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121fd9190613b94565b9050949350505050565b600033905090565b3073ffffffffffffffffffffffffffffffffffffffff166366ad5c8a858585856040518563ffffffff1660e01b815260040161224e9493929190614d3b565b600060405180830381600087803b15801561226857600080fd5b505af1925050508015612279575060015b612327578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516122ae91906146ee565b908152602001604051809103902060008467ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020819055507fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d8484848460405161231a9493929190614d3b565b60405180910390a1612328565b5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816007600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612477836113b0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006124c882612398565b612507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fe906149a7565b60405180910390fd5b6000612512836113b0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061258157508373ffffffffffffffffffffffffffffffffffffffff1661256984610d0a565b73ffffffffffffffffffffffffffffffffffffffff16145b8061259257506125918185611e6f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166125bb826113b0565b73ffffffffffffffffffffffffffffffffffffffff1614612611576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612608906148e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267890614967565b60405180910390fd5b61268c838383612f20565b612697600082612404565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126e79190614fb9565b925050819055506001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461273e9190614f32565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127fd838383612f25565b505050565b61281361280d612207565b866124bd565b612852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284990614ac7565b60405180910390fd5b8773ffffffffffffffffffffffffffffffffffffffff16612872866113b0565b73ffffffffffffffffffffffffffffffffffffffff16146128c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128bf90614947565b60405180910390fd5b6128d488888888612f2a565b600086866040516020016128e992919061481a565b604051602081830303815290604052905061294b8882878787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612f39565b60007f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff16637a1457488a306040518363ffffffff1660e01b81526004016129a8929190614bc2565b60206040518083038186803b1580156129c057600080fd5b505afa1580156129d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f8919061419f565b905087604051612a0891906146ee565b60405180910390208961ffff168b73ffffffffffffffffffffffffffffffffffffffff167f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce15438a85604051612a5d929190614e65565b60405180910390a4612a718a8a8a8a6130c4565b50505050505050505050565b612a888484836130ca565b60008082806020019051810190612a9f9190613bdd565b91509150600060148301519050612ab78782846130cf565b7fd4d39d20f72eabd06c301e516d54653dfc9116de62c1d54bf1cb48cf3b42a7db87828488604051612aec9493929190614c4e565b60405180910390a150505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612bdb8282604051806020016040528060008152506130de565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4590614987565b60405180910390fd5b80600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612d3f9190614790565b60405180910390a3505050565b612d5784848461259b565b612d6384848484613139565b612da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d99906148a7565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b60606000821415612e07576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f1b565b600082905060005b60008214612e39578080612e229061517a565b915050600a82612e329190614f88565b9150612e0f565b60008167ffffffffffffffff811115612e5557612e546152b0565b5b6040519080825280601f01601f191660200182016040528015612e875781602001600182028036833780820191505090505b5090505b60008514612f1457600182612ea09190614fb9565b9150600a85612eaf91906151c3565b6030612ebb9190614f32565b60f81b818381518110612ed157612ed0615281565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f0d9190614f88565b9450612e8b565b8093505050505b919050565b505050565b505050565b612f33816132d0565b50505050565b6000600160008761ffff1661ffff1681526020019081526020016000208054612f6190615117565b80601f0160208091040260200160405190810160405280929190818152602001828054612f8d90615117565b8015612fda5780601f10612faf57610100808354040283529160200191612fda565b820191906000526020600020905b815481529060010190602001808311612fbd57829003601f168201915b50505050509050600081511415613026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301d90614a27565b60405180910390fd5b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6273ffffffffffffffffffffffffffffffffffffffff1663c5803100348884898989896040518863ffffffff1660e01b815260040161308a96959493929190614cc5565b6000604051808303818588803b1580156130a357600080fd5b505af11580156130b7573d6000803e3d6000fd5b5050505050505050505050565b50505050565b505050565b6130d98282612bc1565b505050565b6130e883836133ed565b6130f56000848484613139565b613134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312b906148a7565b60405180910390fd5b505050565b600061315a8473ffffffffffffffffffffffffffffffffffffffff166135c7565b156132c3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613183612207565b8786866040518563ffffffff1660e01b81526004016131a59493929190614744565b602060405180830381600087803b1580156131bf57600080fd5b505af19250505080156131f057506040513d601f19601f820116820180604052508101906131ed9190613b67565b60015b613273573d8060008114613220576040519150601f19603f3d011682016040523d82523d6000602084013e613225565b606091505b5060008151141561326b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613262906148a7565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132c8565b600190505b949350505050565b60006132db826113b0565b90506132e981600084612f20565b6132f4600083612404565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546133449190614fb9565b925050819055506005600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133e981600084612f25565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561345d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345490614a47565b60405180910390fd5b61346681612398565b156134a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349d90614907565b60405180910390fd5b6134b260008383612f20565b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135029190614f32565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135c360008383612f25565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546135f690615117565b90600052602060002090601f016020900481019282613618576000855561365f565b82601f1061363157803560ff191683800117855561365f565b8280016001018555821561365f579182015b8281111561365e578235825591602001919060010190613643565b5b50905061366c9190613670565b5090565b5b80821115613689576000816000905550600101613671565b5090565b60006136a061369b84614eb3565b614e8e565b9050828152602081018484840111156136bc576136bb6152ee565b5b6136c78482856150d5565b509392505050565b60006136e26136dd84614eb3565b614e8e565b9050828152602081018484840111156136fe576136fd6152ee565b5b6137098482856150e4565b509392505050565b6000813590506137208161596f565b92915050565b60008135905061373581615986565b92915050565b60008135905061374a8161599d565b92915050565b60008135905061375f816159b4565b92915050565b600081519050613774816159b4565b92915050565b60008083601f8401126137905761378f6152e4565b5b8235905067ffffffffffffffff8111156137ad576137ac6152df565b5b6020830191508360018202830111156137c9576137c86152e9565b5b9250929050565b600082601f8301126137e5576137e46152e4565b5b81356137f584826020860161368d565b91505092915050565b600082601f830112613813576138126152e4565b5b81516138238482602086016136cf565b91505092915050565b60008135905061383b816159cb565b92915050565b600081359050613850816159e2565b92915050565b600081519050613865816159e2565b92915050565b60008135905061387a816159f9565b92915050565b60008151905061388f816159f9565b92915050565b6000602082840312156138ab576138aa6152f8565b5b60006138b984828501613711565b91505092915050565b600080604083850312156138d9576138d86152f8565b5b60006138e785828601613711565b92505060206138f885828601613711565b9150509250929050565b60008060006060848603121561391b5761391a6152f8565b5b600061392986828701613711565b935050602061393a86828701613711565b925050604061394b86828701613841565b9150509250925092565b6000806000806080858703121561396f5761396e6152f8565b5b600061397d87828801613711565b945050602061398e87828801613711565b935050604061399f87828801613841565b925050606085013567ffffffffffffffff8111156139c0576139bf6152f3565b5b6139cc878288016137d0565b91505092959194509250565b600080604083850312156139ef576139ee6152f8565b5b60006139fd85828601613711565b9250506020613a0e8582860161373b565b9150509250929050565b600080600080600080600080600060e08a8c031215613a3a57613a396152f8565b5b6000613a488c828d01613711565b9950506020613a598c828d0161382c565b98505060408a013567ffffffffffffffff811115613a7a57613a796152f3565b5b613a868c828d0161377a565b97509750506060613a998c828d01613841565b9550506080613aaa8c828d01613726565b94505060a0613abb8c828d01613711565b93505060c08a013567ffffffffffffffff811115613adc57613adb6152f3565b5b613ae88c828d0161377a565b92509250509295985092959850929598565b60008060408385031215613b1157613b106152f8565b5b6000613b1f85828601613711565b9250506020613b3085828601613841565b9150509250929050565b600060208284031215613b5057613b4f6152f8565b5b6000613b5e84828501613750565b91505092915050565b600060208284031215613b7d57613b7c6152f8565b5b6000613b8b84828501613765565b91505092915050565b600060208284031215613baa57613ba96152f8565b5b600082015167ffffffffffffffff811115613bc857613bc76152f3565b5b613bd4848285016137fe565b91505092915050565b60008060408385031215613bf457613bf36152f8565b5b600083015167ffffffffffffffff811115613c1257613c116152f3565b5b613c1e858286016137fe565b9250506020613c2f85828601613856565b9150509250929050565b600060208284031215613c4f57613c4e6152f8565b5b6000613c5d8482850161382c565b91505092915050565b600080600060408486031215613c7f57613c7e6152f8565b5b6000613c8d8682870161382c565b935050602084013567ffffffffffffffff811115613cae57613cad6152f3565b5b613cba8682870161377a565b92509250509250925092565b60008060008060008060008060c0898b031215613ce657613ce56152f8565b5b6000613cf48b828c0161382c565b985050602089013567ffffffffffffffff811115613d1557613d146152f3565b5b613d218b828c0161377a565b97509750506040613d348b828c01613841565b9550506060613d458b828c01613726565b9450506080613d568b828c01613711565b93505060a089013567ffffffffffffffff811115613d7757613d766152f3565b5b613d838b828c0161377a565b92509250509295985092959890939650565b600080600080600080600060a0888a031215613db457613db36152f8565b5b6000613dc28a828b0161382c565b975050602088013567ffffffffffffffff811115613de357613de26152f3565b5b613def8a828b0161377a565b96509650506040613e028a828b01613841565b9450506060613e138a828b0161373b565b935050608088013567ffffffffffffffff811115613e3457613e336152f3565b5b613e408a828b0161377a565b925092505092959891949750929550565b600080600060608486031215613e6a57613e696152f8565b5b6000613e788682870161382c565b935050602084013567ffffffffffffffff811115613e9957613e986152f3565b5b613ea5868287016137d0565b9250506040613eb68682870161386b565b9150509250925092565b600080600080600060808688031215613edc57613edb6152f8565b5b6000613eea8882890161382c565b955050602086013567ffffffffffffffff811115613f0b57613f0a6152f3565b5b613f17888289016137d0565b9450506040613f288882890161386b565b935050606086013567ffffffffffffffff811115613f4957613f486152f3565b5b613f558882890161377a565b92509250509295509295909350565b60008060008060808587031215613f7e57613f7d6152f8565b5b6000613f8c8782880161382c565b945050602085013567ffffffffffffffff811115613fad57613fac6152f3565b5b613fb9878288016137d0565b9350506040613fca8782880161386b565b925050606085013567ffffffffffffffff811115613feb57613fea6152f3565b5b613ff7878288016137d0565b91505092959194509250565b6000806000806080858703121561401d5761401c6152f8565b5b600061402b8782880161382c565b945050602061403c8782880161382c565b935050604061404d87828801613711565b925050606061405e87828801613841565b91505092959194509250565b600080600080600060808688031215614086576140856152f8565b5b60006140948882890161382c565b95505060206140a58882890161382c565b94505060406140b688828901613841565b935050606086013567ffffffffffffffff8111156140d7576140d66152f3565b5b6140e38882890161377a565b92509250509295509295909350565b600060208284031215614108576141076152f8565b5b600061411684828501613841565b91505092915050565b60008060408385031215614136576141356152f8565b5b600061414485828601613841565b925050602061415585828601613711565b9150509250929050565b60008060408385031215614176576141756152f8565b5b600061418485828601613856565b925050602061419585828601613856565b9150509250929050565b6000602082840312156141b5576141b46152f8565b5b60006141c384828501613880565b91505092915050565b6141d581614fff565b82525050565b6141e481614fed565b82525050565b6141f381615011565b82525050565b6142028161501d565b82525050565b60006142148385614efa565b93506142218385846150d5565b61422a836152fd565b840190509392505050565b60006142418385614f0b565b935061424e8385846150d5565b82840190509392505050565b600061426582614ee4565b61426f8185614efa565b935061427f8185602086016150e4565b614288816152fd565b840191505092915050565b600061429e82614ee4565b6142a88185614f0b565b93506142b88185602086016150e4565b80840191505092915050565b6142cd8161509f565b82525050565b60006142de82614eef565b6142e88185614f16565b93506142f88185602086016150e4565b614301816152fd565b840191505092915050565b600061431782614eef565b6143218185614f27565b93506143318185602086016150e4565b80840191505092915050565b600061434a602083614f16565b91506143558261530e565b602082019050919050565b600061436d603283614f16565b915061437882615337565b604082019050919050565b6000614390602683614f16565b915061439b82615386565b604082019050919050565b60006143b3602583614f16565b91506143be826153d5565b604082019050919050565b60006143d6601c83614f16565b91506143e182615424565b602082019050919050565b60006143f9602b83614f16565b91506144048261544d565b604082019050919050565b600061441c602283614f16565b91506144278261549c565b604082019050919050565b600061443f602483614f16565b915061444a826154eb565b604082019050919050565b6000614462601983614f16565b915061446d8261553a565b602082019050919050565b6000614485602c83614f16565b915061449082615563565b604082019050919050565b60006144a8603883614f16565b91506144b3826155b2565b604082019050919050565b60006144cb602a83614f16565b91506144d682615601565b604082019050919050565b60006144ee602983614f16565b91506144f982615650565b604082019050919050565b6000614511603283614f16565b915061451c8261569f565b604082019050919050565b6000614534602083614f16565b915061453f826156ee565b602082019050919050565b6000614557601b83614f16565b915061456282615717565b602082019050919050565b600061457a602c83614f16565b915061458582615740565b604082019050919050565b600061459d601d83614f16565b91506145a88261578f565b602082019050919050565b60006145c0602e83614f16565b91506145cb826157b8565b604082019050919050565b60006145e3602083614f16565b91506145ee82615807565b602082019050919050565b6000614606602f83614f16565b915061461182615830565b604082019050919050565b6000614629602183614f16565b91506146348261587f565b604082019050919050565b600061464c603183614f16565b9150614657826158ce565b604082019050919050565b600061466f601c83614f16565b915061467a8261591d565b602082019050919050565b6000614692600e83614f16565b915061469d82615946565b602082019050919050565b6146b181615053565b82525050565b6146c081615081565b82525050565b6146cf8161508b565b82525050565b60006146e2828486614235565b91508190509392505050565b60006146fa8284614293565b915081905092915050565b6000614711828561430c565b915061471d828461430c565b91508190509392505050565b600060208201905061473e60008301846141db565b92915050565b600060808201905061475960008301876141db565b61476660208301866141db565b61477360408301856146b7565b8181036060830152614785818461425a565b905095945050505050565b60006020820190506147a560008301846141ea565b92915050565b60006020820190506147c060008301846141f9565b92915050565b600060408201905081810360008301526147e1818587614208565b90506147f060208301846146b7565b949350505050565b60006020820190508181036000830152614812818461425a565b905092915050565b60006040820190508181036000830152614834818561425a565b905061484360208301846146b7565b9392505050565b600060208201905061485f60008301846142c4565b92915050565b6000602082019050818103600083015261487f81846142d3565b905092915050565b600060208201905081810360008301526148a08161433d565b9050919050565b600060208201905081810360008301526148c081614360565b9050919050565b600060208201905081810360008301526148e081614383565b9050919050565b60006020820190508181036000830152614900816143a6565b9050919050565b60006020820190508181036000830152614920816143c9565b9050919050565b60006020820190508181036000830152614940816143ec565b9050919050565b600060208201905081810360008301526149608161440f565b9050919050565b6000602082019050818103600083015261498081614432565b9050919050565b600060208201905081810360008301526149a081614455565b9050919050565b600060208201905081810360008301526149c081614478565b9050919050565b600060208201905081810360008301526149e08161449b565b9050919050565b60006020820190508181036000830152614a00816144be565b9050919050565b60006020820190508181036000830152614a20816144e1565b9050919050565b60006020820190508181036000830152614a4081614504565b9050919050565b60006020820190508181036000830152614a6081614527565b9050919050565b60006020820190508181036000830152614a808161454a565b9050919050565b60006020820190508181036000830152614aa08161456d565b9050919050565b60006020820190508181036000830152614ac081614590565b9050919050565b60006020820190508181036000830152614ae0816145b3565b9050919050565b60006020820190508181036000830152614b00816145d6565b9050919050565b60006020820190508181036000830152614b20816145f9565b9050919050565b60006020820190508181036000830152614b408161461c565b9050919050565b60006020820190508181036000830152614b608161463f565b9050919050565b60006020820190508181036000830152614b8081614662565b9050919050565b60006020820190508181036000830152614ba081614685565b9050919050565b6000602082019050614bbc60008301846146a8565b92915050565b6000604082019050614bd760008301856146a8565b614be460208301846141db565b9392505050565b600060a082019050614c0060008301896146a8565b614c0d60208301886141db565b8181036040830152614c1f818761425a565b9050614c2e60608301866141ea565b8181036080830152614c41818486614208565b9050979650505050505050565b6000608082019050614c6360008301876146a8565b614c7060208301866141db565b614c7d60408301856146b7565b614c8a60608301846146c6565b95945050505050565b6000604082019050614ca860008301866146a8565b8181036020830152614cbb818486614208565b9050949350505050565b600060c082019050614cda60008301896146a8565b8181036020830152614cec818861425a565b90508181036040830152614d00818761425a565b9050614d0f60608301866141cc565b614d1c60808301856141db565b81810360a0830152614d2e818461425a565b9050979650505050505050565b6000608082019050614d5060008301876146a8565b8181036020830152614d62818661425a565b9050614d7160408301856146c6565b8181036060830152614d83818461425a565b905095945050505050565b6000608082019050614da360008301876146a8565b614db060208301866146a8565b614dbd60408301856141db565b614dca60608301846146b7565b95945050505050565b6000608082019050614de860008301886146a8565b614df560208301876146a8565b614e0260408301866146b7565b8181036060830152614e15818486614208565b90509695505050505050565b6000602082019050614e3660008301846146b7565b92915050565b6000604082019050614e5160008301856146b7565b614e5e60208301846146b7565b9392505050565b6000604082019050614e7a60008301856146b7565b614e8760208301846146c6565b9392505050565b6000614e98614ea9565b9050614ea48282615149565b919050565b6000604051905090565b600067ffffffffffffffff821115614ece57614ecd6152b0565b5b614ed7826152fd565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f3d82615081565b9150614f4883615081565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f7d57614f7c6151f4565b5b828201905092915050565b6000614f9382615081565b9150614f9e83615081565b925082614fae57614fad615223565b5b828204905092915050565b6000614fc482615081565b9150614fcf83615081565b925082821015614fe257614fe16151f4565b5b828203905092915050565b6000614ff882615061565b9050919050565b600061500a82615061565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b60006150aa826150b1565b9050919050565b60006150bc826150c3565b9050919050565b60006150ce82615061565b9050919050565b82818337600083830152505050565b60005b838110156151025780820151818401526020810190506150e7565b83811115615111576000848401525b50505050565b6000600282049050600182168061512f57607f821691505b6020821081141561514357615142615252565b5b50919050565b615152826152fd565b810181811067ffffffffffffffff82111715615171576151706152b0565b5b80604052505050565b600061518582615081565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151b8576151b76151f4565b5b600182019050919050565b60006151ce82615081565b91506151d983615081565b9250826151e9576151e8615223565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4c7a52656365697665723a2063616c6c6572206d757374206265204c7a417070600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4c7a52656365697665723a20696e76616c696420736f757263652073656e646960008201527f6e6720636f6e7472616374000000000000000000000000000000000000000000602082015250565b7f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4c7a53656e643a2064657374696e6174696f6e20636861696e206973206e6f7460008201527f2061207472757374656420736f757263652e0000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4c7a52656365697665723a20696e76616c6964207061796c6f61640000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4c7a52656365697665723a206e6f2073746f726564206d657373616765000000600082015250565b7f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4f4e46543a204d6178204d696e74206c696d6974207265616368656400000000600082015250565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b61597881614fed565b811461598357600080fd5b50565b61598f81614fff565b811461599a57600080fd5b50565b6159a681615011565b81146159b157600080fd5b50565b6159bd81615027565b81146159c857600080fd5b50565b6159d481615053565b81146159df57600080fd5b50565b6159eb81615081565b81146159f657600080fd5b50565b615a028161508b565b8114615a0d57600080fd5b5056fea2646970667358221220694686ea6e93b238ba3754a04f4f0810e61d7248b9883f7838747f0cf794312464736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000044a7a6a9a68052f1c8f06354986137dbb388dc90000000000000000000000003c2269811836af69497e5f486a85d7316753cf6200000000000000000000000000000000000000000000000000000000000007d0
-----Decoded View---------------
Arg [0] : _trustedMinter (address): 0x044a7A6a9A68052f1C8f06354986137DBB388Dc9
Arg [1] : _layerZeroEndpoint (address): 0x3c2269811836af69497E5F486A85D7316753cf62
Arg [2] : _endMintId (uint256): 2000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000044a7a6a9a68052f1c8f06354986137dbb388dc9
Arg [1] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
Arg [2] : 00000000000000000000000000000000000000000000000000000000000007d0
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.