Contract
0xDc0d76Fd08B7Bdf1543B71eAC32f5b2b541950da
1
Contract Overview
Balance:
3.138 MATIC
My Name Tag:
Not Available
TokenTracker:
[ Download CSV Export ]
Contract Name:
Payken
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "../node_modules/@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "../node_modules/@openzeppelin/contracts/access/Ownable.sol"; interface PaymentSplitter { function releaseAll() external payable; } abstract contract creator { function newContract( address[] memory _address, uint256[] memory ratio ) public virtual returns (address); } contract Payken is ERC1155, Ownable { string public name; string public symbol; uint256 public ownerFee = 5; uint256 public tokenIndex = 1; bool public ownerMint = false; address creatorContractAddress = 0xb97af8BaF31bA0E80b454fB6F8e0543f67203cC6; constructor( string memory _uri, string memory _name, string memory _symbol ) ERC1155(_uri) { name = _name; symbol = _symbol; } struct Sale { address payable seller; address comissionAddress; uint256 quantity; uint256 tokenId; uint256 price; } mapping(address => uint256) public fee; mapping(uint256 => uint256) public productQuantity; mapping(uint256 => address) public Contracts; mapping(uint256 => uint256) public nftCommision; mapping(uint256 => Sale) public sale; mapping(uint256 => address) public nftOrigin; function getCommisionAddress(uint256 id) public view returns (address) { address commisionContract = Contracts[id]; return commisionContract; } function getNFTCommision(uint256 nftId) public view returns (uint256) { uint256 _commision = nftCommision[nftId]; return _commision; } function createcontract( address[] memory _address, uint256[] memory ratio ) public returns (address) { creator creatorContract = creator(creatorContractAddress); address add = creatorContract.newContract(_address, ratio); Contracts[tokenIndex] = add; return add; } function changeFee(address _address, uint256 _newFee) public onlyOwner { fee[_address] = _newFee; } function mint(address to, uint256 quantity, uint256 id) public onlyOwner { require(quantity > 0, "Quantity should be higher than 0 "); require(id > 0, "id should be grater then 0"); _mint(to, id, quantity, ""); } function createProduct( address to, uint256 quantity, uint256 price, uint256[] memory _ratio, address[] memory _address ) external { // mint(address(this),tokenIndex, quantity); address nftCom; if (_address.length > 0) { nftCom = createcontract(_address, _ratio); } sale[tokenIndex] = Sale( payable(nftCom), payable(msg.sender), quantity, tokenIndex, price ); if (nftOrigin[tokenIndex] == address(0)) { nftOrigin[tokenIndex] = to; } tokenIndex++; } event PaymentProcessed(address indexed to, address from, uint256 anmount); function release(address commisionContract, uint256 amount) internal { PaymentSplitter(creatorContractAddress).releaseAll{value: amount}; emit PaymentProcessed(commisionContract, msg.sender, amount); } function Purchase( uint256 quantity, address userAddress, uint256 tokenId ) external payable onlyOwner { require(tokenId > 0, "invalid Token Id"); require(userAddress != address(0), "not address(0)"); require(sale[tokenId].seller != address(0), "Not On Sale"); require(sale[tokenId].seller != msg.sender, "You're the owner"); require(sale[tokenId].quantity > quantity, "Not Enough Quantity"); uint256 price = sale[tokenId].price; require(msg.value >= quantity * price, "Invalid Price"); uint256 id = sale[tokenId].tokenId; uint256 remAmount = _ownerFee(); address commisionContract = Contracts[tokenId]; address NftOrigin = nftOrigin[tokenId]; remAmount = msg.value - remAmount; (commisionContract == address(0)) ? payable(NftOrigin).transfer(remAmount): release(commisionContract, remAmount); _mint(userAddress, id, quantity, ""); sale[tokenId].quantity = sale[tokenId].quantity - quantity; } function _ownerFee() internal returns (uint256) { uint256 performanceFee = fee[msg.sender]; if (performanceFee == 0) { return 0; } else { uint256 remAmount = (msg.value * performanceFee) / 100; payable(owner()).transfer(remAmount); // emit Fee(msg.sender, msg.value); return remAmount; } } receive() external payable {} fallback() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.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 IERC1155MetadataURI is IERC1155 { /** * @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 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @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. * * NOTE: 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. * * NOTE: 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 // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.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 IERC1155 is IERC165 { /** * @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 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 // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.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 ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address 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}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).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: address zero is not a valid owner"); 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 { _setApprovalForAll(_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 token owner or 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: caller is not token owner or 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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, 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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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"); 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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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 `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _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); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); 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: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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 `ids` and `amounts` 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 {} /** * @dev Hook that is called after 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 _afterTokenTransfer( 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 IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.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 IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"to","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"anmount","type":"uint256"}],"name":"PaymentProcessed","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Contracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Purchase","outputs":[],"stateMutability":"payable","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":"_address","type":"address"},{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"changeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256[]","name":"_ratio","type":"uint256[]"},{"internalType":"address[]","name":"_address","type":"address[]"}],"name":"createProduct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_address","type":"address[]"},{"internalType":"uint256[]","name":"ratio","type":"uint256[]"}],"name":"createcontract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getCommisionAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftId","type":"uint256"}],"name":"getNFTCommision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"quantity","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftCommision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftOrigin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"productQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"","type":"uint256"}],"name":"sale","outputs":[{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"address","name":"comissionAddress","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600560065560016007556000600860006101000a81548160ff02191690831515021790555073b97af8baf31ba0e80b454fb6f8e0543f67203cc6600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200008b57600080fd5b5060405162004a2a38038062004a2a8339818101604052810190620000b1919062000337565b82620000c3816200011f60201b60201c565b50620000e4620000d86200013b60201b60201c565b6200014360201b60201c565b8160049080519060200190620000fc92919062000209565b5080600590805190602001906200011592919062000209565b5050505062000574565b80600290805190602001906200013792919062000209565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002179062000485565b90600052602060002090601f0160209004810192826200023b576000855562000287565b82601f106200025657805160ff191683800117855562000287565b8280016001018555821562000287579182015b828111156200028657825182559160200191906001019062000269565b5b5090506200029691906200029a565b5090565b5b80821115620002b55760008160009055506001016200029b565b5090565b6000620002d0620002ca8462000419565b620003f0565b905082815260208101848484011115620002ef57620002ee62000554565b5b620002fc8482856200044f565b509392505050565b600082601f8301126200031c576200031b6200054f565b5b81516200032e848260208601620002b9565b91505092915050565b6000806000606084860312156200035357620003526200055e565b5b600084015167ffffffffffffffff81111562000374576200037362000559565b5b620003828682870162000304565b935050602084015167ffffffffffffffff811115620003a657620003a562000559565b5b620003b48682870162000304565b925050604084015167ffffffffffffffff811115620003d857620003d762000559565b5b620003e68682870162000304565b9150509250925092565b6000620003fc6200040f565b90506200040a8282620004bb565b919050565b6000604051905090565b600067ffffffffffffffff82111562000437576200043662000520565b5b620004428262000563565b9050602081019050919050565b60005b838110156200046f57808201518184015260208101905062000452565b838111156200047f576000848401525b50505050565b600060028204905060018216806200049e57607f821691505b60208210811415620004b557620004b4620004f1565b5b50919050565b620004c68262000563565b810181811067ffffffffffffffff82111715620004e857620004e762000520565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6144a680620005846000396000f3fe6080604052600436106101c55760003560e01c806395d89b41116100f7578063cf66dfe211610095578063e985e9c511610064578063e985e9c5146106c4578063ee168f6814610701578063f242432a1461072a578063f2fde38b14610753576101cc565b8063cf66dfe2146105f4578063d55f927314610631578063d5b2a01a1461065c578063e14756e214610687576101cc565b8063a22cb465116100d1578063a22cb4651461053a578063a2c0481114610563578063a78a08e6146105a0578063b12dc991146105c9576101cc565b806395d89b41146104b257806396032702146104dd5780639b9322561461051e576101cc565b806322d61869116101645780636fcca69b1161013e5780636fcca69b146103f6578063715018a6146104335780638a7955031461044a5780638da5cb5b14610487576101cc565b806322d61869146103535780632eb2c2d6146103905780634e1273f4146103b9576101cc565b806309beddb4116101a057806309beddb4146102735780630e89341c146102b0578063156e29f6146102ed5780632020dc8914610316576101cc565b8062fdd58e146101ce57806301ffc9a71461020b57806306fdde0314610248576101cc565b366101cc57005b005b3480156101da57600080fd5b506101f560048036038101906101f09190612d67565b61077c565b6040516102029190613919565b60405180910390f35b34801561021757600080fd5b50610232600480360381019061022d9190612f25565b610845565b60405161023f919061365c565b60405180910390f35b34801561025457600080fd5b5061025d610927565b60405161026a9190613677565b60405180910390f35b34801561027f57600080fd5b5061029a60048036038101906102959190612f7f565b6109b5565b6040516102a79190613473565b60405180910390f35b3480156102bc57600080fd5b506102d760048036038101906102d29190612f7f565b6109e8565b6040516102e49190613677565b60405180910390f35b3480156102f957600080fd5b50610314600480360381019061030f9190612da7565b610a7c565b005b34801561032257600080fd5b5061033d60048036038101906103389190612f7f565b610b2a565b60405161034a9190613919565b60405180910390f35b34801561035f57600080fd5b5061037a60048036038101906103759190612f7f565b610b42565b6040516103879190613919565b60405180910390f35b34801561039c57600080fd5b506103b760048036038101906103b29190612bc1565b610b64565b005b3480156103c557600080fd5b506103e060048036038101906103db9190612ead565b610c05565b6040516103ed9190613603565b60405180910390f35b34801561040257600080fd5b5061041d60048036038101906104189190612b27565b610d1e565b60405161042a9190613919565b60405180910390f35b34801561043f57600080fd5b50610448610d36565b005b34801561045657600080fd5b50610471600480360381019061046c9190612f7f565b610d4a565b60405161047e9190613473565b60405180910390f35b34801561049357600080fd5b5061049c610d7d565b6040516104a99190613473565b60405180910390f35b3480156104be57600080fd5b506104c7610da7565b6040516104d49190613677565b60405180910390f35b3480156104e957600080fd5b5061050460048036038101906104ff9190612f7f565b610e35565b60405161051595949392919061348e565b60405180910390f35b61053860048036038101906105339190612fac565b610eab565b005b34801561054657600080fd5b50610561600480360381019061055c9190612d27565b611303565b005b34801561056f57600080fd5b5061058a60048036038101906105859190612ead565b611319565b6040516105979190613473565b60405180910390f35b3480156105ac57600080fd5b506105c760048036038101906105c29190612dfa565b611431565b005b3480156105d557600080fd5b506105de611641565b6040516105eb919061365c565b60405180910390f35b34801561060057600080fd5b5061061b60048036038101906106169190612f7f565b611654565b6040516106289190613919565b60405180910390f35b34801561063d57600080fd5b5061064661166c565b6040516106539190613919565b60405180910390f35b34801561066857600080fd5b50610671611672565b60405161067e9190613919565b60405180910390f35b34801561069357600080fd5b506106ae60048036038101906106a99190612f7f565b611678565b6040516106bb9190613473565b60405180910390f35b3480156106d057600080fd5b506106eb60048036038101906106e69190612b81565b6116ba565b6040516106f8919061365c565b60405180910390f35b34801561070d57600080fd5b5061072860048036038101906107239190612d67565b61174e565b005b34801561073657600080fd5b50610751600480360381019061074c9190612c90565b61179e565b005b34801561075f57600080fd5b5061077a60048036038101906107759190612b27565b61183f565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e490613739565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610920575061091f826118c3565b5b9050919050565b6004805461093490613c92565b80601f016020809104026020016040519081016040528092919081815260200182805461096090613c92565b80156109ad5780601f10610982576101008083540402835291602001916109ad565b820191906000526020600020905b81548152906001019060200180831161099057829003601f168201915b505050505081565b600e6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600280546109f790613c92565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2390613c92565b8015610a705780601f10610a4557610100808354040283529160200191610a70565b820191906000526020600020905b815481529060010190602001808311610a5357829003601f168201915b50505050509050919050565b610a8461192d565b60008211610ac7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abe90613799565b60405180910390fd5b60008111610b0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b01906136b9565b60405180910390fd5b610b25838284604051806020016040528060008152506119ab565b505050565b600a6020528060005260406000206000915090505481565b600080600c600084815260200190815260200160002054905080915050919050565b610b6c611b5c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610bb25750610bb185610bac611b5c565b6116ba565b5b610bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be890613759565b60405180910390fd5b610bfe8585858585611b64565b5050505050565b60608151835114610c4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4290613899565b60405180910390fd5b6000835167ffffffffffffffff811115610c6857610c67613dfa565b5b604051908082528060200260200182016040528015610c965781602001602082028036833780820191505090505b50905060005b8451811015610d1357610ce3858281518110610cbb57610cba613dcb565b5b6020026020010151858381518110610cd657610cd5613dcb565b5b602002602001015161077c565b828281518110610cf657610cf5613dcb565b5b60200260200101818152505080610d0c90613cf5565b9050610c9c565b508091505092915050565b60096020528060005260406000206000915090505481565b610d3e61192d565b610d486000611e86565b565b600b6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60058054610db490613c92565b80601f0160208091040260200160405190810160405280929190818152602001828054610de090613c92565b8015610e2d5780601f10610e0257610100808354040283529160200191610e2d565b820191906000526020600020905b815481529060010190602001808311610e1057829003601f168201915b505050505081565b600d6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154908060040154905085565b610eb361192d565b60008111610ef6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eed90613859565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5d906136f9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600d600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561100c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100390613839565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600d600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156110b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a8906136d9565b60405180910390fd5b82600d60008381526020019081526020016000206002015411611109576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110090613779565b60405180910390fd5b6000600d600083815260200190815260200160002060040154905080846111309190613b3c565b341015611172576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611169906137d9565b60405180910390fd5b6000600d60008481526020019081526020016000206003015490506000611197611f4c565b90506000600b600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600e600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082346112159190613b96565b9250600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461125a576112558284612017565b6112a2565b8073ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156112a0573d6000803e3d6000fd5b505b6112bd87858a604051806020016040528060008152506119ab565b87600d6000888152602001908152602001600020600201546112df9190613b96565b600d6000888152602001908152602001600020600201819055505050505050505050565b61131561130e611b5c565b8383612079565b5050565b600080600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166357d2123c86866040518363ffffffff1660e01b815260040161137e9291906135cc565b602060405180830381600087803b15801561139857600080fd5b505af11580156113ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d09190612b54565b905080600b6000600754815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550809250505092915050565b60008082511115611449576114468284611319565b90505b6040518060a001604052808273ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152602001868152602001600754815260200185815250600d6000600754815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201556060820151816003015560808201518160040155905050600073ffffffffffffffffffffffffffffffffffffffff16600e6000600754815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156116215785600e6000600754815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6007600081548092919061163490613cf5565b9190505550505050505050565b600860009054906101000a900460ff1681565b600c6020528060005260406000206000915090505481565b60075481565b60065481565b600080600b600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905080915050919050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61175661192d565b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6117a6611b5c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806117ec57506117eb856117e6611b5c565b6116ba565b5b61182b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182290613759565b60405180910390fd5b61183885858585856121e6565b5050505050565b61184761192d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90613719565b60405180910390fd5b6118c081611e86565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611935611b5c565b73ffffffffffffffffffffffffffffffffffffffff16611953610d7d565b73ffffffffffffffffffffffffffffffffffffffff16146119a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a090613819565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611a1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a12906138d9565b60405180910390fd5b6000611a25611b5c565b90506000611a3285612482565b90506000611a3f85612482565b9050611a50836000898585896124fc565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611aaf9190613ab5565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611b2d929190613934565b60405180910390a4611b4483600089858589612504565b611b538360008989898961250c565b50505050505050565b600033905090565b8151835114611ba8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9f906138b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0f906137b9565b60405180910390fd5b6000611c22611b5c565b9050611c328187878787876124fc565b60005b8451811015611de3576000858281518110611c5357611c52613dcb565b5b602002602001015190506000858381518110611c7257611c71613dcb565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0a906137f9565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dc89190613ab5565b9250508190555050505080611ddc90613cf5565b9050611c35565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611e5a929190613625565b60405180910390a4611e70818787878787612504565b611e7e8187878787876126f3565b505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811415611fa4576000915050612014565b600060648234611fb49190613b3c565b611fbe9190613b0b565b9050611fc8610d7d565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561200d573d6000803e3d6000fd5b5080925050505b90565b600860019054906101000a9050508173ffffffffffffffffffffffffffffffffffffffff167f0538ab32a957d2b55d0ec70a4029e73fdf19f500832839b1d7bafcfbca2a5630338360405161206d9291906135a3565b60405180910390a25050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120df90613879565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121d9919061365c565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612256576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224d906137b9565b60405180910390fd5b6000612260611b5c565b9050600061226d85612482565b9050600061227a85612482565b905061228a8389898585896124fc565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612321576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612318906137f9565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123d69190613ab5565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612453929190613934565b60405180910390a4612469848a8a86868a612504565b612477848a8a8a8a8a61250c565b505050505050505050565b60606000600167ffffffffffffffff8111156124a1576124a0613dfa565b5b6040519080825280602002602001820160405280156124cf5781602001602082028036833780820191505090505b50905082816000815181106124e7576124e6613dcb565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b61252b8473ffffffffffffffffffffffffffffffffffffffff166128da565b156126eb578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612571959493929190613549565b602060405180830381600087803b15801561258b57600080fd5b505af19250505080156125bc57506040513d601f19601f820116820180604052508101906125b99190612f52565b60015b612662576125c8613e29565b806308c379a0141561262557506125dd61437e565b806125e85750612627565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261c9190613677565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612659906138f9565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146126e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e090613699565b60405180910390fd5b505b505050505050565b6127128473ffffffffffffffffffffffffffffffffffffffff166128da565b156128d2578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016127589594939291906134e1565b602060405180830381600087803b15801561277257600080fd5b505af19250505080156127a357506040513d601f19601f820116820180604052508101906127a09190612f52565b60015b612849576127af613e29565b806308c379a0141561280c57506127c461437e565b806127cf575061280e565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128039190613677565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612840906138f9565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146128d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c790613699565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600061291061290b84613982565b61395d565b9050808382526020820190508285602086028201111561293357612932613e50565b5b60005b8581101561296357816129498882612a1f565b845260208401935060208301925050600181019050612936565b5050509392505050565b600061298061297b846139ae565b61395d565b905080838252602082019050828560208602820111156129a3576129a2613e50565b5b60005b858110156129d357816129b98882612b12565b8452602084019350602083019250506001810190506129a6565b5050509392505050565b60006129f06129eb846139da565b61395d565b905082815260208101848484011115612a0c57612a0b613e55565b5b612a17848285613c50565b509392505050565b600081359050612a2e81614414565b92915050565b600081519050612a4381614414565b92915050565b600082601f830112612a5e57612a5d613e4b565b5b8135612a6e8482602086016128fd565b91505092915050565b600082601f830112612a8c57612a8b613e4b565b5b8135612a9c84826020860161296d565b91505092915050565b600081359050612ab48161442b565b92915050565b600081359050612ac981614442565b92915050565b600081519050612ade81614442565b92915050565b600082601f830112612af957612af8613e4b565b5b8135612b098482602086016129dd565b91505092915050565b600081359050612b2181614459565b92915050565b600060208284031215612b3d57612b3c613e5f565b5b6000612b4b84828501612a1f565b91505092915050565b600060208284031215612b6a57612b69613e5f565b5b6000612b7884828501612a34565b91505092915050565b60008060408385031215612b9857612b97613e5f565b5b6000612ba685828601612a1f565b9250506020612bb785828601612a1f565b9150509250929050565b600080600080600060a08688031215612bdd57612bdc613e5f565b5b6000612beb88828901612a1f565b9550506020612bfc88828901612a1f565b945050604086013567ffffffffffffffff811115612c1d57612c1c613e5a565b5b612c2988828901612a77565b935050606086013567ffffffffffffffff811115612c4a57612c49613e5a565b5b612c5688828901612a77565b925050608086013567ffffffffffffffff811115612c7757612c76613e5a565b5b612c8388828901612ae4565b9150509295509295909350565b600080600080600060a08688031215612cac57612cab613e5f565b5b6000612cba88828901612a1f565b9550506020612ccb88828901612a1f565b9450506040612cdc88828901612b12565b9350506060612ced88828901612b12565b925050608086013567ffffffffffffffff811115612d0e57612d0d613e5a565b5b612d1a88828901612ae4565b9150509295509295909350565b60008060408385031215612d3e57612d3d613e5f565b5b6000612d4c85828601612a1f565b9250506020612d5d85828601612aa5565b9150509250929050565b60008060408385031215612d7e57612d7d613e5f565b5b6000612d8c85828601612a1f565b9250506020612d9d85828601612b12565b9150509250929050565b600080600060608486031215612dc057612dbf613e5f565b5b6000612dce86828701612a1f565b9350506020612ddf86828701612b12565b9250506040612df086828701612b12565b9150509250925092565b600080600080600060a08688031215612e1657612e15613e5f565b5b6000612e2488828901612a1f565b9550506020612e3588828901612b12565b9450506040612e4688828901612b12565b935050606086013567ffffffffffffffff811115612e6757612e66613e5a565b5b612e7388828901612a77565b925050608086013567ffffffffffffffff811115612e9457612e93613e5a565b5b612ea088828901612a49565b9150509295509295909350565b60008060408385031215612ec457612ec3613e5f565b5b600083013567ffffffffffffffff811115612ee257612ee1613e5a565b5b612eee85828601612a49565b925050602083013567ffffffffffffffff811115612f0f57612f0e613e5a565b5b612f1b85828601612a77565b9150509250929050565b600060208284031215612f3b57612f3a613e5f565b5b6000612f4984828501612aba565b91505092915050565b600060208284031215612f6857612f67613e5f565b5b6000612f7684828501612acf565b91505092915050565b600060208284031215612f9557612f94613e5f565b5b6000612fa384828501612b12565b91505092915050565b600080600060608486031215612fc557612fc4613e5f565b5b6000612fd386828701612b12565b9350506020612fe486828701612a1f565b9250506040612ff586828701612b12565b9150509250925092565b600061300b838361303e565b60208301905092915050565b60006130238383613455565b60208301905092915050565b61303881613bdc565b82525050565b61304781613bca565b82525050565b61305681613bca565b82525050565b600061306782613a2b565b6130718185613a71565b935061307c83613a0b565b8060005b838110156130ad5781516130948882612fff565b975061309f83613a57565b925050600181019050613080565b5085935050505092915050565b60006130c582613a36565b6130cf8185613a82565b93506130da83613a1b565b8060005b8381101561310b5781516130f28882613017565b97506130fd83613a64565b9250506001810190506130de565b5085935050505092915050565b61312181613bee565b82525050565b600061313282613a41565b61313c8185613a93565b935061314c818560208601613c5f565b61315581613e64565b840191505092915050565b600061316b82613a4c565b6131758185613aa4565b9350613185818560208601613c5f565b61318e81613e64565b840191505092915050565b60006131a6602883613aa4565b91506131b182613e82565b604082019050919050565b60006131c9601a83613aa4565b91506131d482613ed1565b602082019050919050565b60006131ec601083613aa4565b91506131f782613efa565b602082019050919050565b600061320f600e83613aa4565b915061321a82613f23565b602082019050919050565b6000613232602683613aa4565b915061323d82613f4c565b604082019050919050565b6000613255602a83613aa4565b915061326082613f9b565b604082019050919050565b6000613278602e83613aa4565b915061328382613fea565b604082019050919050565b600061329b601383613aa4565b91506132a682614039565b602082019050919050565b60006132be602183613aa4565b91506132c982614062565b604082019050919050565b60006132e1602583613aa4565b91506132ec826140b1565b604082019050919050565b6000613304600d83613aa4565b915061330f82614100565b602082019050919050565b6000613327602a83613aa4565b915061333282614129565b604082019050919050565b600061334a602083613aa4565b915061335582614178565b602082019050919050565b600061336d600b83613aa4565b9150613378826141a1565b602082019050919050565b6000613390601083613aa4565b915061339b826141ca565b602082019050919050565b60006133b3602983613aa4565b91506133be826141f3565b604082019050919050565b60006133d6602983613aa4565b91506133e182614242565b604082019050919050565b60006133f9602883613aa4565b915061340482614291565b604082019050919050565b600061341c602183613aa4565b9150613427826142e0565b604082019050919050565b600061343f603483613aa4565b915061344a8261432f565b604082019050919050565b61345e81613c46565b82525050565b61346d81613c46565b82525050565b6000602082019050613488600083018461304d565b92915050565b600060a0820190506134a3600083018861302f565b6134b0602083018761304d565b6134bd6040830186613464565b6134ca6060830185613464565b6134d76080830184613464565b9695505050505050565b600060a0820190506134f6600083018861304d565b613503602083018761304d565b818103604083015261351581866130ba565b9050818103606083015261352981856130ba565b9050818103608083015261353d8184613127565b90509695505050505050565b600060a08201905061355e600083018861304d565b61356b602083018761304d565b6135786040830186613464565b6135856060830185613464565b81810360808301526135978184613127565b90509695505050505050565b60006040820190506135b8600083018561304d565b6135c56020830184613464565b9392505050565b600060408201905081810360008301526135e6818561305c565b905081810360208301526135fa81846130ba565b90509392505050565b6000602082019050818103600083015261361d81846130ba565b905092915050565b6000604082019050818103600083015261363f81856130ba565b9050818103602083015261365381846130ba565b90509392505050565b60006020820190506136716000830184613118565b92915050565b600060208201905081810360008301526136918184613160565b905092915050565b600060208201905081810360008301526136b281613199565b9050919050565b600060208201905081810360008301526136d2816131bc565b9050919050565b600060208201905081810360008301526136f2816131df565b9050919050565b6000602082019050818103600083015261371281613202565b9050919050565b6000602082019050818103600083015261373281613225565b9050919050565b6000602082019050818103600083015261375281613248565b9050919050565b600060208201905081810360008301526137728161326b565b9050919050565b600060208201905081810360008301526137928161328e565b9050919050565b600060208201905081810360008301526137b2816132b1565b9050919050565b600060208201905081810360008301526137d2816132d4565b9050919050565b600060208201905081810360008301526137f2816132f7565b9050919050565b600060208201905081810360008301526138128161331a565b9050919050565b600060208201905081810360008301526138328161333d565b9050919050565b6000602082019050818103600083015261385281613360565b9050919050565b6000602082019050818103600083015261387281613383565b9050919050565b60006020820190508181036000830152613892816133a6565b9050919050565b600060208201905081810360008301526138b2816133c9565b9050919050565b600060208201905081810360008301526138d2816133ec565b9050919050565b600060208201905081810360008301526138f28161340f565b9050919050565b6000602082019050818103600083015261391281613432565b9050919050565b600060208201905061392e6000830184613464565b92915050565b60006040820190506139496000830185613464565b6139566020830184613464565b9392505050565b6000613967613978565b90506139738282613cc4565b919050565b6000604051905090565b600067ffffffffffffffff82111561399d5761399c613dfa565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156139c9576139c8613dfa565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156139f5576139f4613dfa565b5b6139fe82613e64565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000613ac082613c46565b9150613acb83613c46565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b0057613aff613d3e565b5b828201905092915050565b6000613b1682613c46565b9150613b2183613c46565b925082613b3157613b30613d6d565b5b828204905092915050565b6000613b4782613c46565b9150613b5283613c46565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613b8b57613b8a613d3e565b5b828202905092915050565b6000613ba182613c46565b9150613bac83613c46565b925082821015613bbf57613bbe613d3e565b5b828203905092915050565b6000613bd582613c26565b9050919050565b6000613be782613c26565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613c7d578082015181840152602081019050613c62565b83811115613c8c576000848401525b50505050565b60006002820490506001821680613caa57607f821691505b60208210811415613cbe57613cbd613d9c565b5b50919050565b613ccd82613e64565b810181811067ffffffffffffffff82111715613cec57613ceb613dfa565b5b80604052505050565b6000613d0082613c46565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d3357613d32613d3e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d1115613e485760046000803e613e45600051613e75565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f69642073686f756c6420626520677261746572207468656e2030000000000000600082015250565b7f596f7527726520746865206f776e657200000000000000000000000000000000600082015250565b7f6e6f742061646472657373283029000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b7f4e6f7420456e6f756768205175616e7469747900000000000000000000000000600082015250565b7f5175616e746974792073686f756c6420626520686967686572207468616e203060008201527f2000000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f496e76616c696420507269636500000000000000000000000000000000000000600082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4e6f74204f6e2053616c65000000000000000000000000000000000000000000600082015250565b7f696e76616c696420546f6b656e20496400000000000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600060443d101561438e57614411565b614396613978565b60043d036004823e80513d602482011167ffffffffffffffff821117156143be575050614411565b808201805167ffffffffffffffff8111156143dc5750505050614411565b80602083010160043d0385018111156143f9575050505050614411565b61440882602001850186613cc4565b82955050505050505b90565b61441d81613bca565b811461442857600080fd5b50565b61443481613bee565b811461443f57600080fd5b50565b61444b81613bfa565b811461445657600080fd5b50565b61446281613c46565b811461446d57600080fd5b5056fea26469706673582212203a95a63c77fee98ca0e4199aafb00bed90035810076fe7d2a6a129076740a31964736f6c634300080700330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095061796b656e4e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004504e465400000000000000000000000000000000000000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095061796b656e4e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004504e465400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string):
Arg [1] : _name (string): PaykenNFT
Arg [2] : _symbol (string): PNFT
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 5061796b656e4e46540000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 504e465400000000000000000000000000000000000000000000000000000000
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|