More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 239 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 24228742 | 68 days ago | IN | 0 ETH | 0.00003194 | ||||
| Set Approval For... | 22828258 | 264 days ago | IN | 0 ETH | 0.0000613 | ||||
| Set Approval For... | 22828257 | 264 days ago | IN | 0 ETH | 0.00010744 | ||||
| Set Approval For... | 22693259 | 283 days ago | IN | 0 ETH | 0.00007697 | ||||
| Set Approval For... | 22623624 | 293 days ago | IN | 0 ETH | 0.00012091 | ||||
| Set Approval For... | 22509434 | 309 days ago | IN | 0 ETH | 0.00004268 | ||||
| Set Approval For... | 21987277 | 382 days ago | IN | 0 ETH | 0.00006375 | ||||
| Set Approval For... | 21246398 | 485 days ago | IN | 0 ETH | 0.00074354 | ||||
| Set Approval For... | 20004282 | 659 days ago | IN | 0 ETH | 0.00034234 | ||||
| Safe Transfer Fr... | 20004235 | 659 days ago | IN | 0 ETH | 0.00029985 | ||||
| Safe Transfer Fr... | 20004222 | 659 days ago | IN | 0 ETH | 0.00042397 | ||||
| Burn | 18171367 | 916 days ago | IN | 0 ETH | 0.0012713 | ||||
| Set Burn Live | 18171323 | 916 days ago | IN | 0 ETH | 0.00062827 | ||||
| Set Approval For... | 17956575 | 946 days ago | IN | 0 ETH | 0.00072155 | ||||
| Safe Transfer Fr... | 17789103 | 969 days ago | IN | 0 ETH | 0.0010798 | ||||
| Set Approval For... | 17788873 | 969 days ago | IN | 0 ETH | 0.00085426 | ||||
| Withdraw Earning... | 17715766 | 979 days ago | IN | 0 ETH | 0.00047638 | ||||
| Set Approval For... | 16990956 | 1082 days ago | IN | 0 ETH | 0.00070481 | ||||
| Set Approval For... | 16630555 | 1132 days ago | IN | 0 ETH | 0.00163865 | ||||
| Set Approval For... | 16227837 | 1188 days ago | IN | 0 ETH | 0.00100148 | ||||
| Set Approval For... | 16092575 | 1207 days ago | IN | 0 ETH | 0.00061549 | ||||
| Set Approval For... | 15922008 | 1231 days ago | IN | 0 ETH | 0.00063183 | ||||
| Safe Transfer Fr... | 15895189 | 1235 days ago | IN | 0 ETH | 0.0008401 | ||||
| Set Approval For... | 15864504 | 1239 days ago | IN | 0 ETH | 0.00043196 | ||||
| Set Approval For... | 15758920 | 1254 days ago | IN | 0 ETH | 0.00065604 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 14298564 | 1483 days ago | 12.4 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BitbonesNemesis
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts
// Tokenfy Contracts
// ______ _ _ _ _ _ _
// | ___ \(_)| | | | | \ | | (_)
// | |_/ / _ | |_ | |__ ___ _ __ ___ ___ | \| | ___ _ __ ___ ___ ___ _ ___
// | ___ \| || __|| '_ \ / _ \ | '_ \ / _ \/ __| | . ` | / _ \| '_ ` _ \ / _ \/ __|| |/ __|
// | |_/ /| || |_ | |_) || (_) || | | || __/\__ \ | |\ || __/| | | | | || __/\__ \| |\__ \
// \____/ |_| \__||_.__/ \___/ |_| |_| \___||___/ \_| \_/ \___||_| |_| |_| \___||___/|_||___/
pragma solidity 0.8.11;
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);
}
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
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 be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes calldata data
) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
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() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s;
uint8 v;
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
}
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
contract BitbonesNemesis is ERC721, Ownable, ReentrancyGuard {
using ECDSA for bytes32;
using Strings for uint256;
using SafeERC20 for IERC20;
uint256 private _currentIndex = 0;
uint256 private _totalBurned = 0;
string private _baseTokenURI = "https://metadata.api.tokenfy.com/11/metadata/";
string private _contractURI = "https://tokenfy-production-public.s3.us-east-2.amazonaws.com/11/contract-uri";
address public tokenfyAddress = 0xa6dD98031551C23bb4A2fBE2C4d524e8f737c6f7;
// sale currency settings
bool public ethEnabled = true;
bool public tokenfyEnabled = true;
// mint settings
uint256 public maxSupply = 5000;
uint256 public maxPerMint = 20;
uint256 public pricePerToken = 50000000000000000;
uint256 public tokenfyPrice = 18300000000000000000000;
// presale settings
address private signerAddress;
mapping(address => uint256) public presaleMinted;
uint256 public presaleMaxSupply = 5000;
uint256 public presaleMaxPerMint = 20;
uint256 public presalePricePerToken = 50000000000000000;
uint256 public tokenfyPresalePrice = 18300000000000000000000;
// activation flags
bool public instantRevealActive = false;
bool public presaleLive = false;
bool public saleLive = false;
bool public burnLive = false;
modifier presaleValid(bytes32 hash, bytes memory sig, uint256 qty, uint256 max, uint256 expiresAt) {
require(presaleLive, "Presale not live");
require(matchAddresSigner(hash, sig), "Invalid signer");
require(hashTransaction(msg.sender, qty, max, expiresAt) == hash, "Hash check failed");
require(expiresAt >= block.timestamp, "Signature is expired");
require(qty <= presaleMaxPerMint, "Max per mint exceeded");
require(presaleMinted[msg.sender] + qty <= max, "Max per wallet exceeded");
require(_currentIndex + qty <= presaleMaxSupply, "Exceeds max supply");
_;
}
modifier saleValid(uint256 qty) {
require(saleLive, "Sale not live");
require(qty <= maxPerMint, "Max per mint exceeded");
require(_currentIndex + qty <= maxSupply, "Exceeds max supply");
_;
}
constructor(address _signerAddress) ERC721("Bitbones Nemesis", "NMSIS") {
signerAddress = _signerAddress;
}
function presaleMint(
bytes32 hash,
bytes memory sig,
uint256 qty,
uint256 max,
uint256 expiresAt
) external payable nonReentrant presaleValid(hash, sig, qty, max, expiresAt) {
require(ethEnabled, "ETH not enabled");
require(presalePricePerToken * qty == msg.value, "Incorrect price");
presaleMinted[msg.sender] += qty;
for (uint256 i = 0; i < qty; i++) {
mintToken(msg.sender);
}
}
function presaleMintTokenfy(
bytes32 hash,
bytes memory sig,
uint256 qty,
uint256 max,
uint256 expiresAt,
uint256 value
) external nonReentrant presaleValid(hash, sig, qty, max, expiresAt) {
require(tokenfyEnabled, "TKNFY not enabled");
require(tokenfyPresalePrice * qty == value, "Incorrect price");
IERC20(tokenfyAddress).safeTransferFrom(msg.sender, address(this), value);
presaleMinted[msg.sender] += qty;
for (uint256 i = 0; i < qty; i++) {
mintToken(msg.sender);
}
}
function mint(uint256 qty) external payable nonReentrant saleValid(qty) {
require(ethEnabled, "ETH not enabled");
require(pricePerToken * qty == msg.value, "Incorrect price");
for (uint256 i = 0; i < qty; i++) {
mintToken(msg.sender);
}
}
function mintTokenfy(uint256 qty, uint256 value) external nonReentrant saleValid(qty) {
require(tokenfyEnabled, "TKNFY not enabled");
require(tokenfyPrice * qty == value, "Incorrect price");
IERC20(tokenfyAddress).safeTransferFrom(msg.sender, address(this), value);
for (uint256 i = 0; i < qty; i++) {
mintToken(msg.sender);
}
}
function adminMint(uint256 qty, address to) public onlyOwner {
require(qty > 0, "Must mint at least 1 token");
require(_currentIndex + qty <= maxSupply, "Exceeds max supply");
for (uint256 i = 0; i < qty; i++) {
mintToken(to);
}
}
function mintToken(address receiver) private {
_currentIndex += 1;
_safeMint(receiver, _currentIndex);
}
function hashTransaction(address sender, uint256 qty, uint256 max, uint256 expiresAt) private pure returns (bytes32) {
bytes32 hash = keccak256(
abi.encodePacked("\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(sender, qty, max, expiresAt)))
);
return hash;
}
function matchAddresSigner(bytes32 hash, bytes memory signature) private view returns (bool) {
return signerAddress == hash.recover(signature);
}
function burn(uint256 tokenId) public nonReentrant {
require(burnLive, "Burn not live");
require(_isApprovedOrOwner(_msgSender(), tokenId), "Caller is not owner nor approved");
_totalBurned += 1;
_burn(tokenId);
}
function totalSupply() public view virtual returns (uint256) {
return _currentIndex - _totalBurned;
}
function exists(uint256 _tokenId) external view returns (bool) {
return _exists(_tokenId);
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function setBaseURI(string memory newBaseURI) public onlyOwner {
_baseTokenURI = newBaseURI;
}
function setContractURI(string memory newuri) public onlyOwner {
_contractURI = newuri;
}
function contractURI() public view returns (string memory) {
return _contractURI;
}
// withdrawing earnings
function withdrawEarnings() public onlyOwner {
uint256 balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
// reclaiming tokens
function reclaimERC20(IERC20 erc20Token, address to) public onlyOwner {
erc20Token.safeTransfer(to, erc20Token.balanceOf(address(this)));
}
function reclaimERC1155(IERC1155 erc1155Token, uint256 id, address to) public onlyOwner {
erc1155Token.safeTransferFrom(address(this), to, id, 1, "");
}
function reclaimERC721(IERC721 erc721Token, uint256 id, address to) public onlyOwner {
erc721Token.safeTransferFrom(address(this), to, id);
}
// activating contact events
function setPresaleLive(bool live) external onlyOwner {
presaleLive = live;
}
function setSaleLive(bool live) external onlyOwner {
saleLive = live;
}
function setBurnLive(bool live) external onlyOwner {
burnLive = live;
}
function setInstantReveal(bool reveal) external onlyOwner {
instantRevealActive = reveal;
}
// mint-related settings
function changePrice(uint256 newPrice) external onlyOwner {
pricePerToken = newPrice;
}
function changeTokenfyPrice(uint256 newPrice) external onlyOwner {
tokenfyPrice = newPrice;
}
function changeMaxSupply(uint256 _maxSupply) external onlyOwner {
require(_maxSupply >= _currentIndex, "Must be larger than minted count");
maxSupply = _maxSupply;
}
function setMaxPerMint(uint256 _maxPerMint) external onlyOwner {
require(_maxPerMint > 0, "Invalid max per mint");
maxPerMint = _maxPerMint;
}
// presale-related settings
function changePresalePrice(uint256 newPrice) external onlyOwner {
presalePricePerToken = newPrice;
}
function changeTokenfyPresalePrice(uint256 newPrice) external onlyOwner {
tokenfyPresalePrice = newPrice;
}
function changePresaleMaxSupply(uint256 _maxSupply) external onlyOwner {
require(_maxSupply >= _currentIndex, "Must be larger than minted count");
require(_maxSupply <= maxSupply, "Must be less than max supply");
presaleMaxSupply = _maxSupply;
}
function setPresaleMaxPerMint(uint256 _maxPerMint) external onlyOwner {
require(_maxPerMint > 0, "Must be > 0");
presaleMaxPerMint = _maxPerMint;
}
function setSignerAddress(address _signer) external onlyOwner {
signerAddress = _signer;
}
function setETHEnabled(bool enabled) external onlyOwner {
ethEnabled = enabled;
}
function setTokenfyEnabled(bool enabled) external onlyOwner {
tokenfyEnabled = enabled;
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "london",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"changeMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"changePresaleMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changePresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changeTokenfyPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changeTokenfyPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"instantRevealActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mintTokenfy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"sig","type":"bytes"},{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"sig","type":"bytes"},{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"presaleMintTokenfy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"erc1155Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"reclaimERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"erc20Token","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"reclaimERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"erc721Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"reclaimERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"live","type":"bool"}],"name":"setBurnLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setETHEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"reveal","type":"bool"}],"name":"setInstantReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerMint","type":"uint256"}],"name":"setMaxPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"live","type":"bool"}],"name":"setPresaleLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerMint","type":"uint256"}],"name":"setPresaleMaxPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"live","type":"bool"}],"name":"setSaleLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setTokenfyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenfyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenfyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenfyPresalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenfyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEarnings","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6000600881905560095560e0604052602d60808181529062003f8260a03980516200003391600a916020909101906200020e565b506040518060800160405280604c815260200162003f36604c913980516200006491600b916020909101906200020e565b50600c80546001600160b01b031916750101a6dd98031551c23bb4a2fbe2c4d524e8f737c6f7179055611388600d8190556014600e81905566b1a2bc2ec50000600f8190556903e00b845271d070000060108190556013939093559080556015556016556017805463ffffffff19169055348015620000e257600080fd5b5060405162003faf38038062003faf8339810160408190526200010591620002b4565b604080518082018252601081526f426974626f6e6573204e656d6573697360801b6020808301918252835180850190945260058452644e4d53495360d81b9084015281519192916200015a916000916200020e565b508051620001709060019060208401906200020e565b5050506200018d62000187620001b860201b60201c565b620001bc565b6001600755601180546001600160a01b0319166001600160a01b039290921691909117905562000323565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200021c90620002e6565b90600052602060002090601f0160209004810192826200024057600085556200028b565b82601f106200025b57805160ff19168380011785556200028b565b828001600101855582156200028b579182015b828111156200028b5782518255916020019190600101906200026e565b50620002999291506200029d565b5090565b5b808211156200029957600081556001016200029e565b600060208284031215620002c757600080fd5b81516001600160a01b0381168114620002df57600080fd5b9392505050565b600181811c90821680620002fb57607f821691505b602082108114156200031d57634e487b7160e01b600052602260045260246000fd5b50919050565b613c0380620003336000396000f3fe6080604052600436106103ad5760003560e01c806378b2109b116101e7578063b88d4fde1161010d578063db6242c3116100a0578063e97eb0a21161006f578063e97eb0a214610a97578063e985e9c514610ab7578063f2fde38b14610b00578063f9d594f514610b2057600080fd5b8063db6242c314610a22578063e081b78114610a42578063e63cac2414610a62578063e8a3d48514610a8257600080fd5b8063c91cb920116100dc578063c91cb920146109ab578063d1b85c53146109cb578063d23660f8146109ec578063d5abeb0114610a0c57600080fd5b8063b88d4fde14610928578063b8a1eb0914610948578063bc660cac1461095e578063c87b56dd1461098b57600080fd5b80638f0c62cc11610185578063a22cb46511610154578063a22cb465146108b2578063a2b40d19146108d2578063af246ecb146108f2578063b73c6ce91461091357600080fd5b80638f0c62cc1461084a578063938e3d7b1461086a57806395d89b411461088a578063a0712d681461089f57600080fd5b806383a9e049116101c157806383a9e049146107da5780638606d938146107f95780638a78bdf6146108195780638da5cb5b1461082c57600080fd5b806378b2109b146107845780637b1b1de6146107a45780637bca889c146107ba57600080fd5b80633708a2e5116102d7578063507e094f1161026a57806370a082311161023957806370a0823114610719578063715018a6146107395780637241e0a11461074e57806374164e361461076e57600080fd5b8063507e094f146106a357806351a37a05146106b957806355f804b3146106d95780636352211e146106f957600080fd5b806342966c68116102a657806342966c681461062d57806346db83691461064d578063481af589146106635780634f558e791461068357600080fd5b80633708a2e5146105ad5780633c4c7bb4146105cd578063404c7cdd146105ed57806342842e0e1461060d57600080fd5b80630da12de01161034f5780632057310c1161031e5780632057310c1461053357806323b872dd1461055357806326a5b73414610573578063315d32ae1461058d57600080fd5b80630da12de0146104c85780630dc28efe146104de5780630fa420c6146104fe57806318160ddd1461051e57600080fd5b8063081812fc1161038b578063081812fc1461042b57806308fc299b14610463578063095ea7b3146104875780630d99ede9146104a757600080fd5b806301ffc9a7146103b2578063046dc166146103e757806306fdde0314610409575b600080fd5b3480156103be57600080fd5b506103d26103cd3660046133b3565b610b40565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506104076104023660046133e5565b610b92565b005b34801561041557600080fd5b5061041e610be7565b6040516103de919061345a565b34801561043757600080fd5b5061044b61044636600461346d565b610c79565b6040516001600160a01b0390911681526020016103de565b34801561046f57600080fd5b5061047960135481565b6040519081526020016103de565b34801561049357600080fd5b506104076104a2366004613486565b610d0e565b3480156104b357600080fd5b50600c546103d290600160a01b900460ff1681565b3480156104d457600080fd5b5061047960155481565b3480156104ea57600080fd5b506104076104f93660046134b2565b610e24565b34801561050a57600080fd5b506104076105193660046134f0565b610ef3565b34801561052a57600080fd5b50610479610f30565b34801561053f57600080fd5b5061040761054e36600461350d565b610f47565b34801561055f57600080fd5b5061040761056e36600461352f565b6110cc565b34801561057f57600080fd5b506017546103d29060ff1681565b34801561059957600080fd5b506104076105a836600461346d565b6110fe565b3480156105b957600080fd5b506104076105c83660046134f0565b6111d1565b3480156105d957600080fd5b506104076105e83660046134f0565b611219565b3480156105f957600080fd5b5061040761060836600461346d565b61125f565b34801561061957600080fd5b5061040761062836600461352f565b6112e0565b34801561063957600080fd5b5061040761064836600461346d565b6112fb565b34801561065957600080fd5b5061047960165481565b34801561066f57600080fd5b5061040761067e36600461361c565b6113eb565b34801561068f57600080fd5b506103d261069e36600461346d565b6116e8565b3480156106af57600080fd5b50610479600e5481565b3480156106c557600080fd5b506104076106d4366004613686565b611707565b3480156106e557600080fd5b506104076106f43660046136c8565b6117b4565b34801561070557600080fd5b5061044b61071436600461346d565b6117f5565b34801561072557600080fd5b506104796107343660046133e5565b61186c565b34801561074557600080fd5b506104076118f3565b34801561075a57600080fd5b50610407610769366004613711565b611929565b34801561077a57600080fd5b5061047960145481565b34801561079057600080fd5b50600c5461044b906001600160a01b031681565b3480156107b057600080fd5b50610479600f5481565b3480156107c657600080fd5b506104076107d5366004613686565b6119d2565b3480156107e657600080fd5b506017546103d290610100900460ff1681565b34801561080557600080fd5b5061040761081436600461346d565b611a37565b61040761082736600461373f565b611a66565b34801561083857600080fd5b506006546001600160a01b031661044b565b34801561085657600080fd5b506104076108653660046134f0565b611d48565b34801561087657600080fd5b506104076108853660046136c8565b611d8c565b34801561089657600080fd5b5061041e611dc9565b6104076108ad36600461346d565b611dd8565b3480156108be57600080fd5b506104076108cd3660046137a1565b611f42565b3480156108de57600080fd5b506104076108ed36600461346d565b612007565b3480156108fe57600080fd5b50600c546103d290600160a81b900460ff1681565b34801561091f57600080fd5b50610407612036565b34801561093457600080fd5b506104076109433660046137cf565b61208f565b34801561095457600080fd5b5061047960105481565b34801561096a57600080fd5b506104796109793660046133e5565b60126020526000908152604090205481565b34801561099757600080fd5b5061041e6109a636600461346d565b6120c7565b3480156109b757600080fd5b506104076109c636600461346d565b6121a2565b3480156109d757600080fd5b506017546103d2906301000000900460ff1681565b3480156109f857600080fd5b50610407610a0736600461346d565b6121d1565b348015610a1857600080fd5b50610479600d5481565b348015610a2e57600080fd5b50610407610a3d36600461346d565b61223e565b348015610a4e57600080fd5b506017546103d29062010000900460ff1681565b348015610a6e57600080fd5b50610407610a7d3660046134f0565b6122b4565b348015610a8e57600080fd5b5061041e6122fc565b348015610aa357600080fd5b50610407610ab23660046134f0565b61230b565b348015610ac357600080fd5b506103d2610ad2366004613711565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b0c57600080fd5b50610407610b1b3660046133e5565b612353565b348015610b2c57600080fd5b50610407610b3b36600461346d565b6123ee565b60006001600160e01b031982166380ac58cd60e01b1480610b7157506001600160e01b03198216635b5e139f60e01b145b80610b8c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b03163314610bc55760405162461bcd60e51b8152600401610bbc9061383b565b60405180910390fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610bf690613870565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2290613870565b8015610c6f5780601f10610c4457610100808354040283529160200191610c6f565b820191906000526020600020905b815481529060010190602001808311610c5257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610cf25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbc565b506000908152600460205260409020546001600160a01b031690565b6000610d19826117f5565b9050806001600160a01b0316836001600160a01b03161415610d875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bbc565b336001600160a01b0382161480610da35750610da38133610ad2565b610e155760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bbc565b610e1f838361241d565b505050565b6006546001600160a01b03163314610e4e5760405162461bcd60e51b8152600401610bbc9061383b565b60008211610e9e5760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e0000000000006044820152606401610bbc565b600d5482600854610eaf91906138c1565b1115610ecd5760405162461bcd60e51b8152600401610bbc906138d9565b60005b82811015610e1f57610ee18261248b565b80610eeb81613905565b915050610ed0565b6006546001600160a01b03163314610f1d5760405162461bcd60e51b8152600401610bbc9061383b565b6017805460ff1916911515919091179055565b6000600954600854610f429190613920565b905090565b60026007541415610f6a5760405162461bcd60e51b8152600401610bbc90613937565b6002600755601754829062010000900460ff16610fb95760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610bbc565b600e54811115610fdb5760405162461bcd60e51b8152600401610bbc9061396e565b600d5481600854610fec91906138c1565b111561100a5760405162461bcd60e51b8152600401610bbc906138d9565b600c54600160a81b900460ff166110575760405162461bcd60e51b81526020600482015260116024820152701512d39196481b9bdd08195b98589b1959607a1b6044820152606401610bbc565b8183601054611066919061399d565b146110835760405162461bcd60e51b8152600401610bbc906139bc565b600c5461109b906001600160a01b03163330856124b1565b60005b838110156110c1576110af3361248b565b806110b981613905565b91505061109e565b505060016007555050565b6110d7335b8261251c565b6110f35760405162461bcd60e51b8152600401610bbc906139e5565b610e1f838383612613565b6006546001600160a01b031633146111285760405162461bcd60e51b8152600401610bbc9061383b565b60085481101561117a5760405162461bcd60e51b815260206004820181905260248201527f4d757374206265206c6172676572207468616e206d696e74656420636f756e746044820152606401610bbc565b600d548111156111cc5760405162461bcd60e51b815260206004820152601c60248201527f4d757374206265206c657373207468616e206d617820737570706c79000000006044820152606401610bbc565b601355565b6006546001600160a01b031633146111fb5760405162461bcd60e51b8152600401610bbc9061383b565b6017805491151563010000000263ff00000019909216919091179055565b6006546001600160a01b031633146112435760405162461bcd60e51b8152600401610bbc9061383b565b60178054911515620100000262ff000019909216919091179055565b6006546001600160a01b031633146112895760405162461bcd60e51b8152600401610bbc9061383b565b6008548110156112db5760405162461bcd60e51b815260206004820181905260248201527f4d757374206265206c6172676572207468616e206d696e74656420636f756e746044820152606401610bbc565b600d55565b610e1f8383836040518060200160405280600081525061208f565b6002600754141561131e5760405162461bcd60e51b8152600401610bbc90613937565b60026007556017546301000000900460ff1661136c5760405162461bcd60e51b815260206004820152600d60248201526c4275726e206e6f74206c69766560981b6044820152606401610bbc565b611375336110d1565b6113c15760405162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152606401610bbc565b6001600960008282546113d491906138c1565b909155506113e39050816127b3565b506001600755565b6002600754141561140e5760405162461bcd60e51b8152600401610bbc90613937565b600260075560175486908690869086908690610100900460ff166114675760405162461bcd60e51b815260206004820152601060248201526f50726573616c65206e6f74206c69766560801b6044820152606401610bbc565b611471858561284e565b6114ae5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b4b3b732b960911b6044820152606401610bbc565b846114bb33858585612872565b146114fc5760405162461bcd60e51b815260206004820152601160248201527012185cda0818da1958dac819985a5b1959607a1b6044820152606401610bbc565b428110156115435760405162461bcd60e51b815260206004820152601460248201527314da59db985d1d5c99481a5cc8195e1c1a5c995960621b6044820152606401610bbc565b6014548311156115655760405162461bcd60e51b8152600401610bbc9061396e565b3360009081526012602052604090205482906115829085906138c1565b11156115ca5760405162461bcd60e51b815260206004820152601760248201527613585e081c195c881dd85b1b195d08195e18d959591959604a1b6044820152606401610bbc565b601354836008546115db91906138c1565b11156115f95760405162461bcd60e51b8152600401610bbc906138d9565b600c54600160a81b900460ff166116465760405162461bcd60e51b81526020600482015260116024820152701512d39196481b9bdd08195b98589b1959607a1b6044820152606401610bbc565b8589601654611655919061399d565b146116725760405162461bcd60e51b8152600401610bbc906139bc565b600c5461168a906001600160a01b03163330896124b1565b33600090815260126020526040812080548b92906116a99084906138c1565b90915550600090505b898110156116d5576116c33361248b565b806116cd81613905565b9150506116b2565b5050600160075550505050505050505050565b6000818152600260205260408120546001600160a01b03161515610b8c565b6006546001600160a01b031633146117315760405162461bcd60e51b8152600401610bbc9061383b565b604051637921219560e11b81523060048201526001600160a01b038281166024830152604482018490526001606483015260a06084830152600060a483015284169063f242432a9060c4015b600060405180830381600087803b15801561179757600080fd5b505af11580156117ab573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b031633146117de5760405162461bcd60e51b8152600401610bbc9061383b565b80516117f190600a906020840190613304565b5050565b6000818152600260205260408120546001600160a01b031680610b8c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bbc565b60006001600160a01b0382166118d75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bbc565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461191d5760405162461bcd60e51b8152600401610bbc9061383b565b611927600061290b565b565b6006546001600160a01b031633146119535760405162461bcd60e51b8152600401610bbc9061383b565b6040516370a0823160e01b81523060048201526117f19082906001600160a01b038516906370a0823190602401602060405180830381865afa15801561199d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c19190613a36565b6001600160a01b038516919061295d565b6006546001600160a01b031633146119fc5760405162461bcd60e51b8152600401610bbc9061383b565b604051632142170760e11b81523060048201526001600160a01b038281166024830152604482018490528416906342842e0e9060640161177d565b6006546001600160a01b03163314611a615760405162461bcd60e51b8152600401610bbc9061383b565b601555565b60026007541415611a895760405162461bcd60e51b8152600401610bbc90613937565b600260075560175485908590859085908590610100900460ff16611ae25760405162461bcd60e51b815260206004820152601060248201526f50726573616c65206e6f74206c69766560801b6044820152606401610bbc565b611aec858561284e565b611b295760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b4b3b732b960911b6044820152606401610bbc565b84611b3633858585612872565b14611b775760405162461bcd60e51b815260206004820152601160248201527012185cda0818da1958dac819985a5b1959607a1b6044820152606401610bbc565b42811015611bbe5760405162461bcd60e51b815260206004820152601460248201527314da59db985d1d5c99481a5cc8195e1c1a5c995960621b6044820152606401610bbc565b601454831115611be05760405162461bcd60e51b8152600401610bbc9061396e565b336000908152601260205260409020548290611bfd9085906138c1565b1115611c455760405162461bcd60e51b815260206004820152601760248201527613585e081c195c881dd85b1b195d08195e18d959591959604a1b6044820152606401610bbc565b60135483600854611c5691906138c1565b1115611c745760405162461bcd60e51b8152600401610bbc906138d9565b600c54600160a01b900460ff16611cbf5760405162461bcd60e51b815260206004820152600f60248201526e115512081b9bdd08195b98589b1959608a1b6044820152606401610bbc565b3488601554611cce919061399d565b14611ceb5760405162461bcd60e51b8152600401610bbc906139bc565b33600090815260126020526040812080548a9290611d0a9084906138c1565b90915550600090505b88811015611d3657611d243361248b565b80611d2e81613905565b915050611d13565b50506001600755505050505050505050565b6006546001600160a01b03163314611d725760405162461bcd60e51b8152600401610bbc9061383b565b601780549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314611db65760405162461bcd60e51b8152600401610bbc9061383b565b80516117f190600b906020840190613304565b606060018054610bf690613870565b60026007541415611dfb5760405162461bcd60e51b8152600401610bbc90613937565b6002600755601754819062010000900460ff16611e4a5760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610bbc565b600e54811115611e6c5760405162461bcd60e51b8152600401610bbc9061396e565b600d5481600854611e7d91906138c1565b1115611e9b5760405162461bcd60e51b8152600401610bbc906138d9565b600c54600160a01b900460ff16611ee65760405162461bcd60e51b815260206004820152600f60248201526e115512081b9bdd08195b98589b1959608a1b6044820152606401610bbc565b3482600f54611ef5919061399d565b14611f125760405162461bcd60e51b8152600401610bbc906139bc565b60005b82811015611f3857611f263361248b565b80611f3081613905565b915050611f15565b5050600160075550565b6001600160a01b038216331415611f9b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bbc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633146120315760405162461bcd60e51b8152600401610bbc9061383b565b600f55565b6006546001600160a01b031633146120605760405162461bcd60e51b8152600401610bbc9061383b565b6040514790339082156108fc029083906000818181858888f193505050501580156117f1573d6000803e3d6000fd5b612099338361251c565b6120b55760405162461bcd60e51b8152600401610bbc906139e5565b6120c18484848461298d565b50505050565b6000818152600260205260409020546060906001600160a01b03166121465760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bbc565b60006121506129c0565b90506000815111612170576040518060200160405280600081525061219b565b8061217a846129cf565b60405160200161218b929190613a4f565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146121cc5760405162461bcd60e51b8152600401610bbc9061383b565b601655565b6006546001600160a01b031633146121fb5760405162461bcd60e51b8152600401610bbc9061383b565b600081116122395760405162461bcd60e51b815260206004820152600b60248201526a04d757374206265203e20360ac1b6044820152606401610bbc565b601455565b6006546001600160a01b031633146122685760405162461bcd60e51b8152600401610bbc9061383b565b600081116122af5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081b585e081c195c881b5a5b9d60621b6044820152606401610bbc565b600e55565b6006546001600160a01b031633146122de5760405162461bcd60e51b8152600401610bbc9061383b565b600c8054911515600160a81b0260ff60a81b19909216919091179055565b6060600b8054610bf690613870565b6006546001600160a01b031633146123355760405162461bcd60e51b8152600401610bbc9061383b565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b6006546001600160a01b0316331461237d5760405162461bcd60e51b8152600401610bbc9061383b565b6001600160a01b0381166123e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bbc565b6123eb8161290b565b50565b6006546001600160a01b031633146124185760405162461bcd60e51b8152600401610bbc9061383b565b601055565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612452826117f5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60016008600082825461249e91906138c1565b925050819055506123eb81600854612acd565b6040516001600160a01b03808516602483015283166044820152606481018290526120c19085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612ae7565b6000818152600260205260408120546001600160a01b03166125955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbc565b60006125a0836117f5565b9050806001600160a01b0316846001600160a01b031614806125db5750836001600160a01b03166125d084610c79565b6001600160a01b0316145b8061260b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612626826117f5565b6001600160a01b03161461268e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bbc565b6001600160a01b0382166126f05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bbc565b6126fb60008261241d565b6001600160a01b0383166000908152600360205260408120805460019290612724908490613920565b90915550506001600160a01b03821660009081526003602052604081208054600192906127529084906138c1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006127be826117f5565b90506127cb60008361241d565b6001600160a01b03811660009081526003602052604081208054600192906127f4908490613920565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061285a8383612bb9565b6011546001600160a01b039182169116149392505050565b6040805160609590951b6bffffffffffffffffffffffff191660208087019190915260348601949094526054850192909252607480850191909152815180850390910181526094840182528051908301207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060b485015260d0808501919091528151808503909101815260f09093019052815191012090565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b038316602482015260448101829052610e1f90849063a9059cbb60e01b906064016124e5565b612998848484612613565b6129a484848484612bdd565b6120c15760405162461bcd60e51b8152600401610bbc90613a7e565b6060600a8054610bf690613870565b6060816129f35750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a1d5780612a0781613905565b9150612a169050600a83613ae6565b91506129f7565b60008167ffffffffffffffff811115612a3857612a38613570565b6040519080825280601f01601f191660200182016040528015612a62576020820181803683370190505b5090505b841561260b57612a77600183613920565b9150612a84600a86613afa565b612a8f9060306138c1565b60f81b818381518110612aa457612aa4613b0e565b60200101906001600160f81b031916908160001a905350612ac6600a86613ae6565b9450612a66565b6117f1828260405180602001604052806000815250612cd8565b6000612b3c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d0b9092919063ffffffff16565b805190915015610e1f5780806020019051810190612b5a9190613b24565b610e1f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610bbc565b6000806000612bc88585612d1a565b91509150612bd581612d8a565b509392505050565b60006001600160a01b0384163b15612cd057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c21903390899088908890600401613b41565b6020604051808303816000875af1925050508015612c5c575060408051601f3d908101601f19168201909252612c5991810190613b7e565b60015b612cb6573d808015612c8a576040519150601f19603f3d011682016040523d82523d6000602084013e612c8f565b606091505b508051612cae5760405162461bcd60e51b8152600401610bbc90613a7e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061260b565b50600161260b565b612ce28383612f45565b612cef6000848484612bdd565b610e1f5760405162461bcd60e51b8152600401610bbc90613a7e565b606061260b8484600085613087565b600080825160411415612d515760208301516040840151606085015160001a612d45878285856131af565b94509450505050612d83565b825160401415612d7b5760208301516040840151612d7086838361329c565b935093505050612d83565b506000905060025b9250929050565b6000816004811115612d9e57612d9e613b9b565b1415612da75750565b6001816004811115612dbb57612dbb613b9b565b1415612e095760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bbc565b6002816004811115612e1d57612e1d613b9b565b1415612e6b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bbc565b6003816004811115612e7f57612e7f613b9b565b1415612ed85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bbc565b6004816004811115612eec57612eec613b9b565b14156123eb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bbc565b6001600160a01b038216612f9b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bbc565b6000818152600260205260409020546001600160a01b0316156130005760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bbc565b6001600160a01b03821660009081526003602052604081208054600192906130299084906138c1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060824710156130e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610bbc565b843b6131365760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bbc565b600080866001600160a01b031685876040516131529190613bb1565b60006040518083038185875af1925050503d806000811461318f576040519150601f19603f3d011682016040523d82523d6000602084013e613194565b606091505b50915091506131a48282866132cb565b979650505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156131e65750600090506003613293565b8460ff16601b141580156131fe57508460ff16601c14155b1561320f5750600090506004613293565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613263573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661328c57600060019250925050613293565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016132bd878288856131af565b935093505050935093915050565b606083156132da57508161219b565b8251156132ea5782518084602001fd5b8160405162461bcd60e51b8152600401610bbc919061345a565b82805461331090613870565b90600052602060002090601f0160209004810192826133325760008555613378565b82601f1061334b57805160ff1916838001178555613378565b82800160010185558215613378579182015b8281111561337857825182559160200191906001019061335d565b50613384929150613388565b5090565b5b808211156133845760008155600101613389565b6001600160e01b0319811681146123eb57600080fd5b6000602082840312156133c557600080fd5b813561219b8161339d565b6001600160a01b03811681146123eb57600080fd5b6000602082840312156133f757600080fd5b813561219b816133d0565b60005b8381101561341d578181015183820152602001613405565b838111156120c15750506000910152565b60008151808452613446816020860160208601613402565b601f01601f19169290920160200192915050565b60208152600061219b602083018461342e565b60006020828403121561347f57600080fd5b5035919050565b6000806040838503121561349957600080fd5b82356134a4816133d0565b946020939093013593505050565b600080604083850312156134c557600080fd5b8235915060208301356134d7816133d0565b809150509250929050565b80151581146123eb57600080fd5b60006020828403121561350257600080fd5b813561219b816134e2565b6000806040838503121561352057600080fd5b50508035926020909101359150565b60008060006060848603121561354457600080fd5b833561354f816133d0565b9250602084013561355f816133d0565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156135a1576135a1613570565b604051601f8501601f19908116603f011681019082821181831017156135c9576135c9613570565b816040528093508581528686860111156135e257600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261360d57600080fd5b61219b83833560208501613586565b60008060008060008060c0878903121561363557600080fd5b86359550602087013567ffffffffffffffff81111561365357600080fd5b61365f89828a016135fc565b96999698505050506040850135946060810135946080820135945060a09091013592509050565b60008060006060848603121561369b57600080fd5b83356136a6816133d0565b92506020840135915060408401356136bd816133d0565b809150509250925092565b6000602082840312156136da57600080fd5b813567ffffffffffffffff8111156136f157600080fd5b8201601f8101841361370257600080fd5b61260b84823560208401613586565b6000806040838503121561372457600080fd5b823561372f816133d0565b915060208301356134d7816133d0565b600080600080600060a0868803121561375757600080fd5b85359450602086013567ffffffffffffffff81111561377557600080fd5b613781888289016135fc565b959895975050505060408401359360608101359360809091013592509050565b600080604083850312156137b457600080fd5b82356137bf816133d0565b915060208301356134d7816134e2565b600080600080608085870312156137e557600080fd5b84356137f0816133d0565b93506020850135613800816133d0565b925060408501359150606085013567ffffffffffffffff81111561382357600080fd5b61382f878288016135fc565b91505092959194509250565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061388457607f821691505b602082108114156138a557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156138d4576138d46138ab565b500190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b6000600019821415613919576139196138ab565b5060010190565b600082821015613932576139326138ab565b500390565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526015908201527413585e081c195c881b5a5b9d08195e18d959591959605a1b604082015260600190565b60008160001904831182151516156139b7576139b76138ab565b500290565b6020808252600f908201526e496e636f727265637420707269636560881b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600060208284031215613a4857600080fd5b5051919050565b60008351613a61818460208801613402565b835190830190613a75818360208801613402565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613af557613af5613ad0565b500490565b600082613b0957613b09613ad0565b500690565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613b3657600080fd5b815161219b816134e2565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b749083018461342e565b9695505050505050565b600060208284031215613b9057600080fd5b815161219b8161339d565b634e487b7160e01b600052602160045260246000fd5b60008251613bc3818460208701613402565b919091019291505056fea2646970667358221220a045c7194750dc5ab859627e0678a14b1e5d345fe4d207a21943693b483d811564736f6c634300080b003368747470733a2f2f746f6b656e66792d70726f64756374696f6e2d7075626c69632e73332e75732d656173742d322e616d617a6f6e6177732e636f6d2f31312f636f6e74726163742d75726968747470733a2f2f6d657461646174612e6170692e746f6b656e66792e636f6d2f31312f6d657461646174612f000000000000000000000000ba4e2426731b2c1e045f15d1110a3c6ae104d070
Deployed Bytecode
0x6080604052600436106103ad5760003560e01c806378b2109b116101e7578063b88d4fde1161010d578063db6242c3116100a0578063e97eb0a21161006f578063e97eb0a214610a97578063e985e9c514610ab7578063f2fde38b14610b00578063f9d594f514610b2057600080fd5b8063db6242c314610a22578063e081b78114610a42578063e63cac2414610a62578063e8a3d48514610a8257600080fd5b8063c91cb920116100dc578063c91cb920146109ab578063d1b85c53146109cb578063d23660f8146109ec578063d5abeb0114610a0c57600080fd5b8063b88d4fde14610928578063b8a1eb0914610948578063bc660cac1461095e578063c87b56dd1461098b57600080fd5b80638f0c62cc11610185578063a22cb46511610154578063a22cb465146108b2578063a2b40d19146108d2578063af246ecb146108f2578063b73c6ce91461091357600080fd5b80638f0c62cc1461084a578063938e3d7b1461086a57806395d89b411461088a578063a0712d681461089f57600080fd5b806383a9e049116101c157806383a9e049146107da5780638606d938146107f95780638a78bdf6146108195780638da5cb5b1461082c57600080fd5b806378b2109b146107845780637b1b1de6146107a45780637bca889c146107ba57600080fd5b80633708a2e5116102d7578063507e094f1161026a57806370a082311161023957806370a0823114610719578063715018a6146107395780637241e0a11461074e57806374164e361461076e57600080fd5b8063507e094f146106a357806351a37a05146106b957806355f804b3146106d95780636352211e146106f957600080fd5b806342966c68116102a657806342966c681461062d57806346db83691461064d578063481af589146106635780634f558e791461068357600080fd5b80633708a2e5146105ad5780633c4c7bb4146105cd578063404c7cdd146105ed57806342842e0e1461060d57600080fd5b80630da12de01161034f5780632057310c1161031e5780632057310c1461053357806323b872dd1461055357806326a5b73414610573578063315d32ae1461058d57600080fd5b80630da12de0146104c85780630dc28efe146104de5780630fa420c6146104fe57806318160ddd1461051e57600080fd5b8063081812fc1161038b578063081812fc1461042b57806308fc299b14610463578063095ea7b3146104875780630d99ede9146104a757600080fd5b806301ffc9a7146103b2578063046dc166146103e757806306fdde0314610409575b600080fd5b3480156103be57600080fd5b506103d26103cd3660046133b3565b610b40565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506104076104023660046133e5565b610b92565b005b34801561041557600080fd5b5061041e610be7565b6040516103de919061345a565b34801561043757600080fd5b5061044b61044636600461346d565b610c79565b6040516001600160a01b0390911681526020016103de565b34801561046f57600080fd5b5061047960135481565b6040519081526020016103de565b34801561049357600080fd5b506104076104a2366004613486565b610d0e565b3480156104b357600080fd5b50600c546103d290600160a01b900460ff1681565b3480156104d457600080fd5b5061047960155481565b3480156104ea57600080fd5b506104076104f93660046134b2565b610e24565b34801561050a57600080fd5b506104076105193660046134f0565b610ef3565b34801561052a57600080fd5b50610479610f30565b34801561053f57600080fd5b5061040761054e36600461350d565b610f47565b34801561055f57600080fd5b5061040761056e36600461352f565b6110cc565b34801561057f57600080fd5b506017546103d29060ff1681565b34801561059957600080fd5b506104076105a836600461346d565b6110fe565b3480156105b957600080fd5b506104076105c83660046134f0565b6111d1565b3480156105d957600080fd5b506104076105e83660046134f0565b611219565b3480156105f957600080fd5b5061040761060836600461346d565b61125f565b34801561061957600080fd5b5061040761062836600461352f565b6112e0565b34801561063957600080fd5b5061040761064836600461346d565b6112fb565b34801561065957600080fd5b5061047960165481565b34801561066f57600080fd5b5061040761067e36600461361c565b6113eb565b34801561068f57600080fd5b506103d261069e36600461346d565b6116e8565b3480156106af57600080fd5b50610479600e5481565b3480156106c557600080fd5b506104076106d4366004613686565b611707565b3480156106e557600080fd5b506104076106f43660046136c8565b6117b4565b34801561070557600080fd5b5061044b61071436600461346d565b6117f5565b34801561072557600080fd5b506104796107343660046133e5565b61186c565b34801561074557600080fd5b506104076118f3565b34801561075a57600080fd5b50610407610769366004613711565b611929565b34801561077a57600080fd5b5061047960145481565b34801561079057600080fd5b50600c5461044b906001600160a01b031681565b3480156107b057600080fd5b50610479600f5481565b3480156107c657600080fd5b506104076107d5366004613686565b6119d2565b3480156107e657600080fd5b506017546103d290610100900460ff1681565b34801561080557600080fd5b5061040761081436600461346d565b611a37565b61040761082736600461373f565b611a66565b34801561083857600080fd5b506006546001600160a01b031661044b565b34801561085657600080fd5b506104076108653660046134f0565b611d48565b34801561087657600080fd5b506104076108853660046136c8565b611d8c565b34801561089657600080fd5b5061041e611dc9565b6104076108ad36600461346d565b611dd8565b3480156108be57600080fd5b506104076108cd3660046137a1565b611f42565b3480156108de57600080fd5b506104076108ed36600461346d565b612007565b3480156108fe57600080fd5b50600c546103d290600160a81b900460ff1681565b34801561091f57600080fd5b50610407612036565b34801561093457600080fd5b506104076109433660046137cf565b61208f565b34801561095457600080fd5b5061047960105481565b34801561096a57600080fd5b506104796109793660046133e5565b60126020526000908152604090205481565b34801561099757600080fd5b5061041e6109a636600461346d565b6120c7565b3480156109b757600080fd5b506104076109c636600461346d565b6121a2565b3480156109d757600080fd5b506017546103d2906301000000900460ff1681565b3480156109f857600080fd5b50610407610a0736600461346d565b6121d1565b348015610a1857600080fd5b50610479600d5481565b348015610a2e57600080fd5b50610407610a3d36600461346d565b61223e565b348015610a4e57600080fd5b506017546103d29062010000900460ff1681565b348015610a6e57600080fd5b50610407610a7d3660046134f0565b6122b4565b348015610a8e57600080fd5b5061041e6122fc565b348015610aa357600080fd5b50610407610ab23660046134f0565b61230b565b348015610ac357600080fd5b506103d2610ad2366004613711565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b0c57600080fd5b50610407610b1b3660046133e5565b612353565b348015610b2c57600080fd5b50610407610b3b36600461346d565b6123ee565b60006001600160e01b031982166380ac58cd60e01b1480610b7157506001600160e01b03198216635b5e139f60e01b145b80610b8c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b03163314610bc55760405162461bcd60e51b8152600401610bbc9061383b565b60405180910390fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610bf690613870565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2290613870565b8015610c6f5780601f10610c4457610100808354040283529160200191610c6f565b820191906000526020600020905b815481529060010190602001808311610c5257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610cf25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbc565b506000908152600460205260409020546001600160a01b031690565b6000610d19826117f5565b9050806001600160a01b0316836001600160a01b03161415610d875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bbc565b336001600160a01b0382161480610da35750610da38133610ad2565b610e155760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bbc565b610e1f838361241d565b505050565b6006546001600160a01b03163314610e4e5760405162461bcd60e51b8152600401610bbc9061383b565b60008211610e9e5760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e0000000000006044820152606401610bbc565b600d5482600854610eaf91906138c1565b1115610ecd5760405162461bcd60e51b8152600401610bbc906138d9565b60005b82811015610e1f57610ee18261248b565b80610eeb81613905565b915050610ed0565b6006546001600160a01b03163314610f1d5760405162461bcd60e51b8152600401610bbc9061383b565b6017805460ff1916911515919091179055565b6000600954600854610f429190613920565b905090565b60026007541415610f6a5760405162461bcd60e51b8152600401610bbc90613937565b6002600755601754829062010000900460ff16610fb95760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610bbc565b600e54811115610fdb5760405162461bcd60e51b8152600401610bbc9061396e565b600d5481600854610fec91906138c1565b111561100a5760405162461bcd60e51b8152600401610bbc906138d9565b600c54600160a81b900460ff166110575760405162461bcd60e51b81526020600482015260116024820152701512d39196481b9bdd08195b98589b1959607a1b6044820152606401610bbc565b8183601054611066919061399d565b146110835760405162461bcd60e51b8152600401610bbc906139bc565b600c5461109b906001600160a01b03163330856124b1565b60005b838110156110c1576110af3361248b565b806110b981613905565b91505061109e565b505060016007555050565b6110d7335b8261251c565b6110f35760405162461bcd60e51b8152600401610bbc906139e5565b610e1f838383612613565b6006546001600160a01b031633146111285760405162461bcd60e51b8152600401610bbc9061383b565b60085481101561117a5760405162461bcd60e51b815260206004820181905260248201527f4d757374206265206c6172676572207468616e206d696e74656420636f756e746044820152606401610bbc565b600d548111156111cc5760405162461bcd60e51b815260206004820152601c60248201527f4d757374206265206c657373207468616e206d617820737570706c79000000006044820152606401610bbc565b601355565b6006546001600160a01b031633146111fb5760405162461bcd60e51b8152600401610bbc9061383b565b6017805491151563010000000263ff00000019909216919091179055565b6006546001600160a01b031633146112435760405162461bcd60e51b8152600401610bbc9061383b565b60178054911515620100000262ff000019909216919091179055565b6006546001600160a01b031633146112895760405162461bcd60e51b8152600401610bbc9061383b565b6008548110156112db5760405162461bcd60e51b815260206004820181905260248201527f4d757374206265206c6172676572207468616e206d696e74656420636f756e746044820152606401610bbc565b600d55565b610e1f8383836040518060200160405280600081525061208f565b6002600754141561131e5760405162461bcd60e51b8152600401610bbc90613937565b60026007556017546301000000900460ff1661136c5760405162461bcd60e51b815260206004820152600d60248201526c4275726e206e6f74206c69766560981b6044820152606401610bbc565b611375336110d1565b6113c15760405162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152606401610bbc565b6001600960008282546113d491906138c1565b909155506113e39050816127b3565b506001600755565b6002600754141561140e5760405162461bcd60e51b8152600401610bbc90613937565b600260075560175486908690869086908690610100900460ff166114675760405162461bcd60e51b815260206004820152601060248201526f50726573616c65206e6f74206c69766560801b6044820152606401610bbc565b611471858561284e565b6114ae5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b4b3b732b960911b6044820152606401610bbc565b846114bb33858585612872565b146114fc5760405162461bcd60e51b815260206004820152601160248201527012185cda0818da1958dac819985a5b1959607a1b6044820152606401610bbc565b428110156115435760405162461bcd60e51b815260206004820152601460248201527314da59db985d1d5c99481a5cc8195e1c1a5c995960621b6044820152606401610bbc565b6014548311156115655760405162461bcd60e51b8152600401610bbc9061396e565b3360009081526012602052604090205482906115829085906138c1565b11156115ca5760405162461bcd60e51b815260206004820152601760248201527613585e081c195c881dd85b1b195d08195e18d959591959604a1b6044820152606401610bbc565b601354836008546115db91906138c1565b11156115f95760405162461bcd60e51b8152600401610bbc906138d9565b600c54600160a81b900460ff166116465760405162461bcd60e51b81526020600482015260116024820152701512d39196481b9bdd08195b98589b1959607a1b6044820152606401610bbc565b8589601654611655919061399d565b146116725760405162461bcd60e51b8152600401610bbc906139bc565b600c5461168a906001600160a01b03163330896124b1565b33600090815260126020526040812080548b92906116a99084906138c1565b90915550600090505b898110156116d5576116c33361248b565b806116cd81613905565b9150506116b2565b5050600160075550505050505050505050565b6000818152600260205260408120546001600160a01b03161515610b8c565b6006546001600160a01b031633146117315760405162461bcd60e51b8152600401610bbc9061383b565b604051637921219560e11b81523060048201526001600160a01b038281166024830152604482018490526001606483015260a06084830152600060a483015284169063f242432a9060c4015b600060405180830381600087803b15801561179757600080fd5b505af11580156117ab573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b031633146117de5760405162461bcd60e51b8152600401610bbc9061383b565b80516117f190600a906020840190613304565b5050565b6000818152600260205260408120546001600160a01b031680610b8c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bbc565b60006001600160a01b0382166118d75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bbc565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461191d5760405162461bcd60e51b8152600401610bbc9061383b565b611927600061290b565b565b6006546001600160a01b031633146119535760405162461bcd60e51b8152600401610bbc9061383b565b6040516370a0823160e01b81523060048201526117f19082906001600160a01b038516906370a0823190602401602060405180830381865afa15801561199d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c19190613a36565b6001600160a01b038516919061295d565b6006546001600160a01b031633146119fc5760405162461bcd60e51b8152600401610bbc9061383b565b604051632142170760e11b81523060048201526001600160a01b038281166024830152604482018490528416906342842e0e9060640161177d565b6006546001600160a01b03163314611a615760405162461bcd60e51b8152600401610bbc9061383b565b601555565b60026007541415611a895760405162461bcd60e51b8152600401610bbc90613937565b600260075560175485908590859085908590610100900460ff16611ae25760405162461bcd60e51b815260206004820152601060248201526f50726573616c65206e6f74206c69766560801b6044820152606401610bbc565b611aec858561284e565b611b295760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b4b3b732b960911b6044820152606401610bbc565b84611b3633858585612872565b14611b775760405162461bcd60e51b815260206004820152601160248201527012185cda0818da1958dac819985a5b1959607a1b6044820152606401610bbc565b42811015611bbe5760405162461bcd60e51b815260206004820152601460248201527314da59db985d1d5c99481a5cc8195e1c1a5c995960621b6044820152606401610bbc565b601454831115611be05760405162461bcd60e51b8152600401610bbc9061396e565b336000908152601260205260409020548290611bfd9085906138c1565b1115611c455760405162461bcd60e51b815260206004820152601760248201527613585e081c195c881dd85b1b195d08195e18d959591959604a1b6044820152606401610bbc565b60135483600854611c5691906138c1565b1115611c745760405162461bcd60e51b8152600401610bbc906138d9565b600c54600160a01b900460ff16611cbf5760405162461bcd60e51b815260206004820152600f60248201526e115512081b9bdd08195b98589b1959608a1b6044820152606401610bbc565b3488601554611cce919061399d565b14611ceb5760405162461bcd60e51b8152600401610bbc906139bc565b33600090815260126020526040812080548a9290611d0a9084906138c1565b90915550600090505b88811015611d3657611d243361248b565b80611d2e81613905565b915050611d13565b50506001600755505050505050505050565b6006546001600160a01b03163314611d725760405162461bcd60e51b8152600401610bbc9061383b565b601780549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314611db65760405162461bcd60e51b8152600401610bbc9061383b565b80516117f190600b906020840190613304565b606060018054610bf690613870565b60026007541415611dfb5760405162461bcd60e51b8152600401610bbc90613937565b6002600755601754819062010000900460ff16611e4a5760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610bbc565b600e54811115611e6c5760405162461bcd60e51b8152600401610bbc9061396e565b600d5481600854611e7d91906138c1565b1115611e9b5760405162461bcd60e51b8152600401610bbc906138d9565b600c54600160a01b900460ff16611ee65760405162461bcd60e51b815260206004820152600f60248201526e115512081b9bdd08195b98589b1959608a1b6044820152606401610bbc565b3482600f54611ef5919061399d565b14611f125760405162461bcd60e51b8152600401610bbc906139bc565b60005b82811015611f3857611f263361248b565b80611f3081613905565b915050611f15565b5050600160075550565b6001600160a01b038216331415611f9b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bbc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633146120315760405162461bcd60e51b8152600401610bbc9061383b565b600f55565b6006546001600160a01b031633146120605760405162461bcd60e51b8152600401610bbc9061383b565b6040514790339082156108fc029083906000818181858888f193505050501580156117f1573d6000803e3d6000fd5b612099338361251c565b6120b55760405162461bcd60e51b8152600401610bbc906139e5565b6120c18484848461298d565b50505050565b6000818152600260205260409020546060906001600160a01b03166121465760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bbc565b60006121506129c0565b90506000815111612170576040518060200160405280600081525061219b565b8061217a846129cf565b60405160200161218b929190613a4f565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146121cc5760405162461bcd60e51b8152600401610bbc9061383b565b601655565b6006546001600160a01b031633146121fb5760405162461bcd60e51b8152600401610bbc9061383b565b600081116122395760405162461bcd60e51b815260206004820152600b60248201526a04d757374206265203e20360ac1b6044820152606401610bbc565b601455565b6006546001600160a01b031633146122685760405162461bcd60e51b8152600401610bbc9061383b565b600081116122af5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081b585e081c195c881b5a5b9d60621b6044820152606401610bbc565b600e55565b6006546001600160a01b031633146122de5760405162461bcd60e51b8152600401610bbc9061383b565b600c8054911515600160a81b0260ff60a81b19909216919091179055565b6060600b8054610bf690613870565b6006546001600160a01b031633146123355760405162461bcd60e51b8152600401610bbc9061383b565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b6006546001600160a01b0316331461237d5760405162461bcd60e51b8152600401610bbc9061383b565b6001600160a01b0381166123e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bbc565b6123eb8161290b565b50565b6006546001600160a01b031633146124185760405162461bcd60e51b8152600401610bbc9061383b565b601055565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612452826117f5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60016008600082825461249e91906138c1565b925050819055506123eb81600854612acd565b6040516001600160a01b03808516602483015283166044820152606481018290526120c19085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612ae7565b6000818152600260205260408120546001600160a01b03166125955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbc565b60006125a0836117f5565b9050806001600160a01b0316846001600160a01b031614806125db5750836001600160a01b03166125d084610c79565b6001600160a01b0316145b8061260b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612626826117f5565b6001600160a01b03161461268e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bbc565b6001600160a01b0382166126f05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bbc565b6126fb60008261241d565b6001600160a01b0383166000908152600360205260408120805460019290612724908490613920565b90915550506001600160a01b03821660009081526003602052604081208054600192906127529084906138c1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006127be826117f5565b90506127cb60008361241d565b6001600160a01b03811660009081526003602052604081208054600192906127f4908490613920565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061285a8383612bb9565b6011546001600160a01b039182169116149392505050565b6040805160609590951b6bffffffffffffffffffffffff191660208087019190915260348601949094526054850192909252607480850191909152815180850390910181526094840182528051908301207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060b485015260d0808501919091528151808503909101815260f09093019052815191012090565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b038316602482015260448101829052610e1f90849063a9059cbb60e01b906064016124e5565b612998848484612613565b6129a484848484612bdd565b6120c15760405162461bcd60e51b8152600401610bbc90613a7e565b6060600a8054610bf690613870565b6060816129f35750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a1d5780612a0781613905565b9150612a169050600a83613ae6565b91506129f7565b60008167ffffffffffffffff811115612a3857612a38613570565b6040519080825280601f01601f191660200182016040528015612a62576020820181803683370190505b5090505b841561260b57612a77600183613920565b9150612a84600a86613afa565b612a8f9060306138c1565b60f81b818381518110612aa457612aa4613b0e565b60200101906001600160f81b031916908160001a905350612ac6600a86613ae6565b9450612a66565b6117f1828260405180602001604052806000815250612cd8565b6000612b3c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d0b9092919063ffffffff16565b805190915015610e1f5780806020019051810190612b5a9190613b24565b610e1f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610bbc565b6000806000612bc88585612d1a565b91509150612bd581612d8a565b509392505050565b60006001600160a01b0384163b15612cd057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c21903390899088908890600401613b41565b6020604051808303816000875af1925050508015612c5c575060408051601f3d908101601f19168201909252612c5991810190613b7e565b60015b612cb6573d808015612c8a576040519150601f19603f3d011682016040523d82523d6000602084013e612c8f565b606091505b508051612cae5760405162461bcd60e51b8152600401610bbc90613a7e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061260b565b50600161260b565b612ce28383612f45565b612cef6000848484612bdd565b610e1f5760405162461bcd60e51b8152600401610bbc90613a7e565b606061260b8484600085613087565b600080825160411415612d515760208301516040840151606085015160001a612d45878285856131af565b94509450505050612d83565b825160401415612d7b5760208301516040840151612d7086838361329c565b935093505050612d83565b506000905060025b9250929050565b6000816004811115612d9e57612d9e613b9b565b1415612da75750565b6001816004811115612dbb57612dbb613b9b565b1415612e095760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bbc565b6002816004811115612e1d57612e1d613b9b565b1415612e6b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bbc565b6003816004811115612e7f57612e7f613b9b565b1415612ed85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bbc565b6004816004811115612eec57612eec613b9b565b14156123eb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bbc565b6001600160a01b038216612f9b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bbc565b6000818152600260205260409020546001600160a01b0316156130005760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bbc565b6001600160a01b03821660009081526003602052604081208054600192906130299084906138c1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060824710156130e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610bbc565b843b6131365760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bbc565b600080866001600160a01b031685876040516131529190613bb1565b60006040518083038185875af1925050503d806000811461318f576040519150601f19603f3d011682016040523d82523d6000602084013e613194565b606091505b50915091506131a48282866132cb565b979650505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156131e65750600090506003613293565b8460ff16601b141580156131fe57508460ff16601c14155b1561320f5750600090506004613293565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613263573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661328c57600060019250925050613293565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016132bd878288856131af565b935093505050935093915050565b606083156132da57508161219b565b8251156132ea5782518084602001fd5b8160405162461bcd60e51b8152600401610bbc919061345a565b82805461331090613870565b90600052602060002090601f0160209004810192826133325760008555613378565b82601f1061334b57805160ff1916838001178555613378565b82800160010185558215613378579182015b8281111561337857825182559160200191906001019061335d565b50613384929150613388565b5090565b5b808211156133845760008155600101613389565b6001600160e01b0319811681146123eb57600080fd5b6000602082840312156133c557600080fd5b813561219b8161339d565b6001600160a01b03811681146123eb57600080fd5b6000602082840312156133f757600080fd5b813561219b816133d0565b60005b8381101561341d578181015183820152602001613405565b838111156120c15750506000910152565b60008151808452613446816020860160208601613402565b601f01601f19169290920160200192915050565b60208152600061219b602083018461342e565b60006020828403121561347f57600080fd5b5035919050565b6000806040838503121561349957600080fd5b82356134a4816133d0565b946020939093013593505050565b600080604083850312156134c557600080fd5b8235915060208301356134d7816133d0565b809150509250929050565b80151581146123eb57600080fd5b60006020828403121561350257600080fd5b813561219b816134e2565b6000806040838503121561352057600080fd5b50508035926020909101359150565b60008060006060848603121561354457600080fd5b833561354f816133d0565b9250602084013561355f816133d0565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156135a1576135a1613570565b604051601f8501601f19908116603f011681019082821181831017156135c9576135c9613570565b816040528093508581528686860111156135e257600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261360d57600080fd5b61219b83833560208501613586565b60008060008060008060c0878903121561363557600080fd5b86359550602087013567ffffffffffffffff81111561365357600080fd5b61365f89828a016135fc565b96999698505050506040850135946060810135946080820135945060a09091013592509050565b60008060006060848603121561369b57600080fd5b83356136a6816133d0565b92506020840135915060408401356136bd816133d0565b809150509250925092565b6000602082840312156136da57600080fd5b813567ffffffffffffffff8111156136f157600080fd5b8201601f8101841361370257600080fd5b61260b84823560208401613586565b6000806040838503121561372457600080fd5b823561372f816133d0565b915060208301356134d7816133d0565b600080600080600060a0868803121561375757600080fd5b85359450602086013567ffffffffffffffff81111561377557600080fd5b613781888289016135fc565b959895975050505060408401359360608101359360809091013592509050565b600080604083850312156137b457600080fd5b82356137bf816133d0565b915060208301356134d7816134e2565b600080600080608085870312156137e557600080fd5b84356137f0816133d0565b93506020850135613800816133d0565b925060408501359150606085013567ffffffffffffffff81111561382357600080fd5b61382f878288016135fc565b91505092959194509250565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061388457607f821691505b602082108114156138a557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156138d4576138d46138ab565b500190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b6000600019821415613919576139196138ab565b5060010190565b600082821015613932576139326138ab565b500390565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526015908201527413585e081c195c881b5a5b9d08195e18d959591959605a1b604082015260600190565b60008160001904831182151516156139b7576139b76138ab565b500290565b6020808252600f908201526e496e636f727265637420707269636560881b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600060208284031215613a4857600080fd5b5051919050565b60008351613a61818460208801613402565b835190830190613a75818360208801613402565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613af557613af5613ad0565b500490565b600082613b0957613b09613ad0565b500690565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613b3657600080fd5b815161219b816134e2565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b749083018461342e565b9695505050505050565b600060208284031215613b9057600080fd5b815161219b8161339d565b634e487b7160e01b600052602160045260246000fd5b60008251613bc3818460208701613402565b919091019291505056fea2646970667358221220a045c7194750dc5ab859627e0678a14b1e5d345fe4d207a21943693b483d811564736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ba4e2426731b2c1e045f15d1110a3c6ae104d070
-----Decoded View---------------
Arg [0] : _signerAddress (address): 0xbA4e2426731B2c1E045F15d1110a3c6Ae104D070
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ba4e2426731b2c1e045f15d1110a3c6ae104d070
Loading...
Loading
Loading...
Loading
OVERVIEW
Bitbone Nemesis is a collection of 5000 pixel warriors ready to smash some Bitbones!!! They are one of a kind, hand drawn, machine generated bad asses.Bitbones holders will be able to sacrifice a Bitbones Nemesis piece to summon a warrior from the Bitbones VX collection. How...Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.