Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 16534196 | 544 days ago | IN | 0 ETH | 0.05587984 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PackWoodERC1155V2
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
petersburg EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/cryptography/SignatureCheckerUpgradeable.sol"; import "./ERC1155Upgradeable.sol"; contract PackWoodERC1155V2 is ERC1155Upgradeable, OwnableUpgradeable { using StringsUpgradeable for uint256; // token count uint256 public tokenCounter; // buy price for sereum uint256 private tokenPrice; // before uri string internal _before; // after uri string internal _after; // child address address public childAddress; // name string public name; // symbol string public symbol; // smart contract community address address public SmartContractCommunity; // commuity fee uint256 internal commuintyFee; // order data struct Order { uint256[3] tokenIds; uint256[3] random; bytes32 data; bytes32 signKey; } // airdrop order struct AirdropOrder { address user; uint256 tokenId; } uint256 tempValue; address CrossMintAddress; // smart contract wallet 2 address public SmartContractCommunity2; // smart contract wallet 3 address public SmartContractCommunity3; /** * @dev Emitted when user buys the sereum. */ event buyTokenDetails( address from, address to, uint256 tokenId1, uint256 tokenId2, uint256 tokenId3, uint256 tokenId1Amt, uint256 tokenId2Amt, uint256 tokenId3Amt, uint256 price ); /** * @dev Emitted when user buys the sereum through crossmint. */ event crossmintToTokenDetails( address from, address sendTo, uint256 tokenId, uint256 tokenIdAmt, uint256 price ); /** * @dev Emitted when user buys the sereums through crossmint. */ event crossmintToTokenDetailsV2( address from, address sendTo, uint256[] tokenId, uint256[] tokenIdAmt, uint256 price ); // modifier modifier onlyChild() { require( msg.sender == childAddress, "PackWoodERC1155: caller is not child address" ); _; } /** * @dev updates the Child Address and crossmint address. * * @param _address updated child address. * @param _child_address child address * * Requirements: * - only owner can update. */ function updateCrossMintAddress(address _address, address _child_address) external onlyOwner { CrossMintAddress = _address; childAddress = _child_address; } /** * @dev updates the community Fee percent. * * @param _percent updated child address. * * Requirements: * - only owner can update value. */ function updateCommunityFee(uint256 _percent) external onlyOwner returns (bool) { commuintyFee = _percent; return true; } /** * @dev updates the skt community wallet Address. * * * Requirements: * - only owner can update value. */ function updateSKTCommunityWallet(address _account) external onlyOwner { SmartContractCommunity = _account; // update commuinty wallet } /** * @dev updates the total price. * * @param _num updated price for each copy of token. * * Requirements: * - only owner can update value. */ function updatePrice(uint256 _num) external onlyOwner returns (bool) { tokenPrice = _num; return true; } /** * @dev updates the default Token URI. * * @param before_ token uri before part. * @param after_ token uri after part. * * Requirements: * - only owner can update default URI. */ function setTokenUri(string memory before_, string memory after_) external onlyOwner returns (bool) { _before = before_; _after = after_; return true; } /** * @dev Token URI. * * @param id token uri before part. * * returns: * - token URI. */ function uri(uint256 id) public view virtual override returns (string memory) { return string( abi.encodePacked( _before, StringsUpgradeable.toString(id), _after ) ); } /** * @dev mints the token. * * @param _amount token uri before part. * * Requirements: * - only owner can mint. */ function mintToken(uint256 _amount) external onlyOwner returns (uint256) { tokenCounter += 1; _mint(msg.sender, tokenCounter, _amount, ""); return tokenCounter; } /** * @dev burns the token. * * @param _account token account. * @param _tokenId token id * * Requirements: * - only child contract can call it. */ function burnToken(address _account, uint256 _tokenId) external onlyChild returns (bool) { _burn(_account, _tokenId, 1); return true; } /** * @dev buy the token amount. * * @param order order for buying token. * @param signature signature * * returns: * - bool. * * Emits a {buyTokenDetails} event. */ function buyToken(Order memory order, bytes memory signature) external payable returns (bool) { bool status = SignatureCheckerUpgradeable.isValidSignatureNow( owner(), order.signKey, signature ); require(status == true, "$PackWoodERC1155: cannot purchase the token"); uint256 amount = order.random[0] + order.random[1] + order.random[2]; require( tokenPrice * amount == msg.value, "PackWoodERC1155: Price is incorrect" ); bytes32 hashT = keccak256(abi.encodePacked(amount, msg.sender)); bytes32 hashV = keccak256( abi.encodePacked( order.tokenIds[0], order.tokenIds[1], order.tokenIds[2] ) ); bytes32 hashTo = keccak256(abi.encodePacked(hashT, hashV)); require(hashTo == order.data, "PackWoodERC1155: data is incorrect"); payable(SmartContractCommunity).transfer(msg.value); for (uint256 i = 0; i < order.tokenIds.length; i++) { if (order.random[i] > 0) { _safeTransferFrom( owner(), msg.sender, order.tokenIds[i], order.random[i], "" ); } } emit buyTokenDetails( owner(), msg.sender, order.tokenIds[0], order.tokenIds[1], order.tokenIds[2], order.random[0], order.random[1], order.random[2], msg.value ); return true; } function whitelistedAirdrop(AirdropOrder[] calldata _airdrop) external onlyOwner returns (bool) { for (uint256 i = 0; i < _airdrop.length; i++) { _safeTransferFrom( owner(), _airdrop[i].user, _airdrop[i].tokenId, 1, "" ); } return true; } /** * @dev buy the token amount. * * @param to send to. * @param _count id * * returns: * - bool. * * Emits a {crossmintToTokenDetails} event. */ function mintTo( address to, uint256 _count, uint256 _tokenId ) external payable returns (bool) { require( msg.sender == CrossMintAddress, "PackWoodERC1155: Method can be only called by Cross mint address" ); require( tokenPrice * _count == msg.value, "PackWoodERC1155: Price is incorrect" ); payable(SmartContractCommunity).transfer(msg.value); _safeTransferFrom(owner(), to, _tokenId, _count, ""); emit crossmintToTokenDetails(owner(), to, _tokenId, _count, msg.value); return true; } /** * @dev buy the token amount. * * @param to send to * @param _count id * @param _tokenId array of Ids * @param _quantity quantity array for each id * * returns: * - bool. * * Emits a {crossmintToTokenDetails} event. */ function mintToV2( address to, uint256 _count, uint256[] calldata _tokenId, uint256[] calldata _quantity ) external payable returns (bool) { require( msg.sender == CrossMintAddress, "PackWoodERC1155: Method can be only called by Cross mint address" ); require( tokenPrice * _count == msg.value, "PackWoodERC1155: Price is incorrect" ); payable(SmartContractCommunity).transfer(msg.value); uint256 temp; for(uint256 i = 0; i < _tokenId.length; i++){ _safeTransferFrom(owner(), to, _tokenId[i], _quantity[i], ""); temp += _quantity[i]; } require( temp == _count && _count <= 8, "PackWoodERC1155: Incorrect quantity supply" ); emit crossmintToTokenDetailsV2(owner(), to, _tokenId, _quantity, msg.value); return true; } // /** // * @dev fee calaculation. // */ // function feeCalulation(uint256 _totalPrice) private view returns (uint256) { // uint256 fee = commuintyFee * _totalPrice; // change commuity fee // uint256 fees = fee / 100; // return fees; // } /** * @dev transfer the ethers to users. * * @param _addresses send to * @param _amounts id * */ function transferEth( address[] calldata _addresses, uint256[] calldata _amounts ) external payable onlyOwner { require(_amounts.length == _addresses.length, "PackWoodERC1155: Invalid request"); for(uint256 i = 0; i < _addresses.length; i++){ payable(_addresses[i]).transfer(_amounts[i]); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address internal _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init(address owner_) internal initializer { __Context_init_unchained(); __Ownable_init_unchained(owner_); } function __Ownable_init_unchained(address owner_) internal initializer { _setOwner(owner_); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address ) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner((address(0))); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC1271 standard signature validation method for * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271]. * * _Available since v4.1._ */ interface IERC1271Upgradeable { /** * @dev Should return whether the signature provided is valid for the provided data * @param hash Hash of the data to be signed * @param signature Signature byte array associated with _data */ function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155Upgradeable.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return payable(msg.sender); } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSAUpgradeable { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ECDSAUpgradeable.sol"; import "../AddressUpgradeable.sol"; import "../../interfaces/IERC1271Upgradeable.sol"; /** * @dev Signature verification helper: Provide a single mechanism to verify both private-key (EOA) ECDSA signature and * ERC1271 contract sigantures. Using this instead of ECDSA.recover in your contract will make them compatible with * smart contract wallets such as Argent and Gnosis. * * Note: unlike ECDSA signatures, contract signature's are revocable, and the outcome of this function can thus change * through time. It could return true at block N and false at block N+1 (or the opposite). * * _Available since v4.1._ */ library SignatureCheckerUpgradeable { function isValidSignatureNow( address signer, bytes32 hash, bytes memory signature ) internal view returns (bool) { if (AddressUpgradeable.isContract(signer)) { try IERC1271Upgradeable(signer).isValidSignature(hash, signature) returns (bytes4 magicValue) { return magicValue == IERC1271Upgradeable(signer).isValidSignature.selector; } catch { return false; } } else { return ECDSAUpgradeable.recover(hash, signature) == signer; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155ReceiverUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/IERC1155MetadataURIUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable { using AddressUpgradeable for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ function __ERC1155_init(string memory uri_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC1155_init_unchained(uri_); } function __ERC1155_init_unchained(string memory uri_) internal initializer { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155Upgradeable).interfaceId || interfaceId == type(IERC1155MetadataURIUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { //require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); //require(to != address(0), "ERC1155: transfer to the zero address"); if(to == address(0)){ for (uint256 i = 0; i < ids.length; ++i) { _burn(from, ids[i], amounts[i]); } }else{ address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155ReceiverUpgradeable(to).onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } uint256[47] private __gap; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "petersburg", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId2","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId3","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId1Amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId2Amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId3Amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"buyTokenDetails","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"sendTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenIdAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"crossmintToTokenDetails","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"sendTo","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenId","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"tokenIdAmt","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"crossmintToTokenDetailsV2","type":"event"},{"inputs":[],"name":"SmartContractCommunity","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SmartContractCommunity2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SmartContractCommunity3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256[3]","name":"tokenIds","type":"uint256[3]"},{"internalType":"uint256[3]","name":"random","type":"uint256[3]"},{"internalType":"bytes32","name":"data","type":"bytes32"},{"internalType":"bytes32","name":"signKey","type":"bytes32"}],"internalType":"struct PackWoodERC1155V2.Order","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"buyToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"childAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mintTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256[]","name":"_tokenId","type":"uint256[]"},{"internalType":"uint256[]","name":"_quantity","type":"uint256[]"}],"name":"mintToV2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"before_","type":"string"},{"internalType":"string","name":"after_","type":"string"}],"name":"setTokenUri","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"transferEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"updateCommunityFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"address","name":"_child_address","type":"address"}],"name":"updateCrossMintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"updatePrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"updateSKTCommunityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct PackWoodERC1155V2.AirdropOrder[]","name":"_airdrop","type":"tuple[]"}],"name":"whitelistedAirdrop","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613192806100206000396000f3fe6080604052600436106101cc5760003560e01c806375db15db116100f7578063c634d03211610095578063e985e9c511610064578063e985e9c514610507578063f242432a14610550578063f2fde38b14610570578063fd55e73c1461059057600080fd5b8063c634d03214610491578063d082e381146104b1578063d1df306c146104c7578063d2d5f8d4146104e757600080fd5b806395d89b41116100d157806395d89b4114610429578063a22cb4651461043e578063a62102e71461045e578063b8a947de1461047157600080fd5b806375db15db146103d85780638d6cc56d146103eb5780638da5cb5b1461040b57600080fd5b80632eb2c2d61161016f5780634e1273f41161013e5780634e1273f4146103635780635655fcb41461039057806370182e96146103b0578063715018a6146103c357600080fd5b80632eb2c2d6146102e157806332ba0c731461030357806334c832491461032357806344e97d841461034357600080fd5b80630e89341c116101ab5780630e89341c1461025657806314baef511461027657806320fefd4a146102ae5780632baf2acb146102ce57600080fd5b8062fdd58e146101d157806301ffc9a71461020457806306fdde0314610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec3660046126f6565b6105b0565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f36600461298b565b61064c565b60405190151581526020016101fb565b34801561024057600080fd5b5061024961069c565b6040516101fb9190612d83565b34801561026257600080fd5b50610249610271366004612ac2565b61072a565b34801561028257600080fd5b5060d554610296906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b3480156102ba57600080fd5b5060d054610296906001600160a01b031681565b6102246102dc3660046127a9565b610761565b3480156102ed57600080fd5b506103016102fc3660046125ad565b610895565b005b34801561030f57600080fd5b5061030161031e36600461257a565b61092c565b34801561032f57600080fd5b5061022461033e366004612ac2565b610984565b34801561034f57600080fd5b5061030161035e36600461255f565b6109bf565b34801561036f57600080fd5b5061038361037e366004612847565b610a0b565b6040516101fb9190612d32565b34801561039c57600080fd5b5060d454610296906001600160a01b031681565b6103016103be3660046127dc565b610b34565b3480156103cf57600080fd5b50610301610c42565b6102246103e6366004612720565b610c78565b3480156103f757600080fd5b50610224610406366004612ac2565b610e7e565b34801561041757600080fd5b506097546001600160a01b0316610296565b34801561043557600080fd5b50610249610eb4565b34801561044a57600080fd5b506103016104593660046126ba565b610ec1565b61022461046c366004612a1e565b610f98565b34801561047d57600080fd5b5060cd54610296906001600160a01b031681565b34801561049d57600080fd5b506101f16104ac366004612ac2565b611314565b3480156104bd57600080fd5b506101f160c95481565b3480156104d357600080fd5b506102246104e23660046126f6565b611380565b3480156104f357600080fd5b50610224610502366004612917565b611407565b34801561051357600080fd5b5061022461052236600461257a565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205460ff1690565b34801561055c57600080fd5b5061030161056b366004612656565b6114cb565b34801561057c57600080fd5b5061030161058b36600461255f565b611552565b34801561059c57600080fd5b506102246105ab3660046129c5565b6115ed565b60006001600160a01b0383166106215760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526065602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061067d57506001600160e01b031982166303a24d0760e21b145b8061064657506301ffc9a760e01b6001600160e01b0319831614610646565b60ce80546106a990612fb3565b80601f01602080910402602001604051908101604052809291908181526020018280546106d590612fb3565b80156107225780601f106106f757610100808354040283529160200191610722565b820191906000526020600020905b81548152906001019060200180831161070557829003601f168201915b505050505081565b606060cb61073783611641565b60cc60405160200161074b93929190612c12565b6040516020818303038152906040529050919050565b60d3546000906001600160a01b0316331461078e5760405162461bcd60e51b815260040161061890612dde565b348360ca5461079d9190612f4d565b146107ba5760405162461bcd60e51b815260040161061890612e3c565b60d0546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156107f3573d6000803e3d6000fd5b506108216108096097546001600160a01b031690565b85848660405180602001604052806000815250611746565b7f2d23054312d5fe694ba75dc4a5c32fa30582ca92c76a905aa93bf063ee65e0376108546097546001600160a01b031690565b604080516001600160a01b039283168152918716602083015281018490526060810185905234608082015260a00160405180910390a15060015b9392505050565b6001600160a01b0385163314806108b157506108b18533610522565b6109185760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610618565b610925858585858561184a565b5050505050565b6097546001600160a01b031633146109565760405162461bcd60e51b815260040161061890612ec9565b60d380546001600160a01b039384166001600160a01b03199182161790915560cd8054929093169116179055565b6097546000906001600160a01b031633146109b15760405162461bcd60e51b815260040161061890612ec9565b5060d181905560015b919050565b6097546001600160a01b031633146109e95760405162461bcd60e51b815260040161061890612ec9565b60d080546001600160a01b0319166001600160a01b0392909216919091179055565b60608151835114610a705760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610618565b600083516001600160401b03811115610a8b57610a8b61308b565b604051908082528060200260200182016040528015610ab4578160200160208202803683370190505b50905060005b8451811015610b2c57610aff858281518110610ad857610ad8613075565b6020026020010151858381518110610af257610af2613075565b60200260200101516105b0565b828281518110610b1157610b11613075565b6020908102919091010152610b258161301a565b9050610aba565b509392505050565b6097546001600160a01b03163314610b5e5760405162461bcd60e51b815260040161061890612ec9565b808314610bad5760405162461bcd60e51b815260206004820181905260248201527f5061636b576f6f64455243313135353a20496e76616c696420726571756573746044820152606401610618565b60005b8381101561092557848482818110610bca57610bca613075565b9050602002016020810190610bdf919061255f565b6001600160a01b03166108fc848484818110610bfd57610bfd613075565b905060200201359081150290604051600060405180830381858888f19350505050158015610c2f573d6000803e3d6000fd5b5080610c3a8161301a565b915050610bb0565b6097546001600160a01b03163314610c6c5760405162461bcd60e51b815260040161061890612ec9565b610c766000611a71565b565b60d3546000906001600160a01b03163314610ca55760405162461bcd60e51b815260040161061890612dde565b348660ca54610cb49190612f4d565b14610cd15760405162461bcd60e51b815260040161061890612e3c565b60d0546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610d0a573d6000803e3d6000fd5b506000805b85811015610dac57610d74610d2c6097546001600160a01b031690565b8a898985818110610d3f57610d3f613075565b90506020020135888886818110610d5857610d58613075565b9050602002013560405180602001604052806000815250611746565b848482818110610d8657610d86613075565b9050602002013582610d989190612f21565b915080610da48161301a565b915050610d0f565b508681148015610dbd575060088711155b610e1c5760405162461bcd60e51b815260206004820152602a60248201527f5061636b576f6f64455243313135353a20496e636f7272656374207175616e7460448201526969747920737570706c7960b01b6064820152608401610618565b7ff2d7002d68f78c9d65744df444377c58154116cc608915dc09683bb15942aa27610e4f6097546001600160a01b031690565b898888888834604051610e689796959493929190612c45565b60405180910390a1506001979650505050505050565b6097546000906001600160a01b03163314610eab5760405162461bcd60e51b815260040161061890612ec9565b5060ca55600190565b60cf80546106a990612fb3565b336001600160a01b0383161415610f2c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610618565b3360008181526066602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080610fbb610fb06097546001600160a01b031690565b856060015185611ac3565b90506001811515146110235760405162461bcd60e51b815260206004820152602b60248201527f245061636b576f6f64455243313135353a2063616e6e6f74207075726368617360448201526a32903a3432903a37b5b2b760a91b6064820152608401610618565b60208481015160408101519181015190516000929161104191612f21565b61104b9190612f21565b9050348160ca5461105c9190612f4d565b146110795760405162461bcd60e51b815260040161061890612e3c565b600081336040516020016110a992919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60408051808303601f19018152828252805160209182012089518051818401519185015193860152928401929092526060830152915060009060800160408051601f1981840301815282825280516020918201209083018590529082018190529150600090606001604051602081830303815290604052805190602001209050876040015181146111875760405162461bcd60e51b815260206004820152602260248201527f5061636b576f6f64455243313135353a206461746120697320696e636f72726560448201526118dd60f21b6064820152608401610618565b60d0546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156111c0573d6000803e3d6000fd5b5060005b6003811015611261576000896020015182600381106111e5576111e5613075565b6020020151111561124f5761124f6112056097546001600160a01b031690565b8a513390846003811061121a5761121a613075565b60200201518c60200151856003811061123557611235613075565b602002015160405180602001604052806000815250611746565b806112598161301a565b9150506111c4565b507ff93a9be267f5cb6a7e6035b9c1418cacb81ef71a49a993839db349aa17fc082a6112956097546001600160a01b031690565b89518051602080830151604093840151828f01518051818501519187015187516001600160a01b039990991689523395890195909552878701959095526060870192909252608086015260a085019290925260c084019190915260e08301523461010083015251908190036101200190a1506001979650505050505050565b6097546000906001600160a01b031633146113415760405162461bcd60e51b815260040161061890612ec9565b600160c960008282546113549190612f21565b925050819055506113783360c9548460405180602001604052806000815250611b8d565b505060c95490565b60cd546000906001600160a01b031633146113f25760405162461bcd60e51b815260206004820152602c60248201527f5061636b576f6f64455243313135353a2063616c6c6572206973206e6f74206360448201526b68696c64206164647265737360a01b6064820152608401610618565b6113fe83836001611c90565b50600192915050565b6097546000906001600160a01b031633146114345760405162461bcd60e51b815260040161061890612ec9565b60005b828110156114c1576114af6114546097546001600160a01b031690565b85858481811061146657611466613075565b61147c926020604090920201908101915061255f565b86868581811061148e5761148e613075565b90506040020160200135600160405180602001604052806000815250611746565b806114b98161301a565b915050611437565b5060019392505050565b6001600160a01b0385163314806114e757506114e78533610522565b6115455760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610618565b6109258585858585611746565b6097546001600160a01b0316331461157c5760405162461bcd60e51b815260040161061890612ec9565b6001600160a01b0381166115e15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610618565b6115ea81611a71565b50565b6097546000906001600160a01b0316331461161a5760405162461bcd60e51b815260040161061890612ec9565b825161162d9060cb906020860190612305565b5081516114c19060cc906020850190612305565b6060816116655750506040805180820190915260018152600360fc1b602082015290565b8160005b811561168f57806116798161301a565b91506116889050600a83612f39565b9150611669565b6000816001600160401b038111156116a9576116a961308b565b6040519080825280601f01601f1916602001820160405280156116d3576020820181803683370190505b5090505b841561173e576116e8600183612f6c565b91506116f5600a86613035565b611700906030612f21565b60f81b81838151811061171557611715613075565b60200101906001600160f81b031916908160001a905350611737600a86612f39565b94506116d7565b949350505050565b3361175f81878761175688611e0e565b61092588611e0e565b60008481526065602090815260408083206001600160a01b038a168452909152902054838110156117a25760405162461bcd60e51b815260040161061890612e7f565b60008581526065602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906117e1908490612f21565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611841828888888888611e59565b50505050505050565b81518351146118ac5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610618565b6001600160a01b0384166119195760005b835181101561191357611903868583815181106118dc576118dc613075565b60200260200101518584815181106118f6576118f6613075565b6020026020010151611c90565b61190c8161301a565b90506118bd565b50610925565b3360005b8451811015611a0357600085828151811061193a5761193a613075565b60200260200101519050600085838151811061195857611958613075565b60209081029190910181015160008481526065835260408082206001600160a01b038e1683529093529190912054909150818110156119a95760405162461bcd60e51b815260040161061890612e7f565b60008381526065602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906119e8908490612f21565b92505081905550505050806119fc9061301a565b905061191d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611a53929190612d45565b60405180910390a4611a69818787878787611fc4565b505050505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000833b15611b6857604051630b135d3f60e11b81526001600160a01b03851690631626ba7e90611afa9086908690600401612d6a565b60206040518083038186803b158015611b1257600080fd5b505afa925050508015611b42575060408051601f3d908101601f19168201909252611b3f918101906129a8565b60015b611b4e5750600061088e565b6001600160e01b031916630b135d3f60e11b14905061088e565b836001600160a01b0316611b7c848461208e565b6001600160a01b031614905061088e565b6001600160a01b038416611bed5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610618565b33611bfe8160008761175688611e0e565b60008481526065602090815260408083206001600160a01b038916845290915281208054859290611c30908490612f21565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461092581600087878787611e59565b6001600160a01b038316611cf25760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610618565b33611d2281856000611d0387611e0e565b611d0c87611e0e565b5050604080516020810190915260009052505050565b60008381526065602090815260408083206001600160a01b038816845290915290205482811015611da15760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610618565b60008481526065602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611e4857611e48613075565b602090810291909101015292915050565b6001600160a01b0384163b15611a695760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611e9d9089908990889088908890600401612cf8565b602060405180830381600087803b158015611eb757600080fd5b505af1925050508015611ee7575060408051601f3d908101601f19168201909252611ee4918101906129a8565b60015b611f9457611ef36130a1565b806308c379a01415611f2d5750611f086130bd565b80611f135750611f2f565b8060405162461bcd60e51b81526004016106189190612d83565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610618565b6001600160e01b0319811663f23a6e6160e01b146118415760405162461bcd60e51b815260040161061890612d96565b6001600160a01b0384163b15611a695760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906120089089908990889088908890600401612c9a565b602060405180830381600087803b15801561202257600080fd5b505af1925050508015612052575060408051601f3d908101601f1916820190925261204f918101906129a8565b60015b61205e57611ef36130a1565b6001600160e01b0319811663bc197c8160e01b146118415760405162461bcd60e51b815260040161061890612d96565b60008151604114156120c25760208201516040830151606084015160001a6120b886828585612132565b9350505050610646565b8151604014156120ea57602082015160408301516120e18583836122db565b92505050610646565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610618565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156121af5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610618565b8360ff16601b14806121c457508360ff16601c145b61221b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610618565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa15801561226f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166122d25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610618565b95945050505050565b60006001600160ff1b03821660ff83901c601b016122fb86828785612132565b9695505050505050565b82805461231190612fb3565b90600052602060002090601f0160209004810192826123335760008555612379565b82601f1061234c57805160ff1916838001178555612379565b82800160010185558215612379579182015b8281111561237957825182559160200191906001019061235e565b50612385929150612389565b5090565b5b80821115612385576000815560010161238a565b80356001600160a01b03811681146109ba57600080fd5b60008083601f8401126123c757600080fd5b5081356001600160401b038111156123de57600080fd5b6020830191508360208260051b85010111156123f957600080fd5b9250929050565b600082601f83011261241157600080fd5b604051606081018181106001600160401b03821117156124335761243361308b565b60405280836060810186101561244857600080fd5b60005b600381101561246a57813583526020928301929091019060010161244b565b509195945050505050565b600082601f83011261248657600080fd5b8135602061249382612efe565b6040516124a08282612fee565b8381528281019150858301600585901b870184018810156124c057600080fd5b60005b858110156124df578135845292840192908401906001016124c3565b5090979650505050505050565b600082601f8301126124fd57600080fd5b81356001600160401b038111156125165761251661308b565b60405161252d601f8301601f191660200182612fee565b81815284602083860101111561254257600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561257157600080fd5b61088e8261239e565b6000806040838503121561258d57600080fd5b6125968361239e565b91506125a46020840161239e565b90509250929050565b600080600080600060a086880312156125c557600080fd5b6125ce8661239e565b94506125dc6020870161239e565b935060408601356001600160401b03808211156125f857600080fd5b61260489838a01612475565b9450606088013591508082111561261a57600080fd5b61262689838a01612475565b9350608088013591508082111561263c57600080fd5b50612649888289016124ec565b9150509295509295909350565b600080600080600060a0868803121561266e57600080fd5b6126778661239e565b94506126856020870161239e565b9350604086013592506060860135915060808601356001600160401b038111156126ae57600080fd5b612649888289016124ec565b600080604083850312156126cd57600080fd5b6126d68361239e565b9150602083013580151581146126eb57600080fd5b809150509250929050565b6000806040838503121561270957600080fd5b6127128361239e565b946020939093013593505050565b6000806000806000806080878903121561273957600080fd5b6127428761239e565b95506020870135945060408701356001600160401b038082111561276557600080fd5b6127718a838b016123b5565b9096509450606089013591508082111561278a57600080fd5b5061279789828a016123b5565b979a9699509497509295939492505050565b6000806000606084860312156127be57600080fd5b6127c78461239e565b95602085013595506040909401359392505050565b600080600080604085870312156127f257600080fd5b84356001600160401b038082111561280957600080fd5b612815888389016123b5565b9096509450602087013591508082111561282e57600080fd5b5061283b878288016123b5565b95989497509550505050565b6000806040838503121561285a57600080fd5b82356001600160401b038082111561287157600080fd5b818501915085601f83011261288557600080fd5b8135602061289282612efe565b60405161289f8282612fee565b8381528281019150858301600585901b870184018b10156128bf57600080fd5b600096505b848710156128e9576128d58161239e565b8352600196909601959183019183016128c4565b509650508601359250508082111561290057600080fd5b5061290d85828601612475565b9150509250929050565b6000806020838503121561292a57600080fd5b82356001600160401b038082111561294157600080fd5b818501915085601f83011261295557600080fd5b81358181111561296457600080fd5b8660208260061b850101111561297957600080fd5b60209290920196919550909350505050565b60006020828403121561299d57600080fd5b813561088e81613146565b6000602082840312156129ba57600080fd5b815161088e81613146565b600080604083850312156129d857600080fd5b82356001600160401b03808211156129ef57600080fd5b6129fb868387016124ec565b93506020850135915080821115612a1157600080fd5b5061290d858286016124ec565b600080828403610120811215612a3357600080fd5b61010080821215612a4357600080fd5b6040519150608082016001600160401b038382108183111715612a6857612a6861308b565b81604052612a768888612400565b8452612a858860608901612400565b602085015260c0870135604085015260e08701356060850152929450818601359280841115612ab357600080fd5b50505061290d858286016124ec565b600060208284031215612ad457600080fd5b5035919050565b81835260006001600160fb1b03831115612af457600080fd5b8260051b8083602087013760009401602001938452509192915050565b600081518084526020808501945080840160005b83811015612b4157815187529582019590820190600101612b25565b509495945050505050565b60008151808452612b64816020860160208601612f83565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612b9257607f831692505b6020808410821415612bb457634e487b7160e01b600052602260045260246000fd5b818015612bc85760018114612bd957612c06565b60ff19861689528489019650612c06565b60008881526020902060005b86811015612bfe5781548b820152908501908301612be5565b505084890196505b50505050505092915050565b6000612c1e8286612b78565b8451612c2e818360208901612f83565b612c3a81830186612b78565b979650505050505050565b6001600160a01b0388811682528716602082015260a060408201819052600090612c729083018789612adb565b8281036060840152612c85818688612adb565b91505082608083015298975050505050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612cc690830186612b11565b8281036060840152612cd88186612b11565b90508281036080840152612cec8185612b4c565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612c3a90830184612b4c565b60208152600061088e6020830184612b11565b604081526000612d586040830185612b11565b82810360208401526122d28185612b11565b82815260406020820152600061173e6040830184612b4c565b60208152600061088e6020830184612b4c565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b602080825260409082018190527f5061636b576f6f64455243313135353a204d6574686f642063616e206265206f908201527f6e6c792063616c6c65642062792043726f7373206d696e742061646472657373606082015260800190565b60208082526023908201527f5061636b576f6f64455243313135353a20507269636520697320696e636f72726040820152621958dd60ea1b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b03821115612f1757612f1761308b565b5060051b60200190565b60008219821115612f3457612f34613049565b500190565b600082612f4857612f4861305f565b500490565b6000816000190483118215151615612f6757612f67613049565b500290565b600082821015612f7e57612f7e613049565b500390565b60005b83811015612f9e578181015183820152602001612f86565b83811115612fad576000848401525b50505050565b600181811c90821680612fc757607f821691505b60208210811415612fe857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156130135761301361308b565b6040525050565b600060001982141561302e5761302e613049565b5060010190565b6000826130445761304461305f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156130ba5760046000803e5060005160e01c5b90565b600060443d10156130cb5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156130fa57505050505090565b82850191508151818111156131125750505050505090565b843d870101602082850101111561312c5750505050505090565b61313b60208286010187612fee565b509095945050505050565b6001600160e01b0319811681146115ea57600080fdfea2646970667358221220e7e7cb63c57e41734bfb7f0e0572bbce227f6a3d8ad4ec5b71f5d4394e52b04264736f6c63430008070033
Deployed Bytecode
0x6080604052600436106101cc5760003560e01c806375db15db116100f7578063c634d03211610095578063e985e9c511610064578063e985e9c514610507578063f242432a14610550578063f2fde38b14610570578063fd55e73c1461059057600080fd5b8063c634d03214610491578063d082e381146104b1578063d1df306c146104c7578063d2d5f8d4146104e757600080fd5b806395d89b41116100d157806395d89b4114610429578063a22cb4651461043e578063a62102e71461045e578063b8a947de1461047157600080fd5b806375db15db146103d85780638d6cc56d146103eb5780638da5cb5b1461040b57600080fd5b80632eb2c2d61161016f5780634e1273f41161013e5780634e1273f4146103635780635655fcb41461039057806370182e96146103b0578063715018a6146103c357600080fd5b80632eb2c2d6146102e157806332ba0c731461030357806334c832491461032357806344e97d841461034357600080fd5b80630e89341c116101ab5780630e89341c1461025657806314baef511461027657806320fefd4a146102ae5780632baf2acb146102ce57600080fd5b8062fdd58e146101d157806301ffc9a71461020457806306fdde0314610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec3660046126f6565b6105b0565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f36600461298b565b61064c565b60405190151581526020016101fb565b34801561024057600080fd5b5061024961069c565b6040516101fb9190612d83565b34801561026257600080fd5b50610249610271366004612ac2565b61072a565b34801561028257600080fd5b5060d554610296906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b3480156102ba57600080fd5b5060d054610296906001600160a01b031681565b6102246102dc3660046127a9565b610761565b3480156102ed57600080fd5b506103016102fc3660046125ad565b610895565b005b34801561030f57600080fd5b5061030161031e36600461257a565b61092c565b34801561032f57600080fd5b5061022461033e366004612ac2565b610984565b34801561034f57600080fd5b5061030161035e36600461255f565b6109bf565b34801561036f57600080fd5b5061038361037e366004612847565b610a0b565b6040516101fb9190612d32565b34801561039c57600080fd5b5060d454610296906001600160a01b031681565b6103016103be3660046127dc565b610b34565b3480156103cf57600080fd5b50610301610c42565b6102246103e6366004612720565b610c78565b3480156103f757600080fd5b50610224610406366004612ac2565b610e7e565b34801561041757600080fd5b506097546001600160a01b0316610296565b34801561043557600080fd5b50610249610eb4565b34801561044a57600080fd5b506103016104593660046126ba565b610ec1565b61022461046c366004612a1e565b610f98565b34801561047d57600080fd5b5060cd54610296906001600160a01b031681565b34801561049d57600080fd5b506101f16104ac366004612ac2565b611314565b3480156104bd57600080fd5b506101f160c95481565b3480156104d357600080fd5b506102246104e23660046126f6565b611380565b3480156104f357600080fd5b50610224610502366004612917565b611407565b34801561051357600080fd5b5061022461052236600461257a565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205460ff1690565b34801561055c57600080fd5b5061030161056b366004612656565b6114cb565b34801561057c57600080fd5b5061030161058b36600461255f565b611552565b34801561059c57600080fd5b506102246105ab3660046129c5565b6115ed565b60006001600160a01b0383166106215760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526065602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061067d57506001600160e01b031982166303a24d0760e21b145b8061064657506301ffc9a760e01b6001600160e01b0319831614610646565b60ce80546106a990612fb3565b80601f01602080910402602001604051908101604052809291908181526020018280546106d590612fb3565b80156107225780601f106106f757610100808354040283529160200191610722565b820191906000526020600020905b81548152906001019060200180831161070557829003601f168201915b505050505081565b606060cb61073783611641565b60cc60405160200161074b93929190612c12565b6040516020818303038152906040529050919050565b60d3546000906001600160a01b0316331461078e5760405162461bcd60e51b815260040161061890612dde565b348360ca5461079d9190612f4d565b146107ba5760405162461bcd60e51b815260040161061890612e3c565b60d0546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156107f3573d6000803e3d6000fd5b506108216108096097546001600160a01b031690565b85848660405180602001604052806000815250611746565b7f2d23054312d5fe694ba75dc4a5c32fa30582ca92c76a905aa93bf063ee65e0376108546097546001600160a01b031690565b604080516001600160a01b039283168152918716602083015281018490526060810185905234608082015260a00160405180910390a15060015b9392505050565b6001600160a01b0385163314806108b157506108b18533610522565b6109185760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610618565b610925858585858561184a565b5050505050565b6097546001600160a01b031633146109565760405162461bcd60e51b815260040161061890612ec9565b60d380546001600160a01b039384166001600160a01b03199182161790915560cd8054929093169116179055565b6097546000906001600160a01b031633146109b15760405162461bcd60e51b815260040161061890612ec9565b5060d181905560015b919050565b6097546001600160a01b031633146109e95760405162461bcd60e51b815260040161061890612ec9565b60d080546001600160a01b0319166001600160a01b0392909216919091179055565b60608151835114610a705760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610618565b600083516001600160401b03811115610a8b57610a8b61308b565b604051908082528060200260200182016040528015610ab4578160200160208202803683370190505b50905060005b8451811015610b2c57610aff858281518110610ad857610ad8613075565b6020026020010151858381518110610af257610af2613075565b60200260200101516105b0565b828281518110610b1157610b11613075565b6020908102919091010152610b258161301a565b9050610aba565b509392505050565b6097546001600160a01b03163314610b5e5760405162461bcd60e51b815260040161061890612ec9565b808314610bad5760405162461bcd60e51b815260206004820181905260248201527f5061636b576f6f64455243313135353a20496e76616c696420726571756573746044820152606401610618565b60005b8381101561092557848482818110610bca57610bca613075565b9050602002016020810190610bdf919061255f565b6001600160a01b03166108fc848484818110610bfd57610bfd613075565b905060200201359081150290604051600060405180830381858888f19350505050158015610c2f573d6000803e3d6000fd5b5080610c3a8161301a565b915050610bb0565b6097546001600160a01b03163314610c6c5760405162461bcd60e51b815260040161061890612ec9565b610c766000611a71565b565b60d3546000906001600160a01b03163314610ca55760405162461bcd60e51b815260040161061890612dde565b348660ca54610cb49190612f4d565b14610cd15760405162461bcd60e51b815260040161061890612e3c565b60d0546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610d0a573d6000803e3d6000fd5b506000805b85811015610dac57610d74610d2c6097546001600160a01b031690565b8a898985818110610d3f57610d3f613075565b90506020020135888886818110610d5857610d58613075565b9050602002013560405180602001604052806000815250611746565b848482818110610d8657610d86613075565b9050602002013582610d989190612f21565b915080610da48161301a565b915050610d0f565b508681148015610dbd575060088711155b610e1c5760405162461bcd60e51b815260206004820152602a60248201527f5061636b576f6f64455243313135353a20496e636f7272656374207175616e7460448201526969747920737570706c7960b01b6064820152608401610618565b7ff2d7002d68f78c9d65744df444377c58154116cc608915dc09683bb15942aa27610e4f6097546001600160a01b031690565b898888888834604051610e689796959493929190612c45565b60405180910390a1506001979650505050505050565b6097546000906001600160a01b03163314610eab5760405162461bcd60e51b815260040161061890612ec9565b5060ca55600190565b60cf80546106a990612fb3565b336001600160a01b0383161415610f2c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610618565b3360008181526066602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080610fbb610fb06097546001600160a01b031690565b856060015185611ac3565b90506001811515146110235760405162461bcd60e51b815260206004820152602b60248201527f245061636b576f6f64455243313135353a2063616e6e6f74207075726368617360448201526a32903a3432903a37b5b2b760a91b6064820152608401610618565b60208481015160408101519181015190516000929161104191612f21565b61104b9190612f21565b9050348160ca5461105c9190612f4d565b146110795760405162461bcd60e51b815260040161061890612e3c565b600081336040516020016110a992919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60408051808303601f19018152828252805160209182012089518051818401519185015193860152928401929092526060830152915060009060800160408051601f1981840301815282825280516020918201209083018590529082018190529150600090606001604051602081830303815290604052805190602001209050876040015181146111875760405162461bcd60e51b815260206004820152602260248201527f5061636b576f6f64455243313135353a206461746120697320696e636f72726560448201526118dd60f21b6064820152608401610618565b60d0546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156111c0573d6000803e3d6000fd5b5060005b6003811015611261576000896020015182600381106111e5576111e5613075565b6020020151111561124f5761124f6112056097546001600160a01b031690565b8a513390846003811061121a5761121a613075565b60200201518c60200151856003811061123557611235613075565b602002015160405180602001604052806000815250611746565b806112598161301a565b9150506111c4565b507ff93a9be267f5cb6a7e6035b9c1418cacb81ef71a49a993839db349aa17fc082a6112956097546001600160a01b031690565b89518051602080830151604093840151828f01518051818501519187015187516001600160a01b039990991689523395890195909552878701959095526060870192909252608086015260a085019290925260c084019190915260e08301523461010083015251908190036101200190a1506001979650505050505050565b6097546000906001600160a01b031633146113415760405162461bcd60e51b815260040161061890612ec9565b600160c960008282546113549190612f21565b925050819055506113783360c9548460405180602001604052806000815250611b8d565b505060c95490565b60cd546000906001600160a01b031633146113f25760405162461bcd60e51b815260206004820152602c60248201527f5061636b576f6f64455243313135353a2063616c6c6572206973206e6f74206360448201526b68696c64206164647265737360a01b6064820152608401610618565b6113fe83836001611c90565b50600192915050565b6097546000906001600160a01b031633146114345760405162461bcd60e51b815260040161061890612ec9565b60005b828110156114c1576114af6114546097546001600160a01b031690565b85858481811061146657611466613075565b61147c926020604090920201908101915061255f565b86868581811061148e5761148e613075565b90506040020160200135600160405180602001604052806000815250611746565b806114b98161301a565b915050611437565b5060019392505050565b6001600160a01b0385163314806114e757506114e78533610522565b6115455760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610618565b6109258585858585611746565b6097546001600160a01b0316331461157c5760405162461bcd60e51b815260040161061890612ec9565b6001600160a01b0381166115e15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610618565b6115ea81611a71565b50565b6097546000906001600160a01b0316331461161a5760405162461bcd60e51b815260040161061890612ec9565b825161162d9060cb906020860190612305565b5081516114c19060cc906020850190612305565b6060816116655750506040805180820190915260018152600360fc1b602082015290565b8160005b811561168f57806116798161301a565b91506116889050600a83612f39565b9150611669565b6000816001600160401b038111156116a9576116a961308b565b6040519080825280601f01601f1916602001820160405280156116d3576020820181803683370190505b5090505b841561173e576116e8600183612f6c565b91506116f5600a86613035565b611700906030612f21565b60f81b81838151811061171557611715613075565b60200101906001600160f81b031916908160001a905350611737600a86612f39565b94506116d7565b949350505050565b3361175f81878761175688611e0e565b61092588611e0e565b60008481526065602090815260408083206001600160a01b038a168452909152902054838110156117a25760405162461bcd60e51b815260040161061890612e7f565b60008581526065602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906117e1908490612f21565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611841828888888888611e59565b50505050505050565b81518351146118ac5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610618565b6001600160a01b0384166119195760005b835181101561191357611903868583815181106118dc576118dc613075565b60200260200101518584815181106118f6576118f6613075565b6020026020010151611c90565b61190c8161301a565b90506118bd565b50610925565b3360005b8451811015611a0357600085828151811061193a5761193a613075565b60200260200101519050600085838151811061195857611958613075565b60209081029190910181015160008481526065835260408082206001600160a01b038e1683529093529190912054909150818110156119a95760405162461bcd60e51b815260040161061890612e7f565b60008381526065602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906119e8908490612f21565b92505081905550505050806119fc9061301a565b905061191d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611a53929190612d45565b60405180910390a4611a69818787878787611fc4565b505050505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000833b15611b6857604051630b135d3f60e11b81526001600160a01b03851690631626ba7e90611afa9086908690600401612d6a565b60206040518083038186803b158015611b1257600080fd5b505afa925050508015611b42575060408051601f3d908101601f19168201909252611b3f918101906129a8565b60015b611b4e5750600061088e565b6001600160e01b031916630b135d3f60e11b14905061088e565b836001600160a01b0316611b7c848461208e565b6001600160a01b031614905061088e565b6001600160a01b038416611bed5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610618565b33611bfe8160008761175688611e0e565b60008481526065602090815260408083206001600160a01b038916845290915281208054859290611c30908490612f21565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461092581600087878787611e59565b6001600160a01b038316611cf25760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610618565b33611d2281856000611d0387611e0e565b611d0c87611e0e565b5050604080516020810190915260009052505050565b60008381526065602090815260408083206001600160a01b038816845290915290205482811015611da15760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610618565b60008481526065602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611e4857611e48613075565b602090810291909101015292915050565b6001600160a01b0384163b15611a695760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611e9d9089908990889088908890600401612cf8565b602060405180830381600087803b158015611eb757600080fd5b505af1925050508015611ee7575060408051601f3d908101601f19168201909252611ee4918101906129a8565b60015b611f9457611ef36130a1565b806308c379a01415611f2d5750611f086130bd565b80611f135750611f2f565b8060405162461bcd60e51b81526004016106189190612d83565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610618565b6001600160e01b0319811663f23a6e6160e01b146118415760405162461bcd60e51b815260040161061890612d96565b6001600160a01b0384163b15611a695760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906120089089908990889088908890600401612c9a565b602060405180830381600087803b15801561202257600080fd5b505af1925050508015612052575060408051601f3d908101601f1916820190925261204f918101906129a8565b60015b61205e57611ef36130a1565b6001600160e01b0319811663bc197c8160e01b146118415760405162461bcd60e51b815260040161061890612d96565b60008151604114156120c25760208201516040830151606084015160001a6120b886828585612132565b9350505050610646565b8151604014156120ea57602082015160408301516120e18583836122db565b92505050610646565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610618565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156121af5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610618565b8360ff16601b14806121c457508360ff16601c145b61221b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610618565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa15801561226f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166122d25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610618565b95945050505050565b60006001600160ff1b03821660ff83901c601b016122fb86828785612132565b9695505050505050565b82805461231190612fb3565b90600052602060002090601f0160209004810192826123335760008555612379565b82601f1061234c57805160ff1916838001178555612379565b82800160010185558215612379579182015b8281111561237957825182559160200191906001019061235e565b50612385929150612389565b5090565b5b80821115612385576000815560010161238a565b80356001600160a01b03811681146109ba57600080fd5b60008083601f8401126123c757600080fd5b5081356001600160401b038111156123de57600080fd5b6020830191508360208260051b85010111156123f957600080fd5b9250929050565b600082601f83011261241157600080fd5b604051606081018181106001600160401b03821117156124335761243361308b565b60405280836060810186101561244857600080fd5b60005b600381101561246a57813583526020928301929091019060010161244b565b509195945050505050565b600082601f83011261248657600080fd5b8135602061249382612efe565b6040516124a08282612fee565b8381528281019150858301600585901b870184018810156124c057600080fd5b60005b858110156124df578135845292840192908401906001016124c3565b5090979650505050505050565b600082601f8301126124fd57600080fd5b81356001600160401b038111156125165761251661308b565b60405161252d601f8301601f191660200182612fee565b81815284602083860101111561254257600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561257157600080fd5b61088e8261239e565b6000806040838503121561258d57600080fd5b6125968361239e565b91506125a46020840161239e565b90509250929050565b600080600080600060a086880312156125c557600080fd5b6125ce8661239e565b94506125dc6020870161239e565b935060408601356001600160401b03808211156125f857600080fd5b61260489838a01612475565b9450606088013591508082111561261a57600080fd5b61262689838a01612475565b9350608088013591508082111561263c57600080fd5b50612649888289016124ec565b9150509295509295909350565b600080600080600060a0868803121561266e57600080fd5b6126778661239e565b94506126856020870161239e565b9350604086013592506060860135915060808601356001600160401b038111156126ae57600080fd5b612649888289016124ec565b600080604083850312156126cd57600080fd5b6126d68361239e565b9150602083013580151581146126eb57600080fd5b809150509250929050565b6000806040838503121561270957600080fd5b6127128361239e565b946020939093013593505050565b6000806000806000806080878903121561273957600080fd5b6127428761239e565b95506020870135945060408701356001600160401b038082111561276557600080fd5b6127718a838b016123b5565b9096509450606089013591508082111561278a57600080fd5b5061279789828a016123b5565b979a9699509497509295939492505050565b6000806000606084860312156127be57600080fd5b6127c78461239e565b95602085013595506040909401359392505050565b600080600080604085870312156127f257600080fd5b84356001600160401b038082111561280957600080fd5b612815888389016123b5565b9096509450602087013591508082111561282e57600080fd5b5061283b878288016123b5565b95989497509550505050565b6000806040838503121561285a57600080fd5b82356001600160401b038082111561287157600080fd5b818501915085601f83011261288557600080fd5b8135602061289282612efe565b60405161289f8282612fee565b8381528281019150858301600585901b870184018b10156128bf57600080fd5b600096505b848710156128e9576128d58161239e565b8352600196909601959183019183016128c4565b509650508601359250508082111561290057600080fd5b5061290d85828601612475565b9150509250929050565b6000806020838503121561292a57600080fd5b82356001600160401b038082111561294157600080fd5b818501915085601f83011261295557600080fd5b81358181111561296457600080fd5b8660208260061b850101111561297957600080fd5b60209290920196919550909350505050565b60006020828403121561299d57600080fd5b813561088e81613146565b6000602082840312156129ba57600080fd5b815161088e81613146565b600080604083850312156129d857600080fd5b82356001600160401b03808211156129ef57600080fd5b6129fb868387016124ec565b93506020850135915080821115612a1157600080fd5b5061290d858286016124ec565b600080828403610120811215612a3357600080fd5b61010080821215612a4357600080fd5b6040519150608082016001600160401b038382108183111715612a6857612a6861308b565b81604052612a768888612400565b8452612a858860608901612400565b602085015260c0870135604085015260e08701356060850152929450818601359280841115612ab357600080fd5b50505061290d858286016124ec565b600060208284031215612ad457600080fd5b5035919050565b81835260006001600160fb1b03831115612af457600080fd5b8260051b8083602087013760009401602001938452509192915050565b600081518084526020808501945080840160005b83811015612b4157815187529582019590820190600101612b25565b509495945050505050565b60008151808452612b64816020860160208601612f83565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612b9257607f831692505b6020808410821415612bb457634e487b7160e01b600052602260045260246000fd5b818015612bc85760018114612bd957612c06565b60ff19861689528489019650612c06565b60008881526020902060005b86811015612bfe5781548b820152908501908301612be5565b505084890196505b50505050505092915050565b6000612c1e8286612b78565b8451612c2e818360208901612f83565b612c3a81830186612b78565b979650505050505050565b6001600160a01b0388811682528716602082015260a060408201819052600090612c729083018789612adb565b8281036060840152612c85818688612adb565b91505082608083015298975050505050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612cc690830186612b11565b8281036060840152612cd88186612b11565b90508281036080840152612cec8185612b4c565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612c3a90830184612b4c565b60208152600061088e6020830184612b11565b604081526000612d586040830185612b11565b82810360208401526122d28185612b11565b82815260406020820152600061173e6040830184612b4c565b60208152600061088e6020830184612b4c565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b602080825260409082018190527f5061636b576f6f64455243313135353a204d6574686f642063616e206265206f908201527f6e6c792063616c6c65642062792043726f7373206d696e742061646472657373606082015260800190565b60208082526023908201527f5061636b576f6f64455243313135353a20507269636520697320696e636f72726040820152621958dd60ea1b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b03821115612f1757612f1761308b565b5060051b60200190565b60008219821115612f3457612f34613049565b500190565b600082612f4857612f4861305f565b500490565b6000816000190483118215151615612f6757612f67613049565b500290565b600082821015612f7e57612f7e613049565b500390565b60005b83811015612f9e578181015183820152602001612f86565b83811115612fad576000848401525b50505050565b600181811c90821680612fc757607f821691505b60208210811415612fe857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156130135761301361308b565b6040525050565b600060001982141561302e5761302e613049565b5060010190565b6000826130445761304461305f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156130ba5760046000803e5060005160e01c5b90565b600060443d10156130cb5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156130fa57505050505090565b82850191508151818111156131125750505050505090565b843d870101602082850101111561312c5750505050505090565b61313b60208286010187612fee565b509095945050505050565b6001600160e01b0319811681146115ea57600080fdfea2646970667358221220e7e7cb63c57e41734bfb7f0e0572bbce227f6a3d8ad4ec5b71f5d4394e52b04264736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.