Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,898 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 24116762 | 37 days ago | IN | 0 ETH | 0.00012262 | ||||
| Set Approval For... | 24013823 | 51 days ago | IN | 0 ETH | 0.00000361 | ||||
| Set Approval For... | 23689741 | 97 days ago | IN | 0 ETH | 0.00014686 | ||||
| Set Approval For... | 23387976 | 139 days ago | IN | 0 ETH | 0.00007132 | ||||
| Set Approval For... | 23350030 | 144 days ago | IN | 0 ETH | 0.00002832 | ||||
| Set Approval For... | 23315631 | 149 days ago | IN | 0 ETH | 0.00006991 | ||||
| Set Contract URI | 23177313 | 168 days ago | IN | 0 ETH | 0.00003499 | ||||
| Set Approval For... | 23081343 | 182 days ago | IN | 0 ETH | 0.00002765 | ||||
| Set Approval For... | 22551615 | 256 days ago | IN | 0 ETH | 0.00002769 | ||||
| Set Approval For... | 21840171 | 355 days ago | IN | 0 ETH | 0.00006234 | ||||
| Safe Transfer Fr... | 21817568 | 358 days ago | IN | 0 ETH | 0.00004748 | ||||
| Set Approval For... | 21787007 | 362 days ago | IN | 0 ETH | 0.00009642 | ||||
| Set Approval For... | 21518281 | 400 days ago | IN | 0 ETH | 0.00044609 | ||||
| Set Approval For... | 21459861 | 408 days ago | IN | 0 ETH | 0.00049356 | ||||
| Set Approval For... | 21309574 | 429 days ago | IN | 0 ETH | 0.00126771 | ||||
| Set Approval For... | 21269306 | 435 days ago | IN | 0 ETH | 0.00042599 | ||||
| Set Approval For... | 21257153 | 436 days ago | IN | 0 ETH | 0.00053378 | ||||
| Safe Transfer Fr... | 20788487 | 502 days ago | IN | 0 ETH | 0.00020286 | ||||
| Set Approval For... | 20757601 | 506 days ago | IN | 0 ETH | 0.00011803 | ||||
| Safe Transfer Fr... | 20685931 | 516 days ago | IN | 0 ETH | 0.00028198 | ||||
| Safe Transfer Fr... | 20555616 | 534 days ago | IN | 0 ETH | 0.00011257 | ||||
| Set Approval For... | 20290771 | 571 days ago | IN | 0 ETH | 0.00026601 | ||||
| Set Approval For... | 20257160 | 576 days ago | IN | 0 ETH | 0.00013083 | ||||
| Set Approval For... | 20181564 | 587 days ago | IN | 0 ETH | 0.00022213 | ||||
| Set Approval For... | 20001341 | 612 days ago | IN | 0 ETH | 0.00019527 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TheImmortalNFKey
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/*
MMMMMMMMMMMMMMMMMMMMMMMMMMMMXd:kWMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMWx. ;KMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMO' cXMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMK; .oNMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMW0; .,. .oNMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMNx' c0Nk' :0WMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMNO:. .dNMMW0c. .oKWMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWXx;. .c0WMMMMMNk, .lONMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMNOl' .l0WMMMMMMMMMNk:. .;dKWMMMMMMMMMMMMMMM
MMMMMMMMMMMMMN0o,. .;xXWMMMMMMMMMMMMMW0o' .:xXWMMMMMMMMMMMM
MMMMMMMMMMWKd;. .,o0WMMMMMMMMMMMMMMMMMMMXkc. .ckNMMMMMMMMMM
MMMMMMMMNOc. 'lONMMMWNX0OxddddddxkOKXWMMMWXk:. ,dKWMMMMMMM
MMMMMMWO:. .:kXWMWXOo:,.. ... ..;lx0NMMWKd, .oKWMMMMM
MMMMWKc. .c0WMWXkc. .':ldkO0000Okxol;.. .,o0NMMXx; 'dNMMMM
MMMWk' .:OWMWKo' .cx0NMMMMMMMMMMMMMMWXOo;. .;xNMMNx' cKMMM
MMWx. .dNMMXd. ,xXWMMMMMMMMMMMMMMMMMMMMMW0l. ;OWMWK: ,0WM
MWx. .kWMW0; ,xNMMMMMMMMMMMMMMMXOKMMMMMMMMWKl. .lXMMXl. ;0M
MO' .xWMWk' .lXWMMMMMMMMMMMMMMWXc,kWMMMMMMMMMWO; :KMMXc cX
Xc lNMWO' .dNMMMMMMMMMMMMMMMKx: .kWMMMMMMMMMMMK: cXMM0' .x
O. .OMMK; .oNMMMMMMMMMMMMMMM0;. .kWMMMMMMMMMMMMK; .oWMWo :
o :NMWd. ;KMMMMMMMMMMMMMMWO, .kWMMMMMMMMMMMMWx. ,0MMO. .
: oWMX: .oNMMMMMMMMMMMMMWO' .kWMMMMMMMMMMMMMK; .xWMX; .
; .xWMK; .kWMMMMMMMMMMMMMNl .kWMMMMMMMMMMMMMNc .oWMX:
, .kWMK; .kMMMMMMMMMMMMMMNl .kWMMMMMMMMMMMMMNc oWMNl
' .kWMX: .dWMMMMMMMMMMMMMNl .kWMMMMMMMMMMMMMX: .dWMNl
' .kWMWl cXMMMMMMMMMMMMMNc .kWMMMMMMMMMMMMM0' .OMMNl
' .kWMMk. '0MMMMMMMMMMMMMNc .kWMMMMMMMMMMMMWd. :XMMNl
' .kWMMX: lNMMMMMMMMMMMMNc .kWMMMMMMMMMMMMK, .xWMMNl
' .kWMMMO. .kWMMMMMMMMMMMNc .kWMMMMMMMMMMMNl :XMMMNl
' .kWMMMWd. 'OWMMMMMMMMMMNc .kWMMMMMMMMMMNd. ,0WMMMNl
' .kWMMMMNl. ,0WMMMMMMMMMNc .OMMMMMMMMMMNd. 'kWMMMMNl
' .kWMMMMMXl. 'OWMMMMMMMMNl .oNMMMMMMMMMNo. 'kWMMMMMNl
' .kWMMMMMMNd. .dNMMMMMMMNl .oNMMMMMMMMMKc ,OWMMMMMMNl
' .kWMMMMMMMWk' .cKWMMMMMNc .;dNMMMMMMMMWk, :KMMMMMMMMNl
' .kWMMMMMMMMWKc. 'xNMMMMNc .kNWMMMMMMMWKl. .dNMMMMMMMMMNl
' .kWMMMMMMMMMMNx' .:0WMMNl;OWMMMMMMMMNx' :0WMMMMMMMMMMNl
' .kWMMMMMMMMMMMMKl. .lKWW0KWMMMMMMMWO; 'xNMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMWO:. .dXWMMMMMMMW0c. .oKWMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMMMNk, 'dXWMMMW0c. .c0WMMMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMMMMMNx' 'xXNKl. .:OWMMMMMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMMMMMMMXd' .,. .:kNMMMMMMMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMMMMMMMMWk. :KMMMMMMMMMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMMMMMMWKo. .,;. ,xNMMMMMMMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMMMMWKo. .:kNWXd' ,xNMMMMMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMMMXd. .;kNMMMMMXd' ;kNMMMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMMMNx' ,xNMMMMMMMMWXo. .c0WMMMMMMMMMMMMMNl
' .kWMMMMMMMMMMMWO: 'dXMMMMMMMMMMMMW0c. .oKMMMMMMMMMMMMNl
' .kWMMMMMMMMMMXo. .lKWMMMMMMMMMMMMMMMWO; ,kNMMMMMMMMMMNl
' .kWMMMMMMMMWO; ;OWMMNKXMMMMMMMMMMMMMMXd. .lXMMMMMMMMMNl
' .kWMMMMMMMNd. .oXMMMNo;OMMMMMMMMMMMMMMMW0: ,OWMMMMMMMNl
' .kWMMMMMMXl. 'kWMMMXl..OMMMMMMMMWKkxkkxOXXo. .kWMMMMMMNl
' .kWMMMMMXc ;0WMMMKc .OMMMMMMMMWo. .xWNx. .xWMMMMMNl
' .kWMMMMXc ;KMMMM0; .OMMMMMMMMWo .xWMWx. .xWMMMMNl
' .kWMMMNo. ;KMMMWO, .OMMMMMMMMWo .xWMMWx. 'OMMMMNl
' .kWMMWk. .OMMMMXc .OMMMMMMMMWo .xWMMMNo. ;KMMMNl
' .kWMMX: .oNMMMMX: .OMMMMMMMMWo .xWMMMMK; .dWMMNl
' .kWMMx. ,KMMMMMX: .OMMMMMMMMWo .xWMMMMWx. ;KMMNc
' .kWMWl lNMMMMMX: .OMMMMMMMMWo .xWMMMMM0, .kMMNc
' .kWMX; .xWMMMMMX: .OMMMMMMMMWo .xWMMMMMX: .dWMNl
, .kWMK; .kMMMMMMX: .OMMMMMMMMWo .xWMMMMMNl oWMNl
; .dWMK; .xWMMMMMX: .OMMMMMMMMWd. .xWMMMMMXc oWMX:
c oWMNc oNMMMMMNl .dWMMMMMMMX: .OMMMMMMK, .xMMK, .
d. :XMWx. ,0MMMMMMO. .lkKKKK0x; :XMMMMMWx. ,KMMO. '
O' .kMMX: cXMMMMMNd. ..... ,OMMMMMM0, .dWMNl :
Nl cXMM0, .lXMMMMMNk, .c0WMMMMW0, lNMMO. .k
M0, .oNMW0, :0WMMMMMNkc,.. .';o0WMMMMMNk' .lXMMK; lN
MWk. .dNMMKc. .dXMMMMMMMWX0OOOOOO0KXWMMMMMMW0c. .dNMMK: :KM
MMWk' .lXMMNk, 'l0NMMMMMMMMMMMMMMMMMMMMWXk:. .c0WMWO; :KMM
MMMW0; ,kNMMNx;. .;okKNMMMMMMMMMMMMWN0xc' .l0WMWXo. .lXMMM
MMMMMXo. .;kNMMN0o;. .,:lodxkkkxdoc;'. .:xKWMWKo' ;kWMMMM
MMMMMMWKo. ,dKWMMWKko:,... ...';cdOXWMMNOc. ;xNMMMMMM
MMMMMMMMWKd, .:xXWMMMWNXK0OkxxkkO0KNWWMMMN0o,. .:kNMMMMMMMM
MMMMMMMMMMMNkc. .ckXWMMMMMMMMMMMMMMMMMWKd;. .,o0WMMMMMMMMMM
MMMMMMMMMMMMMWXx:. 'l0WMMMMMMMMMMMMMNk:. 'lONMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMWKd;. .:kNMMMMMMMMWXd' .ckNMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMNOc. .;OWMMMMMXd' 'dKWMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMW0l. .lXMMWO; 'dXMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMWO; ;kKd. .lKWMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMXc ... .xNMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMXc .xWMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMK; lNMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMWk'.:KMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMNkoOMMMMMMMMMMMMMMMMMMMMMMMMMMMM
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "../ERC1155OperatorFilter.sol";
/**
* @title The Immortal NFKey
* @author Orange Comet
*/
contract TheImmortalNFKey is ERC1155OperatorFilter {
enum Variant {
ZERO,
FIRST
}
struct Receiver {
address to;
Variant variant;
uint256 quantity;
}
constructor(string memory name, string memory symbol)
ERC1155Comet(name, symbol)
{}
function airDrop(Receiver[] calldata receivers) external onlyOwner {
for (uint256 i; i < receivers.length; ) {
mint(
receivers[i].to,
uint256(receivers[i].variant),
receivers[i].quantity
);
unchecked {
++i;
}
}
}
}// 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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "../utils/introspection/IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}// 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.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.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) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @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 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import { IERC2981, IERC165 } from "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "./ERC1155O.sol";
import "./extensions/ERC1155Supply.sol";
import "./IERC1155Comet.sol";
import "./utils/ERC1155Token.sol";
/**
* @title ERC1155Comet
* @author Orange Comet
*
* @notice Orange Comet standard ERC1155 contract
*/
contract ERC1155Comet is
IERC1155Comet,
ERC1155Supply,
ERC1155Token,
Ownable,
IERC2981
{
// The token metadata base URI
string _baseTokenURI;
// The token metadata contract URI
string _contractURI;
// The royalty percentage as a percent (e.g. 10 for 10%)
uint256 _royaltyPercent;
// The max supply of tokens in this contract.
uint256 _maxSupply;
// The beneficiary wallet.
address _beneficiary;
// The royalties wallet.
address _royalties;
/**
* @notice ERC1155 constructor.
*
* @param name The token name.
* @param symbol The token symbol.
*/
constructor(string memory name, string memory symbol) ERC1155("") {
// Set the contract name
_name = name;
// Set the contract symbol
_symbol = symbol;
// set default royalty percent to 10;
_royaltyPercent = 10;
// set the default royalty payout to the owner for safety
_royalties = owner();
// set the default beneficiary payout to the owner for safety
_beneficiary = owner();
}
/**
* @notice Sets the Base URI for the token API.
* @param newUri The new URI to set
*/
function setURI(string memory newUri) external onlyOwner {
// uri tracked by this contract
_baseTokenURI = newUri;
// set private _uri for ERC1155 base contract
_setURI(newUri);
}
function uri(uint256 tokenId) public view override returns (string memory) {
if (!exists(tokenId)) revert URIQueryForNonexistentToken();
return
bytes(_baseTokenURI).length > 0
? string(abi.encodePacked(_baseTokenURI, _toString(tokenId)))
: "";
}
/**
* @notice OpenSea contract level metdata standard for displaying on storefront.
* Reference: https://docs.opensea.io/docs/contract-level-metadata
*/
function contractURI() public view returns (string memory) {
return _contractURI;
}
/**
* @notice Sets the Contract URI for marketplace APIs.
* @param newUri The new URI to set
*/
function setContractURI(string memory newUri) external onlyOwner {
_contractURI = newUri;
}
/**
* @notice Sets the royalties wallet address.
*
* @param wallet The new wallet address.
*/
function setRoyalties(address wallet) external onlyOwner {
_royalties = wallet;
}
/**
* @notice Sets the royalty percentage.
*
* @param value The value as an integer (e.g. 10 for 10%).
*/
function setRoyaltyPercent(uint256 value) external onlyOwner {
_royaltyPercent = value;
}
/**
* @notice Sets the Contract URI for marketplace APIs.
* Implements tracking of balances and total supply.
* @param to The address to mint to
* @param id The token ID
* @param amount The quantity of tokens to mint
*/
function mint(
address to,
uint256 id,
uint256 amount
) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
address operator = _msgSender();
_balances[id][to] += amount;
_totalSupply[id] += amount;
emit TransferSingle(operator, address(0), to, id, amount);
}
/**
* @notice Supporting ERC721, IER165
* https://eips.ethereum.org/EIPS/eip-165
* @param interfaceId The interface identifier, as specified in ERC-165
* @return `true` if the contract implements `interfaceId`
*/
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC1155, IERC165)
returns (bool)
{
return
interfaceId == type(IERC2981).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @notice Called with the sale price to determine how much royalty
* is owed and to whom.
* @param _tokenId - the NFT asset queried for royalty information
* @param _salePrice - the sale price of the NFT asset specified by _tokenId
* @return receiver - address of who should be sent the royalty payment
* @return royaltyAmount - the royalty payment amount for _salePrice
*/
function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
external
view
returns (address, uint256 royaltyAmount)
{
// Silence solc unused parameter warning.
// All tokens have the same royalty.
_tokenId;
royaltyAmount = (_salePrice / 100) * _royaltyPercent;
return (_royalties, royaltyAmount);
}
/**
* @dev Converts a uint256 to its ASCII string decimal representation.
*/
function _toString(uint256 value)
internal
pure
virtual
returns (string memory str)
{
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit), but
// we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
// We will need 1 word for the trailing zeros padding, 1 word for the length,
// and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
let m := add(mload(0x40), 0xa0)
// Update the free memory pointer to allocate.
mstore(0x40, m)
// Assign the `str` to the end.
str := sub(m, 0x20)
// Zeroize the slot after the string.
mstore(str, 0)
// Cache the end of the memory to calculate the length later.
let end := str
// We write the string from rightmost digit to leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// prettier-ignore
for { let temp := value } 1 {} {
str := sub(str, 1)
// Write the character to the pointer.
// The ASCII index of the '0' character is 48.
mstore8(str, add(48, mod(temp, 10)))
// Keep dividing `temp` until zero.
temp := div(temp, 10)
// prettier-ignore
if iszero(temp) { break }
}
let length := sub(end, str)
// Move the pointer 32 bytes leftwards to make room for the length.
str := sub(str, 0x20)
// Store the length.
mstore(str, length)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./utils/Singleton.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)) internal _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 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: caller is not token 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();
uint256[] memory ids = Singleton._asSingletonArray(id);
uint256[] memory amounts = Singleton._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
pragma solidity ^0.8.9;
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "./ERC1155Comet.sol";
/**
* @title ERC1155OperatorFilter
*
* @notice Implementation of the OpenSea OperatorFilter for ERC1155.
* This is now required to deploy a contract and receive
* royatlies when trading on OpenSea.
*/
abstract contract ERC1155OperatorFilter is
ERC1155Comet,
DefaultOperatorFilterer
{
/**
* @notice Approve `operator` to operate on all of `owner` tokens
*/
function setApprovalForAll(address operator, bool approved)
public
override
onlyAllowedOperatorApproval(operator)
{
super.setApprovalForAll(operator, approved);
}
/**
* @notice See {IERC1155-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
uint256 amount,
bytes memory data
) public override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId, amount, data);
}
/**
* @notice See {IERC1155-safeBatchTransferFrom}.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) public virtual override onlyAllowedOperator(from) {
super.safeBatchTransferFrom(from, to, ids, amounts, data);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)
pragma solidity ^0.8.0;
import "../ERC1155O.sol";
/**
* @dev Extension of ERC1155 that adds tracking of total supply per id.
*
* Useful for scenarios where Fungible and Non-fungible tokens have to be
* clearly identified. Note: While a totalSupply of 1 might mean the
* corresponding is an NFT, there is no guarantees that no other token with the
* same id are not going to be minted.
*/
abstract contract ERC1155Supply is ERC1155 {
// Total supply is exposed to child contracts for gas savings
mapping(uint256 => uint256) internal _totalSupply;
/**
* @dev Total amount of tokens in with a given id.
*/
function totalSupply(uint256 id) public view virtual returns (uint256) {
return _totalSupply[id];
}
/**
* @dev Indicates whether any token exist with a given id, or not.
*/
function exists(uint256 id) public view virtual returns (bool) {
return ERC1155Supply.totalSupply(id) > 0;
}
/**
* @dev See {ERC1155-_beforeTokenTransfer}.
*/
function _beforeTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual override {
super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
if (from == address(0)) {
for (uint256 i = 0; i < ids.length; ++i) {
_totalSupply[ids[i]] += amounts[i];
}
}
if (to == address(0)) {
for (uint256 i = 0; i < ids.length; ++i) {
uint256 id = ids[i];
uint256 amount = amounts[i];
uint256 supply = _totalSupply[id];
require(
supply >= amount,
"ERC1155: burn amount exceeds totalSupply"
);
unchecked {
_totalSupply[id] = supply - amount;
}
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/**
* @dev Interface of IERC1155Comet.
*/
interface IERC1155Comet {
/**
* The token does not exist.
*/
error URIQueryForNonexistentToken();
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/**
* @dev Adding token name and symbol to ERC1155
*/
abstract contract ERC1155Token {
// The token name
string _name;
// The token symbol
string _symbol;
/**
* @dev Returns the token collection name.
*/
function name() public view returns (string memory) {
return _name;
}
/**
* @dev Returns the token collection symbol.
*/
function symbol() public view returns (string memory) {
return _symbol;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/**
* @dev Singleton operations.
*/
library Singleton {
function _asSingletonArray(uint256 element)
internal
pure
returns (uint256[] memory)
{
uint256[] memory array = new uint256[](1);
array[0] = element;
return array;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {OperatorFilterer} from "./OperatorFilterer.sol";
/**
* @title DefaultOperatorFilterer
* @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
*/
abstract contract DefaultOperatorFilterer is OperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
function register(address registrant) external;
function registerAndSubscribe(address registrant, address subscription) external;
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
function unregister(address addr) external;
function updateOperator(address registrant, address operator, bool filtered) external;
function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
function subscribe(address registrant, address registrantToSubscribe) external;
function unsubscribe(address registrant, bool copyExistingEntries) external;
function subscriptionOf(address addr) external returns (address registrant);
function subscribers(address registrant) external returns (address[] memory);
function subscriberAt(address registrant, uint256 index) external returns (address);
function copyEntriesOf(address registrant, address registrantToCopy) external;
function isOperatorFiltered(address registrant, address operator) external returns (bool);
function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
function filteredOperators(address addr) external returns (address[] memory);
function filteredCodeHashes(address addr) external returns (bytes32[] memory);
function filteredOperatorAt(address registrant, uint256 index) external returns (address);
function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
function isRegistered(address addr) external returns (bool);
function codeHashOf(address addr) external returns (bytes32);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
/**
* @title OperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry.
* @dev This smart contract is meant to be inherited by token contracts so they can use the following:
* - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
* - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
*/
abstract contract OperatorFilterer {
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
// will not revert, but the contract will need to be registered with the registry once it is deployed in
// order for the modifier to filter addresses.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (subscribe) {
OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
OPERATOR_FILTER_REGISTRY.register(address(this));
}
}
}
}
modifier onlyAllowedOperator(address from) virtual {
// Allow spending tokens from addresses with balance
// Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
// from an EOA.
if (from != msg.sender) {
_checkFilterOperator(msg.sender);
}
_;
}
modifier onlyAllowedOperatorApproval(address operator) virtual {
_checkFilterOperator(operator);
_;
}
function _checkFilterOperator(address operator) internal view virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
revert OperatorNotAllowed(operator);
}
}
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"enum TheImmortalNFKey.Variant","name":"variant","type":"uint8"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"internalType":"struct TheImmortalNFKey.Receiver[]","name":"receivers","type":"tuple[]"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","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":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","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":"tokenId","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":"newUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyaltyPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","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":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200474b3803806200474b8339818101604052810190620000379190620005ff565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600183836040518060200160405280600081525062000071816200035f60201b60201c565b5062000092620000866200037460201b60201c565b6200037c60201b60201c565b8160049081620000a39190620008cf565b508060059081620000b59190620008cf565b50600a600981905550620000ce6200044260201b60201c565b600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200011e6200044260201b60201c565b600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003555780156200021b576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001e1929190620009fb565b600060405180830381600087803b158015620001fc57600080fd5b505af115801562000211573d6000803e3d6000fd5b5050505062000354565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002d5576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200029b929190620009fb565b600060405180830381600087803b158015620002b657600080fd5b505af1158015620002cb573d6000803e3d6000fd5b5050505062000353565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200031e919062000a28565b600060405180830381600087803b1580156200033957600080fd5b505af11580156200034e573d6000803e3d6000fd5b505050505b5b5b5050505062000a45565b8060029081620003709190620008cf565b5050565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620004d5826200048a565b810181811067ffffffffffffffff82111715620004f757620004f66200049b565b5b80604052505050565b60006200050c6200046c565b90506200051a8282620004ca565b919050565b600067ffffffffffffffff8211156200053d576200053c6200049b565b5b62000548826200048a565b9050602081019050919050565b60005b838110156200057557808201518184015260208101905062000558565b60008484015250505050565b60006200059862000592846200051f565b62000500565b905082815260208101848484011115620005b757620005b662000485565b5b620005c484828562000555565b509392505050565b600082601f830112620005e457620005e362000480565b5b8151620005f684826020860162000581565b91505092915050565b6000806040838503121562000619576200061862000476565b5b600083015167ffffffffffffffff8111156200063a57620006396200047b565b5b6200064885828601620005cc565b925050602083015167ffffffffffffffff8111156200066c576200066b6200047b565b5b6200067a85828601620005cc565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006d757607f821691505b602082108103620006ed57620006ec6200068f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000718565b62000763868362000718565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620007b0620007aa620007a4846200077b565b62000785565b6200077b565b9050919050565b6000819050919050565b620007cc836200078f565b620007e4620007db82620007b7565b84845462000725565b825550505050565b600090565b620007fb620007ec565b62000808818484620007c1565b505050565b5b81811015620008305762000824600082620007f1565b6001810190506200080e565b5050565b601f8211156200087f576200084981620006f3565b620008548462000708565b8101602085101562000864578190505b6200087c620008738562000708565b8301826200080d565b50505b505050565b600082821c905092915050565b6000620008a46000198460080262000884565b1980831691505092915050565b6000620008bf838362000891565b9150826002028217905092915050565b620008da8262000684565b67ffffffffffffffff811115620008f657620008f56200049b565b5b620009028254620006be565b6200090f82828562000834565b600060209050601f83116001811462000947576000841562000932578287015190505b6200093e8582620008b1565b865550620009ae565b601f1984166200095786620006f3565b60005b8281101562000981578489015182556001820191506020850194506020810190506200095a565b86831015620009a157848901516200099d601f89168262000891565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009e382620009b6565b9050919050565b620009f581620009d6565b82525050565b600060408201905062000a126000830185620009ea565b62000a216020830184620009ea565b9392505050565b600060208201905062000a3f6000830184620009ea565b92915050565b613cf68062000a556000396000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c80634f558e79116100c3578063a22cb4651161007c578063a22cb4651461039c578063bd85b039146103b8578063e8a3d485146103e8578063e985e9c514610406578063f242432a14610436578063f2fde38b146104525761014c565b80634f558e79146102ee578063715018a61461031e5780638da5cb5b14610328578063938e3d7b1461034657806395d89b41146103625780639a4fc640146103805761014c565b80632a55205a116101155780632a55205a1461021b5780632a9e63c61461024c5780632aade54b146102685780632eb2c2d61461028457806341f43434146102a05780634e1273f4146102be5761014c565b8062fdd58e1461015157806301ffc9a71461018157806302fe5305146101b157806306fdde03146101cd5780630e89341c146101eb575b600080fd5b61016b600480360381019061016691906121eb565b61046e565b604051610178919061223a565b60405180910390f35b61019b600480360381019061019691906122ad565b610536565b6040516101a891906122f5565b60405180910390f35b6101cb60048036038101906101c69190612456565b6105b0565b005b6101d56105d4565b6040516101e2919061251e565b60405180910390f35b61020560048036038101906102009190612540565b610666565b604051610212919061251e565b60405180910390f35b6102356004803603810190610230919061256d565b610705565b6040516102439291906125bc565b60405180910390f35b610266600480360381019061026191906125e5565b610750565b005b610282600480360381019061027d9190612672565b61079c565b005b61029e60048036038101906102999190612823565b61084f565b005b6102a86108a2565b6040516102b59190612951565b60405180910390f35b6102d860048036038101906102d39190612a2f565b6108b4565b6040516102e59190612b65565b60405180910390f35b61030860048036038101906103039190612540565b6109cd565b60405161031591906122f5565b60405180910390f35b6103266109e1565b005b6103306109f5565b60405161033d9190612b87565b60405180910390f35b610360600480360381019061035b9190612456565b610a1f565b005b61036a610a3a565b604051610377919061251e565b60405180910390f35b61039a60048036038101906103959190612540565b610acc565b005b6103b660048036038101906103b19190612bce565b610ade565b005b6103d260048036038101906103cd9190612540565b610af7565b6040516103df919061223a565b60405180910390f35b6103f0610b14565b6040516103fd919061251e565b60405180910390f35b610420600480360381019061041b9190612c0e565b610ba6565b60405161042d91906122f5565b60405180910390f35b610450600480360381019061044b9190612c4e565b610c3a565b005b61046c600480360381019061046791906125e5565b610c8d565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d590612d57565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105a957506105a882610d10565b5b9050919050565b6105b8610df2565b80600790816105c79190612f79565b506105d181610e70565b50565b6060600480546105e390612da6565b80601f016020809104026020016040519081016040528092919081815260200182805461060f90612da6565b801561065c5780601f106106315761010080835404028352916020019161065c565b820191906000526020600020905b81548152906001019060200180831161063f57829003601f168201915b5050505050905090565b6060610671826109cd565b6106a7576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600780546106b690612da6565b9050116106d257604051806020016040528060008152506106fe565b60076106dd83610e83565b6040516020016106ee92919061310a565b6040516020818303038152906040525b9050919050565b600080600954606484610718919061318c565b61072291906131bd565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691509250929050565b610758610df2565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6107a4610df2565b60005b8282905081101561084a5761083f8383838181106107c8576107c76131ff565b5b90506060020160000160208101906107e091906125e5565b8484848181106107f3576107f26131ff565b5b905060600201602001602081019061080b9190613253565b600181111561081d5761081c613280565b5b8585858181106108305761082f6131ff565b5b90506060020160400135610ed3565b8060010190506107a7565b505050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461088d5761088c33611063565b5b61089a8686868686611160565b505050505050565b6daaeb6d7670e522a718067333cd4e81565b606081518351146108fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f190613321565b60405180910390fd5b6000835167ffffffffffffffff8111156109175761091661232b565b5b6040519080825280602002602001820160405280156109455781602001602082028036833780820191505090505b50905060005b84518110156109c25761099285828151811061096a576109696131ff565b5b6020026020010151858381518110610985576109846131ff565b5b602002602001015161046e565b8282815181106109a5576109a46131ff565b5b602002602001018181525050806109bb90613341565b905061094b565b508091505092915050565b6000806109d983610af7565b119050919050565b6109e9610df2565b6109f36000611201565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a27610df2565b8060089081610a369190612f79565b5050565b606060058054610a4990612da6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7590612da6565b8015610ac25780601f10610a9757610100808354040283529160200191610ac2565b820191906000526020600020905b815481529060010190602001808311610aa557829003601f168201915b5050505050905090565b610ad4610df2565b8060098190555050565b81610ae881611063565b610af283836112c7565b505050565b600060036000838152602001908152602001600020549050919050565b606060088054610b2390612da6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4f90612da6565b8015610b9c5780601f10610b7157610100808354040283529160200191610b9c565b820191906000526020600020905b815481529060010190602001808311610b7f57829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c7857610c7733611063565b5b610c8586868686866112dd565b505050505050565b610c95610df2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfb906133fb565b60405180910390fd5b610d0d81611201565b50565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ddb57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610deb5750610dea8261137e565b5b9050919050565b610dfa6113e8565b73ffffffffffffffffffffffffffffffffffffffff16610e186109f5565b73ffffffffffffffffffffffffffffffffffffffff1614610e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6590613467565b60405180910390fd5b565b8060029081610e7f9190612f79565b5050565b606060a060405101806040526020810391506000825281835b600115610ebe57600184039350600a81066030018453600a8104905080610e9c575b50828103602084039350808452505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f39906134f9565b60405180910390fd5b6000610f4c6113e8565b90508160008085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610fad9190613519565b9250508190555081600360008581526020019081526020016000206000828254610fd79190613519565b925050819055508373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62868660405161105592919061354d565b60405180910390a450505050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561115d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016110da929190613576565b602060405180830381865afa1580156110f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111b91906135b4565b61115c57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016111539190612b87565b60405180910390fd5b5b50565b6111686113e8565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806111ae57506111ad856111a86113e8565b610ba6565b5b6111ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e490613653565b60405180910390fd5b6111fa85858585856113f0565b5050505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6112d96112d26113e8565b8383611711565b5050565b6112e56113e8565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061132b575061132a856113256113e8565b610ba6565b5b61136a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136190613653565b60405180910390fd5b611377858585858561187d565b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b8151835114611434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142b906136e5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036114a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149a90613777565b60405180910390fd5b60006114ad6113e8565b90506114bd818787878787611b18565b60005b845181101561166e5760008582815181106114de576114dd6131ff565b5b6020026020010151905060008583815181106114fd576114fc6131ff565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561159e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159590613809565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116539190613519565b925050819055505050508061166790613341565b90506114c0565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516116e5929190613829565b60405180910390a46116fb818787878787611ce8565b611709818787878787611cf0565b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361177f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611776906138d2565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161187091906122f5565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036118ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e390613777565b60405180910390fd5b60006118f66113e8565b9050600061190385611ec7565b9050600061191085611ec7565b9050611920838989858589611b18565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156119b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ae90613809565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a6c9190613519565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051611ae992919061354d565b60405180910390a4611aff848a8a86868a611ce8565b611b0d848a8a8a8a8a611f41565b505050505050505050565b611b26868686868686612118565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611bd75760005b8351811015611bd557828181518110611b7957611b786131ff565b5b602002602001015160036000868481518110611b9857611b976131ff565b5b602002602001015181526020019081526020016000206000828254611bbd9190613519565b9250508190555080611bce90613341565b9050611b5d565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611ce05760005b8351811015611cde576000848281518110611c2c57611c2b6131ff565b5b602002602001015190506000848381518110611c4b57611c4a6131ff565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015611cb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca790613964565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080611cd790613341565b9050611c0e565b505b505050505050565b505050505050565b611d0f8473ffffffffffffffffffffffffffffffffffffffff16612120565b15611ebf578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611d559594939291906139d9565b6020604051808303816000875af1925050508015611d9157506040513d601f19601f82011682018060405250810190611d8e9190613a56565b60015b611e3657611d9d613a90565b806308c379a003611df95750611db1613ab2565b80611dbc5750611dfb565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df0919061251e565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2d90613bb4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611ebd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb490613c46565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115611ee657611ee561232b565b5b604051908082528060200260200182016040528015611f145781602001602082028036833780820191505090505b5090508281600081518110611f2c57611f2b6131ff565b5b60200260200101818152505080915050919050565b611f608473ffffffffffffffffffffffffffffffffffffffff16612120565b15612110578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611fa6959493929190613c66565b6020604051808303816000875af1925050508015611fe257506040513d601f19601f82011682018060405250810190611fdf9190613a56565b60015b61208757611fee613a90565b806308c379a00361204a5750612002613ab2565b8061200d575061204c565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612041919061251e565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207e90613bb4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461210e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210590613c46565b60405180910390fd5b505b505050505050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061218282612157565b9050919050565b61219281612177565b811461219d57600080fd5b50565b6000813590506121af81612189565b92915050565b6000819050919050565b6121c8816121b5565b81146121d357600080fd5b50565b6000813590506121e5816121bf565b92915050565b600080604083850312156122025761220161214d565b5b6000612210858286016121a0565b9250506020612221858286016121d6565b9150509250929050565b612234816121b5565b82525050565b600060208201905061224f600083018461222b565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61228a81612255565b811461229557600080fd5b50565b6000813590506122a781612281565b92915050565b6000602082840312156122c3576122c261214d565b5b60006122d184828501612298565b91505092915050565b60008115159050919050565b6122ef816122da565b82525050565b600060208201905061230a60008301846122e6565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6123638261231a565b810181811067ffffffffffffffff821117156123825761238161232b565b5b80604052505050565b6000612395612143565b90506123a1828261235a565b919050565b600067ffffffffffffffff8211156123c1576123c061232b565b5b6123ca8261231a565b9050602081019050919050565b82818337600083830152505050565b60006123f96123f4846123a6565b61238b565b90508281526020810184848401111561241557612414612315565b5b6124208482856123d7565b509392505050565b600082601f83011261243d5761243c612310565b5b813561244d8482602086016123e6565b91505092915050565b60006020828403121561246c5761246b61214d565b5b600082013567ffffffffffffffff81111561248a57612489612152565b5b61249684828501612428565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124d95780820151818401526020810190506124be565b60008484015250505050565b60006124f08261249f565b6124fa81856124aa565b935061250a8185602086016124bb565b6125138161231a565b840191505092915050565b6000602082019050818103600083015261253881846124e5565b905092915050565b6000602082840312156125565761255561214d565b5b6000612564848285016121d6565b91505092915050565b600080604083850312156125845761258361214d565b5b6000612592858286016121d6565b92505060206125a3858286016121d6565b9150509250929050565b6125b681612177565b82525050565b60006040820190506125d160008301856125ad565b6125de602083018461222b565b9392505050565b6000602082840312156125fb576125fa61214d565b5b6000612609848285016121a0565b91505092915050565b600080fd5b600080fd5b60008083601f84011261263257612631612310565b5b8235905067ffffffffffffffff81111561264f5761264e612612565b5b60208301915083606082028301111561266b5761266a612617565b5b9250929050565b600080602083850312156126895761268861214d565b5b600083013567ffffffffffffffff8111156126a7576126a6612152565b5b6126b38582860161261c565b92509250509250929050565b600067ffffffffffffffff8211156126da576126d961232b565b5b602082029050602081019050919050565b60006126fe6126f9846126bf565b61238b565b9050808382526020820190506020840283018581111561272157612720612617565b5b835b8181101561274a578061273688826121d6565b845260208401935050602081019050612723565b5050509392505050565b600082601f83011261276957612768612310565b5b81356127798482602086016126eb565b91505092915050565b600067ffffffffffffffff82111561279d5761279c61232b565b5b6127a68261231a565b9050602081019050919050565b60006127c66127c184612782565b61238b565b9050828152602081018484840111156127e2576127e1612315565b5b6127ed8482856123d7565b509392505050565b600082601f83011261280a57612809612310565b5b813561281a8482602086016127b3565b91505092915050565b600080600080600060a0868803121561283f5761283e61214d565b5b600061284d888289016121a0565b955050602061285e888289016121a0565b945050604086013567ffffffffffffffff81111561287f5761287e612152565b5b61288b88828901612754565b935050606086013567ffffffffffffffff8111156128ac576128ab612152565b5b6128b888828901612754565b925050608086013567ffffffffffffffff8111156128d9576128d8612152565b5b6128e5888289016127f5565b9150509295509295909350565b6000819050919050565b600061291761291261290d84612157565b6128f2565b612157565b9050919050565b6000612929826128fc565b9050919050565b600061293b8261291e565b9050919050565b61294b81612930565b82525050565b60006020820190506129666000830184612942565b92915050565b600067ffffffffffffffff8211156129875761298661232b565b5b602082029050602081019050919050565b60006129ab6129a68461296c565b61238b565b905080838252602082019050602084028301858111156129ce576129cd612617565b5b835b818110156129f757806129e388826121a0565b8452602084019350506020810190506129d0565b5050509392505050565b600082601f830112612a1657612a15612310565b5b8135612a26848260208601612998565b91505092915050565b60008060408385031215612a4657612a4561214d565b5b600083013567ffffffffffffffff811115612a6457612a63612152565b5b612a7085828601612a01565b925050602083013567ffffffffffffffff811115612a9157612a90612152565b5b612a9d85828601612754565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612adc816121b5565b82525050565b6000612aee8383612ad3565b60208301905092915050565b6000602082019050919050565b6000612b1282612aa7565b612b1c8185612ab2565b9350612b2783612ac3565b8060005b83811015612b58578151612b3f8882612ae2565b9750612b4a83612afa565b925050600181019050612b2b565b5085935050505092915050565b60006020820190508181036000830152612b7f8184612b07565b905092915050565b6000602082019050612b9c60008301846125ad565b92915050565b612bab816122da565b8114612bb657600080fd5b50565b600081359050612bc881612ba2565b92915050565b60008060408385031215612be557612be461214d565b5b6000612bf3858286016121a0565b9250506020612c0485828601612bb9565b9150509250929050565b60008060408385031215612c2557612c2461214d565b5b6000612c33858286016121a0565b9250506020612c44858286016121a0565b9150509250929050565b600080600080600060a08688031215612c6a57612c6961214d565b5b6000612c78888289016121a0565b9550506020612c89888289016121a0565b9450506040612c9a888289016121d6565b9350506060612cab888289016121d6565b925050608086013567ffffffffffffffff811115612ccc57612ccb612152565b5b612cd8888289016127f5565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000612d41602a836124aa565b9150612d4c82612ce5565b604082019050919050565b60006020820190508181036000830152612d7081612d34565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612dbe57607f821691505b602082108103612dd157612dd0612d77565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612e397fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612dfc565b612e438683612dfc565b95508019841693508086168417925050509392505050565b6000612e76612e71612e6c846121b5565b6128f2565b6121b5565b9050919050565b6000819050919050565b612e9083612e5b565b612ea4612e9c82612e7d565b848454612e09565b825550505050565b600090565b612eb9612eac565b612ec4818484612e87565b505050565b5b81811015612ee857612edd600082612eb1565b600181019050612eca565b5050565b601f821115612f2d57612efe81612dd7565b612f0784612dec565b81016020851015612f16578190505b612f2a612f2285612dec565b830182612ec9565b50505b505050565b600082821c905092915050565b6000612f5060001984600802612f32565b1980831691505092915050565b6000612f698383612f3f565b9150826002028217905092915050565b612f828261249f565b67ffffffffffffffff811115612f9b57612f9a61232b565b5b612fa58254612da6565b612fb0828285612eec565b600060209050601f831160018114612fe35760008415612fd1578287015190505b612fdb8582612f5d565b865550613043565b601f198416612ff186612dd7565b60005b8281101561301957848901518255600182019150602085019450602081019050612ff4565b868310156130365784890151613032601f891682612f3f565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000815461306381612da6565b61306d818661304b565b94506001821660008114613088576001811461309d576130d0565b60ff19831686528115158202860193506130d0565b6130a685612dd7565b60005b838110156130c8578154818901526001820191506020810190506130a9565b838801955050505b50505092915050565b60006130e48261249f565b6130ee818561304b565b93506130fe8185602086016124bb565b80840191505092915050565b60006131168285613056565b915061312282846130d9565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613197826121b5565b91506131a2836121b5565b9250826131b2576131b161312e565b5b828204905092915050565b60006131c8826121b5565b91506131d3836121b5565b92508282026131e1816121b5565b915082820484148315176131f8576131f761315d565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6002811061323b57600080fd5b50565b60008135905061324d8161322e565b92915050565b6000602082840312156132695761326861214d565b5b60006132778482850161323e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061330b6029836124aa565b9150613316826132af565b604082019050919050565b6000602082019050818103600083015261333a816132fe565b9050919050565b600061334c826121b5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361337e5761337d61315d565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006133e56026836124aa565b91506133f082613389565b604082019050919050565b60006020820190508181036000830152613414816133d8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006134516020836124aa565b915061345c8261341b565b602082019050919050565b6000602082019050818103600083015261348081613444565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006134e36021836124aa565b91506134ee82613487565b604082019050919050565b60006020820190508181036000830152613512816134d6565b9050919050565b6000613524826121b5565b915061352f836121b5565b92508282019050808211156135475761354661315d565b5b92915050565b6000604082019050613562600083018561222b565b61356f602083018461222b565b9392505050565b600060408201905061358b60008301856125ad565b61359860208301846125ad565b9392505050565b6000815190506135ae81612ba2565b92915050565b6000602082840312156135ca576135c961214d565b5b60006135d88482850161359f565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b600061363d602f836124aa565b9150613648826135e1565b604082019050919050565b6000602082019050818103600083015261366c81613630565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006136cf6028836124aa565b91506136da82613673565b604082019050919050565b600060208201905081810360008301526136fe816136c2565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006137616025836124aa565b915061376c82613705565b604082019050919050565b6000602082019050818103600083015261379081613754565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006137f3602a836124aa565b91506137fe82613797565b604082019050919050565b60006020820190508181036000830152613822816137e6565b9050919050565b600060408201905081810360008301526138438185612b07565b905081810360208301526138578184612b07565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006138bc6029836124aa565b91506138c782613860565b604082019050919050565b600060208201905081810360008301526138eb816138af565b9050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b600061394e6028836124aa565b9150613959826138f2565b604082019050919050565b6000602082019050818103600083015261397d81613941565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006139ab82613984565b6139b5818561398f565b93506139c58185602086016124bb565b6139ce8161231a565b840191505092915050565b600060a0820190506139ee60008301886125ad565b6139fb60208301876125ad565b8181036040830152613a0d8186612b07565b90508181036060830152613a218185612b07565b90508181036080830152613a3581846139a0565b90509695505050505050565b600081519050613a5081612281565b92915050565b600060208284031215613a6c57613a6b61214d565b5b6000613a7a84828501613a41565b91505092915050565b60008160e01c9050919050565b600060033d1115613aaf5760046000803e613aac600051613a83565b90505b90565b600060443d10613b3f57613ac4612143565b60043d036004823e80513d602482011167ffffffffffffffff82111715613aec575050613b3f565b808201805167ffffffffffffffff811115613b0a5750505050613b3f565b80602083010160043d038501811115613b27575050505050613b3f565b613b368260200185018661235a565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000613b9e6034836124aa565b9150613ba982613b42565b604082019050919050565b60006020820190508181036000830152613bcd81613b91565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000613c306028836124aa565b9150613c3b82613bd4565b604082019050919050565b60006020820190508181036000830152613c5f81613c23565b9050919050565b600060a082019050613c7b60008301886125ad565b613c8860208301876125ad565b613c95604083018661222b565b613ca2606083018561222b565b8181036080830152613cb481846139a0565b9050969550505050505056fea2646970667358221220c75ac4a97d9a51d70c44a5ab540610a15b673c09f9b45e043c39e5a283b5b87464736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001254686520496d6d6f7274616c204e464b6579000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000125448452d494d4d4f5254414c2d4e464b45590000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014c5760003560e01c80634f558e79116100c3578063a22cb4651161007c578063a22cb4651461039c578063bd85b039146103b8578063e8a3d485146103e8578063e985e9c514610406578063f242432a14610436578063f2fde38b146104525761014c565b80634f558e79146102ee578063715018a61461031e5780638da5cb5b14610328578063938e3d7b1461034657806395d89b41146103625780639a4fc640146103805761014c565b80632a55205a116101155780632a55205a1461021b5780632a9e63c61461024c5780632aade54b146102685780632eb2c2d61461028457806341f43434146102a05780634e1273f4146102be5761014c565b8062fdd58e1461015157806301ffc9a71461018157806302fe5305146101b157806306fdde03146101cd5780630e89341c146101eb575b600080fd5b61016b600480360381019061016691906121eb565b61046e565b604051610178919061223a565b60405180910390f35b61019b600480360381019061019691906122ad565b610536565b6040516101a891906122f5565b60405180910390f35b6101cb60048036038101906101c69190612456565b6105b0565b005b6101d56105d4565b6040516101e2919061251e565b60405180910390f35b61020560048036038101906102009190612540565b610666565b604051610212919061251e565b60405180910390f35b6102356004803603810190610230919061256d565b610705565b6040516102439291906125bc565b60405180910390f35b610266600480360381019061026191906125e5565b610750565b005b610282600480360381019061027d9190612672565b61079c565b005b61029e60048036038101906102999190612823565b61084f565b005b6102a86108a2565b6040516102b59190612951565b60405180910390f35b6102d860048036038101906102d39190612a2f565b6108b4565b6040516102e59190612b65565b60405180910390f35b61030860048036038101906103039190612540565b6109cd565b60405161031591906122f5565b60405180910390f35b6103266109e1565b005b6103306109f5565b60405161033d9190612b87565b60405180910390f35b610360600480360381019061035b9190612456565b610a1f565b005b61036a610a3a565b604051610377919061251e565b60405180910390f35b61039a60048036038101906103959190612540565b610acc565b005b6103b660048036038101906103b19190612bce565b610ade565b005b6103d260048036038101906103cd9190612540565b610af7565b6040516103df919061223a565b60405180910390f35b6103f0610b14565b6040516103fd919061251e565b60405180910390f35b610420600480360381019061041b9190612c0e565b610ba6565b60405161042d91906122f5565b60405180910390f35b610450600480360381019061044b9190612c4e565b610c3a565b005b61046c600480360381019061046791906125e5565b610c8d565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d590612d57565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105a957506105a882610d10565b5b9050919050565b6105b8610df2565b80600790816105c79190612f79565b506105d181610e70565b50565b6060600480546105e390612da6565b80601f016020809104026020016040519081016040528092919081815260200182805461060f90612da6565b801561065c5780601f106106315761010080835404028352916020019161065c565b820191906000526020600020905b81548152906001019060200180831161063f57829003601f168201915b5050505050905090565b6060610671826109cd565b6106a7576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600780546106b690612da6565b9050116106d257604051806020016040528060008152506106fe565b60076106dd83610e83565b6040516020016106ee92919061310a565b6040516020818303038152906040525b9050919050565b600080600954606484610718919061318c565b61072291906131bd565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691509250929050565b610758610df2565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6107a4610df2565b60005b8282905081101561084a5761083f8383838181106107c8576107c76131ff565b5b90506060020160000160208101906107e091906125e5565b8484848181106107f3576107f26131ff565b5b905060600201602001602081019061080b9190613253565b600181111561081d5761081c613280565b5b8585858181106108305761082f6131ff565b5b90506060020160400135610ed3565b8060010190506107a7565b505050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461088d5761088c33611063565b5b61089a8686868686611160565b505050505050565b6daaeb6d7670e522a718067333cd4e81565b606081518351146108fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f190613321565b60405180910390fd5b6000835167ffffffffffffffff8111156109175761091661232b565b5b6040519080825280602002602001820160405280156109455781602001602082028036833780820191505090505b50905060005b84518110156109c25761099285828151811061096a576109696131ff565b5b6020026020010151858381518110610985576109846131ff565b5b602002602001015161046e565b8282815181106109a5576109a46131ff565b5b602002602001018181525050806109bb90613341565b905061094b565b508091505092915050565b6000806109d983610af7565b119050919050565b6109e9610df2565b6109f36000611201565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a27610df2565b8060089081610a369190612f79565b5050565b606060058054610a4990612da6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7590612da6565b8015610ac25780601f10610a9757610100808354040283529160200191610ac2565b820191906000526020600020905b815481529060010190602001808311610aa557829003601f168201915b5050505050905090565b610ad4610df2565b8060098190555050565b81610ae881611063565b610af283836112c7565b505050565b600060036000838152602001908152602001600020549050919050565b606060088054610b2390612da6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4f90612da6565b8015610b9c5780601f10610b7157610100808354040283529160200191610b9c565b820191906000526020600020905b815481529060010190602001808311610b7f57829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c7857610c7733611063565b5b610c8586868686866112dd565b505050505050565b610c95610df2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfb906133fb565b60405180910390fd5b610d0d81611201565b50565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ddb57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610deb5750610dea8261137e565b5b9050919050565b610dfa6113e8565b73ffffffffffffffffffffffffffffffffffffffff16610e186109f5565b73ffffffffffffffffffffffffffffffffffffffff1614610e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6590613467565b60405180910390fd5b565b8060029081610e7f9190612f79565b5050565b606060a060405101806040526020810391506000825281835b600115610ebe57600184039350600a81066030018453600a8104905080610e9c575b50828103602084039350808452505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f39906134f9565b60405180910390fd5b6000610f4c6113e8565b90508160008085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610fad9190613519565b9250508190555081600360008581526020019081526020016000206000828254610fd79190613519565b925050819055508373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62868660405161105592919061354d565b60405180910390a450505050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561115d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016110da929190613576565b602060405180830381865afa1580156110f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111b91906135b4565b61115c57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016111539190612b87565b60405180910390fd5b5b50565b6111686113e8565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806111ae57506111ad856111a86113e8565b610ba6565b5b6111ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e490613653565b60405180910390fd5b6111fa85858585856113f0565b5050505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6112d96112d26113e8565b8383611711565b5050565b6112e56113e8565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061132b575061132a856113256113e8565b610ba6565b5b61136a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136190613653565b60405180910390fd5b611377858585858561187d565b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b8151835114611434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142b906136e5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036114a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149a90613777565b60405180910390fd5b60006114ad6113e8565b90506114bd818787878787611b18565b60005b845181101561166e5760008582815181106114de576114dd6131ff565b5b6020026020010151905060008583815181106114fd576114fc6131ff565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561159e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159590613809565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116539190613519565b925050819055505050508061166790613341565b90506114c0565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516116e5929190613829565b60405180910390a46116fb818787878787611ce8565b611709818787878787611cf0565b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361177f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611776906138d2565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161187091906122f5565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036118ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e390613777565b60405180910390fd5b60006118f66113e8565b9050600061190385611ec7565b9050600061191085611ec7565b9050611920838989858589611b18565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156119b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ae90613809565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a6c9190613519565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051611ae992919061354d565b60405180910390a4611aff848a8a86868a611ce8565b611b0d848a8a8a8a8a611f41565b505050505050505050565b611b26868686868686612118565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611bd75760005b8351811015611bd557828181518110611b7957611b786131ff565b5b602002602001015160036000868481518110611b9857611b976131ff565b5b602002602001015181526020019081526020016000206000828254611bbd9190613519565b9250508190555080611bce90613341565b9050611b5d565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611ce05760005b8351811015611cde576000848281518110611c2c57611c2b6131ff565b5b602002602001015190506000848381518110611c4b57611c4a6131ff565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015611cb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca790613964565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080611cd790613341565b9050611c0e565b505b505050505050565b505050505050565b611d0f8473ffffffffffffffffffffffffffffffffffffffff16612120565b15611ebf578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611d559594939291906139d9565b6020604051808303816000875af1925050508015611d9157506040513d601f19601f82011682018060405250810190611d8e9190613a56565b60015b611e3657611d9d613a90565b806308c379a003611df95750611db1613ab2565b80611dbc5750611dfb565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df0919061251e565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2d90613bb4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611ebd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb490613c46565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115611ee657611ee561232b565b5b604051908082528060200260200182016040528015611f145781602001602082028036833780820191505090505b5090508281600081518110611f2c57611f2b6131ff565b5b60200260200101818152505080915050919050565b611f608473ffffffffffffffffffffffffffffffffffffffff16612120565b15612110578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611fa6959493929190613c66565b6020604051808303816000875af1925050508015611fe257506040513d601f19601f82011682018060405250810190611fdf9190613a56565b60015b61208757611fee613a90565b806308c379a00361204a5750612002613ab2565b8061200d575061204c565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612041919061251e565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207e90613bb4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461210e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210590613c46565b60405180910390fd5b505b505050505050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061218282612157565b9050919050565b61219281612177565b811461219d57600080fd5b50565b6000813590506121af81612189565b92915050565b6000819050919050565b6121c8816121b5565b81146121d357600080fd5b50565b6000813590506121e5816121bf565b92915050565b600080604083850312156122025761220161214d565b5b6000612210858286016121a0565b9250506020612221858286016121d6565b9150509250929050565b612234816121b5565b82525050565b600060208201905061224f600083018461222b565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61228a81612255565b811461229557600080fd5b50565b6000813590506122a781612281565b92915050565b6000602082840312156122c3576122c261214d565b5b60006122d184828501612298565b91505092915050565b60008115159050919050565b6122ef816122da565b82525050565b600060208201905061230a60008301846122e6565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6123638261231a565b810181811067ffffffffffffffff821117156123825761238161232b565b5b80604052505050565b6000612395612143565b90506123a1828261235a565b919050565b600067ffffffffffffffff8211156123c1576123c061232b565b5b6123ca8261231a565b9050602081019050919050565b82818337600083830152505050565b60006123f96123f4846123a6565b61238b565b90508281526020810184848401111561241557612414612315565b5b6124208482856123d7565b509392505050565b600082601f83011261243d5761243c612310565b5b813561244d8482602086016123e6565b91505092915050565b60006020828403121561246c5761246b61214d565b5b600082013567ffffffffffffffff81111561248a57612489612152565b5b61249684828501612428565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124d95780820151818401526020810190506124be565b60008484015250505050565b60006124f08261249f565b6124fa81856124aa565b935061250a8185602086016124bb565b6125138161231a565b840191505092915050565b6000602082019050818103600083015261253881846124e5565b905092915050565b6000602082840312156125565761255561214d565b5b6000612564848285016121d6565b91505092915050565b600080604083850312156125845761258361214d565b5b6000612592858286016121d6565b92505060206125a3858286016121d6565b9150509250929050565b6125b681612177565b82525050565b60006040820190506125d160008301856125ad565b6125de602083018461222b565b9392505050565b6000602082840312156125fb576125fa61214d565b5b6000612609848285016121a0565b91505092915050565b600080fd5b600080fd5b60008083601f84011261263257612631612310565b5b8235905067ffffffffffffffff81111561264f5761264e612612565b5b60208301915083606082028301111561266b5761266a612617565b5b9250929050565b600080602083850312156126895761268861214d565b5b600083013567ffffffffffffffff8111156126a7576126a6612152565b5b6126b38582860161261c565b92509250509250929050565b600067ffffffffffffffff8211156126da576126d961232b565b5b602082029050602081019050919050565b60006126fe6126f9846126bf565b61238b565b9050808382526020820190506020840283018581111561272157612720612617565b5b835b8181101561274a578061273688826121d6565b845260208401935050602081019050612723565b5050509392505050565b600082601f83011261276957612768612310565b5b81356127798482602086016126eb565b91505092915050565b600067ffffffffffffffff82111561279d5761279c61232b565b5b6127a68261231a565b9050602081019050919050565b60006127c66127c184612782565b61238b565b9050828152602081018484840111156127e2576127e1612315565b5b6127ed8482856123d7565b509392505050565b600082601f83011261280a57612809612310565b5b813561281a8482602086016127b3565b91505092915050565b600080600080600060a0868803121561283f5761283e61214d565b5b600061284d888289016121a0565b955050602061285e888289016121a0565b945050604086013567ffffffffffffffff81111561287f5761287e612152565b5b61288b88828901612754565b935050606086013567ffffffffffffffff8111156128ac576128ab612152565b5b6128b888828901612754565b925050608086013567ffffffffffffffff8111156128d9576128d8612152565b5b6128e5888289016127f5565b9150509295509295909350565b6000819050919050565b600061291761291261290d84612157565b6128f2565b612157565b9050919050565b6000612929826128fc565b9050919050565b600061293b8261291e565b9050919050565b61294b81612930565b82525050565b60006020820190506129666000830184612942565b92915050565b600067ffffffffffffffff8211156129875761298661232b565b5b602082029050602081019050919050565b60006129ab6129a68461296c565b61238b565b905080838252602082019050602084028301858111156129ce576129cd612617565b5b835b818110156129f757806129e388826121a0565b8452602084019350506020810190506129d0565b5050509392505050565b600082601f830112612a1657612a15612310565b5b8135612a26848260208601612998565b91505092915050565b60008060408385031215612a4657612a4561214d565b5b600083013567ffffffffffffffff811115612a6457612a63612152565b5b612a7085828601612a01565b925050602083013567ffffffffffffffff811115612a9157612a90612152565b5b612a9d85828601612754565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612adc816121b5565b82525050565b6000612aee8383612ad3565b60208301905092915050565b6000602082019050919050565b6000612b1282612aa7565b612b1c8185612ab2565b9350612b2783612ac3565b8060005b83811015612b58578151612b3f8882612ae2565b9750612b4a83612afa565b925050600181019050612b2b565b5085935050505092915050565b60006020820190508181036000830152612b7f8184612b07565b905092915050565b6000602082019050612b9c60008301846125ad565b92915050565b612bab816122da565b8114612bb657600080fd5b50565b600081359050612bc881612ba2565b92915050565b60008060408385031215612be557612be461214d565b5b6000612bf3858286016121a0565b9250506020612c0485828601612bb9565b9150509250929050565b60008060408385031215612c2557612c2461214d565b5b6000612c33858286016121a0565b9250506020612c44858286016121a0565b9150509250929050565b600080600080600060a08688031215612c6a57612c6961214d565b5b6000612c78888289016121a0565b9550506020612c89888289016121a0565b9450506040612c9a888289016121d6565b9350506060612cab888289016121d6565b925050608086013567ffffffffffffffff811115612ccc57612ccb612152565b5b612cd8888289016127f5565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000612d41602a836124aa565b9150612d4c82612ce5565b604082019050919050565b60006020820190508181036000830152612d7081612d34565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612dbe57607f821691505b602082108103612dd157612dd0612d77565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612e397fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612dfc565b612e438683612dfc565b95508019841693508086168417925050509392505050565b6000612e76612e71612e6c846121b5565b6128f2565b6121b5565b9050919050565b6000819050919050565b612e9083612e5b565b612ea4612e9c82612e7d565b848454612e09565b825550505050565b600090565b612eb9612eac565b612ec4818484612e87565b505050565b5b81811015612ee857612edd600082612eb1565b600181019050612eca565b5050565b601f821115612f2d57612efe81612dd7565b612f0784612dec565b81016020851015612f16578190505b612f2a612f2285612dec565b830182612ec9565b50505b505050565b600082821c905092915050565b6000612f5060001984600802612f32565b1980831691505092915050565b6000612f698383612f3f565b9150826002028217905092915050565b612f828261249f565b67ffffffffffffffff811115612f9b57612f9a61232b565b5b612fa58254612da6565b612fb0828285612eec565b600060209050601f831160018114612fe35760008415612fd1578287015190505b612fdb8582612f5d565b865550613043565b601f198416612ff186612dd7565b60005b8281101561301957848901518255600182019150602085019450602081019050612ff4565b868310156130365784890151613032601f891682612f3f565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000815461306381612da6565b61306d818661304b565b94506001821660008114613088576001811461309d576130d0565b60ff19831686528115158202860193506130d0565b6130a685612dd7565b60005b838110156130c8578154818901526001820191506020810190506130a9565b838801955050505b50505092915050565b60006130e48261249f565b6130ee818561304b565b93506130fe8185602086016124bb565b80840191505092915050565b60006131168285613056565b915061312282846130d9565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613197826121b5565b91506131a2836121b5565b9250826131b2576131b161312e565b5b828204905092915050565b60006131c8826121b5565b91506131d3836121b5565b92508282026131e1816121b5565b915082820484148315176131f8576131f761315d565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6002811061323b57600080fd5b50565b60008135905061324d8161322e565b92915050565b6000602082840312156132695761326861214d565b5b60006132778482850161323e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061330b6029836124aa565b9150613316826132af565b604082019050919050565b6000602082019050818103600083015261333a816132fe565b9050919050565b600061334c826121b5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361337e5761337d61315d565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006133e56026836124aa565b91506133f082613389565b604082019050919050565b60006020820190508181036000830152613414816133d8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006134516020836124aa565b915061345c8261341b565b602082019050919050565b6000602082019050818103600083015261348081613444565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006134e36021836124aa565b91506134ee82613487565b604082019050919050565b60006020820190508181036000830152613512816134d6565b9050919050565b6000613524826121b5565b915061352f836121b5565b92508282019050808211156135475761354661315d565b5b92915050565b6000604082019050613562600083018561222b565b61356f602083018461222b565b9392505050565b600060408201905061358b60008301856125ad565b61359860208301846125ad565b9392505050565b6000815190506135ae81612ba2565b92915050565b6000602082840312156135ca576135c961214d565b5b60006135d88482850161359f565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b600061363d602f836124aa565b9150613648826135e1565b604082019050919050565b6000602082019050818103600083015261366c81613630565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006136cf6028836124aa565b91506136da82613673565b604082019050919050565b600060208201905081810360008301526136fe816136c2565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006137616025836124aa565b915061376c82613705565b604082019050919050565b6000602082019050818103600083015261379081613754565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006137f3602a836124aa565b91506137fe82613797565b604082019050919050565b60006020820190508181036000830152613822816137e6565b9050919050565b600060408201905081810360008301526138438185612b07565b905081810360208301526138578184612b07565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006138bc6029836124aa565b91506138c782613860565b604082019050919050565b600060208201905081810360008301526138eb816138af565b9050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b600061394e6028836124aa565b9150613959826138f2565b604082019050919050565b6000602082019050818103600083015261397d81613941565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006139ab82613984565b6139b5818561398f565b93506139c58185602086016124bb565b6139ce8161231a565b840191505092915050565b600060a0820190506139ee60008301886125ad565b6139fb60208301876125ad565b8181036040830152613a0d8186612b07565b90508181036060830152613a218185612b07565b90508181036080830152613a3581846139a0565b90509695505050505050565b600081519050613a5081612281565b92915050565b600060208284031215613a6c57613a6b61214d565b5b6000613a7a84828501613a41565b91505092915050565b60008160e01c9050919050565b600060033d1115613aaf5760046000803e613aac600051613a83565b90505b90565b600060443d10613b3f57613ac4612143565b60043d036004823e80513d602482011167ffffffffffffffff82111715613aec575050613b3f565b808201805167ffffffffffffffff811115613b0a5750505050613b3f565b80602083010160043d038501811115613b27575050505050613b3f565b613b368260200185018661235a565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000613b9e6034836124aa565b9150613ba982613b42565b604082019050919050565b60006020820190508181036000830152613bcd81613b91565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000613c306028836124aa565b9150613c3b82613bd4565b604082019050919050565b60006020820190508181036000830152613c5f81613c23565b9050919050565b600060a082019050613c7b60008301886125ad565b613c8860208301876125ad565b613c95604083018661222b565b613ca2606083018561222b565b8181036080830152613cb481846139a0565b9050969550505050505056fea2646970667358221220c75ac4a97d9a51d70c44a5ab540610a15b673c09f9b45e043c39e5a283b5b87464736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001254686520496d6d6f7274616c204e464b6579000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000125448452d494d4d4f5254414c2d4e464b45590000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): The Immortal NFKey
Arg [1] : symbol (string): THE-IMMORTAL-NFKEY
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 54686520496d6d6f7274616c204e464b65790000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [5] : 5448452d494d4d4f5254414c2d4e464b45590000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.