Contract Overview
Balance:
0 BTT
My Name Tag:
Not Available
TokenTracker:
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
Card
Compiler Version
v0.8.12+commit.f00d7308
Contract Source Code (Solidity)
/** *Submitted for verification at testnet.bttcscan.com on 2022-10-17 */ // SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.10.1 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.12; /** * @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/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @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/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) /** * @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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) /** * @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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) /** * @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/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File contracts/Card.sol /// @title A poker game card contract Card is Ownable, ERC721 { /// @dev A list of minters mapping(address => bool) public isMinter; /// @dev A list of supported interfaces mapping(bytes4 => bool) private _supportedInterfaces; /// @dev A list of tokens owned by users mapping(address => uint256[]) public ownedTokens; /// @dev All supported interfaces bytes4 private constant _INTERFACE_ID_TRC165 = 0x01ffc9a7; bytes4 private constant _INTERFACE_ID_TRC721 = 0x80ac58cd; bytes4 private constant _INTERFACE_ID_TRC721_METADATA = 0x5b5e139f; bytes4 private constant _INTERFACE_ID_TRC721_ENUMERABLE = 0x780e9d63; /// @dev Caller gets the right to mint constructor() ERC721("Flipsies NFT", "FLP") { isMinter[msg.sender] = true; _supportedInterfaces[_INTERFACE_ID_TRC165] = true; _supportedInterfaces[_INTERFACE_ID_TRC721] = true; _supportedInterfaces[_INTERFACE_ID_TRC721_METADATA] = true; _supportedInterfaces[_INTERFACE_ID_TRC721_ENUMERABLE] = true; } /** * @notice Mints an NFT token with 'tokenID' to the 'to' address * @dev Adds the minted token to the list of owned tokens of the 'to' address * @param to The address that receives minted toke * @param tokenId The ID of the minted token */ function mint(address to, uint256 tokenId) external { require(isMinter[msg.sender], "Card: Caller Is Not A Minter!"); _mint(to, tokenId); ownedTokens[to].push(tokenId); } /** * @notice Gives the 'minter' address a right to call card 'mint' function * @notice Usually you have to call this function for CardFactory instance * @param minter The address that gets the rights to mint cards * @param status If 'true' - allows to mint cards, if 'false - forbids to do that */ function setMinterRole(address minter, bool status) external onlyOwner { isMinter[minter] = status; } /** * @notice Returns all tokens owned by the 'nftOwner' address * @param nftOwner The address of tokens owner * @return List of IDs of tokens owned by the address */ function getNFTListByAddress(address nftOwner) public view returns (uint256[] memory) { return ownedTokens[nftOwner]; } function exists(uint256 tokenID) public view returns(bool) { return _exists(tokenID); } /** * @notice Checks whether this contract supports the provided interface * @param interfaceId 4 bytes representing ID of the interface to check * @return 'True' if contracts supports provided interface, 'false' - if does not */ function supportsInterface (bytes4 interfaceId) public view override returns (bool) { return _supportedInterfaces[interfaceId]; } }
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftOwner","type":"address"}],"name":"getNFTListByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600c81526020016b119b1a5c1cda595cc813919560a21b815250604051806040016040528060038152602001620464c560ec1b8152506200006d620000676200017760201b60201c565b6200017b565b815162000082906001906020850190620001cb565b50805162000098906002906020840190620001cb565b505033600090815260076020908152604082208054600160ff19918216811790925560089092527f9c1077d48c1ee2b23ae7e47ca8a0ebdbffc921a368b14a8244a53034b67dcd4780548316821790557fb64e51f96476f71a82a586ff6df0320abb1ea1ca8eef8a1f644f514b4d62b51280548316821790557f835030b866870d4fe00e2fb36742baa15cecea11fb3c53f078523329989d462e805483168217905563780e9d6360e01b9092527fe9f4a47e50bfb5860617fefb314e40ab83beb79d8bf4c90c09bafd807bf6b3958054909116909117905550620002ae565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001d99062000271565b90600052602060002090601f016020900481019282620001fd576000855562000248565b82601f106200021857805160ff191683800117855562000248565b8280016001018555821562000248579182015b82811115620002485782518255916020019190600101906200022b565b50620002569291506200025a565b5090565b5b808211156200025657600081556001016200025b565b600181811c908216806200028657607f821691505b60208210811415620002a857634e487b7160e01b600052602260045260246000fd5b50919050565b61166c80620002be6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063b88d4fde1161007c578063b88d4fde146102d5578063c87b56dd146102e8578063cb177b1e146102fb578063e149f0361461030e578063e985e9c514610321578063f2fde38b1461035d57600080fd5b8063715018a61461027e5780638da5cb5b1461028657806395d89b4114610297578063a22cb4651461029f578063aa271e1a146102b257600080fd5b806323b872dd1161010a57806323b872dd146101fe57806340c10f191461021157806342842e0e146102245780634f558e79146102375780636352211e1461024a57806370a082311461025d57600080fd5b806301ffc9a71461014757806306fdde0314610189578063081812fc1461019e578063095ea7b3146101c957806315c93e99146101de575b600080fd5b61017461015536600461113b565b6001600160e01b03191660009081526008602052604090205460ff1690565b60405190151581526020015b60405180910390f35b610191610370565b60405161018091906111b0565b6101b16101ac3660046111c3565b610402565b6040516001600160a01b039091168152602001610180565b6101dc6101d73660046111f8565b610429565b005b6101f16101ec366004611222565b610544565b604051610180919061123d565b6101dc61020c366004611281565b6105b0565b6101dc61021f3660046111f8565b6105e1565b6101dc610232366004611281565b610676565b6101746102453660046111c3565b610691565b6101b16102583660046111c3565b6106b2565b61027061026b366004611222565b610712565b604051908152602001610180565b6101dc610798565b6000546001600160a01b03166101b1565b6101916107ac565b6101dc6102ad3660046112bd565b6107bb565b6101746102c0366004611222565b60076020526000908152604090205460ff1681565b6101dc6102e336600461130f565b6107ca565b6101916102f63660046111c3565b610802565b6101dc6103093660046112bd565b610876565b61027061031c3660046111f8565b6108a9565b61017461032f3660046113eb565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6101dc61036b366004611222565b6108da565b60606001805461037f9061141e565b80601f01602080910402602001604051908101604052809291908181526020018280546103ab9061141e565b80156103f85780601f106103cd576101008083540402835291602001916103f8565b820191906000526020600020905b8154815290600101906020018083116103db57829003601f168201915b5050505050905090565b600061040d82610953565b506000908152600560205260409020546001600160a01b031690565b6000610434826106b2565b9050806001600160a01b0316836001600160a01b031614156104a75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806104c357506104c3813361032f565b6105355760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161049e565b61053f83836109b2565b505050565b6001600160a01b0381166000908152600960209081526040918290208054835181840281018401909452808452606093928301828280156105a457602002820191906000526020600020905b815481526020019060010190808311610590575b50505050509050919050565b6105ba3382610a20565b6105d65760405162461bcd60e51b815260040161049e90611459565b61053f838383610a9f565b3360009081526007602052604090205460ff166106405760405162461bcd60e51b815260206004820152601d60248201527f436172643a2043616c6c6572204973204e6f742041204d696e74657221000000604482015260640161049e565b61064a8282610c3b565b6001600160a01b0390911660009081526009602090815260408220805460018101825590835291200155565b61053f838383604051806020016040528060008152506107ca565b6000818152600360205260408120546001600160a01b031615155b92915050565b6000818152600360205260408120546001600160a01b0316806106ac5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161049e565b60006001600160a01b03821661077c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161049e565b506001600160a01b031660009081526004602052604090205490565b6107a0610d7d565b6107aa6000610dd7565b565b60606002805461037f9061141e565b6107c6338383610e27565b5050565b6107d43383610a20565b6107f05760405162461bcd60e51b815260040161049e90611459565b6107fc84848484610ef6565b50505050565b606061080d82610953565b600061082460408051602081019091526000815290565b90506000815111610844576040518060200160405280600081525061086f565b8061084e84610f29565b60405160200161085f9291906114a7565b6040516020818303038152906040525b9392505050565b61087e610d7d565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b600960205281600052604060002081815481106108c557600080fd5b90600052602060002001600091509150505481565b6108e2610d7d565b6001600160a01b0381166109475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161049e565b61095081610dd7565b50565b6000818152600360205260409020546001600160a01b03166109505760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161049e565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906109e7826106b2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610a2c836106b2565b9050806001600160a01b0316846001600160a01b03161480610a7357506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80610a975750836001600160a01b0316610a8c84610402565b6001600160a01b0316145b949350505050565b826001600160a01b0316610ab2826106b2565b6001600160a01b031614610b165760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161049e565b6001600160a01b038216610b785760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161049e565b610b836000826109b2565b6001600160a01b0383166000908152600460205260408120805460019290610bac9084906114ec565b90915550506001600160a01b0382166000908152600460205260408120805460019290610bda908490611503565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610c915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161049e565b6000818152600360205260409020546001600160a01b031615610cf65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161049e565b6001600160a01b0382166000908152600460205260408120805460019290610d1f908490611503565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000546001600160a01b031633146107aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161049e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415610e895760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161049e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610f01848484610a9f565b610f0d84848484611027565b6107fc5760405162461bcd60e51b815260040161049e9061151b565b606081610f4d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610f775780610f618161156d565b9150610f709050600a8361159e565b9150610f51565b60008167ffffffffffffffff811115610f9257610f926112f9565b6040519080825280601f01601f191660200182016040528015610fbc576020820181803683370190505b5090505b8415610a9757610fd16001836114ec565b9150610fde600a866115b2565b610fe9906030611503565b60f81b818381518110610ffe57610ffe6115c6565b60200101906001600160f81b031916908160001a905350611020600a8661159e565b9450610fc0565b60006001600160a01b0384163b1561111a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061106b9033908990889088906004016115dc565b6020604051808303816000875af19250505080156110a6575060408051601f3d908101601f191682019092526110a391810190611619565b60015b611100573d8080156110d4576040519150601f19603f3d011682016040523d82523d6000602084013e6110d9565b606091505b5080516110f85760405162461bcd60e51b815260040161049e9061151b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610a97565b506001949350505050565b6001600160e01b03198116811461095057600080fd5b60006020828403121561114d57600080fd5b813561086f81611125565b60005b8381101561117357818101518382015260200161115b565b838111156107fc5750506000910152565b6000815180845261119c816020860160208601611158565b601f01601f19169290920160200192915050565b60208152600061086f6020830184611184565b6000602082840312156111d557600080fd5b5035919050565b80356001600160a01b03811681146111f357600080fd5b919050565b6000806040838503121561120b57600080fd5b611214836111dc565b946020939093013593505050565b60006020828403121561123457600080fd5b61086f826111dc565b6020808252825182820181905260009190848201906040850190845b8181101561127557835183529284019291840191600101611259565b50909695505050505050565b60008060006060848603121561129657600080fd5b61129f846111dc565b92506112ad602085016111dc565b9150604084013590509250925092565b600080604083850312156112d057600080fd5b6112d9836111dc565b9150602083013580151581146112ee57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561132557600080fd5b61132e856111dc565b935061133c602086016111dc565b925060408501359150606085013567ffffffffffffffff8082111561136057600080fd5b818701915087601f83011261137457600080fd5b813581811115611386576113866112f9565b604051601f8201601f19908116603f011681019083821181831017156113ae576113ae6112f9565b816040528281528a60208487010111156113c757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156113fe57600080fd5b611407836111dc565b9150611415602084016111dc565b90509250929050565b600181811c9082168061143257607f821691505b6020821081141561145357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600083516114b9818460208801611158565b8351908301906114cd818360208801611158565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156114fe576114fe6114d6565b500390565b60008219821115611516576115166114d6565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415611581576115816114d6565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826115ad576115ad611588565b500490565b6000826115c1576115c1611588565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061160f90830184611184565b9695505050505050565b60006020828403121561162b57600080fd5b815161086f8161112556fea2646970667358221220c9303e3cd51eb242dc5a3420239090b0e2b0acd31a6eab7d8a5d56e8bf104cfb64736f6c634300080c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063b88d4fde1161007c578063b88d4fde146102d5578063c87b56dd146102e8578063cb177b1e146102fb578063e149f0361461030e578063e985e9c514610321578063f2fde38b1461035d57600080fd5b8063715018a61461027e5780638da5cb5b1461028657806395d89b4114610297578063a22cb4651461029f578063aa271e1a146102b257600080fd5b806323b872dd1161010a57806323b872dd146101fe57806340c10f191461021157806342842e0e146102245780634f558e79146102375780636352211e1461024a57806370a082311461025d57600080fd5b806301ffc9a71461014757806306fdde0314610189578063081812fc1461019e578063095ea7b3146101c957806315c93e99146101de575b600080fd5b61017461015536600461113b565b6001600160e01b03191660009081526008602052604090205460ff1690565b60405190151581526020015b60405180910390f35b610191610370565b60405161018091906111b0565b6101b16101ac3660046111c3565b610402565b6040516001600160a01b039091168152602001610180565b6101dc6101d73660046111f8565b610429565b005b6101f16101ec366004611222565b610544565b604051610180919061123d565b6101dc61020c366004611281565b6105b0565b6101dc61021f3660046111f8565b6105e1565b6101dc610232366004611281565b610676565b6101746102453660046111c3565b610691565b6101b16102583660046111c3565b6106b2565b61027061026b366004611222565b610712565b604051908152602001610180565b6101dc610798565b6000546001600160a01b03166101b1565b6101916107ac565b6101dc6102ad3660046112bd565b6107bb565b6101746102c0366004611222565b60076020526000908152604090205460ff1681565b6101dc6102e336600461130f565b6107ca565b6101916102f63660046111c3565b610802565b6101dc6103093660046112bd565b610876565b61027061031c3660046111f8565b6108a9565b61017461032f3660046113eb565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6101dc61036b366004611222565b6108da565b60606001805461037f9061141e565b80601f01602080910402602001604051908101604052809291908181526020018280546103ab9061141e565b80156103f85780601f106103cd576101008083540402835291602001916103f8565b820191906000526020600020905b8154815290600101906020018083116103db57829003601f168201915b5050505050905090565b600061040d82610953565b506000908152600560205260409020546001600160a01b031690565b6000610434826106b2565b9050806001600160a01b0316836001600160a01b031614156104a75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806104c357506104c3813361032f565b6105355760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161049e565b61053f83836109b2565b505050565b6001600160a01b0381166000908152600960209081526040918290208054835181840281018401909452808452606093928301828280156105a457602002820191906000526020600020905b815481526020019060010190808311610590575b50505050509050919050565b6105ba3382610a20565b6105d65760405162461bcd60e51b815260040161049e90611459565b61053f838383610a9f565b3360009081526007602052604090205460ff166106405760405162461bcd60e51b815260206004820152601d60248201527f436172643a2043616c6c6572204973204e6f742041204d696e74657221000000604482015260640161049e565b61064a8282610c3b565b6001600160a01b0390911660009081526009602090815260408220805460018101825590835291200155565b61053f838383604051806020016040528060008152506107ca565b6000818152600360205260408120546001600160a01b031615155b92915050565b6000818152600360205260408120546001600160a01b0316806106ac5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161049e565b60006001600160a01b03821661077c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161049e565b506001600160a01b031660009081526004602052604090205490565b6107a0610d7d565b6107aa6000610dd7565b565b60606002805461037f9061141e565b6107c6338383610e27565b5050565b6107d43383610a20565b6107f05760405162461bcd60e51b815260040161049e90611459565b6107fc84848484610ef6565b50505050565b606061080d82610953565b600061082460408051602081019091526000815290565b90506000815111610844576040518060200160405280600081525061086f565b8061084e84610f29565b60405160200161085f9291906114a7565b6040516020818303038152906040525b9392505050565b61087e610d7d565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b600960205281600052604060002081815481106108c557600080fd5b90600052602060002001600091509150505481565b6108e2610d7d565b6001600160a01b0381166109475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161049e565b61095081610dd7565b50565b6000818152600360205260409020546001600160a01b03166109505760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161049e565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906109e7826106b2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610a2c836106b2565b9050806001600160a01b0316846001600160a01b03161480610a7357506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80610a975750836001600160a01b0316610a8c84610402565b6001600160a01b0316145b949350505050565b826001600160a01b0316610ab2826106b2565b6001600160a01b031614610b165760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161049e565b6001600160a01b038216610b785760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161049e565b610b836000826109b2565b6001600160a01b0383166000908152600460205260408120805460019290610bac9084906114ec565b90915550506001600160a01b0382166000908152600460205260408120805460019290610bda908490611503565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610c915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161049e565b6000818152600360205260409020546001600160a01b031615610cf65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161049e565b6001600160a01b0382166000908152600460205260408120805460019290610d1f908490611503565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000546001600160a01b031633146107aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161049e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415610e895760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161049e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610f01848484610a9f565b610f0d84848484611027565b6107fc5760405162461bcd60e51b815260040161049e9061151b565b606081610f4d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610f775780610f618161156d565b9150610f709050600a8361159e565b9150610f51565b60008167ffffffffffffffff811115610f9257610f926112f9565b6040519080825280601f01601f191660200182016040528015610fbc576020820181803683370190505b5090505b8415610a9757610fd16001836114ec565b9150610fde600a866115b2565b610fe9906030611503565b60f81b818381518110610ffe57610ffe6115c6565b60200101906001600160f81b031916908160001a905350611020600a8661159e565b9450610fc0565b60006001600160a01b0384163b1561111a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061106b9033908990889088906004016115dc565b6020604051808303816000875af19250505080156110a6575060408051601f3d908101601f191682019092526110a391810190611619565b60015b611100573d8080156110d4576040519150601f19603f3d011682016040523d82523d6000602084013e6110d9565b606091505b5080516110f85760405162461bcd60e51b815260040161049e9061151b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610a97565b506001949350505050565b6001600160e01b03198116811461095057600080fd5b60006020828403121561114d57600080fd5b813561086f81611125565b60005b8381101561117357818101518382015260200161115b565b838111156107fc5750506000910152565b6000815180845261119c816020860160208601611158565b601f01601f19169290920160200192915050565b60208152600061086f6020830184611184565b6000602082840312156111d557600080fd5b5035919050565b80356001600160a01b03811681146111f357600080fd5b919050565b6000806040838503121561120b57600080fd5b611214836111dc565b946020939093013593505050565b60006020828403121561123457600080fd5b61086f826111dc565b6020808252825182820181905260009190848201906040850190845b8181101561127557835183529284019291840191600101611259565b50909695505050505050565b60008060006060848603121561129657600080fd5b61129f846111dc565b92506112ad602085016111dc565b9150604084013590509250925092565b600080604083850312156112d057600080fd5b6112d9836111dc565b9150602083013580151581146112ee57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561132557600080fd5b61132e856111dc565b935061133c602086016111dc565b925060408501359150606085013567ffffffffffffffff8082111561136057600080fd5b818701915087601f83011261137457600080fd5b813581811115611386576113866112f9565b604051601f8201601f19908116603f011681019083821181831017156113ae576113ae6112f9565b816040528281528a60208487010111156113c757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156113fe57600080fd5b611407836111dc565b9150611415602084016111dc565b90509250929050565b600181811c9082168061143257607f821691505b6020821081141561145357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600083516114b9818460208801611158565b8351908301906114cd818360208801611158565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156114fe576114fe6114d6565b500390565b60008219821115611516576115166114d6565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415611581576115816114d6565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826115ad576115ad611588565b500490565b6000826115c1576115c1611588565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061160f90830184611184565b9695505050505050565b60006020828403121561162b57600080fd5b815161086f8161112556fea2646970667358221220c9303e3cd51eb242dc5a3420239090b0e2b0acd31a6eab7d8a5d56e8bf104cfb64736f6c634300080c0033
Deployed ByteCode Sourcemap
37935:2919:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40667:184;;;;;;:::i;:::-;-1:-1:-1;;;;;;40810:33:0;40781:4;40810:33;;;:20;:33;;;;;;;;;40667:184;;;;565:14:1;;558:22;540:41;;528:2;513:18;40667:184:0;;;;;;;;25618:100;;;:::i;:::-;;;;;;;:::i;27131:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;27131:171:0;1528:203:1;26648:417:0;;;;;;:::i;:::-;;:::i;:::-;;40126:165;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;27831:336::-;;;;;;:::i;:::-;;:::i;39260:202::-;;;;;;:::i;:::-;;:::i;28238:185::-;;;;;;:::i;:::-;;:::i;40299:101::-;;;;;;:::i;:::-;;:::i;25329:222::-;;;;;;:::i;:::-;;:::i;25060:207::-;;;;;;:::i;:::-;;:::i;:::-;;;3480:25:1;;;3468:2;3453:18;25060:207:0;3334:177:1;2866:103:0;;;:::i;2218:87::-;2264:7;2291:6;-1:-1:-1;;;;;2291:6:0;2218:87;;25787:104;;;:::i;27374:155::-;;;;;;:::i;:::-;;:::i;38007:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;28494:323;;;;;;:::i;:::-;;:::i;25962:281::-;;;;;;:::i;:::-;;:::i;39804:115::-;;;;;;:::i;:::-;;:::i;38204:48::-;;;;;;:::i;:::-;;:::i;27600:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;27721:25:0;;;27697:4;27721:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;27600:164;3124:201;;;;;;:::i;:::-;;:::i;25618:100::-;25672:13;25705:5;25698:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25618:100;:::o;27131:171::-;27207:7;27227:23;27242:7;27227:14;:23::i;:::-;-1:-1:-1;27270:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;27270:24:0;;27131:171::o;26648:417::-;26729:13;26745:23;26760:7;26745:14;:23::i;:::-;26729:39;;26793:5;-1:-1:-1;;;;;26787:11:0;:2;-1:-1:-1;;;;;26787:11:0;;;26779:57;;;;-1:-1:-1;;;26779:57:0;;5995:2:1;26779:57:0;;;5977:21:1;6034:2;6014:18;;;6007:30;6073:34;6053:18;;;6046:62;-1:-1:-1;;;6124:18:1;;;6117:31;6165:19;;26779:57:0;;;;;;;;;866:10;-1:-1:-1;;;;;26871:21:0;;;;:62;;-1:-1:-1;26896:37:0;26913:5;866:10;27600:164;:::i;26896:37::-;26849:174;;;;-1:-1:-1;;;26849:174:0;;6397:2:1;26849:174:0;;;6379:21:1;6436:2;6416:18;;;6409:30;6475:34;6455:18;;;6448:62;6546:32;6526:18;;;6519:60;6596:19;;26849:174:0;6195:426:1;26849:174:0;27036:21;27045:2;27049:7;27036:8;:21::i;:::-;26718:347;26648:417;;:::o;40126:165::-;-1:-1:-1;;;;;40262:21:0;;;;;;:11;:21;;;;;;;;;40255:28;;;;;;;;;;;;;;;;;40221:16;;40255:28;;;40262:21;40255:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40126:165;;;:::o;27831:336::-;28026:41;866:10;28059:7;28026:18;:41::i;:::-;28018:100;;;;-1:-1:-1;;;28018:100:0;;;;;;;:::i;:::-;28131:28;28141:4;28147:2;28151:7;28131:9;:28::i;39260:202::-;39340:10;39331:20;;;;:8;:20;;;;;;;;39323:62;;;;-1:-1:-1;;;39323:62:0;;7243:2:1;39323:62:0;;;7225:21:1;7282:2;7262:18;;;7255:30;7321:31;7301:18;;;7294:59;7370:18;;39323:62:0;7041:353:1;39323:62:0;39396:18;39402:2;39406:7;39396:5;:18::i;:::-;-1:-1:-1;;;;;39425:15:0;;;;;;;:11;:15;;;;;;;:29;;;;;;;;;;;;;;39260:202::o;28238:185::-;28376:39;28393:4;28399:2;28403:7;28376:39;;;;;;;;;;;;:16;:39::i;40299:101::-;40352:4;30413:16;;;:7;:16;;;;;;-1:-1:-1;;;;;30413:16:0;:30;;40376:16;40369:23;40299:101;-1:-1:-1;;40299:101:0:o;25329:222::-;25401:7;25437:16;;;:7;:16;;;;;;-1:-1:-1;;;;;25437:16:0;25472:19;25464:56;;;;-1:-1:-1;;;25464:56:0;;7601:2:1;25464:56:0;;;7583:21:1;7640:2;7620:18;;;7613:30;-1:-1:-1;;;7659:18:1;;;7652:54;7723:18;;25464:56:0;7399:348:1;25060:207:0;25132:7;-1:-1:-1;;;;;25160:19:0;;25152:73;;;;-1:-1:-1;;;25152:73:0;;7954:2:1;25152:73:0;;;7936:21:1;7993:2;7973:18;;;7966:30;8032:34;8012:18;;;8005:62;-1:-1:-1;;;8083:18:1;;;8076:39;8132:19;;25152:73:0;7752:405:1;25152:73:0;-1:-1:-1;;;;;;25243:16:0;;;;;:9;:16;;;;;;;25060:207::o;2866:103::-;2104:13;:11;:13::i;:::-;2931:30:::1;2958:1;2931:18;:30::i;:::-;2866:103::o:0;25787:104::-;25843:13;25876:7;25869:14;;;;;:::i;27374:155::-;27469:52;866:10;27502:8;27512;27469:18;:52::i;:::-;27374:155;;:::o;28494:323::-;28668:41;866:10;28701:7;28668:18;:41::i;:::-;28660:100;;;;-1:-1:-1;;;28660:100:0;;;;;;;:::i;:::-;28771:38;28785:4;28791:2;28795:7;28804:4;28771:13;:38::i;:::-;28494:323;;;;:::o;25962:281::-;26035:13;26061:23;26076:7;26061:14;:23::i;:::-;26097:21;26121:10;26569:9;;;;;;;;;-1:-1:-1;26569:9:0;;;26492:94;26121:10;26097:34;;26173:1;26155:7;26149:21;:25;:86;;;;;;;;;;;;;;;;;26201:7;26210:18;:7;:16;:18::i;:::-;26184:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;26149:86;26142:93;25962:281;-1:-1:-1;;;25962:281:0:o;39804:115::-;2104:13;:11;:13::i;:::-;-1:-1:-1;;;;;39886:16:0;;;::::1;;::::0;;;:8:::1;:16;::::0;;;;:25;;-1:-1:-1;;39886:25:0::1;::::0;::::1;;::::0;;;::::1;::::0;;39804:115::o;38204:48::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3124:201::-;2104:13;:11;:13::i;:::-;-1:-1:-1;;;;;3213:22:0;::::1;3205:73;;;::::0;-1:-1:-1;;;3205:73:0;;8839:2:1;3205:73:0::1;::::0;::::1;8821:21:1::0;8878:2;8858:18;;;8851:30;8917:34;8897:18;;;8890:62;-1:-1:-1;;;8968:18:1;;;8961:36;9014:19;;3205:73:0::1;8637:402:1::0;3205:73:0::1;3289:28;3308:8;3289:18;:28::i;:::-;3124:201:::0;:::o;35106:135::-;30389:4;30413:16;;;:7;:16;;;;;;-1:-1:-1;;;;;30413:16:0;35180:53;;;;-1:-1:-1;;;35180:53:0;;7601:2:1;35180:53:0;;;7583:21:1;7640:2;7620:18;;;7613:30;-1:-1:-1;;;7659:18:1;;;7652:54;7723:18;;35180:53:0;7399:348:1;34385:174:0;34460:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;34460:29:0;-1:-1:-1;;;;;34460:29:0;;;;;;;;:24;;34514:23;34460:24;34514:14;:23::i;:::-;-1:-1:-1;;;;;34505:46:0;;;;;;;;;;;34385:174;;:::o;30618:264::-;30711:4;30728:13;30744:23;30759:7;30744:14;:23::i;:::-;30728:39;;30797:5;-1:-1:-1;;;;;30786:16:0;:7;-1:-1:-1;;;;;30786:16:0;;:52;;;-1:-1:-1;;;;;;27721:25:0;;;27697:4;27721:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;30806:32;30786:87;;;;30866:7;-1:-1:-1;;;;;30842:31:0;:20;30854:7;30842:11;:20::i;:::-;-1:-1:-1;;;;;30842:31:0;;30786:87;30778:96;30618:264;-1:-1:-1;;;;30618:264:0:o;33641:625::-;33800:4;-1:-1:-1;;;;;33773:31:0;:23;33788:7;33773:14;:23::i;:::-;-1:-1:-1;;;;;33773:31:0;;33765:81;;;;-1:-1:-1;;;33765:81:0;;9246:2:1;33765:81:0;;;9228:21:1;9285:2;9265:18;;;9258:30;9324:34;9304:18;;;9297:62;-1:-1:-1;;;9375:18:1;;;9368:35;9420:19;;33765:81:0;9044:401:1;33765:81:0;-1:-1:-1;;;;;33865:16:0;;33857:65;;;;-1:-1:-1;;;33857:65:0;;9652:2:1;33857:65:0;;;9634:21:1;9691:2;9671:18;;;9664:30;9730:34;9710:18;;;9703:62;-1:-1:-1;;;9781:18:1;;;9774:34;9825:19;;33857:65:0;9450:400:1;33857:65:0;34039:29;34056:1;34060:7;34039:8;:29::i;:::-;-1:-1:-1;;;;;34081:15:0;;;;;;:9;:15;;;;;:20;;34100:1;;34081:15;:20;;34100:1;;34081:20;:::i;:::-;;;;-1:-1:-1;;;;;;;34112:13:0;;;;;;:9;:13;;;;;:18;;34129:1;;34112:13;:18;;34129:1;;34112:18;:::i;:::-;;;;-1:-1:-1;;34141:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;34141:21:0;-1:-1:-1;;;;;34141:21:0;;;;;;;;;34180:27;;34141:16;;34180:27;;;;;;;26718:347;26648:417;;:::o;32216:439::-;-1:-1:-1;;;;;32296:16:0;;32288:61;;;;-1:-1:-1;;;32288:61:0;;10452:2:1;32288:61:0;;;10434:21:1;;;10471:18;;;10464:30;10530:34;10510:18;;;10503:62;10582:18;;32288:61:0;10250:356:1;32288:61:0;30389:4;30413:16;;;:7;:16;;;;;;-1:-1:-1;;;;;30413:16:0;:30;32360:58;;;;-1:-1:-1;;;32360:58:0;;10813:2:1;32360:58:0;;;10795:21:1;10852:2;10832:18;;;10825:30;10891;10871:18;;;10864:58;10939:18;;32360:58:0;10611:352:1;32360:58:0;-1:-1:-1;;;;;32489:13:0;;;;;;:9;:13;;;;;:18;;32506:1;;32489:13;:18;;32506:1;;32489:18;:::i;:::-;;;;-1:-1:-1;;32518:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;32518:21:0;-1:-1:-1;;;;;32518:21:0;;;;;;;;32557:33;;32518:16;;;32557:33;;32518:16;;32557:33;27374:155;;:::o;2383:132::-;2264:7;2291:6;-1:-1:-1;;;;;2291:6:0;866:10;2447:23;2439:68;;;;-1:-1:-1;;;2439:68:0;;11170:2:1;2439:68:0;;;11152:21:1;;;11189:18;;;11182:30;11248:34;11228:18;;;11221:62;11300:18;;2439:68:0;10968:356:1;3485:191:0;3559:16;3578:6;;-1:-1:-1;;;;;3595:17:0;;;-1:-1:-1;;;;;;3595:17:0;;;;;;3628:40;;3578:6;;;;;;;3628:40;;3559:16;3628:40;3548:128;3485:191;:::o;34702:315::-;34857:8;-1:-1:-1;;;;;34848:17:0;:5;-1:-1:-1;;;;;34848:17:0;;;34840:55;;;;-1:-1:-1;;;34840:55:0;;11531:2:1;34840:55:0;;;11513:21:1;11570:2;11550:18;;;11543:30;11609:27;11589:18;;;11582:55;11654:18;;34840:55:0;11329:349:1;34840:55:0;-1:-1:-1;;;;;34906:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;34906:46:0;;;;;;;;;;34968:41;;540::1;;;34968::0;;513:18:1;34968:41:0;;;;;;;34702:315;;;:::o;29698:313::-;29854:28;29864:4;29870:2;29874:7;29854:9;:28::i;:::-;29901:47;29924:4;29930:2;29934:7;29943:4;29901:22;:47::i;:::-;29893:110;;;;-1:-1:-1;;;29893:110:0;;;;;;;:::i;20222:723::-;20278:13;20499:10;20495:53;;-1:-1:-1;;20526:10:0;;;;;;;;;;;;-1:-1:-1;;;20526:10:0;;;;;20222:723::o;20495:53::-;20573:5;20558:12;20614:78;20621:9;;20614:78;;20647:8;;;;:::i;:::-;;-1:-1:-1;20670:10:0;;-1:-1:-1;20678:2:0;20670:10;;:::i;:::-;;;20614:78;;;20702:19;20734:6;20724:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20724:17:0;;20702:39;;20752:154;20759:10;;20752:154;;20786:11;20796:1;20786:11;;:::i;:::-;;-1:-1:-1;20855:10:0;20863:2;20855:5;:10;:::i;:::-;20842:24;;:2;:24;:::i;:::-;20829:39;;20812:6;20819;20812:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;20812:56:0;;;;;;;;-1:-1:-1;20883:11:0;20892:2;20883:11;;:::i;:::-;;;20752:154;;35805:853;35959:4;-1:-1:-1;;;;;35980:13:0;;12782:19;:23;35976:675;;36016:71;;-1:-1:-1;;;36016:71:0;;-1:-1:-1;;;;;36016:36:0;;;;;:71;;866:10;;36067:4;;36073:7;;36082:4;;36016:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36016:71:0;;;;;;;;-1:-1:-1;;36016:71:0;;;;;;;;;;;;:::i;:::-;;;36012:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36257:13:0;;36253:328;;36300:60;;-1:-1:-1;;;36300:60:0;;;;;;;:::i;36253:328::-;36531:6;36525:13;36516:6;36512:2;36508:15;36501:38;36012:584;-1:-1:-1;;;;;;36138:51:0;-1:-1:-1;;;36138:51:0;;-1:-1:-1;36131:58:0;;35976:675;-1:-1:-1;36635:4:0;35805:853;;;;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2173:186::-;2232:6;2285:2;2273:9;2264:7;2260:23;2256:32;2253:52;;;2301:1;2298;2291:12;2253:52;2324:29;2343:9;2324:29;:::i;2364:632::-;2535:2;2587:21;;;2657:13;;2560:18;;;2679:22;;;2506:4;;2535:2;2758:15;;;;2732:2;2717:18;;;2506:4;2801:169;2815:6;2812:1;2809:13;2801:169;;;2876:13;;2864:26;;2945:15;;;;2910:12;;;;2837:1;2830:9;2801:169;;;-1:-1:-1;2987:3:1;;2364:632;-1:-1:-1;;;;;;2364:632:1:o;3001:328::-;3078:6;3086;3094;3147:2;3135:9;3126:7;3122:23;3118:32;3115:52;;;3163:1;3160;3153:12;3115:52;3186:29;3205:9;3186:29;:::i;:::-;3176:39;;3234:38;3268:2;3257:9;3253:18;3234:38;:::i;:::-;3224:48;;3319:2;3308:9;3304:18;3291:32;3281:42;;3001:328;;;;;:::o;3516:347::-;3581:6;3589;3642:2;3630:9;3621:7;3617:23;3613:32;3610:52;;;3658:1;3655;3648:12;3610:52;3681:29;3700:9;3681:29;:::i;:::-;3671:39;;3760:2;3749:9;3745:18;3732:32;3807:5;3800:13;3793:21;3786:5;3783:32;3773:60;;3829:1;3826;3819:12;3773:60;3852:5;3842:15;;;3516:347;;;;;:::o;3868:127::-;3929:10;3924:3;3920:20;3917:1;3910:31;3960:4;3957:1;3950:15;3984:4;3981:1;3974:15;4000:1138;4095:6;4103;4111;4119;4172:3;4160:9;4151:7;4147:23;4143:33;4140:53;;;4189:1;4186;4179:12;4140:53;4212:29;4231:9;4212:29;:::i;:::-;4202:39;;4260:38;4294:2;4283:9;4279:18;4260:38;:::i;:::-;4250:48;;4345:2;4334:9;4330:18;4317:32;4307:42;;4400:2;4389:9;4385:18;4372:32;4423:18;4464:2;4456:6;4453:14;4450:34;;;4480:1;4477;4470:12;4450:34;4518:6;4507:9;4503:22;4493:32;;4563:7;4556:4;4552:2;4548:13;4544:27;4534:55;;4585:1;4582;4575:12;4534:55;4621:2;4608:16;4643:2;4639;4636:10;4633:36;;;4649:18;;:::i;:::-;4724:2;4718:9;4692:2;4778:13;;-1:-1:-1;;4774:22:1;;;4798:2;4770:31;4766:40;4754:53;;;4822:18;;;4842:22;;;4819:46;4816:72;;;4868:18;;:::i;:::-;4908:10;4904:2;4897:22;4943:2;4935:6;4928:18;4983:7;4978:2;4973;4969;4965:11;4961:20;4958:33;4955:53;;;5004:1;5001;4994:12;4955:53;5060:2;5055;5051;5047:11;5042:2;5034:6;5030:15;5017:46;5105:1;5100:2;5095;5087:6;5083:15;5079:24;5072:35;5126:6;5116:16;;;;;;;4000:1138;;;;;;;:::o;5143:260::-;5211:6;5219;5272:2;5260:9;5251:7;5247:23;5243:32;5240:52;;;5288:1;5285;5278:12;5240:52;5311:29;5330:9;5311:29;:::i;:::-;5301:39;;5359:38;5393:2;5382:9;5378:18;5359:38;:::i;:::-;5349:48;;5143:260;;;;;:::o;5408:380::-;5487:1;5483:12;;;;5530;;;5551:61;;5605:4;5597:6;5593:17;5583:27;;5551:61;5658:2;5650:6;5647:14;5627:18;5624:38;5621:161;;;5704:10;5699:3;5695:20;5692:1;5685:31;5739:4;5736:1;5729:15;5767:4;5764:1;5757:15;5621:161;;5408:380;;;:::o;6626:410::-;6828:2;6810:21;;;6867:2;6847:18;;;6840:30;6906:34;6901:2;6886:18;;6879:62;-1:-1:-1;;;6972:2:1;6957:18;;6950:44;7026:3;7011:19;;6626:410::o;8162:470::-;8341:3;8379:6;8373:13;8395:53;8441:6;8436:3;8429:4;8421:6;8417:17;8395:53;:::i;:::-;8511:13;;8470:16;;;;8533:57;8511:13;8470:16;8567:4;8555:17;;8533:57;:::i;:::-;8606:20;;8162:470;-1:-1:-1;;;;8162:470:1:o;9855:127::-;9916:10;9911:3;9907:20;9904:1;9897:31;9947:4;9944:1;9937:15;9971:4;9968:1;9961:15;9987:125;10027:4;10055:1;10052;10049:8;10046:34;;;10060:18;;:::i;:::-;-1:-1:-1;10097:9:1;;9987:125::o;10117:128::-;10157:3;10188:1;10184:6;10181:1;10178:13;10175:39;;;10194:18;;:::i;:::-;-1:-1:-1;10230:9:1;;10117:128::o;11683:414::-;11885:2;11867:21;;;11924:2;11904:18;;;11897:30;11963:34;11958:2;11943:18;;11936:62;-1:-1:-1;;;12029:2:1;12014:18;;12007:48;12087:3;12072:19;;11683:414::o;12102:135::-;12141:3;-1:-1:-1;;12162:17:1;;12159:43;;;12182:18;;:::i;:::-;-1:-1:-1;12229:1:1;12218:13;;12102:135::o;12242:127::-;12303:10;12298:3;12294:20;12291:1;12284:31;12334:4;12331:1;12324:15;12358:4;12355:1;12348:15;12374:120;12414:1;12440;12430:35;;12445:18;;:::i;:::-;-1:-1:-1;12479:9:1;;12374:120::o;12499:112::-;12531:1;12557;12547:35;;12562:18;;:::i;:::-;-1:-1:-1;12596:9:1;;12499:112::o;12616:127::-;12677:10;12672:3;12668:20;12665:1;12658:31;12708:4;12705:1;12698:15;12732:4;12729:1;12722:15;12748:489;-1:-1:-1;;;;;13017:15:1;;;12999:34;;13069:15;;13064:2;13049:18;;13042:43;13116:2;13101:18;;13094:34;;;13164:3;13159:2;13144:18;;13137:31;;;12942:4;;13185:46;;13211:19;;13203:6;13185:46;:::i;:::-;13177:54;12748:489;-1:-1:-1;;;;;;12748:489:1:o;13242:249::-;13311:6;13364:2;13352:9;13343:7;13339:23;13335:32;13332:52;;;13380:1;13377;13370:12;13332:52;13412:9;13406:16;13431:30;13455:5;13431:30;:::i
Swarm Source
ipfs://c9303e3cd51eb242dc5a3420239090b0e2b0acd31a6eab7d8a5d56e8bf104cfb
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|