Transactions
Internal Transactions
Coin Balance History
Code
Read Contract
Read Proxy
Write Contract
Write Proxy
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- CutShadowcornDiamond
- Optimization enabled
- true
- Compiler version
- v0.8.19+commit.7dd6d404
- Optimization runs
- 999999
- EVM Version
- paris
- Verified at
- 2024-06-15T17:34:06.870361Z
src/implementation/CutShadowcornDiamond.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {CutDiamond} from '../../lib/@lagunagames/cu-common-tokens/lib/@lagunagames/lg-diamond-template/src/diamond/CutDiamond.sol'; import {ERC721Fragment} from '../../lib/@lagunagames/cu-common-tokens/src/implementation/ERC721Fragment.sol'; import {HatchingFragment} from './HatchingFragment.sol'; import {NamesFragment} from './NamesFragment.sol'; import {RNGFragment} from './RNGFragment.sol'; import {StatsFragment} from './StatsFragment.sol'; // @TODO: Implement all facet functions that should be accessible to the public /// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility /// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file /// @dev This interface is used internally to call endpoints on a deployed diamond cluster. contract CutShadowcornDiamond is CutDiamond, ERC721Fragment, HatchingFragment, NamesFragment, RNGFragment, StatsFragment {}
src/implementation/NamesFragment.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; contract NamesFragment { function lookupFirstName(uint256 _nameId) external view returns (string memory) {} function lookupLastName(uint256 _nameId) external view returns (string memory) {} function getFullName(uint256 _tokenId) external view returns (string memory) {} function getFullNameFromDNA(uint256 _dna) public view returns (string memory) {} }
src/implementation/RNGFragment.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; contract RNGFragment { function rawFulfillRandomness(uint256 nonce, uint256[] calldata rngList) external {} }
lib/@lagunagames/cu-common-tokens/lib/@lagunagames/lg-diamond-template/src/diamond/CutDiamond.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {IDiamondCut} from '../interfaces/IDiamondCut.sol'; import {IDiamondLoupe} from '../interfaces/IDiamondLoupe.sol'; import {IERC165} from '../interfaces/IERC165.sol'; import {LibSupportsInterface} from '../libraries/LibSupportsInterface.sol'; /// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility /// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file /// @dev This interface is used internally to call endpoints on a deployed diamond cluster. contract CutDiamond is IERC165 { /// @notice Query if a contract implements an interface /// @param interfaceID The interface identifier, as specified in ERC-165 /// @dev Interface identification is specified in ERC-165. This function /// uses less than 30,000 gas. /// @return `true` if the contract implements `interfaceID` and /// `interfaceID` is not 0xffffffff, `false` otherwise function supportsInterface(bytes4 interfaceID) external pure returns (bool) { return (interfaceID == type(IERC165).interfaceId); } /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @param _diamondCut Contains the facet addresses and function selectors /// @param _init The address of the contract or facet to execute _calldata /// @param _calldata A function call, including function selector and arguments /// _calldata is executed with delegatecall on _init function diamondCut( IDiamondCut.FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata ) external {} /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @dev This is a convenience implementation of the above /// @param _diamondCut Contains the facet addresses and function selectors function diamondCut(IDiamondCut.FacetCut[] calldata _diamondCut) external {} /// @notice Removes one selector from the Diamond, using DiamondCut /// @param selector - The byte4 signature for a method selector to remove /// @custom:emits FacetCutAction function cutSelector(bytes4 selector) external {} /// @notice Removes one selector from the Diamond, using removeFunction() /// @param selector - The byte4 signature for a method selector to remove function deleteSelector(bytes4 selector) external {} /// @notice Removes many selectors from the Diamond, using DiamondCut /// @param selectors - Array of byte4 signatures for method selectors to remove /// @custom:emits FacetCutAction function cutSelectors(bytes4[] memory selectors) external {} /// @notice Removes many selectors from the Diamond, using removeFunctions() /// @param selectors - Array of byte4 signatures for method selectors to remove function deleteSelectors(bytes4[] memory selectors) external {} /// @notice Removes any selectors from the Diamond that come from a target /// @notice contract address, using DiamondCut. /// @param facet - The address of the Facet smart contract to remove /// @custom:emits FacetCutAction function cutFacet(address facet) external {} /// @notice Gets all facets and their selectors. /// @return facets_ Facet function facets() external view returns (IDiamondLoupe.Facet[] memory facets_) {} /// @notice Gets all the function selectors provided by a facet. /// @param _facet The facet address. /// @return facetFunctionSelectors_ function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory facetFunctionSelectors_) {} /// @notice Get all the facet addresses used by a diamond. /// @return facetAddresses_ function facetAddresses() external view returns (address[] memory facetAddresses_) {} /// @notice Gets the facet that supports the given selector. /// @dev If facet is not found return address(0). /// @param _functionSelector The function selector. /// @return facetAddress_ The facet address. function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_) {} /// @notice Get the address of the owner /// @return The address of the owner. function owner() external view returns (address) {} /// @notice Set the address of the new owner of the contract /// @dev Set _newOwner to address(0) to renounce any ownership. /// @param _newOwner The address of the new owner of the contract function transferOwnership(address _newOwner) external {} /// @notice Set the dummy "implementation" contract address /// @custom:emits Upgraded function setImplementation(address _implementation) external {} /// @notice Get the dummy "implementation" contract address /// @return The dummy "implementation" contract address function implementation() external view returns (address) {} /// @notice Set whether an interface is implemented /// @dev Only the contract owner can call this function /// @param interfaceID The interface identifier, as specified in ERC-165 /// @param implemented `true` if the contract implements `interfaceID` function setSupportsInterface(bytes4 interfaceID, bool implemented) external {} /// @notice Set a list of interfaces as implemented or not /// @dev Only the contract owner can call this function /// @param interfaceIDs The interface identifiers, as specified in ERC-165 /// @param allImplemented `true` if the contract implements all interfaces function setSupportsInterfaces(bytes4[] calldata interfaceIDs, bool allImplemented) external {} /// @notice Returns a list of interfaces that have (ever) been supported /// @return The list of interfaces function interfaces() external view returns (LibSupportsInterface.KnownInterface[] memory) {} }
lib/@lagunagames/cu-common-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IDiamondCut.sol
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 /******************************************************************************/ interface IDiamondCut { enum FacetCutAction { Add, Replace, Remove } // Add=0, Replace=1, Remove=2 struct FacetCut { address facetAddress; FacetCutAction action; bytes4[] functionSelectors; } /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @param _diamondCut Contains the facet addresses and function selectors /// @param _init The address of the contract or facet to execute _calldata /// @param _calldata A function call, including function selector and arguments /// _calldata is executed with delegatecall on _init function diamondCut(FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata) external; event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata); }
lib/@lagunagames/cu-common-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IDiamondLoupe.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; // Adapted from the Diamond 3 reference implementation by Nick Mudge: // https://github.com/mudgen/diamond-3-hardhat // A loupe is a small magnifying glass used to look at diamonds. // These functions look at diamonds interface IDiamondLoupe { /// These functions are expected to be called frequently /// by tools. struct Facet { address facetAddress; bytes4[] functionSelectors; } /// @notice Gets all facet addresses and their four byte function selectors. /// @return facets_ Facet function facets() external view returns (Facet[] memory facets_); /// @notice Gets all the function selectors supported by a specific facet. /// @param _facet The facet address. /// @return facetFunctionSelectors_ function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory facetFunctionSelectors_); /// @notice Get all the facet addresses used by a diamond. /// @return facetAddresses_ function facetAddresses() external view returns (address[] memory facetAddresses_); /// @notice Gets the facet that supports the given selector. /// @dev If facet is not found return address(0). /// @param _functionSelector The function selector. /// @return facetAddress_ The facet address. function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_); }
lib/@lagunagames/cu-common-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IERC165.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title ERC-165 Standard Interface Detection /// @dev https://eips.ethereum.org/EIPS/eip-165 interface IERC165 { /// @notice Query if a contract implements an interface /// @param interfaceID The interface identifier, as specified in ERC-165 /// @dev Interface identification is specified in ERC-165. This function /// uses less than 30,000 gas. /// @return `true` if the contract implements `interfaceID` and /// `interfaceID` is not 0xffffffff, `false` otherwise function supportsInterface(bytes4 interfaceID) external view returns (bool); }
lib/@lagunagames/cu-common-tokens/lib/@lagunagames/lg-diamond-template/src/libraries/LibContractOwner.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Library for the common LG implementation of ERC-173 Contract Ownership Standard /// @author [email protected] /// @custom:storage-location erc1967:eip1967.proxy.admin library LibContractOwner { error CallerIsNotContractOwner(); /// @notice This emits when ownership of a contract changes. /// @dev ERC-173 event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /// @notice Emitted when the admin account has changed. /// @dev ERC-1967 event AdminChanged(address previousAdmin, address newAdmin); // @dev Standard storage slot for the ERC-1967 admin address // @dev bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1) bytes32 private constant ADMIN_SLOT_POSITION = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; struct LibOwnerStorage { address contractOwner; } /// @notice Storage slot for Contract Owner state data function ownerStorage() internal pure returns (LibOwnerStorage storage storageSlot) { bytes32 position = ADMIN_SLOT_POSITION; // solhint-disable-next-line no-inline-assembly assembly { storageSlot.slot := position } } /// @notice Sets the contract owner /// @param newOwner The new owner /// @custom:emits OwnershipTransferred function setContractOwner(address newOwner) internal { LibOwnerStorage storage ls = ownerStorage(); address previousOwner = ls.contractOwner; ls.contractOwner = newOwner; emit OwnershipTransferred(previousOwner, newOwner); emit AdminChanged(previousOwner, newOwner); } /// @notice Gets the contract owner wallet /// @return owner The contract owner function contractOwner() internal view returns (address owner) { owner = ownerStorage().contractOwner; } /// @notice Ensures that the caller is the contract owner, or throws an error. /// @custom:throws LibAccess: Must be contract owner function enforceIsContractOwner() internal view { if (msg.sender != ownerStorage().contractOwner) revert CallerIsNotContractOwner(); } }
lib/@lagunagames/cu-common-tokens/lib/@lagunagames/lg-diamond-template/src/libraries/LibSupportsInterface.sol
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; import {LibContractOwner} from '../libraries/LibContractOwner.sol'; /// @title Library for the common LG implementation of ERC-165 /// @author [email protected] /// @custom:storage-location erc7201:games.laguna.LibSupportsInterface library LibSupportsInterface { bytes32 public constant SUPPORTS_INTERFACE_STORAGE_POSITION = keccak256(abi.encode(uint256(keccak256('games.laguna.LibSupportsInterface')) - 1)) & ~bytes32(uint256(0xff)); struct KnownInterface { bytes4 selector; bool supported; } struct SupportsInterfaceStorage { mapping(bytes4 selector => bool supported) supportedInterfaces; bytes4[] interfaces; } /// @notice Storage slot for SupportsInterface state data function supportsInterfaceStorage() internal pure returns (SupportsInterfaceStorage storage storageSlot) { bytes32 position = SUPPORTS_INTERFACE_STORAGE_POSITION; // solhint-disable-next-line no-inline-assembly assembly { storageSlot.slot := position } } /// @notice Checks if a contract implements an interface /// @param _interfaceId Interface ID to check /// @return true if the contract implements the interface function supportsInterface(bytes4 _interfaceId) internal view returns (bool) { return supportsInterfaceStorage().supportedInterfaces[_interfaceId]; } /// @notice Sets whether a contract implements an interface /// @param _interfaceId Interface ID to set /// @param _implemented true if the contract implements the interface function setSupportsInterface(bytes4 _interfaceId, bool _implemented) internal { SupportsInterfaceStorage storage s = supportsInterfaceStorage(); if (_implemented && !s.supportedInterfaces[_interfaceId]) { s.interfaces.push(_interfaceId); } s.supportedInterfaces[_interfaceId] = _implemented; } /// @notice Returns the list of interfaces this contract has supported, and whether they are supported currently. /// @return The list of interfaces function getKnownInterfaces() internal view returns (KnownInterface[] memory) { SupportsInterfaceStorage storage s = supportsInterfaceStorage(); KnownInterface[] memory interfaces = new KnownInterface[](s.interfaces.length); for (uint i = 0; i < s.interfaces.length; ++i) { interfaces[i] = KnownInterface({ selector: s.interfaces[i], supported: s.supportedInterfaces[s.interfaces[i]] }); } return interfaces; } /// @notice Calculate the interface ID for a list of function selectors /// @dev Per ERC-165: "We define the interface identifier as the XOR of all function selectors in the interface" /// @param functionSelectors The list of function selectors in the interface /// @return interfaceId The ERC-165 interface ID function calculateInterfaceId(bytes4[] memory functionSelectors) internal pure returns (bytes4 interfaceId) { for (uint256 i = 0; i < functionSelectors.length; ++i) { interfaceId ^= functionSelectors[i]; } } }
lib/@lagunagames/cu-common-tokens/src/implementation/ERC721Fragment.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility /// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file /// @dev This interface is used internally to call endpoints on a deployed diamond cluster. contract ERC721Fragment { /** * @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 This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); /** * @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 ERC-721 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 address zero. * * 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) {} /** * @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) {} /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256) {} /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256) {} /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256) {} /** * @dev Returns the URI for the contract level collection. * @dev See https://docs.opensea.io/docs/contract-level-metadata */ function contractURI() external view returns (string memory) {} /** * @dev Reference URI for the NFT license file hosted on Arweave permaweb. */ function license() external view returns (string memory) {} }
lib/@lagunagames/cu-common/src/libraries/LibConstraints.sol
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; library LibConstraints { /// @notice This Constraints are used to check if the user meets // certain requirements to mint rituals or consume charges from // a ritual in the minion hatchery // @param constraintType What will the constraint check against // @param operator The conditional operator that will be checked against the constraintType // @param value The value that will be checked with the operator against the constraintType struct Constraint { uint128 constraintType; uint128 operator; uint256 value; } //DO NOT REORDER THIS VALUES enum ConstraintType { NONE, //0 HATCHERY_LEVEL, //1 SHADOWCORN_RARITY, //2 SHADOWCORN_CLASS, //3 SHADOWCORN_BALANCE, //4 SHADOWCORN_MIGHT, //5 SHADOWCORN_WICKEDNESS, //6 SHADOWCORN_TENACITY, //7 SHADOWCORN_CUNNING, //8 SHADOWCORN_ARCANA, //9 BALANCE_UNICORN, //10 BALANCE_SHADOWCORN //11 } // @notice This function is used to check if a constraint type is valid. // @param constraintType The constraint type to check. function enforceValidConstraintType(uint256 constraintType) internal pure { require(constraintType <= uint(type(ConstraintType).max), "LibConstraints: invalid constraint type."); } }
src/implementation/HatchingFragment.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; contract HatchingFragment { function beginHatching(uint256 terminusPoolId) external {} function retryHatching(uint256 tokenId) external {} function getHatchesStatus(address playerWallet) external view returns (uint256[] memory, string[] memory) {} function getHatchesInProgress(address playerWallet) external view returns (uint256[] memory, bool[] memory) {} function setHatchingCosts(uint256 rbwCost, uint256 unimCost) external {} }
src/implementation/StatsFragment.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {LibConstraints} from '../../lib/@lagunagames/cu-common/src/libraries/LibConstraints.sol'; contract StatsFragment { function initializeData() external {} function checkConstraint(address owner, LibConstraints.Constraint memory constraint) external view returns (bool) {} function checkConstraintForUserAndExtraTokens( address owner, LibConstraints.Constraint memory constraint, uint256[] memory extraTokensToCheck ) external view returns (bool) {} function getClass(uint256 tokenId) public view returns (uint256 class) {} function getClassRarityAndStat( uint256 tokenId, uint256 statId ) public view returns (uint256 class, uint256 rarity, uint256 stat) {} function getStats( uint256 tokenId ) public view returns (uint256 might, uint256 wickedness, uint256 tenacity, uint256 cunning, uint256 arcana) {} function getMight(uint256 tokenId) public view returns (uint256 might) {} function getWickedness(uint256 tokenId) public view returns (uint256 wickedness) {} function getTenacity(uint256 tokenId) public view returns (uint256 tenacity) {} function getCunning(uint256 tokenId) public view returns (uint256 cunning) {} function getArcana(uint256 tokenId) public view returns (uint256 arcana) {} function getRarity(uint256 tokenId) public view returns (uint256 rarity) {} }
Compiler Settings
{"viaIR":true,"remappings":["ds-test/=lib/forge-std/lib/ds-test/src/","forge-std/=lib/forge-std/src/","@openzeppelin-contracts/=lib/openzeppelin-contracts/","@lagunagames/=lib/@lagunagames/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","openzeppelin-contracts/=lib/openzeppelin-contracts/","openzeppelin/=lib/openzeppelin-contracts/contracts/","web3/=lib/web3/contracts/"],"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":999999,"enabled":true,"details":{"yulDetails":{"stackAllocation":true,"optimizerSteps":"dhfoDgvulfnTUtnIf"},"yul":true,"peephole":true,"inliner":true,"deduplicate":true,"cse":true}},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"libraries":{},"evmVersion":"paris"}
Contract ABI
[{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"BatchMetadataUpdate","inputs":[{"type":"uint256","name":"_fromTokenId","internalType":"uint256","indexed":false},{"type":"uint256","name":"_toTokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MetadataUpdate","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"balance","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"beginHatching","inputs":[{"type":"uint256","name":"terminusPoolId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"checkConstraint","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"tuple","name":"constraint","internalType":"struct LibConstraints.Constraint","components":[{"type":"uint128","name":"constraintType","internalType":"uint128"},{"type":"uint128","name":"operator","internalType":"uint128"},{"type":"uint256","name":"value","internalType":"uint256"}]}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"checkConstraintForUserAndExtraTokens","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"tuple","name":"constraint","internalType":"struct LibConstraints.Constraint","components":[{"type":"uint128","name":"constraintType","internalType":"uint128"},{"type":"uint128","name":"operator","internalType":"uint128"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"uint256[]","name":"extraTokensToCheck","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"contractURI","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutFacet","inputs":[{"type":"address","name":"facet","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutSelector","inputs":[{"type":"bytes4","name":"selector","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutSelectors","inputs":[{"type":"bytes4[]","name":"selectors","internalType":"bytes4[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteSelector","inputs":[{"type":"bytes4","name":"selector","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteSelectors","inputs":[{"type":"bytes4[]","name":"selectors","internalType":"bytes4[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"diamondCut","inputs":[{"type":"tuple[]","name":"_diamondCut","internalType":"struct IDiamondCut.FacetCut[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"uint8","name":"action","internalType":"enum IDiamondCut.FacetCutAction"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]},{"type":"address","name":"_init","internalType":"address"},{"type":"bytes","name":"_calldata","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"diamondCut","inputs":[{"type":"tuple[]","name":"_diamondCut","internalType":"struct IDiamondCut.FacetCut[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"uint8","name":"action","internalType":"enum IDiamondCut.FacetCutAction"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"facetAddress_","internalType":"address"}],"name":"facetAddress","inputs":[{"type":"bytes4","name":"_functionSelector","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"facetAddresses_","internalType":"address[]"}],"name":"facetAddresses","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes4[]","name":"facetFunctionSelectors_","internalType":"bytes4[]"}],"name":"facetFunctionSelectors","inputs":[{"type":"address","name":"_facet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"facets_","internalType":"struct IDiamondLoupe.Facet[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]}],"name":"facets","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"operator","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"arcana","internalType":"uint256"}],"name":"getArcana","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"class","internalType":"uint256"}],"name":"getClass","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"class","internalType":"uint256"},{"type":"uint256","name":"rarity","internalType":"uint256"},{"type":"uint256","name":"stat","internalType":"uint256"}],"name":"getClassRarityAndStat","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"statId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"cunning","internalType":"uint256"}],"name":"getCunning","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"getFullName","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"getFullNameFromDNA","inputs":[{"type":"uint256","name":"_dna","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"},{"type":"bool[]","name":"","internalType":"bool[]"}],"name":"getHatchesInProgress","inputs":[{"type":"address","name":"playerWallet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"},{"type":"string[]","name":"","internalType":"string[]"}],"name":"getHatchesStatus","inputs":[{"type":"address","name":"playerWallet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"might","internalType":"uint256"}],"name":"getMight","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"rarity","internalType":"uint256"}],"name":"getRarity","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"might","internalType":"uint256"},{"type":"uint256","name":"wickedness","internalType":"uint256"},{"type":"uint256","name":"tenacity","internalType":"uint256"},{"type":"uint256","name":"cunning","internalType":"uint256"},{"type":"uint256","name":"arcana","internalType":"uint256"}],"name":"getStats","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"tenacity","internalType":"uint256"}],"name":"getTenacity","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"wickedness","internalType":"uint256"}],"name":"getWickedness","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"implementation","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initializeData","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct LibSupportsInterface.KnownInterface[]","components":[{"type":"bytes4","name":"selector","internalType":"bytes4"},{"type":"bool","name":"supported","internalType":"bool"}]}],"name":"interfaces","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"license","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"lookupFirstName","inputs":[{"type":"uint256","name":"_nameId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"lookupLastName","inputs":[{"type":"uint256","name":"_nameId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"owner","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rawFulfillRandomness","inputs":[{"type":"uint256","name":"nonce","internalType":"uint256"},{"type":"uint256[]","name":"rngList","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"retryHatching","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setHatchingCosts","inputs":[{"type":"uint256","name":"rbwCost","internalType":"uint256"},{"type":"uint256","name":"unimCost","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setImplementation","inputs":[{"type":"address","name":"_implementation","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSupportsInterface","inputs":[{"type":"bytes4","name":"interfaceID","internalType":"bytes4"},{"type":"bool","name":"implemented","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSupportsInterfaces","inputs":[{"type":"bytes4[]","name":"interfaceIDs","internalType":"bytes4[]"},{"type":"bool","name":"allImplemented","internalType":"bool"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceID","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"_newOwner","internalType":"address"}]}]
Contract Creation Code
0x60806040523461001a576040516111c961002082396111c990f35b600080fdfe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461034557806302578f1b1461034057806306fdde03146102b4578063081812fc14610304578063095ea7b31461033b57806318160ddd1461033657806319101530146102cd5780631ed7a56b146103315780631f931c1c1461032c57806323b872dd146103185780632f745c59146103275780633c594255146102cd5780633da2579c146103225780633f9a3c9c1461031d57806342842e0e14610318578063465411c1146102c857806348758697146102cd5780634f6ccce7146102cd57806350a6b1e1146102c8578063512d62df146102cd57806352ef6b2c1461031357806354e7796f1461030e5780635ba88c4e146102cd5780635c60da1b146102eb57806362c0963c146103095780636352211e146103045780636463e3a01461029657806366e5722b146102ff5780636b87d24c146102b457806370a08231146102fa5780637a0ed627146102f55780637b303965146102f057806381dca44a146102c8578063876e305a146102e65780638da5cb5b146102eb57806395d89b41146102b45780639ca8bbf2146102e6578063a22cb465146102e1578063a6638c0e146102a0578063adfca15e146102dc578063b88d4fde146102d7578063c1a13da7146102cd578063c596e400146102d2578063c6fc8e2f146102cd578063c87b56dd146102c8578063c9516ab3146102c8578063cdffacc6146102c3578063d784d426146102a0578063debb3856146102be578063e0435c0b146102be578063e57e69c6146102b9578063e8a3d485146102b4578063e985e9c5146102af578063ec968b60146102aa578063f2709f21146102a5578063f2fde38b146102a0578063f7308ef91461029b5763ff6f3e0b0361034a575b610bb1565b611152565b610dfc565b611089565b610fdf565b610fac565b6104f6565b610f79565b610f43565b610f2d565b6109be565b6105e8565b610f04565b610e8f565b610e1d565b610dec565b610dc2565b610aa6565b610d8a565b610d2e565b610c0d565b610bfd565b61052c565b610af6565b610a96565b610a3f565b61083e565b6109a9565b610993565b61085a565b6107f0565b610703565b6105c2565b6105b2565b610449565b6103a0565b600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081165b0361034a57565b905035906103878261034f565b565b9060208282031261034a5761039d9161037a565b90565b3461034a5761040f6103fd6103b6366004610389565b7fffffffff00000000000000000000000000000000000000000000000000000000167f01ffc9a7000000000000000000000000000000000000000000000000000000001490565b60405191829182901515815260200190565b0390f35b80610373565b9050359061038782610413565b919060408382031261034a5761039d906104408185610419565b93602001610419565b3461034a57610459366004610426565b50506040515b005b600091031261034a57565b60005b83811061047f5750506000910152565b818101518382015260200161046f565b6104b06104b96020936104e1936104a4815190565b80835293849260200190565b9586910161046c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b0190565b602080825261039d9291019061048f565b3461034a57610506366004610461565b61040f60605b604051918291826104e5565b9060208282031261034a5761039d91610419565b3461034a5761040f610548610542366004610518565b50600090565b6040519182918273ffffffffffffffffffffffffffffffffffffffff909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff8116610373565b905035906103878261056f565b919060408382031261034a5761039d90610440818561058b565b3461034a57610459366004610598565b3461034a576105d2366004610461565b61040f60005b6040519182918290815260200190565b3461034a5761040f6105d8610542366004610518565b9060208282031261034a5761039d9161058b565b9061063261062b610621845190565b8084529260200190565b9260200190565b9060005b8181106106435750505090565b9091926106606106596001928651815260200190565b9460200190565b929101610636565b9061039d9161048f565b9061068861067e835190565b8083529160200190565b908161069a6020830284019460200190565b926000915b8383106106ae57505050505090565b909192939460206106d16106ca83856001950387528951610668565b9760200190565b930193019193929061069f565b604080825261039d9391926106f591840190610612565b916020818403910152610672565b3461034a5761071e6107163660046105fe565b506060908190565b9061040f61072b60405190565b928392836106de565b909182601f8301121561034a5781359167ffffffffffffffff831161034a57602001926020830284011161034a57565b909182601f8301121561034a5781359167ffffffffffffffff831161034a57602001926001830284011161034a57565b919060608382031261034a57823567ffffffffffffffff811161034a57816107bd918501610734565b9290936107cd836020830161058b565b92604082013567ffffffffffffffff811161034a576107ec9201610764565b9091565b3461034a57610800366004610794565b505050505061045f60405190565b909160608284031261034a5761039d610827848461058b565b93610835816020860161058b565b93604001610419565b3461034a5761084e36600461080e565b50505061045f60405190565b3461034a5761040f6105d8610870366004610598565b9061116e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810190811067ffffffffffffffff8211176108e557604052565b610876565b906103876108f760405190565b92836108a5565b6fffffffffffffffffffffffffffffffff8116610373565b90503590610387826108fe565b91909160608184031261034a5761096a61093d60606108ea565b93600061094a8285610916565b90860152602061095c82828601610916565b908601526040809301610419565b90830152565b919060808382031261034a5761039d9061098a818561058b565b93602001610923565b3461034a5761040f6103fd610870366004610970565b3461034a576109b9366004610461565b604051005b3461034a5761040f61050c6109d4366004610518565b50606090565b906109e961062b610621845190565b9060005b8181106109fa5750505090565b909192610a26610659600192865173ffffffffffffffffffffffffffffffffffffffff16815260200190565b9291016109ed565b602080825261039d929101906109da565b3461034a57610a4f366004610461565b6040518061040f606082610a2e565b801515610373565b9050359061038782610a5e565b919060408382031261034a5761039d90610a8d818561037a565b93602001610a66565b3461034a57610459366004610a73565b3461034a57610ab6366004610461565b61040f6000610548565b91909160408184031261034a57610ad78382610419565b92602082013567ffffffffffffffff811161034a576107ec9201610734565b3461034a5761084e366004610ac0565b67ffffffffffffffff81116108e55760208091020190565b90929192610b33610b2e82610b06565b6108ea565b938185526020808601920283019281841161034a57915b838310610b575750505050565b60208091610b65848661037a565b815201920191610b4a565b9080601f8301121561034a5781602061039d93359101610b1e565b9060208282031261034a57813567ffffffffffffffff811161034a5761039d9201610b70565b3461034a57610bc1366004610b8b565b50604051005b9160408383031261034a57823567ffffffffffffffff811161034a57610bf28361039d928601610734565b939094602001610a66565b3461034a5761084e366004610bc7565b3461034a5761040f6105d86105423660046105fe565b90610c3261062b610621845190565b9060005b818110610c435750505090565b909192610c7b61065960019286517fffffffff0000000000000000000000000000000000000000000000000000000016815260200190565b929101610c36565b805173ffffffffffffffffffffffffffffffffffffffff16825261039d91604081019160200151906020818403910152610c23565b9061039d91610c83565b90610cce61067e835190565b9081610ce06020830284019460200190565b926000915b838310610cf457505050505090565b90919293946020610d106106ca83856001950387528951610cb8565b9301930191939290610ce5565b602080825261039d92910190610cc2565b3461034a57610d3e366004610461565b6040518061040f606082610d1d565b9095949261038794610d7f610d8692610d78608096610d7160a088019c6000890152565b6020870152565b6040850152565b6060830152565b0152565b3461034a5761040f610dac610da0366004610518565b50600080918180918190565b91610db995939560405190565b95869586610d4d565b3461034a57610bc1366004610518565b919060408382031261034a5761039d90610a8d818561058b565b3461034a57610459366004610dd2565b3461034a57610bc13660046105fe565b602080825261039d92910190610c23565b3461034a5761040f610e336109d43660046105fe565b60405191829182610e0c565b9060808282031261034a57610e54818361058b565b92610e62826020850161058b565b92610e708360408301610419565b92606082013567ffffffffffffffff811161034a576107ec9201610764565b3461034a57610800366004610e3f565b90610eae61062b610621845190565b9060005b818110610ebf5750505090565b909192610ed761065960019286511515815260200190565b929101610eb2565b604080825261039d939192610ef691840190610612565b916020818403910152610e9f565b3461034a57610f176107163660046105fe565b9061040f610f2460405190565b92839283610edf565b3461034a5761040f610548610542366004610389565b3461034a57610bc1366004610389565b9060208282031261034a57813567ffffffffffffffff811161034a576107ec9201610734565b3461034a57610459366004610f53565b919060408382031261034a5761039d90610fa3818561058b565b9360200161058b565b3461034a5761040f6103fd610870366004610f89565b908152606081019392610387929091604091610d86906020830152565b3461034a5761040f610ffb610ff5366004610426565b90611183565b60405191939193849384610fc2565b9061101961062b610621845190565b9060005b81811061102a5750505090565b909192611070610659600192865180517fffffffff0000000000000000000000000000000000000000000000000000000016825260209081015115159082015260400190565b92910161101d565b602080825261039d9291019061100a565b3461034a57611099366004610461565b6040518061040f606082611078565b909291926110b8610b2e82610b06565b938185526020808601920283019281841161034a57915b8383106110dc5750505050565b602080916110ea8486610419565b8152019201916110cf565b9080601f8301121561034a5781602061039d933591016110a8565b9160a08383031261034a57611125828461058b565b926111338360208301610923565b92608082013567ffffffffffffffff811161034a5761039d92016110f5565b3461034a5761040f6103fd611168366004611110565b91611178565b505061039d600090565b50505061039d600090565b505061118d600090565b8091819056fea2646970667358221220ba228a730e44afbe1b53780e6b70c3cf07c4e3bf7ccd2ce9f2275f6a3b419ccc64736f6c63430008130033
Deployed ByteCode
0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461034557806302578f1b1461034057806306fdde03146102b4578063081812fc14610304578063095ea7b31461033b57806318160ddd1461033657806319101530146102cd5780631ed7a56b146103315780631f931c1c1461032c57806323b872dd146103185780632f745c59146103275780633c594255146102cd5780633da2579c146103225780633f9a3c9c1461031d57806342842e0e14610318578063465411c1146102c857806348758697146102cd5780634f6ccce7146102cd57806350a6b1e1146102c8578063512d62df146102cd57806352ef6b2c1461031357806354e7796f1461030e5780635ba88c4e146102cd5780635c60da1b146102eb57806362c0963c146103095780636352211e146103045780636463e3a01461029657806366e5722b146102ff5780636b87d24c146102b457806370a08231146102fa5780637a0ed627146102f55780637b303965146102f057806381dca44a146102c8578063876e305a146102e65780638da5cb5b146102eb57806395d89b41146102b45780639ca8bbf2146102e6578063a22cb465146102e1578063a6638c0e146102a0578063adfca15e146102dc578063b88d4fde146102d7578063c1a13da7146102cd578063c596e400146102d2578063c6fc8e2f146102cd578063c87b56dd146102c8578063c9516ab3146102c8578063cdffacc6146102c3578063d784d426146102a0578063debb3856146102be578063e0435c0b146102be578063e57e69c6146102b9578063e8a3d485146102b4578063e985e9c5146102af578063ec968b60146102aa578063f2709f21146102a5578063f2fde38b146102a0578063f7308ef91461029b5763ff6f3e0b0361034a575b610bb1565b611152565b610dfc565b611089565b610fdf565b610fac565b6104f6565b610f79565b610f43565b610f2d565b6109be565b6105e8565b610f04565b610e8f565b610e1d565b610dec565b610dc2565b610aa6565b610d8a565b610d2e565b610c0d565b610bfd565b61052c565b610af6565b610a96565b610a3f565b61083e565b6109a9565b610993565b61085a565b6107f0565b610703565b6105c2565b6105b2565b610449565b6103a0565b600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081165b0361034a57565b905035906103878261034f565b565b9060208282031261034a5761039d9161037a565b90565b3461034a5761040f6103fd6103b6366004610389565b7fffffffff00000000000000000000000000000000000000000000000000000000167f01ffc9a7000000000000000000000000000000000000000000000000000000001490565b60405191829182901515815260200190565b0390f35b80610373565b9050359061038782610413565b919060408382031261034a5761039d906104408185610419565b93602001610419565b3461034a57610459366004610426565b50506040515b005b600091031261034a57565b60005b83811061047f5750506000910152565b818101518382015260200161046f565b6104b06104b96020936104e1936104a4815190565b80835293849260200190565b9586910161046c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b0190565b602080825261039d9291019061048f565b3461034a57610506366004610461565b61040f60605b604051918291826104e5565b9060208282031261034a5761039d91610419565b3461034a5761040f610548610542366004610518565b50600090565b6040519182918273ffffffffffffffffffffffffffffffffffffffff909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff8116610373565b905035906103878261056f565b919060408382031261034a5761039d90610440818561058b565b3461034a57610459366004610598565b3461034a576105d2366004610461565b61040f60005b6040519182918290815260200190565b3461034a5761040f6105d8610542366004610518565b9060208282031261034a5761039d9161058b565b9061063261062b610621845190565b8084529260200190565b9260200190565b9060005b8181106106435750505090565b9091926106606106596001928651815260200190565b9460200190565b929101610636565b9061039d9161048f565b9061068861067e835190565b8083529160200190565b908161069a6020830284019460200190565b926000915b8383106106ae57505050505090565b909192939460206106d16106ca83856001950387528951610668565b9760200190565b930193019193929061069f565b604080825261039d9391926106f591840190610612565b916020818403910152610672565b3461034a5761071e6107163660046105fe565b506060908190565b9061040f61072b60405190565b928392836106de565b909182601f8301121561034a5781359167ffffffffffffffff831161034a57602001926020830284011161034a57565b909182601f8301121561034a5781359167ffffffffffffffff831161034a57602001926001830284011161034a57565b919060608382031261034a57823567ffffffffffffffff811161034a57816107bd918501610734565b9290936107cd836020830161058b565b92604082013567ffffffffffffffff811161034a576107ec9201610764565b9091565b3461034a57610800366004610794565b505050505061045f60405190565b909160608284031261034a5761039d610827848461058b565b93610835816020860161058b565b93604001610419565b3461034a5761084e36600461080e565b50505061045f60405190565b3461034a5761040f6105d8610870366004610598565b9061116e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810190811067ffffffffffffffff8211176108e557604052565b610876565b906103876108f760405190565b92836108a5565b6fffffffffffffffffffffffffffffffff8116610373565b90503590610387826108fe565b91909160608184031261034a5761096a61093d60606108ea565b93600061094a8285610916565b90860152602061095c82828601610916565b908601526040809301610419565b90830152565b919060808382031261034a5761039d9061098a818561058b565b93602001610923565b3461034a5761040f6103fd610870366004610970565b3461034a576109b9366004610461565b604051005b3461034a5761040f61050c6109d4366004610518565b50606090565b906109e961062b610621845190565b9060005b8181106109fa5750505090565b909192610a26610659600192865173ffffffffffffffffffffffffffffffffffffffff16815260200190565b9291016109ed565b602080825261039d929101906109da565b3461034a57610a4f366004610461565b6040518061040f606082610a2e565b801515610373565b9050359061038782610a5e565b919060408382031261034a5761039d90610a8d818561037a565b93602001610a66565b3461034a57610459366004610a73565b3461034a57610ab6366004610461565b61040f6000610548565b91909160408184031261034a57610ad78382610419565b92602082013567ffffffffffffffff811161034a576107ec9201610734565b3461034a5761084e366004610ac0565b67ffffffffffffffff81116108e55760208091020190565b90929192610b33610b2e82610b06565b6108ea565b938185526020808601920283019281841161034a57915b838310610b575750505050565b60208091610b65848661037a565b815201920191610b4a565b9080601f8301121561034a5781602061039d93359101610b1e565b9060208282031261034a57813567ffffffffffffffff811161034a5761039d9201610b70565b3461034a57610bc1366004610b8b565b50604051005b9160408383031261034a57823567ffffffffffffffff811161034a57610bf28361039d928601610734565b939094602001610a66565b3461034a5761084e366004610bc7565b3461034a5761040f6105d86105423660046105fe565b90610c3261062b610621845190565b9060005b818110610c435750505090565b909192610c7b61065960019286517fffffffff0000000000000000000000000000000000000000000000000000000016815260200190565b929101610c36565b805173ffffffffffffffffffffffffffffffffffffffff16825261039d91604081019160200151906020818403910152610c23565b9061039d91610c83565b90610cce61067e835190565b9081610ce06020830284019460200190565b926000915b838310610cf457505050505090565b90919293946020610d106106ca83856001950387528951610cb8565b9301930191939290610ce5565b602080825261039d92910190610cc2565b3461034a57610d3e366004610461565b6040518061040f606082610d1d565b9095949261038794610d7f610d8692610d78608096610d7160a088019c6000890152565b6020870152565b6040850152565b6060830152565b0152565b3461034a5761040f610dac610da0366004610518565b50600080918180918190565b91610db995939560405190565b95869586610d4d565b3461034a57610bc1366004610518565b919060408382031261034a5761039d90610a8d818561058b565b3461034a57610459366004610dd2565b3461034a57610bc13660046105fe565b602080825261039d92910190610c23565b3461034a5761040f610e336109d43660046105fe565b60405191829182610e0c565b9060808282031261034a57610e54818361058b565b92610e62826020850161058b565b92610e708360408301610419565b92606082013567ffffffffffffffff811161034a576107ec9201610764565b3461034a57610800366004610e3f565b90610eae61062b610621845190565b9060005b818110610ebf5750505090565b909192610ed761065960019286511515815260200190565b929101610eb2565b604080825261039d939192610ef691840190610612565b916020818403910152610e9f565b3461034a57610f176107163660046105fe565b9061040f610f2460405190565b92839283610edf565b3461034a5761040f610548610542366004610389565b3461034a57610bc1366004610389565b9060208282031261034a57813567ffffffffffffffff811161034a576107ec9201610734565b3461034a57610459366004610f53565b919060408382031261034a5761039d90610fa3818561058b565b9360200161058b565b3461034a5761040f6103fd610870366004610f89565b908152606081019392610387929091604091610d86906020830152565b3461034a5761040f610ffb610ff5366004610426565b90611183565b60405191939193849384610fc2565b9061101961062b610621845190565b9060005b81811061102a5750505090565b909192611070610659600192865180517fffffffff0000000000000000000000000000000000000000000000000000000016825260209081015115159082015260400190565b92910161101d565b602080825261039d9291019061100a565b3461034a57611099366004610461565b6040518061040f606082611078565b909291926110b8610b2e82610b06565b938185526020808601920283019281841161034a57915b8383106110dc5750505050565b602080916110ea8486610419565b8152019201916110cf565b9080601f8301121561034a5781602061039d933591016110a8565b9160a08383031261034a57611125828461058b565b926111338360208301610923565b92608082013567ffffffffffffffff811161034a5761039d92016110f5565b3461034a5761040f6103fd611168366004611110565b91611178565b505061039d600090565b50505061039d600090565b505061118d600090565b8091819056fea2646970667358221220ba228a730e44afbe1b53780e6b70c3cf07c4e3bf7ccd2ce9f2275f6a3b419ccc64736f6c63430008130033