Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
416630 | 37 hrs ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
GaslessMechanic
Compiler Version
v0.8.10+commit.fc410830
ZkSolc Version
v1.5.6
Optimization Enabled:
Yes with Mode z
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; import "./MechanicMintManagerClientUpgradeable.sol"; import "../../erc721/interfaces/IEditionCollection.sol"; import "../../erc721/interfaces/IERC721GeneralSupplyMetadata.sol"; import "../../observability/IGengineObservability.sol"; import "./interfaces/IManifold1155Burn.sol"; import "../../erc1155/interfaces/IERC1155Standard.sol"; import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /** * @notice Gasless mechanic * @author highlight.xyz */ contract GaslessMechanic is MechanicMintManagerClientUpgradeable, UUPSUpgradeable { using EnumerableSet for EnumerableSet.UintSet; using EnumerableSet for EnumerableSet.Bytes32Set; /** * @notice Throw when an action is unauthorized */ error Unauthorized(); /** * @notice Throw when signer of signature is invalid */ error InvalidSigner(); /** * @notice Throw when it is invalid to mint on a vector */ error InvalidMint(); /** * @notice Throw when it is invalid to mint a number of tokens */ error InvalidMintAmount(); /** * @notice Throw when it is invalid to sponsor */ error InvalidSponsor(); /** * @notice Throw when a vector is already created with a mechanic vector ID */ error VectorAlreadyCreated(); /** * @notice Throw when the vector update is invalid */ error InvalidUpdate(); /** * @notice Throw when code gets into impossible state */ error ImpossibleState(); /** * @notice Throw when an internal transfer of ether fails */ error EtherSendFailed(); /** * @notice Throw when a claim is invalid */ error InvalidClaim(); /** * @notice Throw when the sponsor amount is invalid */ error InvalidSponsorAmount(); /** * @notice Errors to throw when adding / removing bids from user bid ids */ error BidAlreadyAdded(); error BidAlreadyReclaimed(); /** * @notice Throw when currency isn't supported */ error CurrencyNotSupported(); /** * @notice Throw when signature is invalid */ error InvalidSignature(); /** * @notice Throw when burn id has been used already */ error UsedBurnId(); /** * @notice Gasless vector */ struct Vector { uint64 maxClaimablePerUser; uint64 maxClaimableViaVector; uint64 numMinted; uint64 numSponsored; } /** * @notice Config used to control updating of fields in Vector */ struct VectorUpdateConfig { bool updateMaxUserClaimableViaVector; bool updateMaxTotalClaimableViaVector; } /** * @notice Sponsor structure * @param mechanicVectorId Mechanic vector ID * @param pricePerToken Price per token * @param mintFeePerToken Mint fee per token * @param gasPerToken Gas to deliver token * @param currency Currency * @param vectorPaymentRecipient Vector payment recipient * @param claimExpiryTimestamp Claim expiry timestamp */ struct GaslessSponsorConfig { bytes32 mechanicVectorId; uint256 pricePerToken; uint256 mintFeePerToken; uint256 gasPerToken; address currency; address vectorPaymentRecipient; uint48 claimExpiryTimestamp; uint48 chainId; } /** * @notice Constants that help with EIP-712, signature based minting */ bytes32 private constant _DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract,bytes32 salt)"); /* solhint-disable max-line-length */ bytes32 private constant _GASLESS_SPONSOR_CONFIG_TYPESHASH = keccak256( "GaslessSponsorConfig(bytes32 mechanicVectorId,uint256 pricePerToken,uint256 mintFeePerToken,uint256 gasPerToken,address currency,address vectorPaymentRecipient,uint48 claimExpiryTimestamp,uint48 chainId)" ); /* solhint-enable max-line-length */ /** * @notice Stores gasless vector, indexed by global mechanic vector id */ mapping(bytes32 => Vector) private vector; /** * @notice Stores user claims per vector */ mapping(bytes32 => mapping(address => uint64)) private _numUserClaimed; /** * @notice Stores used burn ids per crosschain redemption vectors */ mapping(bytes32 => EnumerableSet.Bytes32Set) private _usedBurnIds; /** * @notice Emitted when a mint vector is created */ event GaslessVectorCreated(bytes32 indexed mechanicVectorId); /** * @notice Emitted when a mint vector is updated */ event GaslessVectorUpdated(bytes32 indexed mechanicVectorId); /** * @notice Emitted when mints are sponsored */ event GaslessSponsor( bytes32 indexed mechanicVectorId, address indexed sponsor, uint64 numSponsored, uint256 pricePerToken, uint256 mintFeePerToken, uint256 gasPerToken, address currency, address paymentRecipient ); /** * @notice Emitted when sponsored mints are redeemed */ event SponsoredMint( bytes32 indexed mechanicVectorId, address indexed mintRecipient, uint64 indexed initialSponsorId, address feeCollector, address currency, uint256 fee, uint32 numMinted ); /** * @notice Emitted when crosschain redemption is fulfilled */ event CrosschainRedemption( bytes32 indexed mechanicVectorId, bytes32 indexed burnId, address indexed recipient, uint32 numToMint, bytes seed ); /** * @notice Emitted for the seed based data on mint * @param sender contract emitting the event * @param contractAddress NFT contract token resides on * @param data custom mint data */ event CustomMintData(address indexed sender, address indexed contractAddress, bytes data); /** * @notice Initialize mechanic contract * @param _mintManager Mint manager address * @param platform Platform owning the contract */ function initialize(address _mintManager, address platform) external initializer { __MechanicMintManagerClientUpgradeable_initialize(_mintManager, platform); } /** * @notice Create a gasless mechanic vector * @param mechanicVectorId Global mechanic vector ID * @param vectorData Vector data, to be deserialized into gasless vector data */ function createVector(bytes32 mechanicVectorId, bytes memory vectorData) external onlyMintManager { (uint64 maxClaimablePerUser, uint64 maxClaimableViaVector) = abi.decode(vectorData, (uint64, uint64)); Vector memory _vector = Vector(maxClaimablePerUser, maxClaimableViaVector, 0, 0); vector[mechanicVectorId] = _vector; emit GaslessVectorCreated(mechanicVectorId); } /* solhint-disable code-complexity */ /** * @notice Update a seed based vector * @param mechanicVectorId Global mechanic vector ID * @param newVector New vector fields * @param updateConfig Config denoting what fields on vector to update */ function updateVector( bytes32 mechanicVectorId, Vector calldata newVector, VectorUpdateConfig calldata updateConfig ) external { MechanicVectorMetadata memory metadata = _getMechanicVectorMetadata(mechanicVectorId); if ( OwnableUpgradeable(metadata.contractAddress).owner() != msg.sender && metadata.contractAddress != msg.sender ) { _revert(Unauthorized.selector); } // rather than updating entire vector, update per-field if (updateConfig.updateMaxUserClaimableViaVector) { vector[mechanicVectorId].maxClaimablePerUser = newVector.maxClaimablePerUser; } if (updateConfig.updateMaxTotalClaimableViaVector) { vector[mechanicVectorId].maxClaimableViaVector = newVector.maxClaimableViaVector; } emit GaslessVectorUpdated(mechanicVectorId); } /** * @notice Sponsor mints */ function sponsorMints( GaslessSponsorConfig calldata sponsorConfig, bytes calldata signature, uint64 numToSponsor ) external payable { _validateSponsorConfig(sponsorConfig, signature); if (numToSponsor == 0) { _revert(InvalidSponsor.selector); } Vector memory _vector = vector[sponsorConfig.mechanicVectorId]; uint64 newNumSponsored = _vector.numSponsored + numToSponsor; if (newNumSponsored > _vector.maxClaimableViaVector && _vector.maxClaimableViaVector != 0) { _revert(InvalidSponsor.selector); } vector[sponsorConfig.mechanicVectorId].numSponsored = newNumSponsored; if (sponsorConfig.currency != address(0)) { _revert(InvalidSponsor.selector); } // validate ether amount, send mint fee to HL, send price to paymentRecipient uint256 amountToRecipient = sponsorConfig.pricePerToken * numToSponsor; uint256 amountToPlatform = sponsorConfig.mintFeePerToken * numToSponsor; if (amountToRecipient == 0) { MechanicVectorMetadata memory metadata = _getMechanicVectorMetadata(sponsorConfig.mechanicVectorId); amountToRecipient = _is1155(metadata.contractAddress) ? ((amountToPlatform * 8) / 10) : amountToPlatform / 2; amountToPlatform = amountToPlatform - amountToRecipient; } if (amountToRecipient + amountToPlatform + (sponsorConfig.gasPerToken * numToSponsor) > msg.value) { _revert(InvalidSponsorAmount.selector); } if (amountToRecipient > 0) { _sendEther(amountToRecipient, payable(sponsorConfig.vectorPaymentRecipient)); } if (amountToPlatform > 0) { _sendEther(amountToPlatform, payable(owner())); } emit GaslessSponsor( sponsorConfig.mechanicVectorId, msg.sender, numToSponsor, sponsorConfig.pricePerToken, sponsorConfig.mintFeePerToken, sponsorConfig.gasPerToken, sponsorConfig.currency, sponsorConfig.vectorPaymentRecipient ); } /** * @notice See {IMechanic-processNumMint} */ function processNumMint( bytes32 mechanicVectorId, address recipient, uint32 numToMint, address minter, MechanicVectorMetadata calldata mechanicVectorMetadata, bytes calldata data ) external payable onlyMintManager { _processMint(mechanicVectorId, minter, recipient, numToMint, data); } /** * @notice See {IMechanic-processChooseMint} */ function processChooseMint( bytes32 mechanicVectorId, address recipient, uint256[] calldata tokenIds, address minter, MechanicVectorMetadata calldata mechanicVectorMetadata, bytes calldata data ) external payable onlyMintManager { _processMint(mechanicVectorId, minter, recipient, uint32(tokenIds.length), data); } /* solhint-disable no-empty-blocks */ receive() external payable {} fallback() external payable {} /** * @notice State readers */ function getRawVector(bytes32 mechanicVectorId) external view returns (Vector memory _vector) { _vector = vector[mechanicVectorId]; } function getVectorState( bytes32 mechanicVectorId ) external view returns (Vector memory _vector, uint256 collectionSupply, uint256 collectionSize) { _vector = vector[mechanicVectorId]; (collectionSupply, collectionSize) = _collectionSupplyAndSize(mechanicVectorId); } function getUserClaimed(bytes32 mechanicVectorId, address user) external view returns (uint64) { return _numUserClaimed[mechanicVectorId][user]; } /* solhint-disable no-empty-blocks */ /** * @notice Limit upgrades of contract to SeedBasedMintMechanic owner * @param // New implementation address */ function _authorizeUpgrade(address) internal override onlyOwner {} /** * @notice Process sequential mint logic * @param mechanicVectorId Mechanic vector ID * @param minter Minter * @param recipient Mint recipient * @param numToMint Number of tokens to mint * @param data Mechanic mint data (signature) */ function _processMint( bytes32 mechanicVectorId, address minter, address recipient, uint32 numToMint, bytes calldata data ) private { (uint256 fee, address feeCollector, bytes memory customData) = abi.decode(data, (uint256, address, bytes)); Vector memory _vector = vector[mechanicVectorId]; uint64 newNumMinted = _vector.numMinted + numToMint; uint64 newNumUserClaimed = _numUserClaimed[mechanicVectorId][recipient] + numToMint; if (customData.length > 0) { _validateCrosschainRedeemSignature(mechanicVectorId, numToMint, recipient, customData); } else { if (newNumMinted > _vector.numSponsored) { _revert(InvalidMintAmount.selector); } if (newNumUserClaimed > _vector.maxClaimablePerUser && _vector.maxClaimablePerUser != 0) { _revert(InvalidMintAmount.selector); } } vector[mechanicVectorId].numMinted = newNumMinted; _numUserClaimed[mechanicVectorId][recipient] = newNumUserClaimed; _sendEther(fee, payable(feeCollector)); emit SponsoredMint( mechanicVectorId, recipient, _vector.numMinted + 1, feeCollector, address(0), fee, numToMint ); } /** * @notice Send ether to a recipient */ function _sendEther(uint256 amount, address payable recipient) private { (bool sent, ) = recipient.call{ value: amount }(""); if (!sent) { _revert(EtherSendFailed.selector); } } /** * @notice Validate sponsor event signature * @param sponsorConfig GaslessSponsorConfig * @param signature Sponsor config signature */ function _validateSponsorConfig(GaslessSponsorConfig memory sponsorConfig, bytes calldata signature) private { bytes32 claimId = keccak256( abi.encode( _GASLESS_SPONSOR_CONFIG_TYPESHASH, sponsorConfig.mechanicVectorId, sponsorConfig.pricePerToken, sponsorConfig.mintFeePerToken, sponsorConfig.gasPerToken, sponsorConfig.currency, sponsorConfig.vectorPaymentRecipient, sponsorConfig.claimExpiryTimestamp, sponsorConfig.chainId ) ); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", _getDomainSeperator(), claimId)); address signer = ECDSA.recover(digest, signature); if ( signer == address(0) || !_isPlatformExecutor(signer) || uint48(block.timestamp) > sponsorConfig.claimExpiryTimestamp ) { _revert(InvalidSignature.selector); } if (block.chainid != sponsorConfig.chainId) { _revert(InvalidClaim.selector); } } /** * @notice Validate crosschain redeem signature */ function _validateCrosschainRedeemSignature( bytes32 mechanicVectorId, uint32 numToMint, address recipient, bytes memory data ) private { (bytes32 burnId, uint48 claimExpiryTimestamp, bytes memory seed, bytes memory signature) = abi.decode( data, (bytes32, uint48, bytes, bytes) ); bytes32 redeemId = keccak256( abi.encode( _crosschainRedeemTypehash(), mechanicVectorId, numToMint, burnId, recipient, block.chainid, claimExpiryTimestamp, keccak256(seed) ) ); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", _getDomainSeperator(), redeemId)); address signer = ECDSA.recover(digest, signature); if (signer == address(0) || !_isPlatformExecutor(signer) || uint48(block.timestamp) > claimExpiryTimestamp) { _revert(InvalidSignature.selector); } if (!_usedBurnIds[mechanicVectorId].add(burnId)) { _revert(UsedBurnId.selector); } if (seed.length > 0) { emit CustomMintData(address(this), address(0), seed); } emit CrosschainRedemption(mechanicVectorId, burnId, recipient, numToMint, seed); } /** * @notice Returns a collection's current supply * @param mechanicVectorId Mechanic vector ID */ function _collectionSupplyAndSize(bytes32 mechanicVectorId) private view returns (uint256 supply, uint256 size) { MechanicVectorMetadata memory metadata = _getMechanicVectorMetadata(mechanicVectorId); if (metadata.contractAddress == address(0)) { revert("Vector doesn't exist"); } if (metadata.isEditionBased) { IEditionCollection.EditionDetails memory edition = IEditionCollection(metadata.contractAddress) .getEditionDetails(metadata.editionId); supply = edition.supply; size = edition.size; } else { // supply holds a tighter constraint (no burns), some old contracts don't have it try IERC721GeneralSupplyMetadata(metadata.contractAddress).supply() returns (uint256 _supply) { supply = _supply; } catch { supply = IERC721GeneralSupplyMetadata(metadata.contractAddress).totalSupply(); } size = IERC721GeneralSupplyMetadata(metadata.contractAddress).limitSupply(); } } /** * @notice Return EIP712 domain seperator */ function _getDomainSeperator() private view returns (bytes32) { return keccak256( abi.encode( _DOMAIN_TYPEHASH, keccak256("GaslessMechanic"), keccak256("1"), block.chainid, address(this), 0x954386A2b103A8AD2B933E44Ea148036f73DC4B906c0fea200392fd413d44da0 // gasless mechanic salt ) ); } /** * @notice Return EIP712 crosschain redemption typehash */ function _crosschainRedeemTypehash() private view returns (bytes32) { /* solhint-disable max-line-length */ return keccak256( "CrosschainRedeem(bytes32 mechanicVectorId,uint32 numToMint,bytes32 burnId,address recipient,uint256 chainId,uint48 claimExpiryTimestamp,bytes seed)" ); /* solhint-enable max-line-length */ } /** * @notice Return if collection is an ERC1155 contract */ function _is1155(address collectionContract) private view returns (bool) { try IERC1155Standard(collectionContract).highlightContractStandardHash() returns (bytes32 standardHash) { return standardHash == 0x3a9654d81ac4dafbb9a2fb1cd3efa3de2783ae40b06b17a456bf5922ed02a3a7; } catch Error(string memory reason) { return false; } catch { return false; } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; /** * @title IGengineObservability * @author highlight.xyz * @notice Interface to interact with the Highlight Gengine observability singleton * @dev Singleton to coalesce select Highlight Gengine protocol events */ interface IGengineObservability { /** * @notice Emitted when contract metadata is set * @param contractAddress Initial contract that emitted event * @param name New name * @param symbol New symbol * @param contractURI New contract uri */ event ContractMetadataSet(address indexed contractAddress, string name, string symbol, string contractURI); /** * @notice Emitted when limit supply is set * @param contractAddress Initial contract that emitted event * @param newLimitSupply Limit supply to set */ event LimitSupplySet(address indexed contractAddress, uint256 indexed newLimitSupply); /** * @notice Emits when a series collection has its base uri set * @param contractAddress Contract with updated base uri * @param newBaseUri New base uri */ event BaseUriSet(address indexed contractAddress, string newBaseUri); /************************** Deployment events **************************/ /** * @notice Emitted when Generative Series contract is deployed * @param deployer Contract deployer * @param contractAddress Address of contract that was deployed */ event GenerativeSeriesDeployed(address indexed deployer, address indexed contractAddress); /** * @notice Emitted when Series contract is deployed * @param deployer Contract deployer * @param contractAddress Address of contract that was deployed */ event SeriesDeployed(address indexed deployer, address indexed contractAddress); /************************** ERC721 events **************************/ /** * @notice Emitted on a mint where a number of tokens are minted * @param contractAddress Address of contract being minted on * @param numMinted Number of tokens minted */ event TokenMint(address indexed contractAddress, address indexed to, uint256 indexed numMinted); /** * @notice Emitted whenever the metadata for the token is updated * @param contractAddress NFT contract token resides on * @param tokenId Token being updated */ event TokenUpdated(address indexed contractAddress, uint256 indexed tokenId); /** * @notice Emitted when `tokenId` token is transferred from `from` to `to` on contractAddress * @param contractAddress NFT contract token resides on * @param from Token sender * @param to Token receiver * @param tokenId Token being sent */ event Transfer(address indexed contractAddress, address indexed from, address to, uint256 indexed tokenId); /** * @notice Emitted for the seed based data on mint * @param sender contract emitting the event * @param contractAddress NFT contract token resides on * @param data custom mint data */ event CustomMintData(address indexed sender, address indexed contractAddress, bytes data); /** * @notice Emitted to regenerate the generative art for a token * @param sender contract emitting the event * @param collection NFT contract token resides on * @param tokenId Token ID */ event HighlightRegenerate(address indexed sender, address indexed collection, uint256 indexed tokenId); /** * @notice Emit ContractMetadataSet */ function emitContractMetadataSet( string calldata name, string calldata symbol, string calldata contractURI ) external; /** * @notice Emit LimitSupplySet */ function emitLimitSupplySet(uint256 newLimitSupply) external; /** * @notice Emit BaseUriSet */ function emitBaseUriSet(string calldata newBaseUri) external; /** * @notice Emit GenerativeSeriesDeployed */ function emitGenerativeSeriesDeployed(address contractAddress) external; /** * @notice Emit SeriesDeployed */ function emitSeriesDeployed(address contractAddress) external; /** * @notice Emit Token Mint */ function emitTokenMint(address to, uint256 numMinted) external; /** * @notice Emit Token Updated */ function emitTokenUpdated(address contractAddress, uint256 tokenId) external; /** * @notice Emit Transfer */ function emitTransfer(address from, address to, uint256 tokenId) external; /** * @notice Emit Custom Mint Data */ function emitCustomMintData(address contractAddress, bytes calldata data) external; /** * @notice Emit HighlightRegenerate */ function emitHighlightRegenerate(address collection, uint256 tokenId) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; /** * @notice Get a Series based collection's supply metadata * @author highlight.xyz */ interface IERC721GeneralSupplyMetadata { /** * @notice Get a series based collection's supply, burned tokens notwithstanding */ function supply() external view returns (uint256); /** * @notice Get a series based collection's total supply */ function totalSupply() external view returns (uint256); /** * @notice Get a series based collection's supply cap */ function limitSupply() external view returns (uint256); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "./interfaces/IMechanic.sol"; import "./interfaces/IMechanicMintManagerView.sol"; /** * @notice MintManager client, to be used by mechanic contracts * @author highlight.xyz */ abstract contract MechanicMintManagerClientUpgradeable is OwnableUpgradeable, IMechanic { /** * @notice Throw when caller is not MintManager */ error NotMintManager(); /** * @notice Throw when input mint manager is invalid */ error InvalidMintManager(); /** * @notice Mint manager */ address public mintManager; /** * @notice Enforce caller to be mint manager */ modifier onlyMintManager() { if (msg.sender != mintManager) { _revert(NotMintManager.selector); } _; } /** * @notice Update the mint manager * @param _mintManager New mint manager */ function updateMintManager(address _mintManager) external onlyOwner { if (_mintManager == address(0)) { _revert(InvalidMintManager.selector); } mintManager = _mintManager; } /** * @notice Initialize mechanic mint manager client * @param _mintManager Mint manager address * @param platform Platform owning the contract */ function __MechanicMintManagerClientUpgradeable_initialize( address _mintManager, address platform ) internal onlyInitializing { __Ownable_init(); mintManager = _mintManager; _transferOwnership(platform); } /** * @notice Get a mechanic mint vector's metadata * @param mechanicVectorId Mechanic vector ID */ function _getMechanicVectorMetadata( bytes32 mechanicVectorId ) internal view returns (MechanicVectorMetadata memory) { return IMechanicMintManagerView(mintManager).mechanicVectorMetadata(mechanicVectorId); } function _isPlatformExecutor(address _executor) internal view returns (bool) { return IMechanicMintManagerView(mintManager).isPlatformExecutor(_executor); } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; interface IERC1155Standard { /** * @notice Return Highlight contract standard hash */ function highlightContractStandardHash() external view returns (bytes32); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; /** * @notice Interfaces with the details of editions on collections * @author highlight.xyz */ interface IEditionCollection { /** * @notice Edition details * @param name Edition name * @param size Edition size * @param supply Total number of tokens minted on edition * @param initialTokenId Token id of first token minted in edition */ struct EditionDetails { string name; uint256 size; uint256 supply; uint256 initialTokenId; } /** * @notice Get the edition a token belongs to * @param tokenId The token id of the token */ function getEditionId(uint256 tokenId) external view returns (uint256); /** * @notice Get an edition's details * @param editionId Edition id */ function getEditionDetails(uint256 editionId) external view returns (EditionDetails memory); /** * @notice Get the details and uris of a number of editions * @param editionIds List of editions to get info for */ function getEditionsDetailsAndUri( uint256[] calldata editionIds ) external view returns (EditionDetails[] memory, string[] memory uris); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; /** * @notice Interface to burn tokens on a Manifold 1155 Creator contract */ interface IManifold1155Burn { function burn(address account, uint256[] memory tokenIds, uint256[] memory amounts) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; import "./IMechanicData.sol"; /** * @notice Interface that mint mechanics are forced to adhere to, * provided they support both collector's choice and sequential minting */ interface IMechanic is IMechanicData { /** * @notice Create a mechanic vector on the mechanic * @param mechanicVectorId Global mechanic vector ID * @param vectorData Mechanic vector data */ function createVector(bytes32 mechanicVectorId, bytes calldata vectorData) external; /** * @notice Process a sequential mint * @param mechanicVectorId Global ID identifying mint vector, using this mechanic * @param recipient Mint recipient * @param numToMint Number of tokens to mint * @param minter Account that called mint on the MintManager * @param mechanicVectorMetadata Mechanic vector metadata * @param data Custom data that can be deserialized and processed according to implementation */ function processNumMint( bytes32 mechanicVectorId, address recipient, uint32 numToMint, address minter, MechanicVectorMetadata calldata mechanicVectorMetadata, bytes calldata data ) external payable; /** * @notice Process a collector's choice mint * @param mechanicVectorId Global ID identifying mint vector, using this mechanic * @param recipient Mint recipient * @param tokenIds IDs of tokens to mint * @param minter Account that called mint on the MintManager * @param mechanicVectorMetadata Mechanic vector metadata * @param data Custom data that can be deserialized and processed according to implementation */ function processChooseMint( bytes32 mechanicVectorId, address recipient, uint256[] calldata tokenIds, address minter, MechanicVectorMetadata calldata mechanicVectorMetadata, bytes calldata data ) external payable; }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; import "./IMechanicData.sol"; interface IMechanicMintManagerView is IMechanicData { /** * @notice Get a mechanic vector's metadata * @param mechanicVectorId Global mechanic vector ID */ function mechanicVectorMetadata(bytes32 mechanicVectorId) external view returns (MechanicVectorMetadata memory); /** * @notice Returns whether an address is a valid platform executor * @param _executor Address to be checked */ function isPlatformExecutor(address _executor) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import {Initializable} from "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ```solidity * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; import "../../interfaces/draft-IERC1822.sol"; import "../ERC1967/ERC1967Upgrade.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is IERC1822Proxiable, ERC1967Upgrade { /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate the implementation's compatibility when performing an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeTo(address newImplementation) public virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.10; /** * @notice Defines a mechanic's metadata on the MintManager */ interface IMechanicData { /** * @notice A mechanic's metadata * @param contractAddress Collection contract address * @param editionId Edition ID if the collection is edition based * @param mechanic Address of mint mechanic contract * @param isEditionBased True if collection is edition based * @param isChoose True if collection uses a collector's choice mint paradigm * @param paused True if mechanic vector is paused */ struct MechanicVectorMetadata { address contractAddress; uint96 editionId; address mechanic; bool isEditionBased; bool isChoose; bool paused; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; import {Initializable} from "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized != type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822Proxiable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeacon.sol"; import "../../interfaces/IERC1967.sol"; import "../../interfaces/draft-IERC1822.sol"; import "../../utils/Address.sol"; import "../../utils/StorageSlot.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ */ abstract contract ERC1967Upgrade is IERC1967 { // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { Address.functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( Address.isContract(IBeacon(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol) pragma solidity ^0.8.0; /** * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC. * * _Available since v4.8.3._ */ interface IERC1967 { /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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); } } }
{ "optimizer": { "enabled": true, "mode": "z" }, "outputSelection": { "*": { "*": [ "abi" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"BidAlreadyAdded","type":"error"},{"inputs":[],"name":"BidAlreadyReclaimed","type":"error"},{"inputs":[],"name":"CurrencyNotSupported","type":"error"},{"inputs":[],"name":"EtherSendFailed","type":"error"},{"inputs":[],"name":"ImpossibleState","type":"error"},{"inputs":[],"name":"InvalidClaim","type":"error"},{"inputs":[],"name":"InvalidMint","type":"error"},{"inputs":[],"name":"InvalidMintAmount","type":"error"},{"inputs":[],"name":"InvalidMintManager","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[],"name":"InvalidSponsor","type":"error"},{"inputs":[],"name":"InvalidSponsorAmount","type":"error"},{"inputs":[],"name":"InvalidUpdate","type":"error"},{"inputs":[],"name":"NotMintManager","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UsedBurnId","type":"error"},{"inputs":[],"name":"VectorAlreadyCreated","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"burnId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint32","name":"numToMint","type":"uint32"},{"indexed":false,"internalType":"bytes","name":"seed","type":"bytes"}],"name":"CrosschainRedemption","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"CustomMintData","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"sponsor","type":"address"},{"indexed":false,"internalType":"uint64","name":"numSponsored","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintFeePerToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gasPerToken","type":"uint256"},{"indexed":false,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"address","name":"paymentRecipient","type":"address"}],"name":"GaslessSponsor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"}],"name":"GaslessVectorCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"}],"name":"GaslessVectorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"mintRecipient","type":"address"},{"indexed":true,"internalType":"uint64","name":"initialSponsorId","type":"uint64"},{"indexed":false,"internalType":"address","name":"feeCollector","type":"address"},{"indexed":false,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"numMinted","type":"uint32"}],"name":"SponsoredMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"internalType":"bytes","name":"vectorData","type":"bytes"}],"name":"createVector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"}],"name":"getRawVector","outputs":[{"components":[{"internalType":"uint64","name":"maxClaimablePerUser","type":"uint64"},{"internalType":"uint64","name":"maxClaimableViaVector","type":"uint64"},{"internalType":"uint64","name":"numMinted","type":"uint64"},{"internalType":"uint64","name":"numSponsored","type":"uint64"}],"internalType":"struct GaslessMechanic.Vector","name":"_vector","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"getUserClaimed","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"}],"name":"getVectorState","outputs":[{"components":[{"internalType":"uint64","name":"maxClaimablePerUser","type":"uint64"},{"internalType":"uint64","name":"maxClaimableViaVector","type":"uint64"},{"internalType":"uint64","name":"numMinted","type":"uint64"},{"internalType":"uint64","name":"numSponsored","type":"uint64"}],"internalType":"struct GaslessMechanic.Vector","name":"_vector","type":"tuple"},{"internalType":"uint256","name":"collectionSupply","type":"uint256"},{"internalType":"uint256","name":"collectionSize","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mintManager","type":"address"},{"internalType":"address","name":"platform","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"minter","type":"address"},{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint96","name":"editionId","type":"uint96"},{"internalType":"address","name":"mechanic","type":"address"},{"internalType":"bool","name":"isEditionBased","type":"bool"},{"internalType":"bool","name":"isChoose","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"}],"internalType":"struct IMechanicData.MechanicVectorMetadata","name":"mechanicVectorMetadata","type":"tuple"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"processChooseMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint32","name":"numToMint","type":"uint32"},{"internalType":"address","name":"minter","type":"address"},{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint96","name":"editionId","type":"uint96"},{"internalType":"address","name":"mechanic","type":"address"},{"internalType":"bool","name":"isEditionBased","type":"bool"},{"internalType":"bool","name":"isChoose","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"}],"internalType":"struct IMechanicData.MechanicVectorMetadata","name":"mechanicVectorMetadata","type":"tuple"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"processNumMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"uint256","name":"mintFeePerToken","type":"uint256"},{"internalType":"uint256","name":"gasPerToken","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"vectorPaymentRecipient","type":"address"},{"internalType":"uint48","name":"claimExpiryTimestamp","type":"uint48"},{"internalType":"uint48","name":"chainId","type":"uint48"}],"internalType":"struct GaslessMechanic.GaslessSponsorConfig","name":"sponsorConfig","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint64","name":"numToSponsor","type":"uint64"}],"name":"sponsorMints","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintManager","type":"address"}],"name":"updateMintManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mechanicVectorId","type":"bytes32"},{"components":[{"internalType":"uint64","name":"maxClaimablePerUser","type":"uint64"},{"internalType":"uint64","name":"maxClaimableViaVector","type":"uint64"},{"internalType":"uint64","name":"numMinted","type":"uint64"},{"internalType":"uint64","name":"numSponsored","type":"uint64"}],"internalType":"struct GaslessMechanic.Vector","name":"newVector","type":"tuple"},{"components":[{"internalType":"bool","name":"updateMaxUserClaimableViaVector","type":"bool"},{"internalType":"bool","name":"updateMaxTotalClaimableViaVector","type":"bool"}],"internalType":"struct GaslessMechanic.VectorUpdateConfig","name":"updateConfig","type":"tuple"}],"name":"updateVector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010003afc535d390226355bb69e061645bd1640810b643c50d3acfdb3a2e950300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x000400000000000200100000000000020000006004100270000003300340019700030000003103550002000000010355000003300040019d00000001002001900000000006000416000000510000c13d0000008002000039000000400020043f000000040030008c0000005f0000413d000000000201043b000000e002200270000003320020009c0000000404100370000002c80000613d000003330020009c000000610000613d000003340020009c000001ca0000613d000003350020009c000000910000613d000003360020009c000003370000613d000003370020009c000001770000613d000003380020009c000001090000613d000003390020009c0000038b0000613d0000033a0020009c000001b80000613d0000033b0020009c000003a50000613d0000033c0020009c000002b60000613d0000033d0020009c000003820000613d0000033e0020009c000002e40000613d0000033f0020009c000001150000613d000003400020009c000002230000613d000003410020009c000001bc0000613d000003420020009c0000005f0000c13d000000240030008c000006250000413d000000000006004b000006250000c13d000000000104043b000b00000001001d0cbd08c90000040f0001003c0000003d00000c0a0000013d0000000002010019000000400100043d000003880010009c000006c20000813d000100420000003d00000c960000013d0000034a033001970000004004100039000000000034043500000040032002700000034a03300197000000200410003900000000003404350000034a022001970000000000210435000000400200043d000b00000002001d0cbd076f0000040f00000080020000390000000b010000290000055f0000013d000000a001000039000000400010043f000000000006004b000006250000c13d0000000001000410000000800010043f000001400000044300000160001004430000002001000039000001000010044300000001010000390000012000100443000003310100004100000cbe0001042e000000000100001900000cbe0001042e000000240030008c000006250000413d000000000006004b000006250000c13d000000000104043b000b00000001001d0cbd08c90000040f0001006a0000003d00000c0a0000013d000000400400043d000003510040009c000006c20000213d0000008002400039000000400020043f000000000101041a0000006002400039000000c003100270000000000032043500000080021002700000034a02200197000000400340003900000000002304350000034a02100197000a00000004001d000000000224043600000040011002700000034a0110019700000000001204350000000b010000290cbd0afd0000040f000000400a00043d00000000420104340000034302200198000004360000c13d0000004401a00039000003870200004100000000002104350000002401a0003900000014020000390000000000210435000003460100004100000000001a04350000000401a0003900000020020000390000000000210435000000640200003900000000010a00190cbd0bab0000040f000000240030008c000006250000413d000000000006004b000006250000c13d000000000104043b000b00000001001d000003430010009c000006250000213d0001009b0000003d00000c310000013d0000036f020000410cbd0bd10000040f000a03430010019b00000000010004100000000a0010006c0000000001000039000000010100c0390cbd07e60000040f0000037201000041000000000101041a00000343011001970000000a0010006c000000000100003900000001010060390cbd07f50000040f0cbd07b80000040f000000400400043d0000037e0040009c000006c20000213d0000002002400039000000400020043f00000000000404350000037301000041000000000101041a000000ff001001900000046c0000c13d000800000002001d000000400300043d0000037401000041000000000013043500000000010004140000000b02000029000000040020008c000000c80000613d000900000004001d000000040400003900000020060000390000000b02000029000a00000003001d0000000a050000290cbd072e0000040f0000000a030000290000000904000029000000000001004b000001af0000613d00000001010000310000001f02100039000000200500008a000000000552016f0000000002350019000000000052004b000000000500003900000001050040390000034a0020009c000006c20000213d0000000100500190000006c20000c13d000900000004001d000000400020043f0000034b0010009c000006250000213d000000200010008c000006250000413d0000000001030433000003720010009c000100de0000003d00000c8f0000013d000003300010009c000a00000001001d000003300100804100000040011002100000000002000414000003300020009c0000033002008041000000c002200210000000000112019f0000036c011001c70000800d02000039000000020300003900000375040000410000000b050000290cbd0bef0000040f0000000100200190000006250000613d00000009030000290000000001030433000000000001004b0000055d0000613d0000000a01000029000003760010009c000006c20000213d0000000a040000290000006001400039000000400010043f00000040014000390000037702000041000000000021043500000020014000390000037802000041000000000021043500000027010000390000000000140435000000000403043300000000010004140000000b02000029000000040020008c000005460000613d0000000b020000290000000803000029000005930000013d000000000006004b000006250000c13d0001010d0000003d00000c310000013d0000036f020000410cbd0bd10000040f00000343011001970000000002000410000000000012004b000004250000c13d0000037201000041000003870000013d000001640030008c000006250000413d000000000204043b000b00000002001d0000002402100370000000000202043b000a00000002001d000003430020009c000006250000213d0000004402100370000000000202043b0000034a0020009c000006250000213d0000002304200039000000000034004b000006250000813d0000000404200039000000000441034f000000000404043b000900000004001d0000034a0040009c000006250000213d0000000904000029000000050440021000000000024200190000002402200039000000000032004b000006250000213d0000006402100370000000000202043b000003430020009c000006250000213d0000014402100370000000000202043b0000034a0020009c000006250000213d0000002304200039000000000034004b000006250000813d0000000404200039000000000141034f000000000401043b0000034a0040009c000006250000213d00000024012000390000000002140019000000000032004b000006250000213d0000006503000039000000000303041a00000343033001970000000004000411000000000034004b000004320000c13d0001014d0000003d00000c490000013d0000033002200197000800000002001d0000034a02200167000400000001001d0000004001100039000300000001001d00000000010104330000034a01100197000600000001001d000900000002001d000000000021004b000005b40000213d0001015b0000003d00000c3a0000013d0000034a01100197000000090010006c000005b40000213d0000000603000029000900080030002d000600080010002d00000007010000290000000001010433000000000001004b000005cd0000c13d00000009010000290000034a011001970000000402000029000000600220003900000000020204330000034a02200197000000000021004b000003350000213d00000006010000290006034a0010019b000000040100002900000000010104330000034a01100197000000060010006b000005d40000a13d000000000001004b000003350000c13d000005d40000013d000000440030008c000006250000413d000000000204043b000b00000002001d000003430020009c000006250000213d0000002402100370000000000402043b0000034a0040009c000006250000213d0000002302400039000000000032004b000006250000813d0000000402400039000000000121034f000000000201043b00000024014000390cbd07800000040f000900000001001d0001018c0000003d00000c310000013d0000036f020000410cbd0bd10000040f000a03430010019b00000000010004100000000a0010006c0000000001000039000000010100c0390cbd07e60000040f0000037201000041000000000101041a00000343011001970000000a0010006c000000000100003900000001010060390cbd07f50000040f0cbd07b80000040f0000037301000041000000000101041a000000ff001001900000046c0000c13d000000400300043d0000037401000041000000000013043500000000010004140000000b02000029000000040020008c000005120000613d00000004040000390000002006000039000a00000003001d0000000a050000290cbd072e0000040f0000000a03000029000000000001004b000005120000c13d000000400200043d000b00000002001d0000034601000041000000000012043500000004012000390cbd08130000040f0000000b0210006a0000000b010000290cbd0bab0000040f000000000006004b000006250000c13d0000006501000039000003850000013d000000240030008c000006250000413d000000000006004b000006250000c13d000000000104043b000b00000001001d000003430010009c000006250000213d0cbd07b80000040f0000000b03000029000000000003004b0000046f0000c13d0000034801000041000004330000013d000000440030008c000006250000413d000000000006004b000006250000c13d0000002402100370000000000502043b0000034a0050009c000006250000213d0000002302500039000000000032004b000006250000813d0000000402500039000000000121034f000000000201043b000000000104043b000b00000001001d00000024015000390cbd07800000040f0000006502000039000000000202041a00000343022001970000000003000411000000000023004b000004320000c13d00000000020104330000034b0020009c000006250000213d000000400020008c000006250000413d000000200210003900000000020204330000034a0020009c000006250000213d000000400110003900000000010104330000034a0010009c000006250000213d000000400300043d000003510030009c000006c20000213d0000000004030019000700000003001d0000008003300039000000400030043f0000002003400039000900000003001d000000000013043500000000002404350000006001400039000a00000001001d00000000000104350000004001400039000800000001001d0000000000010435000102020000003d00000c0a0000013d000000070200002900000000020204330000034a022001970000000903000029000000000303043300000040033002100000036a03300197000000000223019f0000000803000029000000000303043300000080033002100000036003300197000000000232019f0000000a030000290000000003030433000000c003300210000000000232019f000000000021041b000000400100043d000003300010009c000003300100804100000040011002100000000002000414000003300020009c0000033002008041000000c002200210000000000112019f0000036c011001c70000800d02000039000000020300003900000380040000410000000b05000029000004240000013d000001440030008c000006250000413d0000010402100370000000000202043b0000034a0020009c000006250000213d0000002304200039000000000034004b000006250000813d0000000404200039000000000441034f000000000404043b000b00000004001d0000034a0040009c000006250000213d0000002404200039000a00000004001d0000000b02400029000000000032004b000006250000213d0000012401100370000000000101043b000900000001001d0000034a0010009c000006250000213d0000000001000415000800000001001d000000040100008a00000000011000310000034b0010009c000006250000213d000001000010008c000006250000413d000000400300043d0000034c0030009c000006c20000213d0000010001300039000000400010043f00000002060003670000000401600370000000000101043b00000000041304360000002402600370000000000202043b00000000002404350000004404600370000000000404043b0000004005300039000000000045043500000060073000390000006405600370000000000505043b00000000005704350000008407600370000000000707043b000003430070009c000006250000213d00000080083000390000000000780435000000a408600370000000000808043b000003430080009c000006250000213d000000a0093000390000000000890435000000c409600370000000000909043b0000034d0090009c000006250000213d000000c00a30003900070000000a001d00000000009a0435000000e406600370000000000606043b0000034d0060009c000006250000213d000000e003300039000600000003001d0000000000630435000000400300043d000001200a30003900000000006a043500000100063000390000000000960435000000e0063000390000000000860435000000c0063000390000000000760435000000a0063000390000000000560435000000800530003900000000004504350000006004300039000000000024043500000040023000390000000000120435000001200100003900000000011304360000034e0200004100000000002104350000034f0030009c000006c20000213d0000014002300039000000400020043f00000000020304330cbd0bbd0000040f000500000001001d0cbd0ac10000040f000000400200043d0000004203200039000000050400002900000000004304350000035004000041000102960000003d00000ca50000013d000003510020009c000006c20000213d0000008001200039000000400010043f000000000202043300000000010300190cbd0bbd0000040f000500000001001d00000000030000310000000a010000290000000b020000290cbd07800000040f000000000201001900000005010000290cbd09340000040f0000034300100198000002b40000613d0cbd0b6e0000040f000000000001004b000002b40000613d0000000701000029000102ad0000003d00000c7e0000013d00000352020000410cbd0bd10000040f0000000b020000290000034d022001970000034d01100197000000000021004b000005ef0000a13d0000035f01000041000004330000013d000000440030008c000006250000413d000000000006004b000006250000c13d0000002401100370000000000101043b000b00000001001d000003430010009c000006250000213d000000000104043b0cbd08af0000040f0000000b020000290cbd08dc0000040f000000000101041a0000034a02100197000000400100043d0000000000210435000003890000013d000000240030008c000006250000413d000000000006004b000006250000c13d000000000104043b000b00000001001d000003430010009c000006250000213d0cbd07b80000040f0000000b01000029000000000001004b000004750000c13d000000400100043d00000064021000390000034403000041000000000032043500000044021000390000034503000041000000000032043500000024021000390000002603000039000000000032043500000346020000410000000000210435000000040210003900000020030000390000000000320435000004300000013d000001640030008c000006250000413d000000000204043b000b00000002001d0000002402100370000000000202043b000a00000002001d000003430020009c000006250000213d0000004402100370000000000202043b000900000002001d000003300020009c000006250000213d0000006402100370000000000202043b000003430020009c000006250000213d0000014402100370000000000202043b0000034a0020009c000006250000213d0000002304200039000000000034004b000006250000813d0000000404200039000000000141034f000000000401043b0000034a0040009c000006250000213d00000024012000390000000002140019000000000032004b000006250000213d0000006503000039000000000303041a00000343033001970000000004000411000000000034004b000004320000c13d0001030e0000003d00000c490000013d0000034a02200167000400000001001d0000004001100039000300000001001d00000000010104330000034a01100197000600000001001d000800000002001d000000000021004b000005b40000213d0001031a0000003d00000c3a0000013d0000034a01100197000000080010006c000005b40000213d0000000603000029000800090030002d000600090010002d00000007010000290000000001010433000000000001004b0000059c0000c13d00000008010000290000034a011001970000000402000029000000600220003900000000020204330000034a02200197000000000021004b000003350000213d00000006010000290006034a0010019b000000040100002900000000010104330000034a01100197000000060010006b000005a30000a13d000000000001004b000005a30000613d0000036501000041000004330000013d000000440030008c000006250000413d000000000006004b000006250000c13d000000000204043b000b00000002001d000003430020009c000006250000213d0000002401100370000000000101043b000a00000001001d000003430010009c000006250000213d0000000001000415000900000001001d000000000300041a0000ffff00300190000003590000613d0000000001000410000e00000001001d0000800201000039000800000003001d000000240300003900000000040004150000000e0440008a000000050440021000000379020000410cbd0bd10000040f0000000803000029000000ff0230018f000000010020008c000005610000c13d000000000001004b000005610000c13d0000ff0000300190000001000100008a000000000113016f00000001011001bf000000000010041b000005480000c13d0000ffff0200008a000000000121016f00000100011001bf000000000010041b00000000010004110cbd07cc0000040f0000006501000039000000000201041a00000347022001970000000b022001af000000000021041b0000000a010000290cbd07cc0000040f0000ff010100008a000000000200041a000000000112016f000000000010041b0000000103000039000000400100043d0000000000310435000003300010009c000003300100804100000040011002100000000002000414000003300020009c0000033002008041000000c002200210000000000112019f0000037c011001c70000800d020000390000037d040000410cbd0bef0000040f0000000100200190000005590000c13d000006250000013d000000000006004b000006250000c13d0000003301000039000000000101041a0000034301100197000000800010043f000000800100003900000020020000390000055f0000013d000000000006004b000006250000c13d0cbd07b80000040f0000003301000039000000000201041a0000034703200197000000000031041b000000400100043d000003300010009c000003300100804100000040011002100000000003000414000003300030009c0000033003008041000000c003300210000000000113019f00000343052001970000036c011001c70000800d0200003900000003030000390000036e0400004100000000060000190cbd0bef0000040f0000000100200190000006250000613d0000055d0000013d000000e40030008c000006250000413d000000000006004b000006250000c13d000000000104043b000900000001001d0cbd0afd0000040f000a00000001001d0000000002010433000000400300043d0000036801000041000000000013043500000000010004140000034302200197000000040020008c000003ca0000613d00000004040000390000002006000039000b00000003001d0000000b050000290cbd072e0000040f0000000b03000029000000000001004b000003ca0000c13d000103bf0000003d00000c180000013d000003c50000613d000000000704034f0000000008010019000103c40000003d00000c8b0000013d000003c20000c13d000000000006004b000003c90000613d000103c90000003d00000bfe0000013d0cbd0bab0000040f00000001010000310000001f02100039000000200400008a000000000242016f0000000004320019000000000024004b000000000200003900000001020040390000034a0040009c000006c20000213d0000000100200190000006c20000c13d0000000002030019000b00000004001d000000400040043f0000034b0010009c0000006603000039000006250000213d000000200010008c000006250000413d0000000002020433000003430020009c000006250000213d0000000001000411000000000012004b000003e90000613d0000000a0200002900000000020204330000034302200197000000000012004b0000056b0000c13d0000000201000367000a000000010353000000a401100370000000000101043b000103ef0000003d00000c860000013d000006250000c13d000000000001004b000003ff0000613d0000000a0100035f0000002401100370000000000101043b000800000001001d0000034a0010009c000006250000213d000103fa0000003d00000c9e0000013d0000006603000039000000000201041a000003620220019700000008022001af000000000021041b0000000a0100035f000000c401100370000000000101043b000104040000003d00000c860000013d000006250000c13d000000000001004b000004160000613d0000000a0100035f0000004401100370000000000101043b000a00000001001d0000034a0010009c000006250000213d0001040f0000003d00000c9e0000013d0000000a0200002900000040022002100000036a02200197000000000301041a0000036b03300197000000000223019f000000000021041b0000000b01000029000003300010009c000003300100804100000040011002100000000002000414000003300020009c0000033002008041000000c002200210000000000112019f0000036c011001c70000800d0200003900000002030000390000036d040000410000000905000029000003a10000013d0000034601000041000000800010043f0000002001000039000000840010043f0000003801000039000000a40010043f0000037001000041000000c40010043f0000037101000041000000e40010043f000000800100003900000084020000390cbd0bab0000040f0000037f01000041000000000010043f000003490100004100000cbf0001043000000060031000390000000003030433000000000003004b000004770000c13d000900000001001d000003840100004100000000001a04350000000001000414000000040020008c000004e00000613d0000000404000039000000200600003900000000030a001900000000050a0019000b0000000a001d0cbd072e0000040f0000000b0a000029000000000001004b000004e00000c13d00000009010000290000000002010433000000400500043d0000038501000041000000000015043500000000010004140000034302200197000000040020008c0000045a0000613d000000040400003900000020060000390000000003050019000b00000005001d0cbd072e0000040f0000000b05000029000000000001004b000003bd0000613d00000001020000310000001f01200039000000200300008a000000000131016f0000000003510019000000000013004b000000000100003900000001010040390000034a0030009c000006c20000213d0000000100100190000006c20000c13d000b00000003001d000000400030043f0000034b0020009c000006250000213d000000000a050019000004f00000013d0000000b010000290cbd08200000040f0000055d0000013d0000006501000039000000000201041a0000034702200197000000000232019f000000000021041b0000055d0000013d0cbd07cc0000040f0000055d0000013d0000000001040433000003810300004100000000003a04350000000403a00039000003820110019700000000001304350000000001000414000000040020008c000004890000613d000000240400003900000000030a001900000000050a00190000000006000019000b0000000a001d0cbd072e0000040f0000000b0a000029000000000001004b000003bd0000613d0000000304000367000000200200008a000000010100003100000000052101700000001f0610018f00000000035a0019000004950000613d000000000704034f00000000080a0019000104940000003d00000c8b0000013d000004920000c13d000000000006004b000004990000613d000104990000003d00000bfe0000013d0000001f03100039000000000223016f0000000003a20019000000000023004b000000000200003900000001020040390000034a0030009c000006c20000213d0000000100200190000006c20000c13d000b00000003001d000000400030043f0000034b0010009c000006250000213d000000200010008c000006250000413d00000000020a04330000034a0020009c000006250000213d0000000003a100190009000000a2001d000000090130006a0000034b0010009c000006250000213d000000800010008c000006250000413d0000000b01000029000003510010009c000006c20000213d0000008001100039000000400010043f00000009010000290000000021010434000800000002001d0000034a0010009c000006250000213d00000009011000290000001f02100039000000000032004b0000000004000019000003830400404100000383022001970000038305300197000000000652013f000000000052004b00000000020000190000038302002041000003830060009c000000000204c019000000000002004b000006250000613d00000000120104340cbd09890000040f0000000b03000029000000000113043600000008020000290000000002020433000700000002001d00000000002104350000000904000029000000400140003900000000020104330000004001300039000800000002001d00000000002104350000006001300039000000600240003900000000020204330000000000210435000000400300043d000005820000013d00000001020000310000001f01200039000000200300008a000000000131016f0000000003a10019000000000013004b000000000100003900000001010040390000034a0030009c000006c20000213d0000000100100190000006c20000c13d000b00000003001d000000400030043f0000034b0020009c000006250000213d000000200020008c000006250000413d00000000010a0433000800000001001d0000000901000029000000000301043300000386010000410000000b05000029000000000015043500000000010004140000034303300197000000040030008c0000056e0000613d00000004040000390000002006000039000000000203001900000000030500190cbd072e0000040f0000000102000031000000000001004b0000056d0000c13d0000000304000367000000200100008a00000000051201700000001f0620018f000000400100043d0000000003510019000003c50000613d000000000704034f0000000008010019000105100000003d00000c8b0000013d0000050e0000c13d000003c50000013d000105140000003d00000c570000013d0000034a0020009c000006c20000213d0000000100400190000006c20000c13d000000400020043f0000034b0010009c000006250000213d000000200010008c000006250000413d0000000001030433000003720010009c000105210000003d00000c8f0000013d000003300010009c000a00000001001d000003300100804100000040011002100000000002000414000003300020009c0000033002008041000000c002200210000000000112019f0000036c011001c70000800d02000039000000020300003900000375040000410000000b050000290cbd0bef0000040f0000000100200190000006250000613d0000000a01000029000003760010009c0000000b03000029000006c20000213d0000000a040000290000006001400039000000400010043f00000040014000390000037702000041000000000021043500000020014000390000037802000041000000000021043500000027010000390000000000140435000000090100002900000000040104330000000001000414000000040030008c000005900000c13d0000000101000039000005940000013d0000000801300270000000ff0110018f000800000001001d0cbd0aee0000040f00000008010000290cbd0aee0000040f00000008010000290cbd0aee0000040f00000000010004110cbd07cc0000040f0000006501000039000000000201041a00000347022001970000000b022001af000000000021041b0000000a010000290cbd07cc0000040f0000000001000415000000090200002900000000011200490000000001000002000000400100043d000000000200001900000000030000190cbd0bb30000040f000000400100043d00000064021000390000037a03000041000000000032043500000044021000390000037b03000041000000000032043500000024021000390000002e03000039000002dd0000013d0000036901000041000004330000013d0000000b050000290000001f01200039000000200300008a000000000131016f0000000004510019000000000014004b000000000100003900000001010040390000034a0040009c000006c20000213d0000000100100190000006c20000c13d000000400040043f0000034b0020009c000006250000213d000000200020008c000006250000413d00000000030400190000000b010000290000000001010433000700000001001d0000000a010000290000000002030019000b00000003001d0cbd076f0000040f0000000b03000029000000a001300039000000070200002900000000002104350000008004300039000000000103001900000008020000290000000000240435000000c0020000390000055f0000013d000000090200002900000020032000390000000b020000290cbd075e0000040f000900000001001d0cbd083c0000040f00000000030100190000000b0100002900000009020000290000000a040000290cbd08700000040f0000055d0000013d0000000b0100002900000009020000290000000a0300002900000007040000290cbd09b30000040f00000006010000290006034a0010019b0000000201000029000703430010019b000105a70000003d00000c0a0000013d000000080200002900000080022002100000036002200197000000000301041a0000036103300197000105ae0000003d00000c200000013d0000036202200197000105b10000003d00000c6e0000013d0000034a021001970000034a0020009c000005b80000c13d0000036601000041000000000010043f0000001101000039000006c50000013d000000400100043d00000060031000390000000904000029000105bd0000003d00000c760000013d000003300010009c000003300100804100000040011002100000000003000414000003300030009c0000033003008041000000c003300210000000000113019f00000363011001c700000001072000390000800d02000039000000040300003900000364040000410000000b050000290000000a06000029000003a10000013d0000000b0100002900000008020000290000000a0300002900000007040000290cbd09b30000040f00000006010000290006034a0010019b0000000201000029000703430010019b000105d80000003d00000c0a0000013d000000090200002900000080022002100000036002200197000000000301041a0000036103300197000105df0000003d00000c200000013d0000036202200197000105e20000003d00000c6e0000013d0000034a021001970000034a0020009c000005b40000613d000000400100043d00000060031000390000000804000029000105ea0000003d00000c760000013d000003300010009c000003300100804100000040011002100000000003000414000005c10000013d0000000601000029000105f20000003d00000c7e0000013d00000353020000410cbd0bd10000040f0000000b020000290000034d02200197000000000021004b000005fc0000c13d000000090000006b000005fe0000c13d0000035e01000041000004330000013d0000035401000041000004330000013d00000004010000390000000201100367000000000101043b000b00000001001d000000000010043f0000006601000039000106060000003d00000cb80000013d0cbd08b20000040f00000009020000290000034a03200167000000600210003900000000020204330000034a02200197000000000032004b000005b40000213d0000000902200029000a00000002001d0000034a02200197000000200110003900000000010104330000034a01100197000000000012004b000006180000a13d000000000001004b000005fa0000c13d0001061a0000003d00000c0a0000013d0000000a02000029000000c002200210000000000301041a0000035503300197000000000223019f000000000021041b00000002010003670000008402100370000000000202043b000003430020009c000006260000a13d00000c6c0000013d000000000002004b000005fa0000c13d0000002402100370000000000202043b000a00000002001d000000000002004b000006310000613d000000010300008a0000000a023000fa000000090020006c000005b40000413d0000004401100370000000000101043b000700000001001d000000000001004b0000063a0000613d000000010200008a00000007012000fa000000090010006c000005b40000413d0000000a0100002900000009011000ba000000070300002900060009003000bd000006cb0000c13d0000000b010000290cbd0afd0000040f00000000020104330000000001000415000400000001001d0000035601000041000000400300043d000500000003001d000000000013043500000000030004150000000d0330008a000000050330021000000000010004140000034302200197000000040020008c000006a10000613d00000004040000390000002006000039000000050300002900000000050300190cbd072e0000040f00000000030004150000000c0330008a0000000503300210000000000001004b000006a10000c13d0000000102000031000000040120008c0000069d0000413d000000000300043d00000357043001970000000303000367000000000503043b0000035805500197000000000445019f000000000040043f000000440020008c0000069d0000413d0000035804400197000003460040009c0000069d0000c13d0000000406300370000000200300008a00000000073101700000001f0810018f000000400400043d0000000005740019000006750000613d000000000906034f000000000a040019000000009b09043c000000000aba043600000000005a004b000006710000c13d000000000008004b000006820000613d000000000676034f0000000307800210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f000000000065043500000000050404330000034a0050009c0000069d0000213d0000002406500039000000000026004b0000069d0000213d000000000645001900000000020604330000034a0020009c0000069d0000213d000000000114001900000000062600190000002006600039000000000016004b0000069d0000213d00000000012500190000003f01100039000000000231016f0000000001420019000000000021004b000000000200003900000001020040390000034a0010009c000006c20000213d0000000100200190000006c20000c13d000000400010043f000000000100041500000004011000690000000001000002000006c80000013d00000001010000310000001f02100039000000200400008a000000000442016f0000000502400029000000000042004b000000000400003900000001040040390000034a0020009c000006c20000213d0000000100400190000006c20000c13d000000400020043f0000034b0010009c000006250000213d000000200010008c000006250000413d000000050100002900000000010104330000000502300270000000000201001f000000000200041500000004022000690000000002000002000003590010009c000006c80000c13d00000006010000290000035a0010009c000005b40000213d000000060100002900000003011002100000000a0110011a000006ca0000013d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf00010430000000060100002900000001011002700006000600100071000000010300008a000000060230014f000000000021004b000005b40000213d00000002020003670000006403200370000000000303043b000500000003001d000000000003004b000006d90000613d000000010300008a00000005033000fa000000090030006c000005b40000413d0000000603100029000000050500002900000009045000b9000000010500008a000000000554013f000000000053004b000005b40000213d00000000033400190000000004000416000000000043004b000006e60000a13d0000035d01000041000004330000013d000000000001004b000006ed0000613d000000a402200370000000000202043b000003430020009c000006250000213d0cbd090d0000040f000000060000006b000006f40000613d0000003301000039000000000101041a000003430210019700000006010000290cbd090d0000040f00000002020003670000008401200370000000000101043b000003430010009c000006250000213d000000a402200370000000000202043b000003430020009c000006250000213d000000400300043d000000a00430003900000000002404350000008002300039000000000012043500000060013000390000000502000029000000000021043500000040013000390000000702000029000000000021043500000020013000390000000a02000029000000000021043500000009010000290000000000130435000003300030009c000003300300804100000040013002100000000002000414000003300020009c0000033002008041000000c002200210000000000112019f0000035b011001c70000800d02000039000000030300003900000000060004110000035c040000410000000b050000290cbd0bef0000040f0000000100200190000006250000613d000000000100041500000008020000290000055b0000013d000003300010009c0000033001008041000000c001100210000003300030009c00000330030080410000004003300210000000000113019f0cbd0bef0000040f0000006003100270000103300030019d0003000000010355000000010120018f000000000001042d0002000000000002000200000006001d000100000005001d000003300030009c00000330030080410000004003300210000003300040009c00000330040080410000006004400210000000000334019f000003300010009c0000033001008041000000c001100210000000000113019f0cbd0bf40000040f000000010900002900000060031002700000033003300197000000020030006c000000020400002900000000040340190000001f0540018f000003890640019800000000046900190000074c0000613d000000000701034f000000007807043c0000000009890436000000000049004b000007480000c13d000000010220018f000000000005004b0000075a0000613d000000000661034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000100000003001f00030000000103550000000001020019000000000001042d000003300030009c00000330030080410000004003300210000003300040009c00000330040080410000006004400210000000000334019f000003300010009c0000033001008041000000c001100210000000000113019f0cbd0bf90000040f0000006003100270000103300030019d0003000000010355000000010120018f000000000001042d00000000430104340000034a03300197000000000332043600000000040404330000034a044001970000000000430435000000400310003900000000030304330000034a03300197000000400420003900000000003404350000006002200039000000600110003900000000010104330000034a011001970000000000120435000000000001042d0000038a0020009c000007b10000813d00000000040100190000001f01200039000000200600008a000000000161016f0000003f01100039000000000561016f000000400100043d0000000005510019000000000015004b000000000700003900000001070040390000034a0050009c000007b10000213d0000000100700190000007b10000c13d000000400050043f00000000052104360000000007420019000000000037004b000007b70000213d00000000066201700000001f0720018f00000002044003670000000003650019000007a10000613d000000000804034f0000000009050019000000008a08043c0000000009a90436000000000039004b0000079d0000c13d000000000007004b000007ae0000613d000000000464034f0000000306700210000000000703043300000000076701cf000000000767022f000000000404043b0000010006600089000000000464022f00000000046401cf000000000474019f000000000043043500000000022500190000000000020435000000000001042d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf0001043000000c6c0000013d0000003301000039000000000101041a00000343011001970000000002000411000000000021004b000007bf0000c13d000000000001042d000000400100043d00000044021000390000038b030000410000000000320435000003460200004100000000002104350000002402100039000000200300003900000000003204350000000402100039000000000032043500000064020000390cbd0bab0000040f000000000601001900000343011001970000003302000039000000000302041a0000034704300197000000000114019f000000000012041b000000400100043d000003300010009c000003300100804100000040011002100000000002000414000003300020009c0000033002008041000000c002200210000000000112019f00000343053001970000036c011001c70000800d0200003900000003030000390000036e040000410cbd0bef0000040f0000000100200190000007e50000613d000000000001042d00000c6c0000013d000000000001004b000007e90000613d000000000001042d000000400100043d00000064021000390000038c03000041000000000032043500000044021000390000038d03000041000000000032043500000024021000390000002c030000390000000000320435000003460200004100000c120000013d000000000001004b000007f80000613d000000000001042d000000400100043d00000064021000390000038e03000041000000000032043500000044021000390000038d03000041000000000032043500000024021000390000002c030000390000000000320435000003460200004100000c120000013d000000000001004b000008070000613d000000000001042d000000400100043d00000064021000390000038f030000410000000000320435000000440210003900000390030000410000000000320435000000240210003900000029030000390000000000320435000003460200004100000c120000013d00000060021000390000039103000041000000000032043500000040021000390000039203000041000000000032043500000020021000390000002e030000390000000000320435000000200200003900000000002104350000008001100039000000000001042d0003000000000002000200000001001d000108240000003d00000cb10000013d00000379020000410cbd0bd10000040f000000000001004b000008300000613d000000020100002900000343011001970000037202000041000000000302041a0000034703300197000000000113019f000000000012041b000000000001042d000000400100043d00000064021000390000039303000041000000000032043500000044021000390000039403000041000000000032043500000024021000390000002d030000390000000000320435000003460200004100000c120000013d0000000102000032000008680000613d0000038a0020009c0000086a0000813d0000001f01200039000000200300008a000000000131016f0000003f01100039000000000431016f000000400100043d0000000004410019000000000014004b000000000500003900000001050040390000034a0040009c0000086a0000213d00000001005001900000086a0000c13d000000400040043f000000000621043600000000033201700000001f0420018f000000000236001900000003050003670000085a0000613d000000000705034f000000007807043c0000000006860436000000000026004b000008560000c13d000000000004004b000008690000613d000000000335034f0000000304400210000000000502043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000320435000000000001042d0000006001000039000000000001042d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf000104300003000000000002000000000603001900000000050200190000000032030434000000000005004b000008820000613d000000000002004b000008800000c13d0001087a0000003d00000cb10000013d0000037902000041000200000006001d0cbd0bd10000040f0000000206000029000000000001004b000008920000613d0000000001060019000000000001042d000000000002004b000008900000c13d000000400300043d000200000003001d00000346010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000000010400190cbd089b0000040f0000000203000029000000000231004900000000010300190cbd0bab0000040f000000400100043d00000044021000390000039503000041000000000032043500000024021000390000001d030000390000000000320435000003460200004100000c600000013d0000002004100039000000000301043300000000013204360000000002000019000000000032004b000008a70000813d000000000512001900000000062400190000000006060433000000000065043500000020022000390000089f0000013d000008aa0000a13d000000000213001900000000000204350000001f02300039000000200300008a000000000232016f0000000001210019000000000001042d000000000010043f000000670100003900000cac0000013d00010000000000020000000002010019000000400100043d000003880010009c000008c30000813d000108b90000003d00000c960000013d0000034a033001970000004004100039000000000034043500000040032002700000034a03300197000000200410003900000000003404350000034a022001970000000000210435000000000001042d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf00010430000000400100043d000003880010009c000008d60000813d0000008002100039000000400020043f0000006002100039000000000002043500000040021000390000000000020435000000200210003900000000000204350000000000010435000000000001042d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf000104300000034302200197000000000020043f00000cac0000013d0002000000000002000000000302001900000000021200490000034b0020009c0000090c0000213d0000005f0020008c0000090c0000a13d0000000202000367000000000512034f0000002004100039000000000642034f000000000505043b000200000005001d000000000506043b000100000005001d000003430050009c0000090c0000213d0000002004400039000000000442034f000000000404043b0000034a0040009c0000090c0000213d00000000011400190000001f04100039000000000034004b0000000005000019000003830500804100000383044001970000038306300197000000000764013f000000000064004b00000000040000190000038304004041000003830070009c000000000405c019000000000004004b0000090c0000c13d000000000212034f000000000202043b00000020011000390cbd07800000040f000000000301001900000002010000290000000102000029000000000001042d00000c6c0000013d00010000000000020000000005010019000000400300043d00000000010004140000034304200197000000040040008c000009160000c13d00000001010000390000092b0000013d000000000005004b000009290000613d000003300030009c00000330030080410000004002300210000003300010009c0000033001008041000000c001100210000000000121019f0000036c011001c70000800902000039000000000305001900000000050000190cbd0bef0000040f0000006003100270000103300030019d0003000000010355000000010120018f0000092b0000013d00000000020400190cbd07210000040f000100000001001d0cbd083c0000040f000000010000006b000009300000613d000000000001042d0000039601000041000000000010043f000003490100004100000cbf000104300001000000000002000000400300043d0000000045020434000000410050008c000009550000c13d00000040052000390000000005050433000003980050009c000009620000213d0000006002200039000000000202043300000000040404330000006006300039000000000056043500000040053000390000000000450435000000f802200270000000200430003900000000002404350000000000130435000000000000043f000000000100041400000001020000390000008004000039000000200600003900000000050000190cbd072e0000040f000000000001004b000009730000613d000000000100043d0000034300100198000009800000613d000000000001042d00000044013000390000039702000041000000000021043500000024013000390000001f020000390000000000210435000003460100004100000000001304350000000401300039000000200200003900000000002104350000006402000039000009710000013d00000064013000390000039a02000041000000000021043500000044013000390000039b02000041000000000021043500000024013000390000002202000039000000000021043500000346010000410000000000130435000000040130003900000020020000390000000000210435000000840200003900000000010300190cbd0bab0000040f000109750000003d00000c180000013d0000097b0000613d000000000704034f00000000080100190001097a0000003d00000c8b0000013d000009780000c13d000000000006004b0000097f0000613d0001097f0000003d00000bfe0000013d0cbd0bab0000040f000000400100043d000000440210003900000399030000410000000000320435000000240210003900000018030000390000000000320435000003460200004100000c600000013d0000038a0020009c000009ac0000813d0000001f04200039000000200500008a000000000454016f0000003f04400039000000000554016f000000400400043d0000000005540019000000000045004b000000000600003900000001060040390000034a0050009c000009ac0000213d0000000100600190000009ac0000c13d000000400050043f00000000052404360000000006120019000000000036004b000009b20000213d0000000003000019000000000023004b000009a70000813d000000000653001900000000071300190000000007070433000000000076043500000020033000390000099f0000013d000009aa0000a13d000000000125001900000000000104350000000001040019000000000001042d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf0001043000000c6c0000013d000c000000000002000700000003001d000600000002001d000a00000001001d00000000510404340000034b0010009c00000ab40000213d0000007f0010008c00000ab40000a13d00000040024000390000000002020433000900000002001d0000034d0020009c00000ab40000213d000000600240003900000000020204330000034a0020009c00000ab40000213d000000000315001900000000015200190000001f02100039000000000032004b000000000600001900000383060080410000038302200197000303830030019b000000030720014f000000030020006c00000000020000190000038302004041000003830070009c000000000206c019000000000002004b00000ab40000c13d0000000002050433000b00000002001d0000000012010434000500000005001d000400000003001d000200000004001d0cbd09890000040f0000000403000029000000050200002900000000050100190000000201000029000000800110003900000000010104330000034a0010009c00000ab40000213d00000000012100190000001f02100039000000000032004b000000000600001900000383060080410000038302200197000000030420014f000000030020006c00000000020000190000038302004041000003830040009c000000000206c019000000000002004b00000ab40000c13d0000000012010434000800000005001d0cbd09890000040f000300000001001d0000000801000029000000000201043300000020011000390cbd0bbd0000040f000500000001001d000000400100043d000400000001001d0000800b01000039000000040300003900000000040004150000000c0440008a000000050440021000000353020000410cbd0bd10000040f0000000404000029000001000240003900000005030000290000000000320435000000e0024000390000000903000029000000000032043500000007020000290000034302200197000000a003400039000000000023043500000080024000390000000b03000029000000000032043500000040024000390000000a030000290000000000320435000000c0024000390000000000120435000000060100002900000330021001970000006001400039000500000002001d00000000002104350000039c0200004100000020014000390000000000210435000001000200003900000000002404350000039d0040009c00000ab70000813d0000012002400039000000400020043f00000000020404330cbd0bbd0000040f000600000001001d0cbd0ac10000040f000000400200043d000000420320003900000006040000290000000000430435000003500400004100010a300000003d00000ca50000013d000003510020009c00000ab70000213d0000008001200039000000400010043f000000000202043300000000010300190cbd0bbd0000040f00000003020000290cbd09340000040f000003430010019800000ab50000613d0cbd0b6e0000040f000000000001004b00000ab50000613d0000800b01000039000000040300003900000000040004150000000c0440008a000000050440021000000352020000410cbd0bd10000040f0000034d01100197000000090010006c00000ab50000213d0000000a01000029000000000010043f000000680100003900010a4d0000003d00000cb80000013d0000000b02000029000000000020043f000900000001001d0000000101100039000600000001001d000000200010043f000000000100001900000040020000390cbd0bbd0000040f000000000101041a000000000001004b00000abd0000c13d0000000901000029000000000101041a0000034a0010009c00000ab70000213d000400000001001d00000001011000390000000902000029000000000012041b000000000020043f000000200200003900000000010000190cbd0bbd0000040f00000004011000290000000b02000029000000000021041b0000000901000029000000000101041a000900000001001d000000000020043f000000060100002900010a6f0000003d00000cb80000013d0000000902000029000000000021041b00000008010000290000000002010433000000000002004b00000a920000613d000000400300043d000900000003001d000000200200003900000000022304360cbd089b0000040f00000009020000290000000001210049000003300010009c00000330010080410000006001100210000003300020009c00000330020080410000004002200210000000000121019f0000000002000414000003300020009c0000033002008041000000c002200210000000000121019f0000036c011001c70000800d02000039000000030300003900000000050004100000039f0400004100000000060000190cbd0bef0000040f0000000801000029000000010020019000000ab40000613d000000400400043d000900000004001d0000002002400039000000400300003900000000003204350000000502000029000000000024043500000040024000390cbd089b0000040f00000009020000290000000001210049000003300010009c0000033001008041000003300020009c000003300200804100000060011002100000004002200210000000000121019f0000000002000414000003300020009c0000033002008041000000c002200210000000000121019f0000036c011001c70000800d020000390000000403000039000003a0040000410000000a050000290000000b0600002900000007070000290cbd0bef0000040f000000010020019000000ab40000613d000000000001042d00000c6c0000013d0000035f0100004100000abe0000013d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf000104300000039e01000041000000000010043f000003490100004100000cbf000104300003000000000002000000400300043d000200000003001d0000006001300039000003a10200004100000000002104350000004001300039000003a20200004100000000002104350000002002300039000003a301000041000100000002001d00000000001204350000800b0100003900000004030000390000000004000415000000030440008a000000050440021000000353020000410cbd0bd10000040f0000000204000029000000c002400039000003a4030000410000000000320435000000a0024000390000000003000410000000000032043500000080024000390000000000120435000000c0010000390000000000140435000003a50040009c00000ae80000813d000000e001400039000000400010043f000000000204043300000001010000290cbd0bbd0000040f000000000001042d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf00010430000000000001004b00000af10000613d000000000001042d000000400100043d0000006402100039000003a60300004100000000003204350000004402100039000003a703000041000000000032043500000024021000390000002b030000390000000000320435000003460200004100000c120000013d0003000000000002000000400200043d000003a80020009c00000b5b0000813d000000c003200039000000400030043f000000a00320003900000000000304350000008003200039000000000003043500000060032000390000000000030435000000400320003900000000000304350000002003200039000000000003043500000000000204350000006502000039000000000202041a000000400500043d000003a90300004100000000043504360000000403500039000000000013043500000000010004140000034302200197000000040020008c00000b240000613d000200000004001d0000002404000039000000c0060000390000000003050019000300000005001d00000003050000290cbd072e0000040f00000002040000290000000305000029000000000001004b00000b610000613d00000001020000310000001f01200039000000200300008a000000000331016f0000000001530019000000000031004b000000000300003900000001030040390000034a0010009c00000b5b0000213d000000010030019000000b5b0000c13d000000400010043f0000034b0020009c00000b5a0000213d000000c00020008c00000b5a0000413d000003aa0010009c00000b5b0000213d000000c002100039000000400020043f0000000002050433000003430020009c00000b5a0000213d00000000022104360000000003040433000003820030009c00000b5a0000213d000000000032043500000040025000390000000002020433000003430020009c00000b5a0000213d00000040031000390000000000230435000000600250003900010b4a0000003d00000c660000013d00000b5a0000c13d00000060031000390000000000230435000000800250003900010b500000003d00000c660000013d00000b5a0000c13d00000080031000390000000000230435000000a00250003900010b560000003d00000c660000013d00000b5a0000c13d000000a0031000390000000000230435000000000001042d00000c6c0000013d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf0001043000010b630000003d00000c180000013d00000b690000613d000000000704034f000000000801001900010b680000003d00000c8b0000013d00000b660000c13d000000000006004b00000b6d0000613d00010b6d0000003d00000bfe0000013d0cbd0bab0000040f00020000000000020000006502000039000000000202041a000000400300043d000003ab04000041000000000043043500000343011001970000000404300039000000000014043500000000010004140000034302200197000000040020008c00000b830000613d00000024040000390000002006000039000200000003001d00000002050000290cbd072e0000040f0000000203000029000000000001004b00000b9d0000613d00010b850000003d00000c570000013d0000034a0020009c00000b930000213d000000010040019000000b930000c13d000000400020043f0000034b0010009c00000b990000213d000000200010008c00000b990000413d000000000103043300010b910000003d00000c860000013d00000b9c0000c13d000000000001042d0000036601000041000000000010043f0000004101000039000000040010043f000003670100004100000cbf00010430000000000100001900000000020000190cbd0bab0000040f00000c6c0000013d00010b9f0000003d00000c180000013d00000ba50000613d000000000704034f000000000801001900010ba40000003d00000c8b0000013d00000ba20000c13d000000000006004b00000ba90000613d00010ba90000003d00000bfe0000013d0cbd0bab0000040f000000000001042f000003300010009c00000330010080410000004001100210000003300020009c00000330020080410000006002200210000000000112019f00000cbf00010430000003300010009c00000330010080410000004001100210000003300020009c00000330020080410000006002200210000000000112019f000000e002300210000000000121019f00000cbe0001042e000003300010009c00000330010080410000004001100210000003300020009c00000330020080410000006002200210000000000112019f0000000002000414000003300020009c0000033002008041000000c002200210000000000112019f0000036c011001c700008010020000390cbd0bf40000040f000000010020019000000bd00000613d000000000101043b000000000001042d00000c6c0000013d00000000050100190000000000200443000000050030008c00000bdf0000413d000000040100003900000000020000190000000506200210000000000664001900000005066002700000000006060031000000000161043a0000000102200039000000000031004b00000bd70000413d000003300030009c000003300300804100000060013002100000000002000414000003300020009c0000033002008041000000c002200210000000000112019f000003ac011001c700000000020500190cbd0bf40000040f000000010020019000000bee0000613d000000000101043b000000000001042d000000000001042f00000bf2002104210000000102000039000000000001042d0000000002000019000000000001042d00000bf7002104230000000102000039000000000001042d0000000002000019000000000001042d00000bfc002104250000000102000039000000000001042d0000000002000019000000000001042d000000000454034f0000000305600210000000000603043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f0000000000430435000000010000013b0000000b01000029000000000010043f0000006601000039000000200010043f000000400200003900000000010000190cbd0bbd0000040f000000010000013b000000000021043500000004021000390000002003000039000000000032043500000084020000390cbd0bab0000040f0000000304000367000000200100008a000000010200003100000000051201700000001f0620018f000000400100043d0000000003510019000000010000013b000000000223019f000000000021041b0000000b01000029000000000010043f0000006701000039000000200010043f000000000100001900000040020000390cbd0bbd0000040f0000000a02000029000000000020043f000000200010043f000000000100001900000040020000390cbd0bbd0000040f000000000201041a000000010000013b0000000001000412001000000001001d000f00000000003d000080050100003900000044030000390000000004000415000000100440008a0000000504400210000000010000013b0000000b01000029000000000010043f0000006701000039000000200010043f000000400200003900000000010000190cbd0bbd0000040f0000000a02000029000000000020043f000000200010043f000000000100001900000040020000390cbd0bbd0000040f000000000101041a000000010000013b0cbd08df0000040f0000000b04000029000000000040043f0000006604000039000000200040043f000500000001001d000200000002001d000700000003001d000000400200003900000000010000190cbd0bbd0000040f0cbd08b20000040f0000000902000029000000010000013b00000001010000310000001f02100039000000200400008a000000000442016f0000000002340019000000000042004b00000000040000390000000104004039000000010000013b000000000021043500000004021000390000002003000039000000000032043500000064020000390cbd0bab0000040f0000000002020433000000000002004b0000000003000039000000010300c039000000000032004b000000010000013b000000000100001900000cbf0001043000000006022001af000000000021041b000000050100002900000007020000290cbd090d0000040f00000003010000290000000001010433000000010000013b0000000000430435000000400310003900000005040000290000000000430435000000070300002900000000033104360000000000030435000000010000013b0000000001010433000b00000001001d0000800b0100003900000004030000390000000004000415000000100440008a0000000504400210000000010000013b000000000001004b0000000002000039000000010200c039000000000021004b000000010000013b000000007907043c0000000008980436000000000038004b000000010000013b000000000100003900000001010060390cbd08040000040f0000000b010000290cbd08200000040f000000400100043d000000010000013b0000008003100039000000400030043f000000000202041a0000006003100039000000c00420027000000000004304350000008003200270000000010000013b0000000901000029000000000010043f000000200030043f000000400200003900000000010000190cbd0bbd0000040f000000010000013b000000200320003900000000004304350000002204200039000000000014043500000042010000390000000000120435000000010000013b000000200010043f000000400200003900000000010000190cbd0bbd0000040f000000000001042d000300000001001d000080020100003900000024030000390000000004000415000000030440008a0000000504400210000000010000013b000000200010043f000000400200003900000000010000190cbd0bbd0000040f000000010000013b00000cbd0000043200000cbe0001042e00000cbf0001043000000000000000000000000000000000000000000000000000000000ffffffff000000020000000000000000000000000000008000000100000000000000000000000000000000000000000000000000000000000000000000000000f2fde38b0000000000000000000000000000000000000000000000000000000013b5d9e6000000000000000000000000000000000000000000000000000000001a8d3792000000000000000000000000000000000000000000000000000000003659cfe600000000000000000000000000000000000000000000000000000000485cc955000000000000000000000000000000000000000000000000000000004f1ef2860000000000000000000000000000000000000000000000000000000052d1902d00000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000007e4edf70000000000000000000000000000000000000000000000000000000008383a2e500000000000000000000000000000000000000000000000000000000865b9b6e000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000009cc163e500000000000000000000000000000000000000000000000000000000c4804ce200000000000000000000000000000000000000000000000000000000cdacf46700000000000000000000000000000000000000000000000000000000ceab8e19000000000000000000000000000000000000000000000000000000000ae94103000000000000000000000000ffffffffffffffffffffffffffffffffffffffff64647265737300000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f206108c379a000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff00000000000000000000000000000000000000002059de78000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000fffffffffffffeff0000000000000000000000000000000000000000000000000000ffffffffffffd4cd86574bcac27e78578396249c462b885315e7c05472e3750e399678b08e17000000000000000000000000000000000000000000000000fffffffffffffebf1901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d955391329a8a0592ac89c5ad3bc6df8224c17b485976f597df104ee20d0df415241f670bed3c247c000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffcbab0bd30000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000003a9654d81ac4dafbb9a2fb1cd3efa3de2783ae40b06b17a456bf5922ed02a3a71fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff02000000000000000000000000000000000000c0000000000000000000000000b2cd958e770678e410da874d10303731cbc687b88dcd9a4e6365a46a69dcec8db84961ed000000000000000000000000000000000000000000000000000000005e425c1a000000000000000000000000000000000000000000000000000000008baa579f000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff00000000000000000000000000000000ffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000200000000000000000000000000000000000080000000000000000000000000049db32fba2a1a1e27b64c6c4e413452663a197c14e67bd3168b0ba21fa3c30dccfad018000000000000000000000000000000000000000000000000000000004e487b710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000082b429000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff02000000000000000000000000000000000000000000000000000000000000009ac460ae6003af642d4a5a332d0d32dcfc751b66db4d37f94bdfe169ec9a89bc8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e555550535570677261646561626c653a206d757374206e6f742062652063616c6c6564207468726f7567682064656c656761746563616c6c0000000000000000360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914352d1902d00000000000000000000000000000000000000000000000000000000bc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b000000000000000000000000000000000000000000000000ffffffffffffff9f206661696c656400000000000000000000000000000000000000000000000000416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c1806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b83647920696e697469616c697a6564000000000000000000000000000000000000496e697469616c697a61626c653a20636f6e747261637420697320616c72656102000000000000000000000000000000000000200000000000000000000000007f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498000000000000000000000000000000000000000000000000ffffffffffffffdf9a04794d00000000000000000000000000000000000000000000000000000000f847cddefa1c1a4603e71ac33532e01fb1bfeb644c8423edd9752fa863df9082ddf990f9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff8000000000000000000000000000000000000000000000000000000000000000047fc9aa0000000000000000000000000000000000000000000000000000000018160ddd000000000000000000000000000000000000000000000000000000002ddcb21f00000000000000000000000000000000000000000000000000000000566563746f7220646f65736e2774206578697374000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff8000000000000000000000000000000000000000000000000000000000ffffffe000000000000000000000000000000000000000000000000100000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657264656c656761746563616c6c000000000000000000000000000000000000000046756e6374696f6e206d7573742062652063616c6c6564207468726f756768206163746976652070726f787900000000000000000000000000000000000000006961626c6555554944000000000000000000000000000000000000000000000045524331393637557067726164653a20756e737570706f727465642070726f786f6e206973206e6f74205555505300000000000000000000000000000000000045524331393637557067726164653a206e657720696d706c656d656e746174696f74206120636f6e747261637400000000000000000000000000000000000000455243313936373a206e657720696d706c656d656e746174696f6e206973206e416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000f9ad38720000000000000000000000000000000000000000000000000000000045434453413a20696e76616c6964207369676e6174757265206c656e677468007fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a045434453413a20696e76616c6964207369676e61747572650000000000000000756500000000000000000000000000000000000000000000000000000000000045434453413a20696e76616c6964207369676e6174757265202773272076616c2f8af1fd9f4080a72c6736994e7c4994fb64eebfacf4aa9e9f83a7feacc8f01c000000000000000000000000000000000000000000000000fffffffffffffee0fa1c951e00000000000000000000000000000000000000000000000000000000de7419673c62effe64ad212bc9516461b88f2fef1be631b974d6a148125315e14020c05e3ebb01289f89254c0935fb70e2e728b9fd2ceb086824761a4fb36c41c89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc647263be69a82ba8bdcefb67b35791543e0b4a536196541b2d28eae0b6fd6afb3d87cd6ef79d4e2b95e15ce8abf732db51ec771f1ca2edccf22a46c729ac56472954386a2b103a8ad2b933e44ea148036f73dc4b906c0fea200392fd413d44da0000000000000000000000000000000000000000000000000ffffffffffffff206e697469616c697a696e67000000000000000000000000000000000000000000496e697469616c697a61626c653a20636f6e7472616374206973206e6f742069000000000000000000000000000000000000000000000000ffffffffffffff400410501800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff3fe2f66b1e000000000000000000000000000000000000000000000000000000000200000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011dfb4fe515caf33d29af95ef3ab3c18ac344e47ac061cae98ff054932eb1f7d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.