Source Code
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 196 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Mint | 18222350 | 891 days ago | IN | 0 ETH | 0.00163516 | ||||
| Mint | 16936107 | 1072 days ago | IN | 0 ETH | 0.00347017 | ||||
| Mint | 16166525 | 1180 days ago | IN | 0 ETH | 0.00185533 | ||||
| Mint | 15052784 | 1344 days ago | IN | 0.02 ETH | 0.00296944 | ||||
| Mint | 15009584 | 1352 days ago | IN | 0.02 ETH | 0.00481225 | ||||
| Mint | 14942325 | 1364 days ago | IN | 0 ETH | 0.00273611 | ||||
| Mint | 14938278 | 1365 days ago | IN | 0.02 ETH | 0.00431408 | ||||
| Mint | 14886120 | 1374 days ago | IN | 0.1 ETH | 0.02636215 | ||||
| Mint | 14863750 | 1377 days ago | IN | 0 ETH | 0.00223099 | ||||
| Mint | 14844227 | 1380 days ago | IN | 0.02 ETH | 0.00447804 | ||||
| Mint | 14815091 | 1385 days ago | IN | 0.02 ETH | 0.0033394 | ||||
| Mint | 14814908 | 1385 days ago | IN | 0.02 ETH | 0.00258307 | ||||
| Mint | 14814687 | 1385 days ago | IN | 0.1 ETH | 0.0058187 | ||||
| Mint | 14814432 | 1385 days ago | IN | 0.1 ETH | 0.00983511 | ||||
| Mint | 14813974 | 1385 days ago | IN | 0.02 ETH | 0.00296488 | ||||
| Mint | 14781313 | 1391 days ago | IN | 0.02 ETH | 0.00149972 | ||||
| Mint | 14774372 | 1392 days ago | IN | 0.02 ETH | 0.00400994 | ||||
| Mint | 14773898 | 1392 days ago | IN | 0.1 ETH | 0.0166116 | ||||
| Mint | 14772751 | 1392 days ago | IN | 0.02 ETH | 0.00283753 | ||||
| Mint | 14770461 | 1392 days ago | IN | 0.1 ETH | 0.01803874 | ||||
| Mint | 14740353 | 1397 days ago | IN | 0.04 ETH | 0.00235031 | ||||
| Mint | 14737006 | 1398 days ago | IN | 0 ETH | 0.00409643 | ||||
| Mint | 14737005 | 1398 days ago | IN | 0 ETH | 0.00403437 | ||||
| Mint | 14733241 | 1398 days ago | IN | 0.02 ETH | 0.00321477 | ||||
| Mint | 14733182 | 1398 days ago | IN | 0 ETH | 0.00293473 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 14543036 | 1428 days ago | 2.02 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ApeSquadMinter
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2022-04-01
*/
// Sources flattened with hardhat v2.9.1 https://hardhat.org
// File @openzeppelin/contracts/utils/Context.sol@v4.5.0
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File @openzeppelin/contracts/access/Ownable.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// File @openzeppelin/contracts/token/ERC721/IERC721.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
// File @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// File @openzeppelin/contracts/utils/Address.sol@v4.5.0
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File @openzeppelin/contracts/utils/Strings.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
// File @openzeppelin/contracts/utils/introspection/ERC165.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// File contracts/ERC721Opt.sol
pragma solidity ^0.8.4;
error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintToDeadAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error TransferToDeadAddress();
error UnableGetTokenOwnerByIndex();
error URIQueryForNonexistentToken();
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 1 (e.g. 1, 2, 3..).
*/
contract ERC721Opt is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
uint256 internal _nextTokenId = 1;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owners details
// An empty struct value does not necessarily mean the token is unowned. See ownerOf implementation for details.
mapping(uint256 => address) internal _owners;
// Mapping owner address to balances
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;
// Address to use for burned accounting
address constant DEAD_ADDR = 0x000000000000000000000000000000000000dEaD;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
// Counter underflow is impossible as burned cannot be incremented
// more than _nextTokenId - 1 times
unchecked {
return (_nextTokenId - 1) - balanceOf(DEAD_ADDR);
}
}
/**
* @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) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address owner) {
if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken();
unchecked {
for (uint256 curr = tokenId;; curr--) {
owner = _owners[curr];
if (owner != address(0)) {
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) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
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 = ownerOf(tokenId);
if (to == owner) revert ApprovalToCurrentOwner();
if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) revert ApprovalCallerNotOwnerNorApproved();
_approve(to, tokenId, owner);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSender()) revert ApproveToCaller();
_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 {
_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 {
_transfer(from, to, tokenId);
if (!_checkOnERC721Received(from, to, tokenId, _data)) revert TransferToNonERC721ReceiverImplementer();
}
function _isApprovedOrOwner(address sender, uint256 tokenId) internal view virtual returns (bool) {
address owner = ownerOf(tokenId);
return (sender == owner ||
getApproved(tokenId) == sender ||
isApprovedForAll(owner, sender));
}
/**
* @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`),
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return tokenId > 0 && tokenId < _nextTokenId && _owners[tokenId] != DEAD_ADDR;
}
function _mint(address to, uint256 quantity) internal virtual {
_mint(to, quantity, '', false);
}
function _safeMint(address to, uint256 quantity) internal virtual {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal virtual {
_mint(to, quantity, _data, true);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal virtual {
uint256 startTokenId = _nextTokenId;
if (to == address(0)) revert MintToZeroAddress();
if (to == DEAD_ADDR) revert MintToDeadAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance overflow if current value + quantity > 1.56e77 (2**256) - 1
// updatedIndex overflows if _nextTokenId + quantity > 1.56e77 (2**256) - 1
unchecked {
_balances[to] += quantity;
_owners[startTokenId] = to;
uint256 updatedIndex = startTokenId;
for (uint256 i; i < quantity; i++) {
emit Transfer(address(0), to, updatedIndex);
if (safe) {
if (!_checkOnERC721Received(address(0), to, updatedIndex, _data)) revert TransferToNonERC721ReceiverImplementer();
}
updatedIndex++;
}
_nextTokenId = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* 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
) private {
address owner = ownerOf(tokenId);
bool isApprovedOrOwner = (_msgSender() == owner ||
isApprovedForAll(owner, _msgSender()) ||
getApproved(tokenId) == _msgSender());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
if (owner != from) revert TransferFromIncorrectOwner();
if (to == address(0)) revert TransferToZeroAddress();
if (to == DEAD_ADDR) revert TransferToDeadAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, owner);
// Underflow of the sender's balance is impossible because we check for
// owner above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
// If the owner slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
if (_owners[nextTokenId] == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId < _nextTokenId) {
_owners[nextTokenId] = owner;
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, 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 = ownerOf(tokenId);
_beforeTokenTransfers(owner, address(0), tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, owner);
// Underflow of the sender's balance is impossible because we check for
// owner above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
_balances[owner] -= 1;
_balances[DEAD_ADDR] += 1;
_owners[tokenId] = DEAD_ADDR;
// If the owner slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
if (_owners[nextTokenId] == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId < _nextTokenId) {
_owners[nextTokenId] = owner;
}
}
}
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfers(owner, address(0), tokenId, 1);
}
/**
* @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(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) revert TransferToNonERC721ReceiverImplementer();
else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
}
// File contracts/extensions/ERC721OptOwnersExplicit.sol
pragma solidity ^0.8.4;
error AllOwnersHaveBeenSet();
error QuantityMustBeNonZero();
error NoTokensMintedYet();
abstract contract ERC721OptOwnersExplicit is ERC721Opt {
uint256 public nextOwnerToExplicitlySet = 1;
/**
* @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
*/
function _setOwnersExplicit(uint256 quantity) internal {
if (quantity == 0) revert QuantityMustBeNonZero();
if (_nextTokenId == 1) revert NoTokensMintedYet();
uint256 _nextOwnerToExplicitlySet = nextOwnerToExplicitlySet;
if (_nextOwnerToExplicitlySet >= _nextTokenId) revert AllOwnersHaveBeenSet();
// Index underflow is impossible.
// Counter or index overflow is incredibly unrealistic.
unchecked {
uint256 endIndex = _nextOwnerToExplicitlySet + quantity - 1;
// Set the end index to be the last token index
if (endIndex + 1 > _nextTokenId) {
endIndex = _nextTokenId - 1;
}
for (uint256 i = _nextOwnerToExplicitlySet; i <= endIndex; i++) {
if (_owners[i] == address(0) && _owners[i] != DEAD_ADDR) {
address ownership = ownerOf(i);
_owners[i] = ownership;
}
}
nextOwnerToExplicitlySet = endIndex + 1;
}
}
}
// File contracts/extensions/ERC721OptBurnable.sol
pragma solidity ^0.8.4;
error BurnCallerNotOwnerNorApproved();
/**
* @title ERC721Opt Burnable Token
* @dev ERC721Opt Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721OptBurnable is ERC721Opt {
/**
* @dev Burns `tokenId`. See {ERC721Opt-_burn}.
*
* Requirements:
*
* - The caller must own `tokenId` or be an approved operator.
*/
function burn(uint256 tokenId) public virtual {
if (!_isApprovedOrOwner(_msgSender(), tokenId)) revert BurnCallerNotOwnerNorApproved();
_burn(tokenId);
}
}
// File contracts/extensions/ERC721OptBatchBurnable.sol
pragma solidity ^0.8.4;
/**
* @title ERC721Opt Batch Burnable Token
* @dev ERC721Opt Token that can be irreversibly batch burned (destroyed).
*/
abstract contract ERC721OptBatchBurnable is ERC721OptBurnable {
/**
* @dev Perform burn on a batch of tokens
*/
function batchBurn(uint16[] memory tokenIds) public virtual {
for (uint16 i = 0; i < tokenIds.length; ++i) {
if (!_isApprovedOrOwner(_msgSender(), tokenIds[i])) revert BurnCallerNotOwnerNorApproved();
_burn(tokenIds[i]);
}
}
}
// File contracts/extensions/ERC721OptBatchTransferable.sol
pragma solidity ^0.8.4;
/**
* @title ERC721Opt Batch Transferable Token
* @dev ERC721Opt Token that can be batch transfered
*/
abstract contract ERC721OptBatchTransferable is ERC721Opt {
/**
* @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,
uint16[] tokenIds
);
/**
* @dev Perform transferFrom on a batch of tokens
*/
function batchTransferFrom(
address from,
address to,
uint16[] memory tokenIds
) public virtual {
for (uint16 i = 0; i < tokenIds.length; ++i) {
if (!_isApprovedOrOwner(_msgSender(), tokenIds[i])) revert TransferCallerNotOwnerNorApproved();
transferFrom(from, to, tokenIds[i]);
}
emit TransferBatch(_msgSender(), from, to, tokenIds);
}
/**
* @dev Perform safeTransferFrom on a batch of tokens
*/
function safeBatchTransferFrom(
address from,
address to,
uint16[] memory tokenIds
) public virtual {
safeBatchTransferFrom(from, to, tokenIds, '');
}
/**
* @dev Perform safeTransferFrom on a batch of tokens
*/
function safeBatchTransferFrom(
address from,
address to,
uint16[] memory tokenIds,
bytes memory _data
) public virtual {
for (uint256 i = 0; i < tokenIds.length; ++i) {
if (!_isApprovedOrOwner(_msgSender(), tokenIds[i])) revert TransferCallerNotOwnerNorApproved();
safeTransferFrom(from, to, tokenIds[i], _data);
}
emit TransferBatch(_msgSender(), from, to, tokenIds);
}
}
// File contracts/OpenSea.sol
pragma solidity ^0.8.4;
contract OpenSeaOwnableDelegateProxy {}
contract OpenSeaProxyRegistry {
mapping(address => OpenSeaOwnableDelegateProxy) public proxies;
}
// File contracts/ApeSquadCharacterSheetNFT.sol
pragma solidity ^0.8.4;
error CharacterSheetTypeQueryForNonexistentToken();
error OnlyMintersCanMintCharacterSheets();
error InvalidPurchaseCharacterSheetTypeId();
error AllCharacterSheetsOfTypeMinted();
error NoCharacterSheetMintAmountProvided();
error InvalidUpdateCharacterSheetLengthsDontMatch();
error InvalidUpdateCharacterSheetTypeId();
contract ApeSquadCharacterSheetNFT is Ownable, ERC721Opt, ERC721OptOwnersExplicit, ERC721OptBatchBurnable, ERC721OptBatchTransferable {
using Strings for uint256;
struct CharacterSheetPurchase {
uint16 characterSheetTypeId;
uint16 amount;
}
struct CharacterSheetType {
string name;
uint16 maxCharacterSheets;
uint16 minted;
}
/* Base URI for token URIs */
string public baseURI;
/* OpenSea user account proxy */
address public openSeaProxyRegistryAddress;
/* Minter addressess */
mapping(address => bool) public minters;
CharacterSheetType[] public characterSheetTypes;
/* mapping of each token id to characterSheet type */
mapping(uint256 => uint16) _tokenIdCharacterSheetTypes;
/* mapping of each token id to rarity. 0 = common, 1 = rare, 2 = legendary */
mapping(uint256 => uint8) public characterSheetRarity;
constructor(string memory name_, string memory symbol_, string memory _initialBaseURI, address _openSeaProxyRegistryAddress, address[] memory _minters) ERC721Opt(name_, symbol_) {
baseURI = _initialBaseURI;
openSeaProxyRegistryAddress = _openSeaProxyRegistryAddress;
for (uint256 i; i < _minters.length; i++) {
minters[_minters[i]] = true;
}
_addCharacterSheet("Alex", 250);
_addCharacterSheet("Borg", 250);
_addCharacterSheet("Dax", 250);
_addCharacterSheet("Kanoa", 250);
_addCharacterSheet("Kazz", 250);
}
/**
* @dev Get characterSheetType count
*/
function characterSheetTypeCount() public view returns (uint256) {
return characterSheetTypes.length;
}
/**
* @dev Get characterSheets left for sale
*/
function characterSheetsLeft(uint16 characterSheetTypeId) public view returns (uint256) {
return characterSheetTypes[characterSheetTypeId].maxCharacterSheets - characterSheetTypes[characterSheetTypeId].minted;
}
/**
* @dev Get the characterSheet type for a specific tokenId
*/
function tokenCharacterSheetType(uint256 tokenId) public view returns (string memory) {
if (!_exists(tokenId)) revert CharacterSheetTypeQueryForNonexistentToken();
return characterSheetTypes[_tokenIdCharacterSheetTypes[tokenId]].name;
}
/**
* @dev Override to if default approved for OS proxy accounts or normal approval
*/
function isApprovedForAll(address owner, address operator)
public
view
override
returns (bool)
{
// Whitelist OpenSea proxy contract for easy trading.
OpenSeaProxyRegistry openSeaProxyRegistry = OpenSeaProxyRegistry(
openSeaProxyRegistryAddress
);
if (address(openSeaProxyRegistry.proxies(owner)) == operator) {
return true;
}
return ERC721Opt.isApprovedForAll(owner, operator);
}
/**
* @dev Override to change the baseURI used in tokenURI
*/
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
/**
* @dev Override to change tokenURI format
*/
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
return
bytes(baseURI).length > 0
? string(abi.encodePacked(_baseURI(), tokenId.toString(), '.json'))
: '';
}
/**
* @dev Mint of specific characterSheet type to address.
*/
function mint(address to, CharacterSheetPurchase[] calldata characterSheetPurchases) public {
if(!minters[msg.sender]) revert OnlyMintersCanMintCharacterSheets();
uint256 amountToMint;
uint256 tokenId = _nextTokenId;
for (uint16 i; i < characterSheetPurchases.length; i++) {
CharacterSheetPurchase memory p = characterSheetPurchases[i];
if(p.characterSheetTypeId >= characterSheetTypes.length) revert InvalidPurchaseCharacterSheetTypeId();
if(p.amount > characterSheetsLeft(characterSheetPurchases[i].characterSheetTypeId)) revert AllCharacterSheetsOfTypeMinted();
characterSheetTypes[p.characterSheetTypeId].minted += p.amount;
amountToMint += p.amount;
for (uint16 j; j < p.amount; j++) {
_tokenIdCharacterSheetTypes[tokenId++] = p.characterSheetTypeId;
}
}
if(amountToMint == 0) revert NoCharacterSheetMintAmountProvided();
_safeMint(to, amountToMint, '');
}
/**
* @dev Mint of specific poster type to address.
*/
function mintType(address to, uint16 characterSheetTypeId, uint16 amount) public {
if(!minters[msg.sender]) revert OnlyMintersCanMintCharacterSheets();
if(amount == 0) revert NoCharacterSheetMintAmountProvided();
uint256 tokenId = _nextTokenId;
if(characterSheetTypeId >= characterSheetTypes.length) revert InvalidPurchaseCharacterSheetTypeId();
if(amount > characterSheetsLeft(characterSheetTypeId)) revert AllCharacterSheetsOfTypeMinted();
characterSheetTypes[characterSheetTypeId].minted += amount;
for (uint16 i; i < amount; i++) {
_tokenIdCharacterSheetTypes[tokenId++] = characterSheetTypeId;
}
_safeMint(to, amount, '');
}
/**
* @dev Set the base uri for token metadata
*/
function setBaseURI(string memory _newBaseURI) external onlyOwner {
baseURI = _newBaseURI;
}
/**
* @dev Set minter status for addresses
*/
function setMinters(address[] calldata addresses, bool allowed) external onlyOwner {
for(uint256 i; i < addresses.length; i++) {
minters[addresses[i]] = allowed;
}
}
/**
* @dev Add new characterSheet
*/
function _addCharacterSheet(string memory name, uint16 maxCharacterSheets) internal {
CharacterSheetType memory cs;
cs.name = name;
cs.maxCharacterSheets = maxCharacterSheets;
characterSheetTypes.push(cs);
}
/**
* @dev Add new characterSheet
*/
function addCharacterSheet(string calldata name, uint16 maxCharacterSheets) external onlyOwner {
_addCharacterSheet(name, maxCharacterSheets);
}
/**
* @dev Update characterSheet names
*/
function updateCharacterSheetNames(uint16[] calldata characterSheetTypeIds, string[] calldata names) external onlyOwner {
if(characterSheetTypeIds.length != names.length) revert InvalidUpdateCharacterSheetLengthsDontMatch();
for (uint16 i; i < characterSheetTypeIds.length; i++) {
if(characterSheetTypeIds[i] >= characterSheetTypes.length) revert InvalidUpdateCharacterSheetTypeId();
characterSheetTypes[characterSheetTypeIds[i]].name = names[i];
}
}
/**
* @dev Update available characterSheets
*/
function updateMaxCharacterSheets(uint16[] calldata characterSheetTypeIds, uint16[] calldata maxCharacterSheets) external onlyOwner {
if(characterSheetTypeIds.length != maxCharacterSheets.length) revert InvalidUpdateCharacterSheetLengthsDontMatch();
for (uint16 i; i < characterSheetTypeIds.length; i++) {
if(characterSheetTypeIds[i] >= characterSheetTypes.length) revert InvalidUpdateCharacterSheetTypeId();
characterSheetTypes[characterSheetTypeIds[i]].maxCharacterSheets = maxCharacterSheets[i];
}
}
/**
* @dev Upate Rarities on chain for future staking
*/
function updateRarities(uint8 rarity, uint256[] calldata tokenIds) external onlyOwner {
if (rarity == 0) {
for(uint256 i; i < tokenIds.length; i++) {
if (tokenIds[i] >= _nextTokenId) continue;
delete characterSheetRarity[tokenIds[i]];
}
} else {
for(uint256 i; i < tokenIds.length; i++) {
if (tokenIds[i] >= _nextTokenId) continue;
characterSheetRarity[tokenIds[i]] = rarity;
}
}
}
/**
* @dev Force update all owners for better transfers
*/
function updateOwners(uint256 quantity) external onlyOwner {
_setOwnersExplicit(quantity);
}
}
// File contracts/ApeSquadPosterNFT.sol
pragma solidity ^0.8.4;
error PosterTypeQueryForNonexistentToken();
error OnlyMintersCanMintPosters();
error InvalidPurchasePosterTypeId();
error AllPostersOfTypeMinted();
error NoPosterMintAmountProvided();
error InvalidUpdatePosterLengthsDontMatch();
error InvalidUpdatePosterTypeId();
contract ApeSquadPosterNFT is Ownable, ERC721Opt, ERC721OptOwnersExplicit, ERC721OptBatchBurnable, ERC721OptBatchTransferable {
using Strings for uint256;
struct PosterPurchase {
uint16 posterTypeId;
uint16 amount;
}
struct PosterType {
string name;
uint16 maxPosters;
uint16 minted;
}
/* Base URI for token URIs */
string public baseURI;
/* OpenSea user account proxy */
address public openSeaProxyRegistryAddress;
/* Minter addressess */
mapping(address => bool) public minters;
PosterType[] public posterTypes;
/* mapping of each token id to poster type */
mapping(uint256 => uint16) _tokenIdPosterTypes;
/* mapping of each token id to rarity. 0 = common, 1 = rare, 2 = legendary */
mapping(uint256 => uint8) public posterRarity;
constructor(string memory name_, string memory symbol_, string memory _initialBaseURI, address _openSeaProxyRegistryAddress, address[] memory _minters) ERC721Opt(name_, symbol_) {
baseURI = _initialBaseURI;
openSeaProxyRegistryAddress = _openSeaProxyRegistryAddress;
for (uint256 i; i < _minters.length; i++) {
minters[_minters[i]] = true;
}
_addPoster("Season 1", 1250);
}
/**
* @dev Get posterType count
*/
function posterTypeCount() public view returns (uint256) {
return posterTypes.length;
}
/**
* @dev Get posters left for sale
*/
function postersLeft(uint16 posterTypeId) public view returns (uint256) {
return posterTypes[posterTypeId].maxPosters - posterTypes[posterTypeId].minted;
}
/**
* @dev Get the poster type for a specific tokenId
*/
function tokenPosterType(uint256 tokenId) public view returns (string memory) {
if (!_exists(tokenId)) revert PosterTypeQueryForNonexistentToken();
return posterTypes[_tokenIdPosterTypes[tokenId]].name;
}
/**
* @dev Override to if default approved for OS proxy accounts or normal approval
*/
function isApprovedForAll(address owner, address operator)
public
view
override
returns (bool)
{
// Whitelist OpenSea proxy contract for easy trading.
OpenSeaProxyRegistry openSeaProxyRegistry = OpenSeaProxyRegistry(
openSeaProxyRegistryAddress
);
if (address(openSeaProxyRegistry.proxies(owner)) == operator) {
return true;
}
return ERC721Opt.isApprovedForAll(owner, operator);
}
/**
* @dev Override to change the baseURI used in tokenURI
*/
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
/**
* @dev Override to change tokenURI format
*/
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
return
bytes(baseURI).length > 0
? string(abi.encodePacked(_baseURI(), tokenId.toString(), '.json'))
: '';
}
/**
* @dev Mint of specific poster type to address.
*/
function mint(address to, PosterPurchase[] calldata posterPurchases) public {
if(!minters[msg.sender]) revert OnlyMintersCanMintPosters();
uint256 amountToMint;
uint256 tokenId = _nextTokenId;
for (uint16 i; i < posterPurchases.length; i++) {
PosterPurchase memory p = posterPurchases[i];
if(p.posterTypeId >= posterTypes.length) revert InvalidPurchasePosterTypeId();
if(p.amount > postersLeft(posterPurchases[i].posterTypeId)) revert AllPostersOfTypeMinted();
posterTypes[p.posterTypeId].minted += p.amount;
amountToMint += p.amount;
for (uint16 j; j < p.amount; j++) {
_tokenIdPosterTypes[tokenId++] = p.posterTypeId;
}
}
if(amountToMint == 0) revert NoPosterMintAmountProvided();
_safeMint(to, amountToMint, '');
}
/**
* @dev Mint of specific poster type to address.
*/
function mintType(address to, uint16 posterTypeId, uint16 amount) public {
if(!minters[msg.sender]) revert OnlyMintersCanMintPosters();
if(amount == 0) revert NoPosterMintAmountProvided();
uint256 tokenId = _nextTokenId;
if(posterTypeId >= posterTypes.length) revert InvalidPurchasePosterTypeId();
if(amount > postersLeft(posterTypeId)) revert AllPostersOfTypeMinted();
posterTypes[posterTypeId].minted += amount;
for (uint16 i; i < amount; i++) {
_tokenIdPosterTypes[tokenId++] = posterTypeId;
}
_safeMint(to, amount, '');
}
/**
* @dev Set the base uri for token metadata
*/
function setBaseURI(string memory _newBaseURI) external onlyOwner {
baseURI = _newBaseURI;
}
/**
* @dev Set minter status for addresses
*/
function setMinters(address[] calldata addresses, bool allowed) external onlyOwner {
for(uint256 i; i < addresses.length; i++) {
minters[addresses[i]] = allowed;
}
}
/**
* @dev Add new poster
*/
function _addPoster(string memory name, uint16 maxPosters) internal {
PosterType memory p;
p.name = name;
p.maxPosters = maxPosters;
posterTypes.push(p);
}
/**
* @dev Add new poster
*/
function addPoster(string calldata name, uint16 maxPosters) external onlyOwner {
_addPoster(name, maxPosters);
}
/**
* @dev Update poster names
*/
function updatePosterNames(uint16[] calldata posterTypeIds, string[] calldata names) external onlyOwner {
if(posterTypeIds.length != names.length) revert InvalidUpdatePosterLengthsDontMatch();
for (uint16 i; i < posterTypeIds.length; i++) {
if(posterTypeIds[i] >= posterTypes.length) revert InvalidUpdatePosterTypeId();
posterTypes[posterTypeIds[i]].name = names[i];
}
}
/**
* @dev Update available posters
*/
function updateMaxPosters(uint16[] calldata posterTypeIds, uint16[] calldata maxPosters) external onlyOwner {
if(posterTypeIds.length != maxPosters.length) revert InvalidUpdatePosterLengthsDontMatch();
for (uint16 i; i < posterTypeIds.length; i++) {
if(posterTypeIds[i] >= posterTypes.length) revert InvalidUpdatePosterTypeId();
posterTypes[posterTypeIds[i]].maxPosters = maxPosters[i];
}
}
/**
* @dev Upate Rarities on chain for future staking
*/
function updateRarities(uint8 rarity, uint256[] calldata tokenIds) external onlyOwner {
if (rarity == 0) {
for(uint256 i; i < tokenIds.length; i++) {
if (tokenIds[i] >= _nextTokenId) continue;
delete posterRarity[tokenIds[i]];
}
} else {
for(uint256 i; i < tokenIds.length; i++) {
if (tokenIds[i] >= _nextTokenId) continue;
posterRarity[tokenIds[i]] = rarity;
}
}
}
/**
* @dev Force update all owners for better transfers
*/
function updateOwners(uint256 quantity) external onlyOwner {
_setOwnersExplicit(quantity);
}
}
// File contracts/ApeSquadMinter.sol
pragma solidity ^0.8.0;
contract ApeSquadMinter is Ownable {
/* Character Sheet NFT contract */
ApeSquadCharacterSheetNFT characterSheetNFTContract;
/* Poster NFT contract */
ApeSquadPosterNFT posterNFTContract;
/* Is Sale Active */
bool public saleIsActive;
/* silver cards reserved for marketing */
mapping(uint16 => uint16) public reservedCharacterSheets;
/* posters reserved for marketing */
uint16 public reservedSeason1Posters = 2;
/* Price for character sheets */
uint256 public characterSheetPrice = 0.08 ether;
/* NFT Contracts that can get free poster */
address[] public freeSeason1PosterNftContracts;
/* Mapping of claimed posters */
mapping(address => bool) public season1PosterClaimed;
constructor(
ApeSquadCharacterSheetNFT _characterSheetNFTContract,
ApeSquadPosterNFT _posterNFTContract,
address[] memory _freeSeason1PosterNftContracts
) {
characterSheetNFTContract = _characterSheetNFTContract;
posterNFTContract = _posterNFTContract;
for (uint16 i; i < characterSheetNFTContract.characterSheetTypeCount(); i++) {
reservedCharacterSheets[i] = 6;
}
freeSeason1PosterNftContracts = _freeSeason1PosterNftContracts;
}
function mint(ApeSquadCharacterSheetNFT.CharacterSheetPurchase[] calldata characterSheetPurchases, bool freeSeason1Poster) external payable {
require(msg.sender == tx.origin, 'Only EOA');
require(saleIsActive, 'Regular sale is not active');
uint256 totalAmount;
for (uint16 i; i < characterSheetPurchases.length; i++) {
require(
characterSheetPurchases[i].amount <= characterSheetNFTContract.characterSheetsLeft(characterSheetPurchases[i].characterSheetTypeId) - reservedCharacterSheets[characterSheetPurchases[i].characterSheetTypeId],
'Sold Out'
);
totalAmount += characterSheetPurchases[i].amount;
}
if (freeSeason1Poster) {
require(!season1PosterClaimed[msg.sender], 'Season 1 Poster already claimed');
bool valid = totalAmount > 0 || characterSheetNFTContract.balanceOf(msg.sender) > 0;
if (totalAmount == 0 && characterSheetNFTContract.balanceOf(msg.sender) == 0) {
for (uint256 i; i < freeSeason1PosterNftContracts.length; i++) {
valid = valid || IERC721(freeSeason1PosterNftContracts[i]).balanceOf(msg.sender) > 0;
if (valid) break;
}
}
require(valid, 'Season 1 Poster requirements not met');
season1PosterClaimed[msg.sender] = true;
}
require(
msg.value >= (totalAmount * characterSheetPrice),
'Ether value sent is not correct'
);
if(totalAmount > 0) {
characterSheetNFTContract.mint(msg.sender, characterSheetPurchases);
}
if (freeSeason1Poster) {
posterNFTContract.mintType(msg.sender, 0, 1);
}
}
function flipSaleState() external onlyOwner {
saleIsActive = !saleIsActive;
}
function setReserves(uint16[] calldata _characterSheetTypeIds, uint16[] calldata _characterSheetAmounts, uint16 _season1PosterAmount) external onlyOwner {
require(
_characterSheetTypeIds.length == _characterSheetAmounts.length,
'Character Sheet Type Ids length should match Amounts length'
);
for (uint16 i; i < _characterSheetTypeIds.length; i++) {
require(
_characterSheetTypeIds[i] < characterSheetNFTContract.characterSheetTypeCount(),
'Character Sheet Type Id should be with in range'
);
reservedCharacterSheets[_characterSheetTypeIds[i]] = _characterSheetAmounts[i];
}
reservedSeason1Posters = _season1PosterAmount;
}
function setFreeSeason1PosterNftContracts(address[] calldata _freeSeason1PosterNftContracts) external onlyOwner {
freeSeason1PosterNftContracts = _freeSeason1PosterNftContracts;
}
function setPrice(uint256 _characterSheetPrice) external onlyOwner {
characterSheetPrice = _characterSheetPrice;
}
function reserveMint(uint16[] calldata _characterSheetTypeIds, uint16[] calldata _characterSheetAmounts, uint16 season1Posters, address[] calldata to) external onlyOwner {
require(
_characterSheetTypeIds.length == _characterSheetAmounts.length,
'Character Sheet Type Ids length should match Amounts length'
);
for (uint16 i; i < _characterSheetTypeIds.length; i++) {
require(
(_characterSheetAmounts[i] * to.length) <= reservedCharacterSheets[_characterSheetTypeIds[i]],
'Not enough reserve left for team'
);
}
require(
(season1Posters * to.length) <= reservedSeason1Posters,
'Not enough reserve left for team'
);
for (uint16 i = 0; i < to.length; i++) {
for (uint16 j; j < _characterSheetTypeIds.length; j++) {
characterSheetNFTContract.mintType(to[i], _characterSheetTypeIds[j], _characterSheetAmounts[j]);
}
if (season1Posters > 0 ) {
posterNFTContract.mintType(to[i], 0, season1Posters);
}
}
for (uint16 i; i < _characterSheetTypeIds.length; i++) {
reservedCharacterSheets[_characterSheetTypeIds[i]] -= uint16(_characterSheetAmounts[i] * to.length);
}
reservedSeason1Posters -= uint16(season1Posters * to.length);
}
function withdraw() external onlyOwner {
uint256 balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract ApeSquadCharacterSheetNFT","name":"_characterSheetNFTContract","type":"address"},{"internalType":"contract ApeSquadPosterNFT","name":"_posterNFTContract","type":"address"},{"internalType":"address[]","name":"_freeSeason1PosterNftContracts","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"characterSheetPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"freeSeason1PosterNftContracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"characterSheetTypeId","type":"uint16"},{"internalType":"uint16","name":"amount","type":"uint16"}],"internalType":"struct ApeSquadCharacterSheetNFT.CharacterSheetPurchase[]","name":"characterSheetPurchases","type":"tuple[]"},{"internalType":"bool","name":"freeSeason1Poster","type":"bool"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_characterSheetTypeIds","type":"uint16[]"},{"internalType":"uint16[]","name":"_characterSheetAmounts","type":"uint16[]"},{"internalType":"uint16","name":"season1Posters","type":"uint16"},{"internalType":"address[]","name":"to","type":"address[]"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"reservedCharacterSheets","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedSeason1Posters","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"season1PosterClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_freeSeason1PosterNftContracts","type":"address[]"}],"name":"setFreeSeason1PosterNftContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_characterSheetPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_characterSheetTypeIds","type":"uint16[]"},{"internalType":"uint16[]","name":"_characterSheetAmounts","type":"uint16[]"},{"internalType":"uint16","name":"_season1PosterAmount","type":"uint16"}],"name":"setReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526004805461ffff1916600217905567011c37937e0800006005553480156200002b57600080fd5b5060405162001dca38038062001dca8339810160408190526200004e9162000278565b620000593362000166565b600180546001600160a01b038086166001600160a01b031992831617909255600280549285169290911691909117905560005b600160009054906101000a90046001600160a01b03166001600160a01b031663416b136c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000106919062000378565b8161ffff161015620001465761ffff81166000908152600360205260409020805461ffff19166006179055806200013d8162000392565b9150506200008c565b5080516200015c906006906020840190620001b6565b50505050620003c3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280548282559060005260206000209081019282156200020e579160200282015b828111156200020e57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620001d7565b506200021c92915062000220565b5090565b5b808211156200021c576000815560010162000221565b6001600160a01b03811681146200024d57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b8051620002738162000237565b919050565b6000806000606084860312156200028e57600080fd5b83516200029b8162000237565b80935050602080850151620002b08162000237565b60408601519093506001600160401b0380821115620002ce57600080fd5b818701915087601f830112620002e357600080fd5b815181811115620002f857620002f862000250565b8060051b604051601f19603f8301168101818110858211171562000320576200032062000250565b60405291825284820192508381018501918a8311156200033f57600080fd5b938501935b828510156200036857620003588562000266565b8452938501939285019262000344565b8096505050505050509250925092565b6000602082840312156200038b57600080fd5b5051919050565b600061ffff80831681811415620003b957634e487b7160e01b600052601160045260246000fd5b6001019392505050565b6119f780620003d36000396000f3fe6080604052600436106100f35760003560e01c80638da5cb5b1161008a578063be244e1a11610059578063be244e1a1461028b578063eaca5262146102b9578063eb8d2444146102ea578063f2fde38b1461030b57600080fd5b80638da5cb5b1461020957806391b7f5ed14610227578063a6696d0014610247578063af17cf111461026b57600080fd5b80636ffda700116100c65780636ffda7001461017c578063715018a61461019c57806375bbe389146101b15780637d115d98146101e957600080fd5b8063077a70f6146100f857806334918dfd1461010d5780633ccfd60b146101225780635951467d14610137575b600080fd5b61010b61010636600461159c565b61032b565b005b34801561011957600080fd5b5061010b610986565b34801561012e57600080fd5b5061010b610a1c565b34801561014357600080fd5b50610167610152366004611627565b60076020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561018857600080fd5b5061010b6101973660046116ba565b610aa9565b3480156101a857600080fd5b5061010b610fd7565b3480156101bd57600080fd5b506101d16101cc366004611768565b61103d565b6040516001600160a01b039091168152602001610173565b3480156101f557600080fd5b5061010b610204366004611781565b611067565b34801561021557600080fd5b506000546001600160a01b03166101d1565b34801561023357600080fd5b5061010b610242366004611768565b61130e565b34801561025357600080fd5b5061025d60055481565b604051908152602001610173565b34801561027757600080fd5b5061010b610286366004611802565b61136d565b34801561029757600080fd5b506004546102a69061ffff1681565b60405161ffff9091168152602001610173565b3480156102c557600080fd5b506102a66102d4366004611844565b60036020526000908152604090205461ffff1681565b3480156102f657600080fd5b5060025461016790600160a01b900460ff1681565b34801561031757600080fd5b5061010b610326366004611627565b6113d8565b33321461037f5760405162461bcd60e51b815260206004820152600860248201527f4f6e6c7920454f4100000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600254600160a01b900460ff166103d85760405162461bcd60e51b815260206004820152601a60248201527f526567756c61722073616c65206973206e6f74206163746976650000000000006044820152606401610376565b6000805b61ffff81168411156105b0576003600086868461ffff168181106104025761040261185f565b6104189260206040909202019081019150611844565b61ffff9081168252602082019290925260400160002054600154908216916001600160a01b0390911690639a97545b9088908890861681811061045d5761045d61185f565b6104739260206040909202019081019150611844565b6040516001600160e01b031960e084901b16815261ffff9091166004820152602401602060405180830381865afa1580156104b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d69190611875565b6104e091906118a4565b85858361ffff168181106104f6576104f661185f565b905060400201602001602081019061050e9190611844565b61ffff1611156105605760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610376565b84848261ffff168181106105765761057661185f565b905060400201602001602081019061058e9190611844565b61059c9061ffff16836118bb565b9150806105a8816118d3565b9150506103dc565b508115610845573360009081526007602052604090205460ff16156106175760405162461bcd60e51b815260206004820152601f60248201527f536561736f6e203120506f7374657220616c726561647920636c61696d6564006044820152606401610376565b60008082118061069157506001546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561066b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068f9190611875565b115b90508115801561070a57506001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156106e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107089190611875565b155b156107d05760005b6006548110156107ce5781806107af57506000600682815481106107385761073861185f565b6000918252602090912001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad9190611875565b115b915081156107bc576107ce565b806107c6816118f5565b915050610712565b505b806108295760405162461bcd60e51b8152602060048201526024808201527f536561736f6e203120506f7374657220726571756972656d656e7473206e6f74604482015263081b595d60e21b6064820152608401610376565b50336000908152600760205260409020805460ff191660011790555b6005546108529082611910565b3410156108a15760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610376565b801561090e5760015460405163c5bdcb9f60e01b81526001600160a01b039091169063c5bdcb9f906108db9033908890889060040161192f565b600060405180830381600087803b1580156108f557600080fd5b505af1158015610909573d6000803e3d6000fd5b505050505b811561098057600254604051632ef7c96760e01b815233600482015260006024820152600160448201526001600160a01b0390911690632ef7c96790606401600060405180830381600087803b15801561096757600080fd5b505af115801561097b573d6000803e3d6000fd5b505050505b50505050565b6000546001600160a01b031633146109e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b6000546001600160a01b03163314610a765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b6040514790339082156108fc029083906000818181858888f19350505050158015610aa5573d6000803e3d6000fd5b5050565b6000546001600160a01b03163314610b035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b858414610b785760405162461bcd60e51b815260206004820152603b60248201527f436861726163746572205368656574205479706520496473206c656e6774682060448201527f73686f756c64206d6174636820416d6f756e7473206c656e67746800000000006064820152608401610376565b60005b61ffff8116871115610c6a576003600089898461ffff16818110610ba157610ba161185f565b9050602002016020810190610bb69190611844565b61ffff90811682526020820192909252604001600020548116908390889088908516818110610be757610be761185f565b9050602002016020810190610bfc9190611844565b61ffff16610c0a9190611910565b1115610c585760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d6044820152606401610376565b80610c62816118d3565b915050610b7b565b5060045461ffff90811690610c829083908616611910565b1115610cd05760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d6044820152606401610376565b60005b61ffff8116821115610ec15760005b61ffff8116881115610dfd576001546001600160a01b0316632ef7c967858561ffff8616818110610d1557610d1561185f565b9050602002016020810190610d2a9190611627565b8b8b8561ffff16818110610d4057610d4061185f565b9050602002016020810190610d559190611844565b8a8a8661ffff16818110610d6b57610d6b61185f565b9050602002016020810190610d809190611844565b6040516001600160e01b031960e086901b1681526001600160a01b03909316600484015261ffff9182166024840152166044820152606401600060405180830381600087803b158015610dd257600080fd5b505af1158015610de6573d6000803e3d6000fd5b505050508080610df5906118d3565b915050610ce2565b5061ffff841615610eaf576002546001600160a01b0316632ef7c967848461ffff8516818110610e2f57610e2f61185f565b9050602002016020810190610e449190611627565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526000602482015261ffff87166044820152606401600060405180830381600087803b158015610e9657600080fd5b505af1158015610eaa573d6000803e3d6000fd5b505050505b80610eb9816118d3565b915050610cd3565b5060005b61ffff8116871115610f8f5781868661ffff8416818110610ee857610ee861185f565b9050602002016020810190610efd9190611844565b61ffff16610f0b9190611910565b600360008a8a8561ffff16818110610f2557610f2561185f565b9050602002016020810190610f3a9190611844565b61ffff90811682526020820192909252604001600090812080549092610f629185911661199e565b92506101000a81548161ffff021916908361ffff1602179055508080610f87906118d3565b915050610ec5565b50610f9e8161ffff8516611910565b60048054600090610fb490849061ffff1661199e565b92506101000a81548161ffff021916908361ffff16021790555050505050505050565b6000546001600160a01b031633146110315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b61103b60006114ba565b565b6006818154811061104d57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146110c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b8382146111365760405162461bcd60e51b815260206004820152603b60248201527f436861726163746572205368656574205479706520496473206c656e6774682060448201527f73686f756c64206d6174636820416d6f756e7473206c656e67746800000000006064820152608401610376565b60005b61ffff81168511156112f157600160009054906101000a90046001600160a01b03166001600160a01b031663416b136c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc9190611875565b86868361ffff168181106111d2576111d261185f565b90506020020160208101906111e79190611844565b61ffff161061125e5760405162461bcd60e51b815260206004820152602f60248201527f43686172616374657220536865657420547970652049642073686f756c64206260448201527f65207769746820696e2072616e676500000000000000000000000000000000006064820152608401610376565b83838261ffff168181106112745761127461185f565b90506020020160208101906112899190611844565b6003600088888561ffff168181106112a3576112a361185f565b90506020020160208101906112b89190611844565b61ffff90811682526020820192909252604001600020805461ffff191692909116919091179055806112e9816118d3565b915050611139565b506004805461ffff191661ffff9290921691909117905550505050565b6000546001600160a01b031633146113685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b600555565b6000546001600160a01b031633146113c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b6113d360068383611517565b505050565b6000546001600160a01b031633146114325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b6001600160a01b0381166114ae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610376565b6114b7816114ba565b50565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215611577579160200282015b8281111561157757815473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03843516178255602090920191600190910190611537565b50611583929150611587565b5090565b5b808211156115835760008155600101611588565b6000806000604084860312156115b157600080fd5b833567ffffffffffffffff808211156115c957600080fd5b818601915086601f8301126115dd57600080fd5b8135818111156115ec57600080fd5b8760208260061b850101111561160157600080fd5b60209283019550935050840135801515811461161c57600080fd5b809150509250925092565b60006020828403121561163957600080fd5b81356001600160a01b038116811461165057600080fd5b9392505050565b60008083601f84011261166957600080fd5b50813567ffffffffffffffff81111561168157600080fd5b6020830191508360208260051b850101111561169c57600080fd5b9250929050565b803561ffff811681146116b557600080fd5b919050565b60008060008060008060006080888a0312156116d557600080fd5b873567ffffffffffffffff808211156116ed57600080fd5b6116f98b838c01611657565b909950975060208a013591508082111561171257600080fd5b61171e8b838c01611657565b909750955085915061173260408b016116a3565b945060608a013591508082111561174857600080fd5b506117558a828b01611657565b989b979a50959850939692959293505050565b60006020828403121561177a57600080fd5b5035919050565b60008060008060006060868803121561179957600080fd5b853567ffffffffffffffff808211156117b157600080fd5b6117bd89838a01611657565b909750955060208801359150808211156117d657600080fd5b506117e388828901611657565b90945092506117f69050604087016116a3565b90509295509295909350565b6000806020838503121561181557600080fd5b823567ffffffffffffffff81111561182c57600080fd5b61183885828601611657565b90969095509350505050565b60006020828403121561185657600080fd5b611650826116a3565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561188757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156118b6576118b661188e565b500390565b600082198211156118ce576118ce61188e565b500190565b600061ffff808316818114156118eb576118eb61188e565b6001019392505050565b60006000198214156119095761190961188e565b5060010190565b600081600019048311821515161561192a5761192a61188e565b500290565b6001600160a01b03841681526040602080830182905282820184905260009190859060608501845b878110156119915761ffff8061196c866116a3565b1683528061197b8587016116a3565b1683850152509284019290840190600101611957565b5098975050505050505050565b600061ffff838116908316818110156119b9576119b961188e565b03939250505056fea2646970667358221220e6037e0886a4af647922d44a0162624cd6ba94a3441bf78aa573de5bba877b7964736f6c634300080b003300000000000000000000000008fed8e459beb705320533b684b750100482ced00000000000000000000000002937842aa8179690e67b417ade5d117a58d704000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000076e51bc8fa0beebcf3e45de408fa43c9dc5ffb27
Deployed Bytecode
0x6080604052600436106100f35760003560e01c80638da5cb5b1161008a578063be244e1a11610059578063be244e1a1461028b578063eaca5262146102b9578063eb8d2444146102ea578063f2fde38b1461030b57600080fd5b80638da5cb5b1461020957806391b7f5ed14610227578063a6696d0014610247578063af17cf111461026b57600080fd5b80636ffda700116100c65780636ffda7001461017c578063715018a61461019c57806375bbe389146101b15780637d115d98146101e957600080fd5b8063077a70f6146100f857806334918dfd1461010d5780633ccfd60b146101225780635951467d14610137575b600080fd5b61010b61010636600461159c565b61032b565b005b34801561011957600080fd5b5061010b610986565b34801561012e57600080fd5b5061010b610a1c565b34801561014357600080fd5b50610167610152366004611627565b60076020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561018857600080fd5b5061010b6101973660046116ba565b610aa9565b3480156101a857600080fd5b5061010b610fd7565b3480156101bd57600080fd5b506101d16101cc366004611768565b61103d565b6040516001600160a01b039091168152602001610173565b3480156101f557600080fd5b5061010b610204366004611781565b611067565b34801561021557600080fd5b506000546001600160a01b03166101d1565b34801561023357600080fd5b5061010b610242366004611768565b61130e565b34801561025357600080fd5b5061025d60055481565b604051908152602001610173565b34801561027757600080fd5b5061010b610286366004611802565b61136d565b34801561029757600080fd5b506004546102a69061ffff1681565b60405161ffff9091168152602001610173565b3480156102c557600080fd5b506102a66102d4366004611844565b60036020526000908152604090205461ffff1681565b3480156102f657600080fd5b5060025461016790600160a01b900460ff1681565b34801561031757600080fd5b5061010b610326366004611627565b6113d8565b33321461037f5760405162461bcd60e51b815260206004820152600860248201527f4f6e6c7920454f4100000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600254600160a01b900460ff166103d85760405162461bcd60e51b815260206004820152601a60248201527f526567756c61722073616c65206973206e6f74206163746976650000000000006044820152606401610376565b6000805b61ffff81168411156105b0576003600086868461ffff168181106104025761040261185f565b6104189260206040909202019081019150611844565b61ffff9081168252602082019290925260400160002054600154908216916001600160a01b0390911690639a97545b9088908890861681811061045d5761045d61185f565b6104739260206040909202019081019150611844565b6040516001600160e01b031960e084901b16815261ffff9091166004820152602401602060405180830381865afa1580156104b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d69190611875565b6104e091906118a4565b85858361ffff168181106104f6576104f661185f565b905060400201602001602081019061050e9190611844565b61ffff1611156105605760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610376565b84848261ffff168181106105765761057661185f565b905060400201602001602081019061058e9190611844565b61059c9061ffff16836118bb565b9150806105a8816118d3565b9150506103dc565b508115610845573360009081526007602052604090205460ff16156106175760405162461bcd60e51b815260206004820152601f60248201527f536561736f6e203120506f7374657220616c726561647920636c61696d6564006044820152606401610376565b60008082118061069157506001546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561066b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068f9190611875565b115b90508115801561070a57506001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156106e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107089190611875565b155b156107d05760005b6006548110156107ce5781806107af57506000600682815481106107385761073861185f565b6000918252602090912001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad9190611875565b115b915081156107bc576107ce565b806107c6816118f5565b915050610712565b505b806108295760405162461bcd60e51b8152602060048201526024808201527f536561736f6e203120506f7374657220726571756972656d656e7473206e6f74604482015263081b595d60e21b6064820152608401610376565b50336000908152600760205260409020805460ff191660011790555b6005546108529082611910565b3410156108a15760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610376565b801561090e5760015460405163c5bdcb9f60e01b81526001600160a01b039091169063c5bdcb9f906108db9033908890889060040161192f565b600060405180830381600087803b1580156108f557600080fd5b505af1158015610909573d6000803e3d6000fd5b505050505b811561098057600254604051632ef7c96760e01b815233600482015260006024820152600160448201526001600160a01b0390911690632ef7c96790606401600060405180830381600087803b15801561096757600080fd5b505af115801561097b573d6000803e3d6000fd5b505050505b50505050565b6000546001600160a01b031633146109e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b6000546001600160a01b03163314610a765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b6040514790339082156108fc029083906000818181858888f19350505050158015610aa5573d6000803e3d6000fd5b5050565b6000546001600160a01b03163314610b035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b858414610b785760405162461bcd60e51b815260206004820152603b60248201527f436861726163746572205368656574205479706520496473206c656e6774682060448201527f73686f756c64206d6174636820416d6f756e7473206c656e67746800000000006064820152608401610376565b60005b61ffff8116871115610c6a576003600089898461ffff16818110610ba157610ba161185f565b9050602002016020810190610bb69190611844565b61ffff90811682526020820192909252604001600020548116908390889088908516818110610be757610be761185f565b9050602002016020810190610bfc9190611844565b61ffff16610c0a9190611910565b1115610c585760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d6044820152606401610376565b80610c62816118d3565b915050610b7b565b5060045461ffff90811690610c829083908616611910565b1115610cd05760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d6044820152606401610376565b60005b61ffff8116821115610ec15760005b61ffff8116881115610dfd576001546001600160a01b0316632ef7c967858561ffff8616818110610d1557610d1561185f565b9050602002016020810190610d2a9190611627565b8b8b8561ffff16818110610d4057610d4061185f565b9050602002016020810190610d559190611844565b8a8a8661ffff16818110610d6b57610d6b61185f565b9050602002016020810190610d809190611844565b6040516001600160e01b031960e086901b1681526001600160a01b03909316600484015261ffff9182166024840152166044820152606401600060405180830381600087803b158015610dd257600080fd5b505af1158015610de6573d6000803e3d6000fd5b505050508080610df5906118d3565b915050610ce2565b5061ffff841615610eaf576002546001600160a01b0316632ef7c967848461ffff8516818110610e2f57610e2f61185f565b9050602002016020810190610e449190611627565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526000602482015261ffff87166044820152606401600060405180830381600087803b158015610e9657600080fd5b505af1158015610eaa573d6000803e3d6000fd5b505050505b80610eb9816118d3565b915050610cd3565b5060005b61ffff8116871115610f8f5781868661ffff8416818110610ee857610ee861185f565b9050602002016020810190610efd9190611844565b61ffff16610f0b9190611910565b600360008a8a8561ffff16818110610f2557610f2561185f565b9050602002016020810190610f3a9190611844565b61ffff90811682526020820192909252604001600090812080549092610f629185911661199e565b92506101000a81548161ffff021916908361ffff1602179055508080610f87906118d3565b915050610ec5565b50610f9e8161ffff8516611910565b60048054600090610fb490849061ffff1661199e565b92506101000a81548161ffff021916908361ffff16021790555050505050505050565b6000546001600160a01b031633146110315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b61103b60006114ba565b565b6006818154811061104d57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146110c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b8382146111365760405162461bcd60e51b815260206004820152603b60248201527f436861726163746572205368656574205479706520496473206c656e6774682060448201527f73686f756c64206d6174636820416d6f756e7473206c656e67746800000000006064820152608401610376565b60005b61ffff81168511156112f157600160009054906101000a90046001600160a01b03166001600160a01b031663416b136c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc9190611875565b86868361ffff168181106111d2576111d261185f565b90506020020160208101906111e79190611844565b61ffff161061125e5760405162461bcd60e51b815260206004820152602f60248201527f43686172616374657220536865657420547970652049642073686f756c64206260448201527f65207769746820696e2072616e676500000000000000000000000000000000006064820152608401610376565b83838261ffff168181106112745761127461185f565b90506020020160208101906112899190611844565b6003600088888561ffff168181106112a3576112a361185f565b90506020020160208101906112b89190611844565b61ffff90811682526020820192909252604001600020805461ffff191692909116919091179055806112e9816118d3565b915050611139565b506004805461ffff191661ffff9290921691909117905550505050565b6000546001600160a01b031633146113685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b600555565b6000546001600160a01b031633146113c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b6113d360068383611517565b505050565b6000546001600160a01b031633146114325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610376565b6001600160a01b0381166114ae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610376565b6114b7816114ba565b50565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215611577579160200282015b8281111561157757815473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03843516178255602090920191600190910190611537565b50611583929150611587565b5090565b5b808211156115835760008155600101611588565b6000806000604084860312156115b157600080fd5b833567ffffffffffffffff808211156115c957600080fd5b818601915086601f8301126115dd57600080fd5b8135818111156115ec57600080fd5b8760208260061b850101111561160157600080fd5b60209283019550935050840135801515811461161c57600080fd5b809150509250925092565b60006020828403121561163957600080fd5b81356001600160a01b038116811461165057600080fd5b9392505050565b60008083601f84011261166957600080fd5b50813567ffffffffffffffff81111561168157600080fd5b6020830191508360208260051b850101111561169c57600080fd5b9250929050565b803561ffff811681146116b557600080fd5b919050565b60008060008060008060006080888a0312156116d557600080fd5b873567ffffffffffffffff808211156116ed57600080fd5b6116f98b838c01611657565b909950975060208a013591508082111561171257600080fd5b61171e8b838c01611657565b909750955085915061173260408b016116a3565b945060608a013591508082111561174857600080fd5b506117558a828b01611657565b989b979a50959850939692959293505050565b60006020828403121561177a57600080fd5b5035919050565b60008060008060006060868803121561179957600080fd5b853567ffffffffffffffff808211156117b157600080fd5b6117bd89838a01611657565b909750955060208801359150808211156117d657600080fd5b506117e388828901611657565b90945092506117f69050604087016116a3565b90509295509295909350565b6000806020838503121561181557600080fd5b823567ffffffffffffffff81111561182c57600080fd5b61183885828601611657565b90969095509350505050565b60006020828403121561185657600080fd5b611650826116a3565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561188757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156118b6576118b661188e565b500390565b600082198211156118ce576118ce61188e565b500190565b600061ffff808316818114156118eb576118eb61188e565b6001019392505050565b60006000198214156119095761190961188e565b5060010190565b600081600019048311821515161561192a5761192a61188e565b500290565b6001600160a01b03841681526040602080830182905282820184905260009190859060608501845b878110156119915761ffff8061196c866116a3565b1683528061197b8587016116a3565b1683850152509284019290840190600101611957565b5098975050505050505050565b600061ffff838116908316818110156119b9576119b961188e565b03939250505056fea2646970667358221220e6037e0886a4af647922d44a0162624cd6ba94a3441bf78aa573de5bba877b7964736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000008fed8e459beb705320533b684b750100482ced00000000000000000000000002937842aa8179690e67b417ade5d117a58d704000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000076e51bc8fa0beebcf3e45de408fa43c9dc5ffb27
-----Decoded View---------------
Arg [0] : _characterSheetNFTContract (address): 0x08FED8E459BeB705320533B684b750100482Ced0
Arg [1] : _posterNFTContract (address): 0x2937842Aa8179690e67B417adE5D117a58D70400
Arg [2] : _freeSeason1PosterNftContracts (address[]): 0x76e51bC8fA0BEEbCF3E45De408Fa43c9dC5FfB27
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000008fed8e459beb705320533b684b750100482ced0
Arg [1] : 0000000000000000000000002937842aa8179690e67b417ade5d117a58d70400
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 00000000000000000000000076e51bc8fa0beebcf3e45de408fa43c9dc5ffb27
Deployed Bytecode Sourcemap
61578:5981:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62893:1822;;;;;;:::i;:::-;;:::i;:::-;;64723:91;;;;;;;;;;;;;:::i;67411:145::-;;;;;;;;;;;;;:::i;62290:52::-;;;;;;;;;;-1:-1:-1;62290:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1322:14:1;;1315:22;1297:41;;1285:2;1270:18;62290:52:0;;;;;;;;65945:1454;;;;;;;;;;-1:-1:-1;65945:1454:0;;;;;:::i;:::-;;:::i;2713:103::-;;;;;;;;;;;;;:::i;62197:46::-;;;;;;;;;;-1:-1:-1;62197:46:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3394:55:1;;;3376:74;;3364:2;3349:18;62197:46:0;3230:226:1;64822:778:0;;;;;;;;;;-1:-1:-1;64822:778:0;;;;;:::i;:::-;;:::i;2062:87::-;;;;;;;;;;-1:-1:-1;2108:7:0;2135:6;-1:-1:-1;;;;;2135:6:0;2062:87;;65809:128;;;;;;;;;;-1:-1:-1;65809:128:0;;;;;:::i;:::-;;:::i;62091:47::-;;;;;;;;;;;;;;;;;;;4453:25:1;;;4441:2;4426:18;62091:47:0;4307:177:1;65608:193:0;;;;;;;;;;-1:-1:-1;65608:193:0;;;;;:::i;:::-;;:::i;62004:40::-;;;;;;;;;;-1:-1:-1;62004:40:0;;;;;;;;;;;5104:6:1;5092:19;;;5074:38;;5062:2;5047:18;62004:40:0;4930:188:1;61899:56:0;;;;;;;;;;-1:-1:-1;61899:56:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;61819:24;;;;;;;;;;-1:-1:-1;61819:24:0;;;;-1:-1:-1;;;61819:24:0;;;;;;2971:201;;;;;;;;;;-1:-1:-1;2971:201:0;;;;;:::i;:::-;;:::i;62893:1822::-;63052:10;63066:9;63052:23;63044:44;;;;-1:-1:-1;;;63044:44:0;;5514:2:1;63044:44:0;;;5496:21:1;5553:1;5533:18;;;5526:29;5591:10;5571:18;;;5564:38;5619:18;;63044:44:0;;;;;;;;;63107:12;;-1:-1:-1;;;63107:12:0;;;;63099:51;;;;-1:-1:-1;;;63099:51:0;;5850:2:1;63099:51:0;;;5832:21:1;5889:2;5869:18;;;5862:30;5928:28;5908:18;;;5901:56;5974:18;;63099:51:0;5648:350:1;63099:51:0;63163:19;63200:8;63195:422;63210:34;;;;-1:-1:-1;63195:422:0;;;63426:23;:72;63450:23;;63474:1;63450:26;;;;;;;;;:::i;:::-;:47;;;:26;;;;;:47;;;;-1:-1:-1;63450:47:0;:::i;:::-;63426:72;;;;;;;;;;;;;;;-1:-1:-1;63426:72:0;;;63329:25;63426:72;;;;-1:-1:-1;;;;;63329:25:0;;;;:45;;63375:23;;;;:26;;;;;;;;;:::i;:::-;:47;;;:26;;;;;:47;;;;-1:-1:-1;63375:47:0;:::i;:::-;63329:94;;-1:-1:-1;;;;;;63329:94:0;;;;;;;5104:6:1;5092:19;;;63329:94:0;;;5074:38:1;5047:18;;63329:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:169;;;;:::i;:::-;63292:23;;63316:1;63292:26;;;;;;;;;:::i;:::-;;;;;;:33;;;;;;;;;;:::i;:::-;:206;;;;63266:276;;;;-1:-1:-1;;;63266:276:0;;6788:2:1;63266:276:0;;;6770:21:1;6827:1;6807:18;;;6800:29;6865:10;6845:18;;;6838:38;6893:18;;63266:276:0;6586:331:1;63266:276:0;63572:23;;63596:1;63572:26;;;;;;;;;:::i;:::-;;;;;;:33;;;;;;;;;;:::i;:::-;63557:48;;;;;;:::i;:::-;;-1:-1:-1;63246:3:0;;;;:::i;:::-;;;;63195:422;;;;63633:17;63629:707;;;63697:10;63676:32;;;;:20;:32;;;;;;;;63675:33;63667:77;;;;-1:-1:-1;;;63667:77:0;;7459:2:1;63667:77:0;;;7441:21:1;7498:2;7478:18;;;7471:30;7537:33;7517:18;;;7510:61;7588:18;;63667:77:0;7257:355:1;63667:77:0;63761:10;63788:1;63774:11;:15;:70;;;-1:-1:-1;63793:25:0;;:47;;-1:-1:-1;;;63793:47:0;;63829:10;63793:47;;;3376:74:1;63843:1:0;;-1:-1:-1;;;;;63793:25:0;;:35;;3349:18:1;;63793:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;63774:70;63761:83;-1:-1:-1;63865:16:0;;:72;;;;-1:-1:-1;63885:25:0;;:47;;-1:-1:-1;;;63885:47:0;;63921:10;63885:47;;;3376:74:1;-1:-1:-1;;;;;63885:25:0;;;;:35;;3349:18:1;;63885:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:52;63865:72;63861:339;;;63963:9;63958:227;63978:29;:36;63974:40;;63958:227;;;64051:5;:76;;;;64126:1;64068:29;64098:1;64068:32;;;;;;;;:::i;:::-;;;;;;;;;;;64060:63;;-1:-1:-1;;;64060:63:0;;64112:10;64060:63;;;3376:74:1;-1:-1:-1;;;;;64068:32:0;;;;64060:51;;3349:18:1;;64060:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:67;64051:76;64043:84;;64153:5;64149:16;;;64160:5;;64149:16;64016:3;;;;:::i;:::-;;;;63958:227;;;;63861:339;64224:5;64216:54;;;;-1:-1:-1;;;64216:54:0;;7959:2:1;64216:54:0;;;7941:21:1;7998:2;7978:18;;;7971:30;8037:34;8017:18;;;8010:62;-1:-1:-1;;;8088:18:1;;;8081:34;8132:19;;64216:54:0;7757:400:1;64216:54:0;-1:-1:-1;64306:10:0;64285:32;;;;:20;:32;;;;;:39;;-1:-1:-1;;64285:39:0;64320:4;64285:39;;;63629:707;64398:19;;64384:33;;:11;:33;:::i;:::-;64370:9;:48;;64348:129;;;;-1:-1:-1;;;64348:129:0;;8537:2:1;64348:129:0;;;8519:21:1;8576:2;8556:18;;;8549:30;8615:33;8595:18;;;8588:61;8666:18;;64348:129:0;8335:355:1;64348:129:0;64493:15;;64490:114;;64525:25;;:67;;-1:-1:-1;;;64525:67:0;;-1:-1:-1;;;;;64525:25:0;;;;:30;;:67;;64556:10;;64568:23;;;;64525:67;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64490:114;64618:17;64614:94;;;64652:17;;:44;;-1:-1:-1;;;64652:44:0;;64679:10;64652:44;;;9864:74:1;64652:17:0;9979:18:1;;;9972:43;64652:17:0;10031:18:1;;;10024:43;-1:-1:-1;;;;;64652:17:0;;;;:26;;9837:18:1;;64652:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64614:94;63033:1682;62893:1822;;;:::o;64723:91::-;2108:7;2135:6;-1:-1:-1;;;;;2135:6:0;860:10;2282:23;2274:68;;;;-1:-1:-1;;;2274:68:0;;10280:2:1;2274:68:0;;;10262:21:1;;;10299:18;;;10292:30;10358:34;10338:18;;;10331:62;10410:18;;2274:68:0;10078:356:1;2274:68:0;64794:12:::1;::::0;;64778:28;;::::1;-1:-1:-1::0;;;64794:12:0;;;::::1;;;64793:13;64778:28:::0;;::::1;;::::0;;64723:91::o;67411:145::-;2108:7;2135:6;-1:-1:-1;;;;;2135:6:0;860:10;2282:23;2274:68;;;;-1:-1:-1;;;2274:68:0;;10280:2:1;2274:68:0;;;10262:21:1;;;10299:18;;;10292:30;10358:34;10338:18;;;10331:62;10410:18;;2274:68:0;10078:356:1;2274:68:0;67511:37:::1;::::0;67479:21:::1;::::0;67519:10:::1;::::0;67511:37;::::1;;;::::0;67479:21;;67461:15:::1;67511:37:::0;67461:15;67511:37;67479:21;67519:10;67511:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;67450:106;67411:145::o:0;65945:1454::-;2108:7;2135:6;-1:-1:-1;;;;;2135:6:0;860:10;2282:23;2274:68;;;;-1:-1:-1;;;2274:68:0;;10280:2:1;2274:68:0;;;10262:21:1;;;10299:18;;;10292:30;10358:34;10338:18;;;10331:62;10410:18;;2274:68:0;10078:356:1;2274:68:0;66148:62;;::::1;66126:171;;;::::0;-1:-1:-1;;;66126:171:0;;10641:2:1;66126:171:0::1;::::0;::::1;10623:21:1::0;10680:2;10660:18;;;10653:30;10719:34;10699:18;;;10692:62;10790:29;10770:18;;;10763:57;10837:19;;66126:171:0::1;10439:423:1::0;66126:171:0::1;66323:8;66318:269;66333:33;::::0;::::1;::::0;-1:-1:-1;66318:269:0::1;;;66457:23;:50;66481:22;;66504:1;66481:25;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;66457:50;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;66457:50:0;;;::::1;::::0;66443:2;;66415:22;;;;:25;::::1;::::0;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:37;;;;;;:::i;:::-;66414:93;;66388:187;;;::::0;-1:-1:-1;;;66388:187:0;;11069:2:1;66388:187:0::1;::::0;::::1;11051:21:1::0;;;11088:18;;;11081:30;11147:34;11127:18;;;11120:62;11199:18;;66388:187:0::1;10867:356:1::0;66388:187:0::1;66368:3:::0;::::1;::::0;::::1;:::i;:::-;;;;66318:269;;;-1:-1:-1::0;66653:22:0::1;::::0;::::1;::::0;;::::1;::::0;66622:26:::1;::::0;66639:2;;66622:26;::::1;;:::i;:::-;66621:54;;66599:136;;;::::0;-1:-1:-1;;;66599:136:0;;11069:2:1;66599:136:0::1;::::0;::::1;11051:21:1::0;;;11088:18;;;11081:30;11147:34;11127:18;;;11120:62;11199:18;;66599:136:0::1;10867:356:1::0;66599:136:0::1;66753:8;66748:378;66767:13;::::0;::::1;::::0;-1:-1:-1;66748:378:0::1;;;66807:8;66802:185;66817:33;::::0;::::1;::::0;-1:-1:-1;66802:185:0::1;;;66876:25;::::0;-1:-1:-1;;;;;66876:25:0::1;:34;66911:2:::0;;:5:::1;::::0;::::1;::::0;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;66918:22;;66941:1;66918:25;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;66945:22;;66968:1;66945:25;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;66876:95;::::0;-1:-1:-1;;;;;;66876:95:0::1;::::0;;;;;;-1:-1:-1;;;;;9882:55:1;;;66876:95:0::1;::::0;::::1;9864:74:1::0;9957:6;9999:15;;;9979:18;;;9972:43;10051:15;10031:18;;;10024:43;9837:18;;66876:95:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;66852:3;;;;;:::i;:::-;;;;66802:185;;;-1:-1:-1::0;67007:18:0::1;::::0;::::1;::::0;67003:112:::1;;67047:17;::::0;-1:-1:-1;;;;;67047:17:0::1;:26;67074:2:::0;;:5:::1;::::0;::::1;::::0;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;67047:52;::::0;-1:-1:-1;;;;;;67047:52:0::1;::::0;;;;;;-1:-1:-1;;;;;9882:55:1;;;67047:52:0::1;::::0;::::1;9864:74:1::0;67081:1:0::1;9979:18:1::0;;;9972:43;9957:6;10051:15;;10031:18;;;10024:43;9837:18;;67047:52:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;67003:112;66782:3:::0;::::1;::::0;::::1;:::i;:::-;;;;66748:378;;;;67143:8;67138:181;67153:33;::::0;::::1;::::0;-1:-1:-1;67138:181:0::1;;;67297:2:::0;67269:22;;:25:::1;::::0;::::1;::::0;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:37;;;;;;:::i;:::-;67208:23;:50;67232:22;;67255:1;67232:25;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;67208:50;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;67208:50:0;;;:99;;:50;;:99:::1;::::0;;;::::1;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;67188:3;;;;;:::i;:::-;;;;67138:181;;;-1:-1:-1::0;67364:26:0::1;67381:2:::0;67364:26:::1;::::0;::::1;;:::i;:::-;67331:22;:60:::0;;:22:::1;::::0;:60:::1;::::0;;;::::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;65945:1454:::0;;;;;;;:::o;2713:103::-;2108:7;2135:6;-1:-1:-1;;;;;2135:6:0;860:10;2282:23;2274:68;;;;-1:-1:-1;;;2274:68:0;;10280:2:1;2274:68:0;;;10262:21:1;;;10299:18;;;10292:30;10358:34;10338:18;;;10331:62;10410:18;;2274:68:0;10078:356:1;2274:68:0;2778:30:::1;2805:1;2778:18;:30::i;:::-;2713:103::o:0;62197:46::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;62197:46:0;;-1:-1:-1;62197:46:0;:::o;64822:778::-;2108:7;2135:6;-1:-1:-1;;;;;2135:6:0;860:10;2282:23;2274:68;;;;-1:-1:-1;;;2274:68:0;;10280:2:1;2274:68:0;;;10262:21:1;;;10299:18;;;10292:30;10358:34;10338:18;;;10331:62;10410:18;;2274:68:0;10078:356:1;2274:68:0;65008:62;;::::1;64986:171;;;::::0;-1:-1:-1;;;64986:171:0;;10641:2:1;64986:171:0::1;::::0;::::1;10623:21:1::0;10680:2;10660:18;;;10653:30;10719:34;10699:18;;;10692:62;10790:29;10770:18;;;10763:57;10837:19;;64986:171:0::1;10439:423:1::0;64986:171:0::1;65175:8;65170:365;65185:33;::::0;::::1;::::0;-1:-1:-1;65170:365:0::1;;;65294:25;;;;;;;;;-1:-1:-1::0;;;;;65294:25:0::1;-1:-1:-1::0;;;;;65294:49:0::1;;:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65266:22;;65289:1;65266:25;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:79;;;65240:188;;;::::0;-1:-1:-1;;;65240:188:0;;12485:2:1;65240:188:0::1;::::0;::::1;12467:21:1::0;12524:2;12504:18;;;12497:30;12563:34;12543:18;;;12536:62;12634:17;12614:18;;;12607:45;12669:19;;65240:188:0::1;12283:411:1::0;65240:188:0::1;65498:22;;65521:1;65498:25;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;65445:23;:50;65469:22;;65492:1;65469:25;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;65445:50;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;65445:50:0;:78;;-1:-1:-1;;65445:78:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;65220:3;::::1;::::0;::::1;:::i;:::-;;;;65170:365;;;-1:-1:-1::0;65547:22:0::1;:45:::0;;-1:-1:-1;;65547:45:0::1;;::::0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;;64822:778:0:o;65809:128::-;2108:7;2135:6;-1:-1:-1;;;;;2135:6:0;860:10;2282:23;2274:68;;;;-1:-1:-1;;;2274:68:0;;10280:2:1;2274:68:0;;;10262:21:1;;;10299:18;;;10292:30;10358:34;10338:18;;;10331:62;10410:18;;2274:68:0;10078:356:1;2274:68:0;65887:19:::1;:42:::0;65809:128::o;65608:193::-;2108:7;2135:6;-1:-1:-1;;;;;2135:6:0;860:10;2282:23;2274:68;;;;-1:-1:-1;;;2274:68:0;;10280:2:1;2274:68:0;;;10262:21:1;;;10299:18;;;10292:30;10358:34;10338:18;;;10331:62;10410:18;;2274:68:0;10078:356:1;2274:68:0;65731:62:::1;:29;65763:30:::0;;65731:62:::1;:::i;:::-;;65608:193:::0;;:::o;2971:201::-;2108:7;2135:6;-1:-1:-1;;;;;2135:6:0;860:10;2282:23;2274:68;;;;-1:-1:-1;;;2274:68:0;;10280:2:1;2274:68:0;;;10262:21:1;;;10299:18;;;10292:30;10358:34;10338:18;;;10331:62;10410:18;;2274:68:0;10078:356:1;2274:68:0;-1:-1:-1;;;;;3060:22:0;::::1;3052:73;;;::::0;-1:-1:-1;;;3052:73:0;;12901:2:1;3052:73:0::1;::::0;::::1;12883:21:1::0;12940:2;12920:18;;;12913:30;12979:34;12959:18;;;12952:62;13050:8;13030:18;;;13023:36;13076:19;;3052:73:0::1;12699:402:1::0;3052:73:0::1;3136:28;3155:8;3136:18;:28::i;:::-;2971:201:::0;:::o;3332:191::-;3406:16;3425:6;;-1:-1:-1;;;;;3442:17:0;;;-1:-1:-1;;3442:17:0;;;;;;3475:40;;3425:6;;;;;;;3475:40;;3406:16;3475:40;3395:128;3332:191;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:824:1;148:6;156;164;217:2;205:9;196:7;192:23;188:32;185:52;;;233:1;230;223:12;185:52;273:9;260:23;302:18;343:2;335:6;332:14;329:34;;;359:1;356;349:12;329:34;397:6;386:9;382:22;372:32;;442:7;435:4;431:2;427:13;423:27;413:55;;464:1;461;454:12;413:55;504:2;491:16;530:2;522:6;519:14;516:34;;;546:1;543;536:12;516:34;601:7;594:4;584:6;581:1;577:14;573:2;569:23;565:34;562:47;559:67;;;622:1;619;612:12;559:67;653:4;645:13;;;;-1:-1:-1;677:6:1;-1:-1:-1;;718:20:1;;705:34;775:13;;768:21;758:32;;748:60;;804:1;801;794:12;748:60;827:5;817:15;;;14:824;;;;;:::o;843:309::-;902:6;955:2;943:9;934:7;930:23;926:32;923:52;;;971:1;968;961:12;923:52;1010:9;997:23;-1:-1:-1;;;;;1053:5:1;1049:54;1042:5;1039:65;1029:93;;1118:1;1115;1108:12;1029:93;1141:5;843:309;-1:-1:-1;;;843:309:1:o;1349:366::-;1411:8;1421:6;1475:3;1468:4;1460:6;1456:17;1452:27;1442:55;;1493:1;1490;1483:12;1442:55;-1:-1:-1;1516:20:1;;1559:18;1548:30;;1545:50;;;1591:1;1588;1581:12;1545:50;1628:4;1620:6;1616:17;1604:29;;1688:3;1681:4;1671:6;1668:1;1664:14;1656:6;1652:27;1648:38;1645:47;1642:67;;;1705:1;1702;1695:12;1642:67;1349:366;;;;;:::o;1720:159::-;1787:20;;1847:6;1836:18;;1826:29;;1816:57;;1869:1;1866;1859:12;1816:57;1720:159;;;:::o;1884:1156::-;2048:6;2056;2064;2072;2080;2088;2096;2149:3;2137:9;2128:7;2124:23;2120:33;2117:53;;;2166:1;2163;2156:12;2117:53;2206:9;2193:23;2235:18;2276:2;2268:6;2265:14;2262:34;;;2292:1;2289;2282:12;2262:34;2331:69;2392:7;2383:6;2372:9;2368:22;2331:69;:::i;:::-;2419:8;;-1:-1:-1;2305:95:1;-1:-1:-1;2507:2:1;2492:18;;2479:32;;-1:-1:-1;2523:16:1;;;2520:36;;;2552:1;2549;2542:12;2520:36;2591:71;2654:7;2643:8;2632:9;2628:24;2591:71;:::i;:::-;2681:8;;-1:-1:-1;2565:97:1;-1:-1:-1;2565:97:1;;-1:-1:-1;2735:37:1;2768:2;2753:18;;2735:37;:::i;:::-;2725:47;;2825:2;2814:9;2810:18;2797:32;2781:48;;2854:2;2844:8;2841:16;2838:36;;;2870:1;2867;2860:12;2838:36;;2909:71;2972:7;2961:8;2950:9;2946:24;2909:71;:::i;:::-;1884:1156;;;;-1:-1:-1;1884:1156:1;;-1:-1:-1;1884:1156:1;;;;2883:97;;-1:-1:-1;;;1884:1156:1:o;3045:180::-;3104:6;3157:2;3145:9;3136:7;3132:23;3128:32;3125:52;;;3173:1;3170;3163:12;3125:52;-1:-1:-1;3196:23:1;;3045:180;-1:-1:-1;3045:180:1:o;3461:841::-;3589:6;3597;3605;3613;3621;3674:2;3662:9;3653:7;3649:23;3645:32;3642:52;;;3690:1;3687;3680:12;3642:52;3730:9;3717:23;3759:18;3800:2;3792:6;3789:14;3786:34;;;3816:1;3813;3806:12;3786:34;3855:69;3916:7;3907:6;3896:9;3892:22;3855:69;:::i;:::-;3943:8;;-1:-1:-1;3829:95:1;-1:-1:-1;4031:2:1;4016:18;;4003:32;;-1:-1:-1;4047:16:1;;;4044:36;;;4076:1;4073;4066:12;4044:36;;4115:71;4178:7;4167:8;4156:9;4152:24;4115:71;:::i;:::-;4205:8;;-1:-1:-1;4089:97:1;-1:-1:-1;4259:37:1;;-1:-1:-1;4292:2:1;4277:18;;4259:37;:::i;:::-;4249:47;;3461:841;;;;;;;;:::o;4489:436::-;4575:6;4583;4636:2;4624:9;4615:7;4611:23;4607:32;4604:52;;;4652:1;4649;4642:12;4604:52;4692:9;4679:23;4725:18;4717:6;4714:30;4711:50;;;4757:1;4754;4747:12;4711:50;4796:69;4857:7;4848:6;4837:9;4833:22;4796:69;:::i;:::-;4884:8;;4770:95;;-1:-1:-1;4489:436:1;-1:-1:-1;;;;4489:436:1:o;5123:184::-;5181:6;5234:2;5222:9;5213:7;5209:23;5205:32;5202:52;;;5250:1;5247;5240:12;5202:52;5273:28;5291:9;5273:28;:::i;6003:127::-;6064:10;6059:3;6055:20;6052:1;6045:31;6095:4;6092:1;6085:15;6119:4;6116:1;6109:15;6135:184;6205:6;6258:2;6246:9;6237:7;6233:23;6229:32;6226:52;;;6274:1;6271;6264:12;6226:52;-1:-1:-1;6297:16:1;;6135:184;-1:-1:-1;6135:184:1:o;6324:127::-;6385:10;6380:3;6376:20;6373:1;6366:31;6416:4;6413:1;6406:15;6440:4;6437:1;6430:15;6456:125;6496:4;6524:1;6521;6518:8;6515:34;;;6529:18;;:::i;:::-;-1:-1:-1;6566:9:1;;6456:125::o;6922:128::-;6962:3;6993:1;6989:6;6986:1;6983:13;6980:39;;;6999:18;;:::i;:::-;-1:-1:-1;7035:9:1;;6922:128::o;7055:197::-;7093:3;7121:6;7162:2;7155:5;7151:14;7189:2;7180:7;7177:15;7174:41;;;7195:18;;:::i;:::-;7244:1;7231:15;;7055:197;-1:-1:-1;;;7055:197:1:o;7617:135::-;7656:3;-1:-1:-1;;7677:17:1;;7674:43;;;7697:18;;:::i;:::-;-1:-1:-1;7744:1:1;7733:13;;7617:135::o;8162:168::-;8202:7;8268:1;8264;8260:6;8256:14;8253:1;8250:21;8245:1;8238:9;8231:17;8227:45;8224:71;;;8275:18;;:::i;:::-;-1:-1:-1;8315:9:1;;8162:168::o;8695:948::-;-1:-1:-1;;;;;9056:55:1;;9038:74;;8986:2;9131;9149:18;;;9142:30;;;9011:18;;;9207:22;;;8957:4;;8986:2;9286:6;;9260:2;9245:18;;8957:4;9320:297;9334:6;9331:1;9328:13;9320:297;;;9393:6;9455:2;9428:25;9446:6;9428:25;:::i;:::-;9424:34;9419:3;9412:47;9533:2;9497:34;9527:2;9519:6;9515:15;9497:34;:::i;:::-;9493:43;9479:12;;;9472:65;-1:-1:-1;9592:15:1;;;;9557:12;;;;9356:1;9349:9;9320:297;;;-1:-1:-1;9634:3:1;8695:948;-1:-1:-1;;;;;;;;8695:948:1:o;12061:217::-;12100:4;12129:6;12185:10;;;;12155;;12207:12;;;12204:38;;;12222:18;;:::i;:::-;12259:13;;12061:217;-1:-1:-1;;;12061:217:1:o
Swarm Source
ipfs://e6037e0886a4af647922d44a0162624cd6ba94a3441bf78aa573de5bba877b79
Loading...
Loading
Loading...
Loading
Net Worth in USD
$4,270.13
Net Worth in ETH
2.16
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $1,976.91 | 2.16 | $4,270.13 |
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.