diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f2a2d6c1..e1035e3d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,18 +17,13 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: "recursive" + submodules: recursive - name: Install Foundry - uses: onbjerg/foundry-toolchain@v1 - with: - version: nightly + uses: foundry-rs/foundry-toolchain@v1 - name: Install Dependencies run: forge install - # - name: Run Lint Check - # run: forge fmt --check - - - name: "Run Forge Tests" - run: "forge test" + - name: Run Forge Tests + run: forge test -vvv diff --git a/Quest.json b/Quest.json index fd8d2b78..2d9bd839 100644 --- a/Quest.json +++ b/Quest.json @@ -1 +1 @@ -{"language":"Solidity","sources":{"contracts/Quest.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\n// Inherits\nimport {Ownable} from \"solady/auth/Ownable.sol\";\nimport {PausableUpgradeable} from \"openzeppelin-contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport {ReentrancyGuardUpgradeable} from \"openzeppelin-contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport {QuestClaimable} from \"./libraries/QuestClaimable.sol\";\n// Implements\nimport {IQuest} from \"./interfaces/IQuest.sol\";\n// Leverages\nimport {SafeTransferLib} from \"solady/utils/SafeTransferLib.sol\";\n// References\nimport {IQuestFactory} from \"./interfaces/IQuestFactory.sol\";\n\n/// @title Quest\n/// @author RabbitHole.gg\n/// @notice This contract is the Erc20Quest contract. It is a quest that is redeemable for ERC20 tokens\n// solhint-disable-next-line max-states-count\ncontract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQuest, QuestClaimable {\n /*//////////////////////////////////////////////////////////////\n USING\n //////////////////////////////////////////////////////////////*/\n using SafeTransferLib for address;\n\n /*//////////////////////////////////////////////////////////////\n STORAGE\n //////////////////////////////////////////////////////////////*/\n address public rabbitHoleReceiptContract; // Deprecated - do not use\n IQuestFactory public questFactoryContract;\n address public rewardToken;\n uint256 public endTime;\n uint256 public startTime;\n uint256 public totalParticipants;\n uint256 public rewardAmountInWei;\n bool public queued;\n string public questId;\n uint16 public questFee;\n bool public hasWithdrawn;\n address public protocolFeeRecipient;\n mapping(uint256 => bool) private claimedList;\n mapping(address => uint256) public streamIdForAddress;\n uint256 public referralRewardFee;\n uint256 public referralClaimTotal;\n mapping (address => uint256) private referralClaimAmounts;\n mapping (address => bool) private referrerHasClaimed;\n uint256 public totalReferralsFeesClaimed;\n\n /*//////////////////////////////////////////////////////////////\n CONSTRUCTOR\n //////////////////////////////////////////////////////////////*/\n /// @custom:oz-upgrades-unsafe-allow constructor\n // solhint-disable-next-line func-visibility\n constructor() {\n _disableInitializers();\n }\n\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmountInWei_,\n string memory questId_,\n uint16 questFee_,\n address protocolFeeRecipient_,\n uint256 referralRewardFee_\n ) external initializer {\n // Validate inputs\n if (endTime_ <= block.timestamp) revert EndTimeInPast();\n if (endTime_ <= startTime_) revert EndTimeLessThanOrEqualToStartTime();\n if (referralRewardFee_ > 500) revert ReferralRewardFeeTooHigh(); // Maximum 5%\n\n // Process input parameters\n rewardToken = rewardTokenAddress_;\n endTime = endTime_;\n startTime = startTime_;\n totalParticipants = totalParticipants_;\n rewardAmountInWei = rewardAmountInWei_;\n questId = questId_;\n questFee = questFee_;\n protocolFeeRecipient = protocolFeeRecipient_;\n referralRewardFee = referralRewardFee_;\n\n // Setup default state\n questFactoryContract = IQuestFactory(payable(msg.sender));\n queued = true;\n referralClaimTotal = 0;\n totalReferralsFeesClaimed = 0;\n _initializeOwner(msg.sender);\n __Pausable_init();\n __ReentrancyGuard_init();\n }\n\n /*//////////////////////////////////////////////////////////////\n MODIFIERS\n //////////////////////////////////////////////////////////////*/\n /// @notice Prevents reward withdrawal until the Quest has ended\n modifier onlyWithdrawAfterEnd() {\n if (block.timestamp < endTime) revert NoWithdrawDuringClaim();\n _;\n }\n\n /// @notice Checks if quest has started both at the function level and at the start time\n modifier onlyQuestActive() {\n if (block.timestamp < startTime) revert ClaimWindowNotStarted();\n _;\n }\n\n /// @notice Checks if the quest end time has not passed\n modifier whenNotEnded() {\n if (block.timestamp > endTime) revert QuestEnded();\n _;\n }\n\n modifier onlyQuestFactory() {\n if (msg.sender != address(questFactoryContract)) revert NotQuestFactory();\n _;\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n\n /// @notice Cancels the Quest by setting the end time to 15 minutes from the current time and pausing the Quest. If the Quest has not yet started, it will end immediately.\n /// @dev Only the owner of the Quest can call this function.\n function cancel() external onlyQuestFactory whenNotPaused whenNotEnded {\n _pause();\n endTime = startTime > block.timestamp ? block.timestamp : block.timestamp + 15 minutes;\n }\n\n /// @dev transfers rewards to the account, can only be called once per account per quest and only by the quest factory\n /// @param account_ The account to transfer rewards to\n function singleClaim(address account_)\n external\n virtual\n nonReentrant\n onlyQuestActive\n whenNotPaused\n onlyQuestFactory\n {\n uint256 totalRedeemableRewards = rewardAmountInWei;\n _transferRewards(account_, totalRedeemableRewards);\n\n }\n\n function claimFromFactory(address claimer_, address ref_) external payable whenNotEnded onlyQuestFactory {\n _transferRewards(claimer_, rewardAmountInWei);\n if (ref_ != address(0)) {\n ref_.safeTransferETH(_claimFee() / 3);\n _updateReferralTokenAmount(ref_);\n }\n }\n\n /// @notice Function that transfers all 1155 tokens in the contract to the owner (creator), and eth to the protocol fee recipient and the owner\n /// @dev Can only be called after the quest has ended\n function withdrawRemainingTokens() external onlyWithdrawAfterEnd {\n if (hasWithdrawn) revert AlreadyWithdrawn();\n hasWithdrawn = true;\n\n uint256 ownerPayout = (_claimFee() * _redeemedTokens()) / 3;\n uint256 protocolPayout = address(this).balance - ownerPayout;\n\n owner().safeTransferETH(ownerPayout);\n protocolFeeRecipient.safeTransferETH(protocolPayout);\n\n // transfer reward tokens\n uint256 protocolFeeForRecipient = (this.protocolFee() / 2) - referralClaimTotal;\n rewardToken.safeTransfer(protocolFeeRecipient, protocolFeeForRecipient);\n\n uint256 remainingBalanceForOwner = rewardToken.balanceOf(address(this)) - (referralClaimTotal - totalReferralsFeesClaimed);\n rewardToken.safeTransfer(owner(), remainingBalanceForOwner);\n\n questFactoryContract.withdrawCallback(questId, protocolFeeRecipient, protocolPayout, address(owner()), ownerPayout);\n }\n\n function claimReferralFees(address referrer) external onlyWithdrawAfterEnd {\n if (referrerHasClaimed[referrer] == true) revert AlreadyWithdrawn();\n\n uint256 referrerClaimAmount = referralClaimAmounts[referrer];\n if (referrerClaimAmount == 0) revert NoReferralFees();\n\n rewardToken.safeTransfer(referrer, referrerClaimAmount);\n referrerHasClaimed[referrer] = true;\n totalReferralsFeesClaimed += referrerClaimAmount;\n emit ClaimedReferralFees(questId, referrer, address(rewardToken), referrerClaimAmount);\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n /// @dev The amount of tokens the quest needs to pay all redeemers plus the protocol fee\n function totalTransferAmount() external view returns (uint256) {\n return this.maxTotalRewards() + this.maxProtocolReward();\n }\n\n /// @dev Function that gets the maximum amount of rewards that can be claimed by all users. It does not include the protocol fee\n /// @return The maximum amount of rewards that can be claimed by all users\n function maxTotalRewards() external view returns (uint256) {\n return totalParticipants * rewardAmountInWei;\n }\n\n /// @notice Function that gets the maximum amount of rewards that can be claimed by the protocol or the quest deployer\n /// @dev The 10_000 comes from Basis Points: https://www.investopedia.com/terms/b/basispoint.asp\n /// @return The maximum amount of rewards that can be claimed by the protocol or the quest deployer\n function maxProtocolReward() external view returns (uint256) {\n return (this.maxTotalRewards() * questFee) / 10_000;\n }\n\n /// @notice Function that calculates the protocol fee\n function protocolFee() external view returns (uint256) {\n return (_redeemedTokens() * rewardAmountInWei * questFee) / 10_000;\n }\n\n function referralRewardAmount() external view returns (uint256) {\n return _referralRewardAmount();\n }\n\n function getReferralAmount(address referrer) external view returns (uint256) {\n return referralClaimAmounts[referrer];\n }\n\n /// @dev Returns the reward amount\n function getRewardAmount() external view returns (uint256) {\n return rewardAmountInWei;\n }\n\n /// @dev Returns the reward token address\n function getRewardToken() external view returns (address) {\n return rewardToken;\n }\n\n function getQuestFactoryContract() public view override returns (IQuestFactory){\n return questFactoryContract;\n }\n\n function getQuestId() public view override returns (string memory){\n return questId;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n /// @notice Internal function that transfers the rewards to the msg.sender\n /// @param sender_ The address to send the rewards to\n /// @param amount_ The amount of rewards to transfer\n function _transferRewards(address sender_, uint256 amount_) internal {\n rewardToken.safeTransfer(sender_, amount_);\n }\n\n /// @notice Internal function to update the referral reward amount\n /// @param referrer_ The address of the referrer\n function _updateReferralTokenAmount(address referrer_) internal {\n uint256 referralAmount = _referralRewardAmount();\n referralClaimTotal += referralAmount;\n referralClaimAmounts[referrer_] += referralAmount;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n function _redeemedTokens() internal view returns (uint256) {\n return questFactoryContract.getNumberMinted(questId);\n }\n\n function _claimFee() internal view returns (uint256) {\n return questFactoryContract.mintFee();\n }\n\n function _referralRewardAmount() internal view returns (uint256) {\n return (referralRewardFee * rewardAmountInWei) / 10_000;\n }\n\n /*//////////////////////////////////////////////////////////////\n DEFAULTS\n //////////////////////////////////////////////////////////////*/\n receive() external payable {}\n fallback() external payable {}\n}\n"},"lib/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The caller is not authorized to call the function.\n error Unauthorized();\n\n /// @dev The `newOwner` cannot be the zero address.\n error NewOwnerIsZeroAddress();\n\n /// @dev The `pendingOwner` does not have a valid handover request.\n error NoHandoverRequest();\n\n /// @dev Cannot double-initialize.\n error AlreadyInitialized();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n /// despite it not being as lightweight as a single argument event.\n event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n /// @dev An ownership handover to `pendingOwner` has been requested.\n event OwnershipHandoverRequested(address indexed pendingOwner);\n\n /// @dev The ownership handover to `pendingOwner` has been canceled.\n event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* STORAGE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The owner slot is given by:\n /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n /// It is intentionally chosen to be a high value\n /// to avoid collision with lower slots.\n /// The choice of manual storage layout is to enable compatibility\n /// with both regular and upgradeable contracts.\n bytes32 internal constant _OWNER_SLOT =\n 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n /// The ownership handover slot of `newOwner` is given by:\n /// ```\n /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n /// let handoverSlot := keccak256(0x00, 0x20)\n /// ```\n /// It stores the expiry timestamp of the two-step ownership handover.\n uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* INTERNAL FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n /// @dev Initializes the owner directly without authorization guard.\n /// This function must be called upon initialization,\n /// regardless of whether the contract is upgradeable or not.\n /// This is to enable generalization to both regular and upgradeable contracts,\n /// and to save gas in case the initial owner is not the caller.\n /// For performance reasons, this function will not check if there\n /// is an existing owner.\n function _initializeOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n if sload(ownerSlot) {\n mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n revert(0x1c, 0x04)\n }\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(_OWNER_SLOT, newOwner)\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n }\n }\n\n /// @dev Sets the owner directly without authorization guard.\n function _setOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, newOwner)\n }\n }\n }\n\n /// @dev Throws if the sender is not the owner.\n function _checkOwner() internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // If the caller is not the stored owner, revert.\n if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n /// Override to return a different value if needed.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n return 48 * 3600;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC UPDATE FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Allows the owner to transfer the ownership to `newOwner`.\n function transferOwnership(address newOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(shl(96, newOwner)) {\n mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n revert(0x1c, 0x04)\n }\n }\n _setOwner(newOwner);\n }\n\n /// @dev Allows the owner to renounce their ownership.\n function renounceOwnership() public payable virtual onlyOwner {\n _setOwner(address(0));\n }\n\n /// @dev Request a two-step ownership handover to the caller.\n /// The request will automatically expire in 48 hours (172800 seconds) by default.\n function requestOwnershipHandover() public payable virtual {\n unchecked {\n uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to `expires`.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), expires)\n // Emit the {OwnershipHandoverRequested} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n }\n }\n }\n\n /// @dev Cancels the two-step ownership handover to the caller, if any.\n function cancelOwnershipHandover() public payable virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), 0)\n // Emit the {OwnershipHandoverCanceled} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n }\n }\n\n /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n let handoverSlot := keccak256(0x0c, 0x20)\n // If the handover does not exist, or has expired.\n if gt(timestamp(), sload(handoverSlot)) {\n mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n revert(0x1c, 0x04)\n }\n // Set the handover slot to 0.\n sstore(handoverSlot, 0)\n }\n _setOwner(pendingOwner);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC READ FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the owner of the contract.\n function owner() public view virtual returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := sload(_OWNER_SLOT)\n }\n }\n\n /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n function ownershipHandoverExpiresAt(address pendingOwner)\n public\n view\n virtual\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the handover slot.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n // Load the handover slot.\n result := sload(keccak256(0x0c, 0x20))\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MODIFIERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Marks a function as only callable by the owner.\n modifier onlyOwner() virtual {\n _checkOwner();\n _;\n }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n function __Pausable_init() internal onlyInitializing {\n __Pausable_init_unchained();\n }\n\n function __Pausable_init_unchained() internal onlyInitializing {\n _paused = false;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view virtual {\n require(!paused(), \"Pausable: paused\");\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view virtual {\n require(paused(), \"Pausable: not paused\");\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/security/ReentrancyGuardUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n function __ReentrancyGuard_init() internal onlyInitializing {\n __ReentrancyGuard_init_unchained();\n }\n\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n _nonReentrantBefore();\n _;\n _nonReentrantAfter();\n }\n\n function _nonReentrantBefore() private {\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n }\n\n function _nonReentrantAfter() private {\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n * `nonReentrant` function in the call stack.\n */\n function _reentrancyGuardEntered() internal view returns (bool) {\n return _status == _ENTERED;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"contracts/libraries/QuestClaimable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.19;\n\nimport { IQuestFactory } from \"../interfaces/IQuestFactory.sol\";\n\nerror txOriginMismatch();\n\nabstract contract QuestClaimable {\n function getQuestFactoryContract() public view virtual returns (IQuestFactory);\n\n function getQuestId() public view virtual returns (string memory);\n\n function claim() external payable {\n address ref_;\n IQuestFactory questFactoryContract = getQuestFactoryContract();\n string memory questId = getQuestId();\n\n (bytes32 txHash_, bytes32 r_, bytes32 vs_) = abi.decode(msg.data[4:], (bytes32, bytes32, bytes32));\n\n if (msg.data.length > 100) {\n assembly {\n ref_ := calldataload(100)\n ref_ := shr(96, ref_)\n }\n }\n\n IQuestFactory.QuestJsonData memory quest_ = questFactoryContract.questJsonData(questId);\n string memory jsonData_ = questFactoryContract.buildJsonString(txHash_, quest_.txHashChainId, quest_.actionType, quest_.questName);\n bytes memory claimData_ = abi.encode(msg.sender, ref_, questId, jsonData_);\n\n questFactoryContract.claimOptimized{value: msg.value}(abi.encodePacked(r_,vs_), claimData_);\n }\n}\n"},"contracts/interfaces/IQuest.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuest {\n event Queued(uint256 timestamp);\n event ProtocolFeeDistributed(string questId, address rewardToken, address protocolOwner, uint256 feeAmountToProtocolOwner, address questOwner, uint256 feeAmountToQuestOwner);\n event ClaimedReferralFees(string questId, address recipient, address tokenAddress, uint256 feeAmount);\n\n error AlreadyClaimed();\n error AlreadyWithdrawn();\n error AmountExceedsBalance();\n error ClaimWindowNotStarted();\n error EndTimeInPast();\n error EndTimeLessThanOrEqualToStartTime();\n error InvalidRefundToken();\n error MustImplementInChild();\n error NotQuestFactory();\n error NoWithdrawDuringClaim();\n error NotStarted();\n error TotalAmountExceedsBalance();\n error AuthOwnerRecipient();\n error AddressNotSigned();\n error InvalidClaimFee();\n error OverMaxAllowedToMint();\n error AddressAlreadyMinted();\n error QuestEnded();\n error ReferralRewardFeeTooHigh();\n error NoReferralFees();\n\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmountInWei_,\n string memory questId_,\n uint16 questFee_,\n address protocolFeeRecipient_,\n uint256 referralRewardFee_\n ) external;\n function getRewardAmount() external view returns (uint256);\n function getRewardToken() external view returns (address);\n function queued() external view returns (bool);\n function startTime() external view returns (uint256);\n function endTime() external view returns (uint256);\n function singleClaim(address account) external;\n function cancel() external;\n function rewardToken() external view returns (address);\n function rewardAmountInWei() external view returns (uint256);\n function totalTransferAmount() external view returns (uint256);\n function questFee() external view returns (uint16);\n function totalParticipants() external view returns (uint256);\n function hasWithdrawn() external view returns (bool);\n function questId() external view returns (string memory);\n}\n"},"lib/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\n/// - For ERC20s, this implementation won't check that a token has code,\n/// responsibility is delegated to the caller.\nlibrary SafeTransferLib {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ETH transfer has failed.\n error ETHTransferFailed();\n\n /// @dev The ERC20 `transferFrom` has failed.\n error TransferFromFailed();\n\n /// @dev The ERC20 `transfer` has failed.\n error TransferFailed();\n\n /// @dev The ERC20 `approve` has failed.\n error ApproveFailed();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n /// storage reads and writes, but low enough to prevent griefing.\n uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ETH OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n //\n // The regular variants:\n // - Forwards all remaining gas to the target.\n // - Reverts if the target reverts.\n // - Reverts if the current contract has insufficient balance.\n //\n // The force variants:\n // - Forwards with an optional gas stipend\n // (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n // - If the target reverts, or if the gas stipend is exhausted,\n // creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n // Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n // - Reverts if the current contract has insufficient balance.\n //\n // The try variants:\n // - Forwards with a mandatory gas stipend.\n // - Instead of reverting, returns whether the transfer succeeded.\n\n /// @dev Sends `amount` (in wei) ETH to `to`.\n function safeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`.\n function safeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // Transfer all the ETH and check if it succeeded or not.\n if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // forgefmt: disable-next-item\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function trySafeTransferAllETH(address to, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC20 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for\n /// the current contract to manage.\n function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have their entire balance approved for\n /// the current contract to manage.\n function safeTransferAllFrom(address token, address from, address to)\n internal\n returns (uint256 amount)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransfer(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n mstore(0x20, address()) // Store the address of the current contract.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x14, to) // Store the `to` argument.\n amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// Reverts upon failure.\n function safeApprove(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n /// then retries the approval again (some tokens, e.g. USDT, requires this).\n /// Reverts upon failure.\n function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, retrying upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x34, 0) // Store 0 for the `amount`.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n mstore(0x34, amount) // Store back the original `amount`.\n // Retry the approval, reverting upon failure.\n if iszero(\n and(\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Returns the amount of ERC20 `token` owned by `account`.\n /// Returns zero if the `token` does not exist.\n function balanceOf(address token, address account) internal view returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, account) // Store the `account` argument.\n mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n amount :=\n mul(\n mload(0x20),\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n )\n )\n }\n }\n}\n"},"contracts/interfaces/IQuestFactory.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuestFactory {\n // Errors\n error AddressAlreadyMinted();\n error AddressNotSigned();\n error AddressZeroNotAllowed();\n error AuthOwnerDiscountToken();\n error Deprecated();\n error Erc20QuestAddressNotSet();\n error InvalidMintFee();\n error MsgValueLessThanQuestNFTFee();\n error OverMaxAllowedToMint();\n error QuestFeeTooHigh();\n error QuestIdUsed();\n error QuestNotQueued();\n error QuestNotStarted();\n error QuestEnded();\n error QuestTypeNotSupported();\n error Reentrancy();\n error ReferralFeeTooHigh();\n error ZeroAddressNotAllowed();\n error QuestAddressMismatch();\n error ClaimFailed();\n error txOriginMismatch();\n\n // Structs\n\n // This struct is used in a mapping - only add new fields to the end\n struct NftQuestFees {\n uint256 fee;\n bool exists;\n }\n\n // This struct is used in a mapping - only add new fields to the end\n struct Quest {\n mapping(address => bool) addressMinted;\n address questAddress;\n uint256 totalParticipants;\n uint256 numberMinted;\n string questType;\n uint40 durationTotal;\n address questCreator;\n address mintFeeRecipient;\n string actionType;\n string questName;\n uint32 txHashChainId;\n }\n\n struct QuestData {\n address questAddress;\n address rewardToken;\n bool queued;\n uint16 questFee;\n uint256 startTime;\n uint256 endTime;\n uint256 totalParticipants;\n uint256 numberMinted;\n uint256 redeemedTokens;\n uint256 rewardAmountOrTokenId;\n bool hasWithdrawn;\n }\n\n struct QuestJsonData {\n string actionType;\n string questName;\n uint32 txHashChainId;\n }\n\n struct ClaimData {\n string questId;\n bytes32 hashBytes;\n bytes signature;\n address ref;\n address claimer;\n string extraData;\n }\n\n struct ERC20QuestData {\n uint32 txHashChainId;\n address rewardTokenAddress;\n uint256 endTime;\n uint256 startTime;\n uint256 totalParticipants;\n uint256 rewardAmount;\n string questId;\n string actionType;\n string questName;\n string questType;\n string projectName;\n uint256 referralRewardFee;\n }\n\n struct ERC1155QuestData {\n uint32 txHashChainId;\n address rewardTokenAddress;\n uint256 endTime;\n uint256 startTime;\n uint256 totalParticipants;\n uint256 tokenId;\n string questId;\n string actionType;\n string questName;\n string projectName;\n }\n\n // Events\n event ExtraMintFeeReturned(address indexed recipient, uint256 amount);\n event MintFeeSet(uint256 mintFee);\n event NftQuestFeeListSet(address[] addresses, uint256[] fees);\n event NftQuestFeeSet(uint256 nftQuestFee);\n\n event QuestCancelled(address indexed questAddress, string questId, uint256 endsAt);\n\n event QuestClaimedData(\n address indexed recipient,\n address indexed questAddress,\n string extraData\n );\n event Quest1155Claimed(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 tokenId\n );\n event QuestClaimed(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWei\n );\n event QuestClaimedReferred(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWeiOrTokenId,\n address referrer,\n uint16 referralFee,\n uint256 mintFeeEthWei\n );\n event QuestClaimReferred(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWeiOrTokenId,\n address referrer,\n uint16 referralFee,\n uint256 mintFeeEthWei,\n uint256 tokenReferralFee,\n uint256 referralClaimAmount\n );\n event MintFeePaid(\n string questId,\n address rabbitHoleAddress,\n uint256 rabbitHoleAmountWei,\n address questCreatorAddress,\n uint256 questCreatorAmountWei,\n address referrerAddress,\n uint256 referrerAmountWei\n );\n event QuestCreated(\n address indexed creator,\n address indexed contractAddress,\n string projectName,\n string questName,\n string questId,\n string questType,\n string actionType,\n uint32 chainId,\n address rewardToken,\n uint256 endTime,\n uint256 startTime,\n uint256 totalParticipants,\n uint256 rewardAmountOrTokenId\n );\n event ReferralFeeSet(uint16 percent);\n\n // Read Functions\n function getAddressMinted(string memory questId_, address address_) external view returns (bool);\n function getNumberMinted(string memory questId_) external view returns (uint256);\n function questData(string memory questId_) external view returns (QuestData memory);\n function questInfo(string memory questId_) external view returns (address, uint256, uint256);\n function recoverSigner(bytes32 hash_, bytes memory signature_) external view returns (address);\n function mintFee() external view returns (uint256);\n function questJsonData(string memory questId_) external view returns (QuestJsonData memory);\n function buildJsonString(\n bytes32 txHash,\n uint32 txHashChainId,\n string memory actionType,\n string memory questName\n ) external pure returns (string memory);\n\n // Create\n function create1155QuestAndQueue(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory\n ) external payable returns (address);\n\n function claimOptimized(bytes calldata signature_, bytes calldata data_) external payable;\n\n // Set\n function setClaimSignerAddress(address claimSignerAddress_) external;\n function setErc1155QuestAddress(address erc1155QuestAddress_) external;\n function setErc20QuestAddress(address erc20QuestAddress_) external;\n function setMintFee(uint256 mintFee_) external;\n function setDefaultMintFeeRecipient(address mintFeeRecipient_) external;\n function setProtocolFeeRecipient(address protocolFeeRecipient_) external;\n function setQuestFee(uint16 questFee_) external;\n\n // Callbacks\n function withdrawCallback(string calldata questId_, address protocolFeeRecipient_, uint protocolPayout_, address mintFeeRecipient_, uint mintPayout) external;\n}"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized != type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/AddressUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n *\n * Furthermore, `isContract` will also return true if the target contract within\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n * which only has an effect at the end of a transaction.\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n"}},"settings":{"remappings":["forge-std/=lib/forge-std/src/","solady/=lib/solady/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/=node_modules/@openzeppelin/","@openzeppelin/contracts/=lib/v2-core/lib/openzeppelin-contracts/contracts/","@prb/=node_modules/@prb/","@prb/math/=lib/v2-core/lib/prb-math/","@prb/test/=lib/v2-core/lib/prb-test/src/","@sablier/=node_modules/@sablier/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","eth-gas-reporter/=node_modules/eth-gas-reporter/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/","prb-math/=lib/v2-core/lib/prb-math/src/","prb-test/=lib/v2-core/lib/prb-test/src/","solarray/=lib/v2-core/lib/solarray/src/","v2-core/=lib/v2-core/"],"optimizer":{"enabled":true,"runs":1000},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"outputSelection":{"*":{"":["ast"],"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","storageLayout"]}},"evmVersion":"paris","viaIR":true,"libraries":{}}} +{"language":"Solidity","sources":{"contracts/Quest.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\n// Inherits\nimport {Ownable} from \"solady/auth/Ownable.sol\";\nimport {PausableUpgradeable} from \"openzeppelin-contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport {ReentrancyGuardUpgradeable} from \"openzeppelin-contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport {QuestClaimable} from \"./libraries/QuestClaimable.sol\";\n// Implements\nimport {IQuest} from \"./interfaces/IQuest.sol\";\n// Leverages\nimport {SafeTransferLib} from \"solady/utils/SafeTransferLib.sol\";\n// References\nimport {IQuestFactory} from \"./interfaces/IQuestFactory.sol\";\n\n/// @title Quest\n/// @author RabbitHole.gg\n/// @notice This contract is the Erc20Quest contract. It is a quest that is redeemable for ERC20 tokens\n// solhint-disable-next-line max-states-count\ncontract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQuest, QuestClaimable {\n /*//////////////////////////////////////////////////////////////\n USING\n //////////////////////////////////////////////////////////////*/\n using SafeTransferLib for address;\n\n /*//////////////////////////////////////////////////////////////\n STORAGE\n //////////////////////////////////////////////////////////////*/\n address public rabbitHoleReceiptContract; // Deprecated - do not use\n IQuestFactory public questFactoryContract;\n address public rewardToken;\n uint256 public endTime;\n uint256 public startTime;\n uint256 public totalParticipants;\n uint256 public rewardAmountInWei;\n bool public queued;\n string public questId;\n uint16 public questFee;\n bool public hasWithdrawn;\n address public protocolFeeRecipient;\n mapping(uint256 => bool) private claimedList;\n mapping(address => uint256) public streamIdForAddress;\n uint256 public referralRewardFee;\n uint256 public referralClaimTotal;\n mapping (address => uint256) private referralClaimAmounts;\n mapping (address => bool) private referrerHasClaimed;\n uint256 public totalReferralsFeesClaimed;\n\n /*//////////////////////////////////////////////////////////////\n CONSTRUCTOR\n //////////////////////////////////////////////////////////////*/\n /// @custom:oz-upgrades-unsafe-allow constructor\n // solhint-disable-next-line func-visibility\n constructor() {\n _disableInitializers();\n }\n\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmountInWei_,\n string memory questId_,\n uint16 questFee_,\n address protocolFeeRecipient_\n ) external initializer {\n // Validate inputs\n if (endTime_ <= block.timestamp) revert EndTimeInPast();\n if (endTime_ <= startTime_) revert EndTimeLessThanOrEqualToStartTime();\n\n // Process input parameters\n rewardToken = rewardTokenAddress_;\n endTime = endTime_;\n startTime = startTime_;\n totalParticipants = totalParticipants_;\n rewardAmountInWei = rewardAmountInWei_;\n questId = questId_;\n questFee = questFee_;\n protocolFeeRecipient = protocolFeeRecipient_;\n\n // Setup default state\n questFactoryContract = IQuestFactory(payable(msg.sender));\n queued = true;\n referralClaimTotal = 0;\n totalReferralsFeesClaimed = 0;\n referralRewardFee = 250; // 2.5%\n _initializeOwner(msg.sender);\n __Pausable_init();\n __ReentrancyGuard_init();\n }\n\n /*//////////////////////////////////////////////////////////////\n MODIFIERS\n //////////////////////////////////////////////////////////////*/\n /// @notice Prevents reward withdrawal until the Quest has ended\n modifier onlyWithdrawAfterEnd() {\n if (block.timestamp < endTime) revert NoWithdrawDuringClaim();\n _;\n }\n\n /// @notice Checks if quest has started both at the function level and at the start time\n modifier onlyQuestActive() {\n if (block.timestamp < startTime) revert ClaimWindowNotStarted();\n _;\n }\n\n /// @notice Checks if the quest end time has not passed\n modifier whenNotEnded() {\n if (block.timestamp > endTime) revert QuestEnded();\n _;\n }\n\n modifier onlyQuestFactory() {\n if (msg.sender != address(questFactoryContract)) revert NotQuestFactory();\n _;\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n\n /// @notice Cancels the Quest by setting the end time to 15 minutes from the current time and pausing the Quest. If the Quest has not yet started, it will end immediately.\n /// @dev Only the owner of the Quest can call this function.\n function cancel() external onlyQuestFactory whenNotPaused whenNotEnded {\n _pause();\n endTime = startTime > block.timestamp ? block.timestamp : block.timestamp + 15 minutes;\n }\n\n /// @dev transfers rewards to the account, can only be called once per account per quest and only by the quest factory\n /// @param account_ The account to transfer rewards to\n function singleClaim(address account_)\n external\n virtual\n nonReentrant\n onlyQuestActive\n whenNotPaused\n onlyQuestFactory\n {\n uint256 totalRedeemableRewards = rewardAmountInWei;\n _transferRewards(account_, totalRedeemableRewards);\n\n }\n\n function claimFromFactory(address claimer_, address ref_) external payable whenNotEnded onlyQuestFactory {\n _transferRewards(claimer_, rewardAmountInWei);\n if (ref_ != address(0)) {\n ref_.safeTransferETH(_claimFee() / 3);\n _updateReferralTokenAmount(ref_);\n }\n }\n\n /// @notice Function that transfers all 1155 tokens in the contract to the owner (creator), and eth to the protocol fee recipient and the owner\n /// @dev Can only be called after the quest has ended\n function withdrawRemainingTokens() external onlyWithdrawAfterEnd {\n if (hasWithdrawn) revert AlreadyWithdrawn();\n hasWithdrawn = true;\n\n uint256 ownerPayout = (_claimFee() * _redeemedTokens()) / 3;\n uint256 protocolPayout = address(this).balance - ownerPayout;\n\n owner().safeTransferETH(ownerPayout);\n protocolFeeRecipient.safeTransferETH(protocolPayout);\n\n // transfer reward tokens\n uint256 protocolFeeForRecipient = this.protocolFee();\n rewardToken.safeTransfer(protocolFeeRecipient, protocolFeeForRecipient);\n\n uint256 remainingBalanceForOwner = rewardToken.balanceOf(address(this)) - (referralClaimTotal - totalReferralsFeesClaimed);\n rewardToken.safeTransfer(owner(), remainingBalanceForOwner);\n\n questFactoryContract.withdrawCallback(questId, protocolFeeRecipient, protocolPayout, address(owner()), ownerPayout);\n }\n\n function claimReferralFees(address referrer) external onlyWithdrawAfterEnd {\n if (referrerHasClaimed[referrer] == true) revert AlreadyWithdrawn();\n\n uint256 referrerClaimAmount = referralClaimAmounts[referrer];\n if (referrerClaimAmount == 0) revert NoReferralFees();\n\n rewardToken.safeTransfer(referrer, referrerClaimAmount);\n referrerHasClaimed[referrer] = true;\n totalReferralsFeesClaimed += referrerClaimAmount;\n emit ClaimedReferralFees(questId, referrer, address(rewardToken), referrerClaimAmount);\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n /// @dev The amount of tokens the quest creator needs to pay all redeemers, the protocol fee, and the referral fee\n function totalTransferAmount() external view returns (uint256) {\n return this.maxTotalRewards() + this.maxProtocolReward() + this.maxReferralFee();\n }\n\n /// @dev Function that gets the maximum amount of rewards that can be claimed by all users. It does not include the protocol fee\n /// @return The maximum amount of rewards that can be claimed by all users\n function maxTotalRewards() external view returns (uint256) {\n return totalParticipants * rewardAmountInWei;\n }\n\n /// @notice Function that gets the maximum amount of rewards that can be claimed by the protocol or the quest deployer\n /// @dev The 10_000 comes from Basis Points: https://www.investopedia.com/terms/b/basispoint.asp\n /// @return The maximum amount of rewards that can be claimed by the protocol or the quest deployer\n function maxProtocolReward() external view returns (uint256) {\n return (this.maxTotalRewards() * questFee) / 10_000;\n }\n\n function maxReferralFee() external view returns (uint256) {\n return (this.maxTotalRewards() * referralRewardFee) / 10_000;\n }\n\n /// @notice Function that calculates the protocol fee\n function protocolFee() external view returns (uint256) {\n return (_redeemedTokens() * rewardAmountInWei * questFee) / 10_000;\n }\n\n function referralRewardAmount() external view returns (uint256) {\n return _referralRewardAmount();\n }\n\n function getReferralAmount(address referrer) external view returns (uint256) {\n return referralClaimAmounts[referrer];\n }\n\n /// @dev Returns the reward amount\n function getRewardAmount() external view returns (uint256) {\n return rewardAmountInWei;\n }\n\n /// @dev Returns the reward token address\n function getRewardToken() external view returns (address) {\n return rewardToken;\n }\n\n function getQuestFactoryContract() public view override returns (IQuestFactory){\n return questFactoryContract;\n }\n\n function getQuestId() public view override returns (string memory){\n return questId;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n /// @notice Internal function that transfers the rewards to the msg.sender\n /// @param sender_ The address to send the rewards to\n /// @param amount_ The amount of rewards to transfer\n function _transferRewards(address sender_, uint256 amount_) internal {\n rewardToken.safeTransfer(sender_, amount_);\n }\n\n /// @notice Internal function to update the referral reward amount\n /// @param referrer_ The address of the referrer\n function _updateReferralTokenAmount(address referrer_) internal {\n uint256 referralAmount = _referralRewardAmount();\n referralClaimTotal += referralAmount;\n referralClaimAmounts[referrer_] += referralAmount;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n function _redeemedTokens() internal view returns (uint256) {\n return questFactoryContract.getNumberMinted(questId);\n }\n\n function _claimFee() internal view returns (uint256) {\n return questFactoryContract.mintFee();\n }\n\n function _referralRewardAmount() internal view returns (uint256) {\n return (referralRewardFee * rewardAmountInWei) / 10_000;\n }\n\n /*//////////////////////////////////////////////////////////////\n DEFAULTS\n //////////////////////////////////////////////////////////////*/\n receive() external payable {}\n fallback() external payable {}\n}\n"},"lib/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The caller is not authorized to call the function.\n error Unauthorized();\n\n /// @dev The `newOwner` cannot be the zero address.\n error NewOwnerIsZeroAddress();\n\n /// @dev The `pendingOwner` does not have a valid handover request.\n error NoHandoverRequest();\n\n /// @dev Cannot double-initialize.\n error AlreadyInitialized();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n /// despite it not being as lightweight as a single argument event.\n event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n /// @dev An ownership handover to `pendingOwner` has been requested.\n event OwnershipHandoverRequested(address indexed pendingOwner);\n\n /// @dev The ownership handover to `pendingOwner` has been canceled.\n event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* STORAGE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The owner slot is given by:\n /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n /// It is intentionally chosen to be a high value\n /// to avoid collision with lower slots.\n /// The choice of manual storage layout is to enable compatibility\n /// with both regular and upgradeable contracts.\n bytes32 internal constant _OWNER_SLOT =\n 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n /// The ownership handover slot of `newOwner` is given by:\n /// ```\n /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n /// let handoverSlot := keccak256(0x00, 0x20)\n /// ```\n /// It stores the expiry timestamp of the two-step ownership handover.\n uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* INTERNAL FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n /// @dev Initializes the owner directly without authorization guard.\n /// This function must be called upon initialization,\n /// regardless of whether the contract is upgradeable or not.\n /// This is to enable generalization to both regular and upgradeable contracts,\n /// and to save gas in case the initial owner is not the caller.\n /// For performance reasons, this function will not check if there\n /// is an existing owner.\n function _initializeOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n if sload(ownerSlot) {\n mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n revert(0x1c, 0x04)\n }\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(_OWNER_SLOT, newOwner)\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n }\n }\n\n /// @dev Sets the owner directly without authorization guard.\n function _setOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, newOwner)\n }\n }\n }\n\n /// @dev Throws if the sender is not the owner.\n function _checkOwner() internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // If the caller is not the stored owner, revert.\n if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n /// Override to return a different value if needed.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n return 48 * 3600;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC UPDATE FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Allows the owner to transfer the ownership to `newOwner`.\n function transferOwnership(address newOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(shl(96, newOwner)) {\n mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n revert(0x1c, 0x04)\n }\n }\n _setOwner(newOwner);\n }\n\n /// @dev Allows the owner to renounce their ownership.\n function renounceOwnership() public payable virtual onlyOwner {\n _setOwner(address(0));\n }\n\n /// @dev Request a two-step ownership handover to the caller.\n /// The request will automatically expire in 48 hours (172800 seconds) by default.\n function requestOwnershipHandover() public payable virtual {\n unchecked {\n uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to `expires`.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), expires)\n // Emit the {OwnershipHandoverRequested} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n }\n }\n }\n\n /// @dev Cancels the two-step ownership handover to the caller, if any.\n function cancelOwnershipHandover() public payable virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), 0)\n // Emit the {OwnershipHandoverCanceled} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n }\n }\n\n /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n let handoverSlot := keccak256(0x0c, 0x20)\n // If the handover does not exist, or has expired.\n if gt(timestamp(), sload(handoverSlot)) {\n mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n revert(0x1c, 0x04)\n }\n // Set the handover slot to 0.\n sstore(handoverSlot, 0)\n }\n _setOwner(pendingOwner);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC READ FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the owner of the contract.\n function owner() public view virtual returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := sload(_OWNER_SLOT)\n }\n }\n\n /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n function ownershipHandoverExpiresAt(address pendingOwner)\n public\n view\n virtual\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the handover slot.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n // Load the handover slot.\n result := sload(keccak256(0x0c, 0x20))\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MODIFIERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Marks a function as only callable by the owner.\n modifier onlyOwner() virtual {\n _checkOwner();\n _;\n }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n function __Pausable_init() internal onlyInitializing {\n __Pausable_init_unchained();\n }\n\n function __Pausable_init_unchained() internal onlyInitializing {\n _paused = false;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view virtual {\n require(!paused(), \"Pausable: paused\");\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view virtual {\n require(paused(), \"Pausable: not paused\");\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/security/ReentrancyGuardUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n function __ReentrancyGuard_init() internal onlyInitializing {\n __ReentrancyGuard_init_unchained();\n }\n\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n _nonReentrantBefore();\n _;\n _nonReentrantAfter();\n }\n\n function _nonReentrantBefore() private {\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n }\n\n function _nonReentrantAfter() private {\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n * `nonReentrant` function in the call stack.\n */\n function _reentrancyGuardEntered() internal view returns (bool) {\n return _status == _ENTERED;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"contracts/libraries/QuestClaimable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.19;\n\nimport { IQuestFactory } from \"../interfaces/IQuestFactory.sol\";\n\nerror txOriginMismatch();\n\nabstract contract QuestClaimable {\n function getQuestFactoryContract() public view virtual returns (IQuestFactory);\n\n function getQuestId() public view virtual returns (string memory);\n\n function claim() external payable {\n address ref_;\n IQuestFactory questFactoryContract = getQuestFactoryContract();\n string memory questId = getQuestId();\n\n (bytes32 txHash_, bytes32 r_, bytes32 vs_) = abi.decode(msg.data[4:], (bytes32, bytes32, bytes32));\n\n if (msg.data.length > 100) {\n assembly {\n ref_ := calldataload(100)\n ref_ := shr(96, ref_)\n }\n }\n\n IQuestFactory.QuestJsonData memory quest_ = questFactoryContract.questJsonData(questId);\n string memory jsonData_ = questFactoryContract.buildJsonString(txHash_, quest_.txHashChainId, quest_.actionType, quest_.questName);\n bytes memory claimData_ = abi.encode(msg.sender, ref_, questId, jsonData_);\n\n questFactoryContract.claimOptimized{value: msg.value}(abi.encodePacked(r_,vs_), claimData_);\n }\n}\n"},"contracts/interfaces/IQuest.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuest {\n event Queued(uint256 timestamp);\n event ProtocolFeeDistributed(string questId, address rewardToken, address protocolOwner, uint256 feeAmountToProtocolOwner, address questOwner, uint256 feeAmountToQuestOwner);\n event ClaimedReferralFees(string questId, address recipient, address tokenAddress, uint256 feeAmount);\n\n error AlreadyClaimed();\n error AlreadyWithdrawn();\n error AmountExceedsBalance();\n error ClaimWindowNotStarted();\n error EndTimeInPast();\n error EndTimeLessThanOrEqualToStartTime();\n error InvalidRefundToken();\n error MustImplementInChild();\n error NotQuestFactory();\n error NoWithdrawDuringClaim();\n error NotStarted();\n error TotalAmountExceedsBalance();\n error AuthOwnerRecipient();\n error AddressNotSigned();\n error InvalidClaimFee();\n error OverMaxAllowedToMint();\n error AddressAlreadyMinted();\n error QuestEnded();\n error NoReferralFees();\n\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmountInWei_,\n string memory questId_,\n uint16 questFee_,\n address protocolFeeRecipient_\n ) external;\n function getRewardAmount() external view returns (uint256);\n function getRewardToken() external view returns (address);\n function queued() external view returns (bool);\n function startTime() external view returns (uint256);\n function endTime() external view returns (uint256);\n function singleClaim(address account) external;\n function cancel() external;\n function rewardToken() external view returns (address);\n function rewardAmountInWei() external view returns (uint256);\n function totalTransferAmount() external view returns (uint256);\n function questFee() external view returns (uint16);\n function totalParticipants() external view returns (uint256);\n function hasWithdrawn() external view returns (bool);\n function questId() external view returns (string memory);\n}\n"},"lib/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\n/// - For ERC20s, this implementation won't check that a token has code,\n/// responsibility is delegated to the caller.\nlibrary SafeTransferLib {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ETH transfer has failed.\n error ETHTransferFailed();\n\n /// @dev The ERC20 `transferFrom` has failed.\n error TransferFromFailed();\n\n /// @dev The ERC20 `transfer` has failed.\n error TransferFailed();\n\n /// @dev The ERC20 `approve` has failed.\n error ApproveFailed();\n\n /// @dev The Permit2 operation has failed.\n error Permit2Failed();\n\n /// @dev The Permit2 amount must be less than `2**160 - 1`.\n error Permit2AmountOverflow();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n /// storage reads and writes, but low enough to prevent griefing.\n uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n /// @dev The unique EIP-712 domain domain separator for the DAI token contract.\n bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n 0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n /// @dev The address for the WETH9 contract on Ethereum mainnet.\n address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n /// @dev The canonical Permit2 address.\n /// [Github](https://github.com/Uniswap/permit2)\n /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ETH OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n //\n // The regular variants:\n // - Forwards all remaining gas to the target.\n // - Reverts if the target reverts.\n // - Reverts if the current contract has insufficient balance.\n //\n // The force variants:\n // - Forwards with an optional gas stipend\n // (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n // - If the target reverts, or if the gas stipend is exhausted,\n // creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n // Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n // - Reverts if the current contract has insufficient balance.\n //\n // The try variants:\n // - Forwards with a mandatory gas stipend.\n // - Instead of reverting, returns whether the transfer succeeded.\n\n /// @dev Sends `amount` (in wei) ETH to `to`.\n function safeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`.\n function safeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // Transfer all the ETH and check if it succeeded or not.\n if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // forgefmt: disable-next-item\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function trySafeTransferAllETH(address to, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC20 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for\n /// the current contract to manage.\n function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n ///\n /// The `from` account must have at least `amount` approved for the current contract to manage.\n function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n success :=\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have their entire balance approved for the current contract to manage.\n function safeTransferAllFrom(address token, address from, address to)\n internal\n returns (uint256 amount)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransfer(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n mstore(0x20, address()) // Store the address of the current contract.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x14, to) // Store the `to` argument.\n amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// Reverts upon failure.\n function safeApprove(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n /// then retries the approval again (some tokens, e.g. USDT, requires this).\n /// Reverts upon failure.\n function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, retrying upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x34, 0) // Store 0 for the `amount`.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n mstore(0x34, amount) // Store back the original `amount`.\n // Retry the approval, reverting upon failure.\n if iszero(\n and(\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Returns the amount of ERC20 `token` owned by `account`.\n /// Returns zero if the `token` does not exist.\n function balanceOf(address token, address account) internal view returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, account) // Store the `account` argument.\n mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n amount :=\n mul( // The arguments of `mul` are evaluated from right to left.\n mload(0x20),\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n )\n )\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// If the initial attempt fails, try to use Permit2 to transfer the token.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for the current contract to manage.\n function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n if (!trySafeTransferFrom(token, from, to, amount)) {\n permit2TransferFrom(token, from, to, amount);\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n /// Reverts upon failure.\n function permit2TransferFrom(address token, address from, address to, uint256 amount)\n internal\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(add(m, 0x74), shr(96, shl(96, token)))\n mstore(add(m, 0x54), amount)\n mstore(add(m, 0x34), to)\n mstore(add(m, 0x20), shl(96, from))\n // `transferFrom(address,address,uint160,address)`.\n mstore(m, 0x36c78516000000000000000000000000)\n let p := PERMIT2\n let exists := eq(chainid(), 1)\n if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n if iszero(and(call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00), exists)) {\n mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n }\n }\n }\n\n /// @dev Permit a user to spend a given amount of\n /// another user's tokens via native EIP-2612 permit if possible, falling\n /// back to Permit2 if native permit fails or is not implemented on the token.\n function permit2(\n address token,\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n bool success;\n /// @solidity memory-safe-assembly\n assembly {\n for {} shl(96, xor(token, WETH9)) {} {\n mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n // Gas stipend to limit gas burn for tokens that don't refund gas when\n // an non-existing function is called. 5K should be enough for a SLOAD.\n staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n )\n ) { break }\n // After here, we can be sure that token is a contract.\n let m := mload(0x40)\n mstore(add(m, 0x34), spender)\n mstore(add(m, 0x20), shl(96, owner))\n mstore(add(m, 0x74), deadline)\n if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n mstore(0x14, owner)\n mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n mstore(add(m, 0x94), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n // `nonces` is already at `add(m, 0x54)`.\n // `1` is already stored at `add(m, 0x94)`.\n mstore(add(m, 0xb4), and(0xff, v))\n mstore(add(m, 0xd4), r)\n mstore(add(m, 0xf4), s)\n success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n break\n }\n mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n mstore(add(m, 0x54), amount)\n mstore(add(m, 0x94), and(0xff, v))\n mstore(add(m, 0xb4), r)\n mstore(add(m, 0xd4), s)\n success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n break\n }\n }\n if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n }\n\n /// @dev Simple permit on the Permit2 contract.\n function simplePermit2(\n address token,\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(m, 0x927da105) // `allowance(address,address,address)`.\n {\n let addressMask := shr(96, not(0))\n mstore(add(m, 0x20), and(addressMask, owner))\n mstore(add(m, 0x40), and(addressMask, token))\n mstore(add(m, 0x60), and(addressMask, spender))\n mstore(add(m, 0xc0), and(addressMask, spender))\n }\n let p := mul(PERMIT2, iszero(shr(160, amount)))\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n )\n ) {\n mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n revert(add(0x18, shl(2, iszero(p))), 0x04)\n }\n mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n // `owner` is already `add(m, 0x20)`.\n // `token` is already at `add(m, 0x40)`.\n mstore(add(m, 0x60), amount)\n mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n // `nonce` is already at `add(m, 0xa0)`.\n // `spender` is already at `add(m, 0xc0)`.\n mstore(add(m, 0xe0), deadline)\n mstore(add(m, 0x100), 0x100) // `signature` offset.\n mstore(add(m, 0x120), 0x41) // `signature` length.\n mstore(add(m, 0x140), r)\n mstore(add(m, 0x160), s)\n mstore(add(m, 0x180), shl(248, v))\n if iszero(call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00)) {\n mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n}\n"},"contracts/interfaces/IQuestFactory.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuestFactory {\n // Errors\n error AddressAlreadyMinted();\n error AddressNotSigned();\n error AddressZeroNotAllowed();\n error AuthOwnerDiscountToken();\n error Deprecated();\n error Erc20QuestAddressNotSet();\n error InvalidMintFee();\n error MsgValueLessThanQuestNFTFee();\n error OverMaxAllowedToMint();\n error QuestFeeTooHigh();\n error QuestIdUsed();\n error QuestNotQueued();\n error QuestNotStarted();\n error QuestEnded();\n error QuestTypeNotSupported();\n error Reentrancy();\n error ReferralFeeTooHigh();\n error ZeroAddressNotAllowed();\n error QuestAddressMismatch();\n error ClaimFailed();\n error txOriginMismatch();\n\n // Structs\n\n // This struct is used in a mapping - only add new fields to the end\n struct NftQuestFees {\n uint256 fee;\n bool exists;\n }\n\n // This struct is used in a mapping - only add new fields to the end\n struct Quest {\n mapping(address => bool) addressMinted;\n address questAddress;\n uint256 totalParticipants;\n uint256 numberMinted;\n string questType;\n uint40 durationTotal;\n address questCreator;\n address mintFeeRecipient;\n string actionType;\n string questName;\n uint32 txHashChainId;\n }\n\n struct QuestData {\n address questAddress;\n address rewardToken;\n bool queued;\n uint16 questFee;\n uint256 startTime;\n uint256 endTime;\n uint256 totalParticipants;\n uint256 numberMinted;\n uint256 redeemedTokens;\n uint256 rewardAmountOrTokenId;\n bool hasWithdrawn;\n }\n\n struct QuestJsonData {\n string actionType;\n string questName;\n uint32 txHashChainId;\n }\n\n struct ClaimData {\n string questId;\n bytes32 hashBytes;\n bytes signature;\n address ref;\n address claimer;\n string extraData;\n }\n\n struct ERC20QuestData {\n uint32 txHashChainId;\n address rewardTokenAddress;\n uint256 endTime;\n uint256 startTime;\n uint256 totalParticipants;\n uint256 rewardAmount;\n string questId;\n string actionType;\n string questName;\n string questType;\n string projectName;\n }\n\n struct ERC1155QuestData {\n uint32 txHashChainId;\n address rewardTokenAddress;\n uint256 endTime;\n uint256 startTime;\n uint256 totalParticipants;\n uint256 tokenId;\n string questId;\n string actionType;\n string questName;\n string projectName;\n }\n\n // Events\n event ExtraMintFeeReturned(address indexed recipient, uint256 amount);\n event MintFeeSet(uint256 mintFee);\n event NftQuestFeeListSet(address[] addresses, uint256[] fees);\n event NftQuestFeeSet(uint256 nftQuestFee);\n\n event QuestCancelled(address indexed questAddress, string questId, uint256 endsAt);\n\n event QuestClaimedData(\n address indexed recipient,\n address indexed questAddress,\n string extraData\n );\n event Quest1155Claimed(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 tokenId\n );\n event QuestClaimed(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWei\n );\n event QuestClaimedReferred(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWeiOrTokenId,\n address referrer,\n uint16 referralFee,\n uint256 mintFeeEthWei\n );\n event QuestClaimReferred(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWeiOrTokenId,\n address referrer,\n uint16 referralFee,\n uint256 mintFeeEthWei,\n uint256 tokenReferralFee,\n uint256 referralClaimAmount\n );\n event MintFeePaid(\n string questId,\n address rabbitHoleAddress,\n uint256 rabbitHoleAmountWei,\n address questCreatorAddress,\n uint256 questCreatorAmountWei,\n address referrerAddress,\n uint256 referrerAmountWei\n );\n event QuestCreated(\n address indexed creator,\n address indexed contractAddress,\n string projectName,\n string questName,\n string questId,\n string questType,\n string actionType,\n uint32 chainId,\n address rewardToken,\n uint256 endTime,\n uint256 startTime,\n uint256 totalParticipants,\n uint256 rewardAmountOrTokenId\n );\n event ReferralFeeSet(uint16 percent);\n\n // Read Functions\n function getAddressMinted(string memory questId_, address address_) external view returns (bool);\n function getNumberMinted(string memory questId_) external view returns (uint256);\n function questData(string memory questId_) external view returns (QuestData memory);\n function questInfo(string memory questId_) external view returns (address, uint256, uint256);\n function recoverSigner(bytes32 hash_, bytes memory signature_) external view returns (address);\n function mintFee() external view returns (uint256);\n function questJsonData(string memory questId_) external view returns (QuestJsonData memory);\n function buildJsonString(\n bytes32 txHash,\n uint32 txHashChainId,\n string memory actionType,\n string memory questName\n ) external pure returns (string memory);\n function questFee() external view returns (uint16);\n \n // Create\n function createERC20Boost(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_\n ) external returns (address);\n function createERC20Quest(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_,\n uint256 referralRewardFee_\n ) external returns (address);\n\n function create1155QuestAndQueue(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory\n ) external payable returns (address);\n\n function claimOptimized(bytes calldata signature_, bytes calldata data_) external payable;\n\n function cancelQuest(string calldata questId_) external;\n\n // Set\n function setClaimSignerAddress(address claimSignerAddress_) external;\n function setErc1155QuestAddress(address erc1155QuestAddress_) external;\n function setErc20QuestAddress(address erc20QuestAddress_) external;\n function setMintFee(uint256 mintFee_) external;\n function setDefaultMintFeeRecipient(address mintFeeRecipient_) external;\n function setProtocolFeeRecipient(address protocolFeeRecipient_) external;\n function setQuestFee(uint16 questFee_) external;\n\n // Callbacks\n function withdrawCallback(string calldata questId_, address protocolFeeRecipient_, uint protocolPayout_, address mintFeeRecipient_, uint mintPayout) external;\n}"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized != type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/AddressUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n *\n * Furthermore, `isContract` will also return true if the target contract within\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n * which only has an effect at the end of a transaction.\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n"}},"settings":{"remappings":["forge-std/=lib/forge-std/src/","solady/=lib/solady/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/=node_modules/@openzeppelin/","@openzeppelin/contracts/=lib/v2-core/lib/openzeppelin-contracts/contracts/","@prb/=node_modules/@prb/","@prb/math/=lib/v2-core/lib/prb-math/","@prb/test/=lib/v2-core/lib/prb-test/src/","@sablier/=node_modules/@sablier/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","eth-gas-reporter/=node_modules/eth-gas-reporter/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/","prb-math/=lib/v2-core/lib/prb-math/src/","prb-test/=lib/v2-core/lib/prb-test/src/","solarray/=lib/v2-core/lib/solarray/src/","v2-core/=lib/v2-core/"],"optimizer":{"enabled":true,"runs":1000},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"outputSelection":{"*":{"":["ast"],"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","storageLayout"]}},"evmVersion":"paris","viaIR":true,"libraries":{}}} diff --git a/QuestFactory.json b/QuestFactory.json index 4dfab1fc..d50e4abe 100644 --- a/QuestFactory.json +++ b/QuestFactory.json @@ -1 +1 @@ -{"language":"Solidity","sources":{"contracts/QuestFactory.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\n// Inherits\nimport {Initializable} from \"openzeppelin-contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {LegacyStorage} from \"./libraries/LegacyStorage.sol\";\nimport {OwnableRoles} from \"solady/auth/OwnableRoles.sol\";\n// Implements\nimport {IQuestFactory} from \"./interfaces/IQuestFactory.sol\";\n// Leverages\nimport {ECDSA} from \"openzeppelin-contracts/utils/cryptography/ECDSA.sol\";\nimport {LibClone} from \"solady/utils/LibClone.sol\";\nimport {LibString} from \"solady/utils/LibString.sol\";\nimport {SafeTransferLib} from \"solady/utils/SafeTransferLib.sol\";\nimport {LibZip} from \"solady/utils/LibZip.sol\";\n// References\nimport {IERC1155} from \"openzeppelin-contracts/token/ERC1155/IERC1155.sol\";\nimport {IQuestOwnable} from \"./interfaces/IQuestOwnable.sol\";\nimport {IQuest1155Ownable} from \"./interfaces/IQuest1155Ownable.sol\";\nimport {Quest as QuestContract} from \"./Quest.sol\";\n\n/// @title QuestFactory\n/// @author RabbitHole.gg\n/// @dev This contract is used to create quests and handle claims\ncontract QuestFactory is Initializable, LegacyStorage, OwnableRoles, IQuestFactory {\n /*//////////////////////////////////////////////////////////////\n USING\n //////////////////////////////////////////////////////////////*/\n using SafeTransferLib for address;\n using LibClone for address;\n using LibString for string;\n using LibString for uint256;\n using LibString for address;\n\n /*//////////////////////////////////////////////////////////////\n STORAGE\n //////////////////////////////////////////////////////////////*/\n address public claimSignerAddress;\n address public protocolFeeRecipient;\n address public erc20QuestAddress;\n address public erc1155QuestAddress;\n mapping(string => Quest) public quests;\n address private __deprecated_rabbitHoleReceiptContract; // not used\n address private __deprecated_rabbitHoleTicketsContract; // not used\n mapping(address => bool) private __deprecated_rewardAllowlist; // not used\n uint16 public questFee;\n uint256 public mintFee;\n address public defaultMintFeeRecipient;\n uint256 private locked;\n address private __deprecated_defaultReferralFeeRecipient; // not used\n uint256 private __deprecated_nftQuestFee; // not used\n address private __deprecated_questNFTAddress; // not used\n mapping(address => address[]) private ownerCollections;\n mapping(address => NftQuestFees) private __deprecated_nftQuestFeeList; // not used\n uint16 public referralFee;\n address private __deprecated_sablierV2LockupLinearAddress; // not used\n mapping(address => address) private __deprecated_mintFeeRecipientList; // not used\n uint256 public referralRewardTimestamp;\n // insert new vars here at the end to keep the storage layout the same\n\n /*//////////////////////////////////////////////////////////////\n CONSTRUCTOR\n //////////////////////////////////////////////////////////////*/\n /// @custom:oz-upgrades-unsafe-allow constructor\n // solhint-disable-next-line func-visibility\n constructor() initializer {}\n\n function initialize(\n address claimSignerAddress_,\n address protocolFeeRecipient_,\n address erc20QuestAddress_,\n address payable erc1155QuestAddress_,\n address ownerAddress_,\n uint256,\n uint16 referralFee_,\n uint256 mintFee_\n ) external initializer {\n _initializeOwner(ownerAddress_);\n questFee = 2000; // in BIPS\n locked = 1;\n claimSignerAddress = claimSignerAddress_;\n protocolFeeRecipient = protocolFeeRecipient_;\n erc20QuestAddress = erc20QuestAddress_;\n erc1155QuestAddress = erc1155QuestAddress_;\n referralFee = referralFee_;\n mintFee = mintFee_;\n referralRewardTimestamp = block.timestamp;\n }\n\n /*//////////////////////////////////////////////////////////////\n MODIFIERS\n //////////////////////////////////////////////////////////////*/\n\n modifier checkQuest(string memory questId_) {\n Quest storage currentQuest = quests[questId_];\n if (currentQuest.questAddress != address(0)) revert QuestIdUsed();\n if (erc20QuestAddress == address(0)) revert Erc20QuestAddressNotSet();\n _;\n }\n\n modifier claimChecks(ClaimData memory claimData_) {\n Quest storage currentQuest = quests[claimData_.questId];\n\n if (currentQuest.numberMinted + 1 > currentQuest.totalParticipants) revert OverMaxAllowedToMint();\n if (currentQuest.addressMinted[claimData_.claimer]) revert AddressAlreadyMinted();\n if (recoverSigner(claimData_.hashBytes, claimData_.signature) != claimSignerAddress) revert AddressNotSigned();\n _;\n }\n\n /// @dev ReentrancyGuard modifier from solmate, copied here because it was added after storage layout was finalized on first deploy\n /// @dev from https://github.com/transmissions11/solmate/blob/main/src/utils/ReentrancyGuard.sol\n modifier nonReentrant() virtual {\n if (locked != 1) revert Reentrancy();\n locked = 2;\n _;\n locked = 1;\n }\n\n modifier nonZeroAddress(address address_) {\n if (address_ == address(0)) revert ZeroAddressNotAllowed();\n _;\n }\n\n modifier sufficientMintFee() {\n if (msg.value < mintFee) revert InvalidMintFee();\n _;\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n\n /*//////////////////////////////////////////////////////////////\n CREATE\n //////////////////////////////////////////////////////////////*/\n\n /// @dev Create an erc20 quest and start it at the same time. The function will transfer the reward amount to the quest contract\n /// @param txHashChainId_ The chain id of the chain the txHash is on\n /// @param rewardTokenAddress_ The contract address of the reward token\n /// @param endTime_ The end time of the quest\n /// @param startTime_ The start time of the quest\n /// @param totalParticipants_ The total amount of participants (accounts) the quest will have\n /// @param rewardAmount_ The reward amount for an erc20 quest\n /// @param questId_ The id of the quest\n /// @param actionType_ The action type for the quest\n /// @param questName_ The name of the quest\n /// @param projectName_ The name of the project/protocol used for the quest\n /// @param referralRewardFee_ The fee amount for referrals. The value is counted against the `rewardAmount`\n /// @return address the quest contract address\n function createERC20Quest(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_,\n uint256 referralRewardFee_\n ) external checkQuest(questId_) returns (address) {\n return createERC20QuestInternal(\n ERC20QuestData(\n txHashChainId_,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n rewardAmount_,\n questId_,\n actionType_,\n questName_,\n \"erc20\",\n projectName_,\n referralRewardFee_\n )\n );\n }\n\n /// @dev Create an erc1155 quest and start it at the same time. The function will transfer the reward amount to the quest contract\n /// @param txHashChainId_ The chain id of the chain the txHash is on\n /// @param rewardTokenAddress_ The contract address of the reward token\n /// @param endTime_ The end time of the quest\n /// @param startTime_ The start time of the quest\n /// @param totalParticipants_ The total amount of participants (accounts) the quest will have\n /// @param tokenId_ The reward token id of the erc1155 at rewardTokenAddress_\n /// @param questId_ The id of the quest\n /// @param actionType_ The action type for the quest\n /// @param questName_ The name of the quest\n /// @return address the quest contract address\n function createERC1155Quest(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_\n ) external payable nonReentrant returns (address) {\n return createERC1155QuestInternal(\n ERC1155QuestData(\n txHashChainId_,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n tokenId_,\n questId_,\n actionType_,\n questName_,\n projectName_\n )\n );\n }\n\n /// @notice Deprecated\n function createERC1155Quest(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_\n ) external payable nonReentrant returns (address) {\n return createERC1155QuestInternal(\n ERC1155QuestData(\n 0,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n tokenId_,\n questId_,\n actionType_,\n questName_,\n projectName_\n )\n );\n }\n\n /// @notice Deprecated\n function create1155QuestAndQueue(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory\n ) external payable nonReentrant returns (address) {\n return createERC1155QuestInternal(\n ERC1155QuestData(\n 0,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n tokenId_,\n questId_,\n \"\",\n \"\",\n \"\"\n )\n );\n }\n\n /// @notice Deprecated\n function createERC20Quest(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_\n ) external checkQuest(questId_) returns (address) {\n return createERC20QuestInternal(\n ERC20QuestData(\n 0,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n rewardAmount_,\n questId_,\n actionType_,\n questName_,\n \"erc20\",\n \"\",\n 0\n )\n );\n }\n\n /// @notice Deprecated\n function createQuestAndQueue(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory,\n uint256\n ) external checkQuest(questId_) returns (address) {\n return createERC20QuestInternal(\n ERC20QuestData(\n 0,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n rewardAmount_,\n questId_,\n \"\",\n \"\",\n \"erc20\",\n \"\",\n 0\n )\n );\n }\n\n function cancelQuest(string calldata questId_) external {\n Quest storage _questData = quests[questId_];\n if (_questData.questCreator != msg.sender) revert Unauthorized();\n IQuestOwnable quest = IQuestOwnable(_questData.questAddress);\n quest.cancel();\n emit QuestCancelled(_questData.questAddress, questId_, quest.endTime());\n }\n\n /*//////////////////////////////////////////////////////////////\n CLAIM\n //////////////////////////////////////////////////////////////*/\n /// @dev Claim rewards for a quest\n /// @param compressedData_ The claim data in abi encoded bytes, compressed with cdCompress from solady LibZip\n function claimCompressed(bytes calldata compressedData_) external payable {\n _claimCompressed(compressedData_, msg.sender);\n }\n\n function claimCompressedRef(bytes calldata compressedData_, address claimer) external payable {\n _claimCompressed(compressedData_, claimer);\n }\n\n /// @dev Claim rewards for a quest\n /// @param compressedData_ The claim data in abi encoded bytes, compressed with cdCompress from solady LibZip\n /// @param claimer The address of the claimer - where rewards are sent\n function _claimCompressed(bytes calldata compressedData_, address claimer) internal {\n bytes memory data_ = LibZip.cdDecompress(compressedData_);\n\n (\n bytes32 txHash_,\n bytes32 r_,\n bytes32 vs_,\n address ref_,\n bytes16 questid_,\n uint32 txHashChainId_\n ) = abi.decode(\n data_,\n (bytes32, bytes32, bytes32, address, bytes16, uint32)\n );\n\n string memory questIdString_ = bytes16ToUUID(questid_);\n Quest storage quest_ = quests[questIdString_];\n\n string memory jsonData_ = _buildJsonString(txHash_, txHashChainId_, quest_.actionType);\n bytes memory claimData_ = abi.encode(claimer, ref_, questIdString_, jsonData_);\n\n // Since `vs_` includes `s` and the bit for `v`, we can extract `s` by masking out the `v` bit.\n bytes32 s = vs_ & bytes32(0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);\n\n // Now extract the `v` by shifting `vs_` right by 255 bits and casting to a uint8\n uint8 v = uint8((uint256(vs_) >> 255));\n\n // If `v` is less than 27 (which means it's either 0, 1, or invalid), add 27 to push it into range (27, 28)\n // Note that if `v` was neither 0 nor 1, this will push it out of range, and the signature will be invalid\n if (v < 27) v += 27;\n\n _claimOptimized(abi.encodePacked(r_, s, v), claimData_);\n }\n\n /// @notice External use is deprecated\n /// @dev Claim rewards for a quest\n /// @param -DEPRECATED- signature_ The signature of the claim data\n /// @param -DEPRECATED- data_ The claim data in abi encoded bytes\n function claimOptimized(bytes calldata, bytes calldata) external payable {\n revert Deprecated();\n }\n\n /// @dev Claim rewards for a quest\n /// @param signature_ The signature of the claim data\n /// @param data_ The claim data in abi encoded bytes\n function _claimOptimized(\n bytes memory signature_,\n bytes memory data_\n ) internal {\n (\n address claimer_,\n address ref_,\n string memory questId_,\n string memory jsonData_\n ) = abi.decode(\n data_,\n (address, address, string, string)\n );\n Quest storage quest = quests[questId_];\n\n uint256 numberMintedPlusOne_ = quest.numberMinted + 1;\n address rewardToken_ = IQuestOwnable(quest.questAddress).rewardToken();\n uint256 rewardAmountOrTokenId;\n\n if (recoverSigner(keccak256(data_), signature_) != claimSignerAddress) revert AddressNotSigned();\n if (msg.value < mintFee) revert InvalidMintFee();\n if (quest.addressMinted[claimer_]) revert AddressAlreadyMinted();\n if (numberMintedPlusOne_ > quest.totalParticipants) revert OverMaxAllowedToMint();\n\n quest.addressMinted[claimer_] = true;\n quest.numberMinted = numberMintedPlusOne_;\n (bool success_, ) = quest.questAddress.call{value: msg.value}(abi.encodeWithSignature(\"claimFromFactory(address,address)\", claimer_, ref_));\n if (!success_) revert ClaimFailed();\n\n emit QuestClaimedData(claimer_, quest.questAddress, jsonData_);\n if (quest.questType.eq(\"erc1155\")) {\n rewardAmountOrTokenId = IQuest1155Ownable(quest.questAddress).tokenId();\n emit Quest1155Claimed(claimer_, quest.questAddress, questId_, rewardToken_, rewardAmountOrTokenId);\n } else {\n rewardAmountOrTokenId = IQuestOwnable(quest.questAddress).rewardAmountInWei();\n emit QuestClaimed(claimer_, quest.questAddress, questId_, rewardToken_, rewardAmountOrTokenId);\n }\n if(ref_ != address(0)){\n if (IQuestOwnable(quest.questAddress).startTime() > referralRewardTimestamp) {\n emit QuestClaimReferred(\n claimer_,\n quest.questAddress,\n questId_,\n rewardToken_,\n rewardAmountOrTokenId,\n ref_, 3333,\n mintFee,\n QuestContract(payable(quest.questAddress)).referralRewardFee(),\n QuestContract(payable(quest.questAddress)).referralRewardAmount())\n ;\n } else {\n emit QuestClaimedReferred(\n claimer_,\n quest.questAddress,\n questId_,\n rewardToken_,\n rewardAmountOrTokenId,\n ref_, 3333,\n mintFee\n );\n }\n emit MintFeePaid(questId_, address(0), 0, address(0), 0, ref_, mintFee / 3);\n }\n }\n\n /*//////////////////////////////////////////////////////////////\n SET\n //////////////////////////////////////////////////////////////*/\n\n /// @dev set the claim signer address\n /// @param claimSignerAddress_ The address of the claim signer\n function setClaimSignerAddress(address claimSignerAddress_) external onlyOwner {\n claimSignerAddress = claimSignerAddress_;\n }\n\n /// @dev set erc1155QuestAddress\n /// @param erc1155QuestAddress_ The address of the erc1155 quest\n function setErc1155QuestAddress(address erc1155QuestAddress_) external onlyOwner {\n erc1155QuestAddress = erc1155QuestAddress_;\n }\n\n /// @dev set erc20QuestAddress\n /// @param erc20QuestAddress_ The address of the erc20 quest\n function setErc20QuestAddress(address erc20QuestAddress_) external onlyOwner {\n erc20QuestAddress = erc20QuestAddress_;\n }\n\n /// @dev set the mint fee\n /// @notice the mint fee in ether\n /// @param mintFee_ The mint fee value\n function setMintFee(uint256 mintFee_) external onlyOwner {\n mintFee = mintFee_;\n emit MintFeeSet(mintFee_);\n }\n\n /// @dev set the protocol fee recipient\n /// @param protocolFeeRecipient_ The address of the protocol fee recipient\n function setProtocolFeeRecipient(address protocolFeeRecipient_) external onlyOwner {\n if (protocolFeeRecipient_ == address(0)) revert AddressZeroNotAllowed();\n protocolFeeRecipient = protocolFeeRecipient_;\n }\n\n /// @dev set the quest fee\n /// @notice the quest fee should be in Basis Point units\n /// @param questFee_ The quest fee value\n function setQuestFee(uint16 questFee_) external onlyOwner {\n if (questFee_ > 10_000) revert QuestFeeTooHigh();\n questFee = questFee_;\n }\n\n /// @dev set the referral fee\n /// @param referralFee_ The value of the referralFee\n function setReferralFee(uint16 referralFee_) external onlyOwner {\n if (referralFee_ > 10_000) revert ReferralFeeTooHigh();\n referralFee = referralFee_;\n emit ReferralFeeSet(referralFee_);\n }\n\n /// @dev set the mintFeeRecipient\n /// @param mintFeeRecipient_ The address of the mint fee recipient\n function setDefaultMintFeeRecipient(address mintFeeRecipient_) external onlyOwner {\n if (mintFeeRecipient_ == address(0)) revert AddressZeroNotAllowed();\n defaultMintFeeRecipient = mintFeeRecipient_;\n }\n\n function setReferralRewardTimestamp(uint256 timestamp_) external onlyOwner {\n referralRewardTimestamp = timestamp_;\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n\n /// @notice This function name is a bit of a misnomer - gets whether an address has claimed a quest yet.\n /// @dev return status of whether an address has claimed a quest\n /// @param questId_ The id of the quest\n /// @param address_ The address to check\n /// @return claimed status\n function getAddressMinted(string memory questId_, address address_) external view returns (bool) {\n return quests[questId_].addressMinted[address_];\n }\n\n /// @dev return the number of quest claims\n /// @param questId_ The id of the quest\n /// @return uint Total quests claimed\n function getNumberMinted(string memory questId_) external view returns (uint256) {\n return quests[questId_].numberMinted;\n }\n\n /// @dev return extended quest data for a questId\n /// @param questId_ The id of the quest\n function questData(string memory questId_) external view returns (QuestData memory) {\n Quest storage thisQuest = quests[questId_];\n IQuestOwnable questContract = IQuestOwnable(thisQuest.questAddress);\n uint256 rewardAmountOrTokenId;\n uint16 erc20QuestFee;\n\n if (thisQuest.questType.eq(\"erc1155\")) {\n rewardAmountOrTokenId = IQuest1155Ownable(thisQuest.questAddress).tokenId();\n } else {\n rewardAmountOrTokenId = questContract.rewardAmountInWei();\n erc20QuestFee = questContract.questFee();\n }\n\n QuestData memory data = QuestData(\n thisQuest.questAddress,\n questContract.rewardToken(),\n questContract.queued(),\n erc20QuestFee,\n questContract.startTime(),\n questContract.endTime(),\n questContract.totalParticipants(),\n thisQuest.numberMinted,\n thisQuest.numberMinted,\n rewardAmountOrTokenId,\n questContract.hasWithdrawn()\n );\n\n return data;\n }\n\n /// @param questId_ The id of the quest\n function questJsonData(string memory questId_) external view returns (QuestJsonData memory) {\n Quest storage thisQuest = quests[questId_];\n\n QuestJsonData memory data = QuestJsonData(\n thisQuest.actionType,\n thisQuest.questName,\n thisQuest.txHashChainId\n );\n\n return data;\n }\n\n /// @dev return data in the quest struct for a questId\n /// @param questId_ The id of the quest\n function questInfo(string memory questId_) external view returns (address, uint256, uint256) {\n Quest storage currentQuest = quests[questId_];\n return (currentQuest.questAddress, currentQuest.totalParticipants, currentQuest.numberMinted);\n }\n\n /// @dev recover the signer from a hash and signature\n /// @param hash_ The hash of the message\n /// @param signature_ The signature of the hash\n function recoverSigner(bytes32 hash_, bytes memory signature_) public view returns (address) {\n return ECDSA.recover(ECDSA.toEthSignedMessageHash(hash_), signature_);\n }\n\n function withdrawCallback(string calldata questId_, address protocolFeeRecipient_, uint protocolPayout_, address mintFeeRecipient_, uint mintPayout) external {\n Quest storage quest = quests[questId_];\n if(msg.sender != quest.questAddress) revert QuestAddressMismatch();\n\n emit MintFeePaid(questId_, protocolFeeRecipient_, protocolPayout_, mintFeeRecipient_, mintPayout, address(0), 0);\n }\n\n function getQuestName(string calldata questId_) external view returns (string memory) {\n return quests[questId_].questName;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n\n /// @dev claim rewards for a quest with a referral address\n /// @param claimData_ The claim data struct\n function claim1155RewardsRef(ClaimData memory claimData_) private\n nonReentrant\n sufficientMintFee\n claimChecks(claimData_)\n {\n Quest storage currentQuest = quests[claimData_.questId];\n IQuest1155Ownable questContract_ = IQuest1155Ownable(currentQuest.questAddress);\n if (!questContract_.queued()) revert QuestNotQueued();\n if (block.timestamp < questContract_.startTime()) revert QuestNotStarted();\n if (block.timestamp > questContract_.endTime()) revert QuestEnded();\n\n currentQuest.addressMinted[claimData_.claimer] = true;\n ++currentQuest.numberMinted;\n questContract_.singleClaim(claimData_.claimer);\n\n if (mintFee > 0) {\n string memory newJson = processMintFee(claimData_.ref, currentQuest.questCreator, claimData_.questId);\n if (bytes(claimData_.extraData).length > 0){\n claimData_.extraData = claimData_.extraData.slice(0, bytes(claimData_.extraData).length -1).concat(newJson);\n }\n }\n\n emit QuestClaimedData(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.extraData\n );\n\n emit Quest1155Claimed(\n claimData_.claimer, currentQuest.questAddress, claimData_.questId, questContract_.rewardToken(), questContract_.tokenId()\n );\n\n if (claimData_.ref != address(0)) {\n if (IQuestOwnable(currentQuest.questAddress).startTime() > referralRewardTimestamp) {\n emit QuestClaimReferred(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.tokenId(),\n claimData_.ref,\n 3333, //referralFee,\n mintFee,\n 0,\n 0\n );\n } else {\n emit QuestClaimedReferred(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.tokenId(),\n claimData_.ref,\n 3333, //referralFee,\n mintFee\n );\n }\n }\n }\n\n /// @dev claim rewards with a referral address\n /// @param claimData_ The claim data struct\n function claimRewardsRef(ClaimData memory claimData_) private\n nonReentrant\n sufficientMintFee\n claimChecks(claimData_)\n {\n Quest storage currentQuest = quests[claimData_.questId];\n IQuestOwnable questContract_ = IQuestOwnable(currentQuest.questAddress);\n if (!questContract_.queued()) revert QuestNotQueued();\n if (block.timestamp < questContract_.startTime()) revert QuestNotStarted();\n if (block.timestamp > questContract_.endTime()) revert QuestEnded();\n\n currentQuest.addressMinted[claimData_.claimer] = true;\n ++currentQuest.numberMinted;\n questContract_.singleClaim(claimData_.claimer);\n\n if (mintFee > 0) {\n string memory newJson = processMintFee(claimData_.ref, currentQuest.questCreator, claimData_.questId);\n if (bytes(claimData_.extraData).length > 0){\n claimData_.extraData = claimData_.extraData.slice(0, bytes(claimData_.extraData).length -1).concat(newJson);\n }\n }\n\n emit QuestClaimedData(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.extraData\n );\n\n emit QuestClaimed(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.rewardAmountInWei()\n );\n\n if (claimData_.ref != address(0)) {\n if (IQuestOwnable(currentQuest.questAddress).startTime() > referralRewardTimestamp) {\n emit QuestClaimReferred(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.rewardAmountInWei(),\n claimData_.ref,\n 3333, //referralFee,\n mintFee,\n 0,\n 0\n );\n } else {\n emit QuestClaimedReferred(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.rewardAmountInWei(),\n claimData_.ref,\n 3333, //referralFee,\n mintFee\n );\n }\n }\n }\n\n /// @dev Internal function to create an erc1155 quest\n /// @param data_ The erc20 quest data struct\n function createERC1155QuestInternal(ERC1155QuestData memory data_) internal returns (address) {\n Quest storage currentQuest = quests[data_.questId];\n\n if (currentQuest.questAddress != address(0)) revert QuestIdUsed();\n\n address payable newQuest =\n payable(erc1155QuestAddress.cloneDeterministic(keccak256(abi.encodePacked(msg.sender, block.chainid, block.timestamp))));\n currentQuest.questAddress = address(newQuest);\n currentQuest.totalParticipants = data_.totalParticipants;\n currentQuest.questType = \"erc1155\";\n currentQuest.questCreator = msg.sender;\n currentQuest.actionType = data_.actionType;\n currentQuest.questName = data_.questName;\n currentQuest.txHashChainId = data_.txHashChainId;\n IQuest1155Ownable questContract = IQuest1155Ownable(newQuest);\n\n questContract.initialize(\n data_.rewardTokenAddress,\n data_.endTime,\n data_.startTime,\n data_.totalParticipants,\n data_.tokenId,\n protocolFeeRecipient,\n data_.questId\n );\n\n IERC1155(data_.rewardTokenAddress).safeTransferFrom(msg.sender, newQuest, data_.tokenId, data_.totalParticipants, \"0x00\");\n questContract.queue();\n questContract.transferOwnership(msg.sender);\n\n emit QuestCreated(\n msg.sender,\n address(newQuest),\n data_.projectName,\n data_.questName,\n data_.questId,\n currentQuest.questType,\n data_.actionType,\n data_.txHashChainId,\n data_.rewardTokenAddress,\n data_.endTime,\n data_.startTime,\n data_.totalParticipants,\n data_.tokenId\n );\n\n return newQuest;\n }\n\n /// @dev Internal function to create an erc20 quest\n /// @param data_ The erc20 quest data struct\n function createERC20QuestInternal(ERC20QuestData memory data_) internal returns (address) {\n Quest storage currentQuest = quests[data_.questId];\n address newQuest = erc20QuestAddress.cloneDeterministic(keccak256(abi.encodePacked(msg.sender, block.chainid, block.timestamp)));\n\n currentQuest.questAddress = address(newQuest);\n currentQuest.totalParticipants = data_.totalParticipants;\n currentQuest.questCreator = msg.sender;\n currentQuest.questType = data_.questType;\n currentQuest.actionType = data_.actionType;\n currentQuest.questName = data_.questName;\n currentQuest.txHashChainId = data_.txHashChainId;\n\n emit QuestCreated(\n msg.sender,\n address(newQuest),\n data_.projectName,\n data_.questName,\n data_.questId,\n currentQuest.questType,\n data_.actionType,\n data_.txHashChainId,\n data_.rewardTokenAddress,\n data_.endTime,\n data_.startTime,\n data_.totalParticipants,\n data_.rewardAmount\n );\n\n IQuestOwnable(newQuest).initialize(\n data_.rewardTokenAddress,\n data_.endTime,\n data_.startTime,\n data_.totalParticipants,\n data_.rewardAmount,\n data_.questId,\n questFee,\n protocolFeeRecipient,\n data_.referralRewardFee\n );\n\n transferTokensAndOwnership(newQuest, data_.rewardTokenAddress);\n return newQuest;\n }\n\n function processMintFee(address ref_, address mintFeeRecipient_, string memory questId_) private returns (string memory) {\n returnChange();\n uint256 cachedMintFee = mintFee;\n uint256 oneThirdMintfee = cachedMintFee / 3;\n uint256 protocolPayout;\n uint256 mintPayout;\n uint256 referrerPayout;\n\n if(ref_ == address(0)){\n protocolPayout = oneThirdMintfee * 2;\n mintPayout = oneThirdMintfee;\n } else {\n protocolPayout = oneThirdMintfee;\n mintPayout = oneThirdMintfee;\n referrerPayout = oneThirdMintfee;\n }\n\n protocolFeeRecipient.safeTransferETH(protocolPayout);\n mintFeeRecipient_.safeTransferETH(mintPayout);\n if(referrerPayout != 0) ref_.safeTransferETH(referrerPayout);\n\n emit MintFeePaid(questId_, protocolFeeRecipient, protocolPayout, mintFeeRecipient_, mintPayout, ref_, referrerPayout);\n\n return string(abi.encodePacked(\n ', \"claimFee\": \"', cachedMintFee.toString(),\n '\", \"claimFeePayouts\": [{\"name\": \"protocolPayout\", \"address\": \"', protocolFeeRecipient.toHexString(),\n '\", \"value\": \"', protocolPayout.toString(),\n '\"}, {\"name\": \"mintPayout\", \"address\": \"', mintFeeRecipient_.toHexString(),\n '\", \"value\": \"', mintPayout.toString(),\n '\"}, {\"name\": \"referrerPayout\", \"address\": \"', ref_.toHexString(),\n '\", \"value\": \"', referrerPayout.toString(), '\"}]}'\n ));\n }\n\n // Refund any excess payment\n function returnChange() private {\n uint256 change = msg.value - mintFee;\n if (change > 0) {\n msg.sender.safeTransferETH(change);\n }\n }\n\n /// @dev Transfer the total transfer amount to the quest contract\n /// @dev Contract must be approved to transfer first\n /// @param newQuest_ The address of the new quest\n /// @param rewardTokenAddress_ The contract address of the reward token\n function transferTokensAndOwnership(address newQuest_, address rewardTokenAddress_) internal {\n address sender = msg.sender;\n IQuestOwnable questContract = IQuestOwnable(newQuest_);\n rewardTokenAddress_.safeTransferFrom(sender, newQuest_, questContract.totalTransferAmount());\n questContract.transferOwnership(sender);\n }\n\n /// @dev Build the expected json string for a quest\n /// @param txHash The transaction hash\n /// @param txHashChainId The chain id of the transaction hash\n /// @param actionType The action type for the quest\n /// @param -deprecated- The name of the quest\n /// @return string The json string\n function buildJsonString(\n bytes32 txHash,\n uint32 txHashChainId,\n string memory actionType,\n string memory // questName - not used\n ) external pure returns (string memory) {\n return _buildJsonString(txHash, txHashChainId, actionType);\n }\n\n /// @dev Build the expected json string for a quest\n /// @param txHash The transaction hash\n /// @param txHashChainId The chain id of the transaction hash\n /// @param actionType The action type for the quest\n /// @return string The json string\n function _buildJsonString(\n bytes32 txHash,\n uint32 txHashChainId,\n string memory actionType\n ) internal pure returns (string memory) {\n // {\n // actionTxHashes: [\"actionTxHash1\"],\n // actionNetworkChainIds: [\"chainId1\"],\n // actionType: \"mint\"\n // }\n return string(abi.encodePacked(\n '{\"actionTxHashes\":[\"', uint256(txHash).toHexString(32),\n '\"],\"actionNetworkChainIds\":[', uint256(txHashChainId).toString(),\n '],\"actionType\":\"', actionType, '\"}'\n ));\n }\n\n /// @dev Convert bytes16 to a UUID string e.g. 550e8400-e29b-41d4-a716-446655440000\n /// @param data The bytes16 data e.g. 0x550e8400e29b41d4a716446655440000\n function bytes16ToUUID(bytes16 data) internal pure returns (string memory) {\n bytes memory hexChars = \"0123456789abcdef\";\n bytes memory uuid = new bytes(36); // UUID length with hyphens\n\n uint256 j = 0; // Position in uuid\n for (uint256 i = 0; i < 16; i++) {\n // Insert hyphens at the appropriate positions (after 4, 6, 8, 10 bytes)\n if (i == 4 || i == 6 || i == 8 || i == 10) {\n uuid[j++] = '-';\n }\n\n uuid[j++] = hexChars[uint8(data[i] >> 4)];\n uuid[j++] = hexChars[uint8(data[i] & 0x0F)];\n }\n\n return string(uuid);\n }\n\n /*//////////////////////////////////////////////////////////////\n DEFAULTS\n //////////////////////////////////////////////////////////////*/\n // Receive function to receive ETH\n receive() external payable {}\n\n // Fallback function to receive ETH when other functions are not available\n fallback() external payable {}\n}"},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized != type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n"},"contracts/libraries/LegacyStorage.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity 0.8.19;\n\nabstract contract LegacyStorage {\n struct RoleData {\n mapping(address => bool) members;\n bytes32 adminRole;\n }\n\n uint256[50] private __gap;\n address private _owner;\n uint256[49] private __gap1;\n uint256[50] private __gap2;\n mapping(bytes32 => RoleData) private _roles;\n uint256[49] private __gap3;\n}\n"},"lib/solady/src/auth/OwnableRoles.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/// @notice Simple single owner and multiroles authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n/// @dev While the ownable portion follows [EIP-173](https://eips.ethereum.org/EIPS/eip-173)\n/// for compatibility, the nomenclature for the 2-step ownership handover and roles\n/// may be unique to this codebase.\nabstract contract OwnableRoles is Ownable {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The `user`'s roles is updated to `roles`.\n /// Each bit of `roles` represents whether the role is set.\n event RolesUpdated(address indexed user, uint256 indexed roles);\n\n /// @dev `keccak256(bytes(\"RolesUpdated(address,uint256)\"))`.\n uint256 private constant _ROLES_UPDATED_EVENT_SIGNATURE =\n 0x715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* STORAGE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The role slot of `user` is given by:\n /// ```\n /// mstore(0x00, or(shl(96, user), _ROLE_SLOT_SEED))\n /// let roleSlot := keccak256(0x00, 0x20)\n /// ```\n /// This automatically ignores the upper bits of the `user` in case\n /// they are not clean, as well as keep the `keccak256` under 32-bytes.\n ///\n /// Note: This is equivalent to `uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))`.\n uint256 private constant _ROLE_SLOT_SEED = 0x8b78c6d8;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* INTERNAL FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Overwrite the roles directly without authorization guard.\n function _setRoles(address user, uint256 roles) internal virtual {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, user)\n // Store the new value.\n sstore(keccak256(0x0c, 0x20), roles)\n // Emit the {RolesUpdated} event.\n log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), roles)\n }\n }\n\n /// @dev Updates the roles directly without authorization guard.\n /// If `on` is true, each set bit of `roles` will be turned on,\n /// otherwise, each set bit of `roles` will be turned off.\n function _updateRoles(address user, uint256 roles, bool on) internal virtual {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, user)\n let roleSlot := keccak256(0x0c, 0x20)\n // Load the current value.\n let current := sload(roleSlot)\n // Compute the updated roles if `on` is true.\n let updated := or(current, roles)\n // Compute the updated roles if `on` is false.\n // Use `and` to compute the intersection of `current` and `roles`,\n // `xor` it with `current` to flip the bits in the intersection.\n if iszero(on) { updated := xor(current, and(current, roles)) }\n // Then, store the new value.\n sstore(roleSlot, updated)\n // Emit the {RolesUpdated} event.\n log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), updated)\n }\n }\n\n /// @dev Grants the roles directly without authorization guard.\n /// Each bit of `roles` represents the role to turn on.\n function _grantRoles(address user, uint256 roles) internal virtual {\n _updateRoles(user, roles, true);\n }\n\n /// @dev Removes the roles directly without authorization guard.\n /// Each bit of `roles` represents the role to turn off.\n function _removeRoles(address user, uint256 roles) internal virtual {\n _updateRoles(user, roles, false);\n }\n\n /// @dev Throws if the sender does not have any of the `roles`.\n function _checkRoles(uint256 roles) internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the role slot.\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, caller())\n // Load the stored value, and if the `and` intersection\n // of the value and `roles` is zero, revert.\n if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Throws if the sender is not the owner,\n /// and does not have any of the `roles`.\n /// Checks for ownership first, then lazily checks for roles.\n function _checkOwnerOrRoles(uint256 roles) internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // If the caller is not the stored owner.\n // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n // Compute the role slot.\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, caller())\n // Load the stored value, and if the `and` intersection\n // of the value and `roles` is zero, revert.\n if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n }\n\n /// @dev Throws if the sender does not have any of the `roles`,\n /// and is not the owner.\n /// Checks for roles first, then lazily checks for ownership.\n function _checkRolesOrOwner(uint256 roles) internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the role slot.\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, caller())\n // Load the stored value, and if the `and` intersection\n // of the value and `roles` is zero, revert.\n if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n // If the caller is not the stored owner.\n // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n }\n\n /// @dev Convenience function to return a `roles` bitmap from an array of `ordinals`.\n /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n /// Not recommended to be called on-chain.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _rolesFromOrdinals(uint8[] memory ordinals) internal pure returns (uint256 roles) {\n /// @solidity memory-safe-assembly\n assembly {\n for { let i := shl(5, mload(ordinals)) } i { i := sub(i, 0x20) } {\n // We don't need to mask the values of `ordinals`, as Solidity\n // cleans dirty upper bits when storing variables into memory.\n roles := or(shl(mload(add(ordinals, i)), 1), roles)\n }\n }\n }\n\n /// @dev Convenience function to return an array of `ordinals` from the `roles` bitmap.\n /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n /// Not recommended to be called on-chain.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _ordinalsFromRoles(uint256 roles) internal pure returns (uint8[] memory ordinals) {\n /// @solidity memory-safe-assembly\n assembly {\n // Grab the pointer to the free memory.\n ordinals := mload(0x40)\n let ptr := add(ordinals, 0x20)\n let o := 0\n // The absence of lookup tables, De Bruijn, etc., here is intentional for\n // smaller bytecode, as this function is not meant to be called on-chain.\n for { let t := roles } 1 {} {\n mstore(ptr, o)\n // `shr` 5 is equivalent to multiplying by 0x20.\n // Push back into the ordinals array if the bit is set.\n ptr := add(ptr, shl(5, and(t, 1)))\n o := add(o, 1)\n t := shr(o, roles)\n if iszero(t) { break }\n }\n // Store the length of `ordinals`.\n mstore(ordinals, shr(5, sub(ptr, add(ordinals, 0x20))))\n // Allocate the memory.\n mstore(0x40, ptr)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC UPDATE FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Allows the owner to grant `user` `roles`.\n /// If the `user` already has a role, then it will be an no-op for the role.\n function grantRoles(address user, uint256 roles) public payable virtual onlyOwner {\n _grantRoles(user, roles);\n }\n\n /// @dev Allows the owner to remove `user` `roles`.\n /// If the `user` does not have a role, then it will be an no-op for the role.\n function revokeRoles(address user, uint256 roles) public payable virtual onlyOwner {\n _removeRoles(user, roles);\n }\n\n /// @dev Allow the caller to remove their own roles.\n /// If the caller does not have a role, then it will be an no-op for the role.\n function renounceRoles(uint256 roles) public payable virtual {\n _removeRoles(msg.sender, roles);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC READ FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the roles of `user`.\n function rolesOf(address user) public view virtual returns (uint256 roles) {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the role slot.\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, user)\n // Load the stored value.\n roles := sload(keccak256(0x0c, 0x20))\n }\n }\n\n /// @dev Returns whether `user` has any of `roles`.\n function hasAnyRole(address user, uint256 roles) public view virtual returns (bool) {\n return rolesOf(user) & roles != 0;\n }\n\n /// @dev Returns whether `user` has all of `roles`.\n function hasAllRoles(address user, uint256 roles) public view virtual returns (bool) {\n return rolesOf(user) & roles == roles;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MODIFIERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Marks a function as only callable by an account with `roles`.\n modifier onlyRoles(uint256 roles) virtual {\n _checkRoles(roles);\n _;\n }\n\n /// @dev Marks a function as only callable by the owner or by an account\n /// with `roles`. Checks for ownership first, then lazily checks for roles.\n modifier onlyOwnerOrRoles(uint256 roles) virtual {\n _checkOwnerOrRoles(roles);\n _;\n }\n\n /// @dev Marks a function as only callable by an account with `roles`\n /// or the owner. Checks for roles first, then lazily checks for ownership.\n modifier onlyRolesOrOwner(uint256 roles) virtual {\n _checkRolesOrOwner(roles);\n _;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ROLE CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // IYKYK\n\n uint256 internal constant _ROLE_0 = 1 << 0;\n uint256 internal constant _ROLE_1 = 1 << 1;\n uint256 internal constant _ROLE_2 = 1 << 2;\n uint256 internal constant _ROLE_3 = 1 << 3;\n uint256 internal constant _ROLE_4 = 1 << 4;\n uint256 internal constant _ROLE_5 = 1 << 5;\n uint256 internal constant _ROLE_6 = 1 << 6;\n uint256 internal constant _ROLE_7 = 1 << 7;\n uint256 internal constant _ROLE_8 = 1 << 8;\n uint256 internal constant _ROLE_9 = 1 << 9;\n uint256 internal constant _ROLE_10 = 1 << 10;\n uint256 internal constant _ROLE_11 = 1 << 11;\n uint256 internal constant _ROLE_12 = 1 << 12;\n uint256 internal constant _ROLE_13 = 1 << 13;\n uint256 internal constant _ROLE_14 = 1 << 14;\n uint256 internal constant _ROLE_15 = 1 << 15;\n uint256 internal constant _ROLE_16 = 1 << 16;\n uint256 internal constant _ROLE_17 = 1 << 17;\n uint256 internal constant _ROLE_18 = 1 << 18;\n uint256 internal constant _ROLE_19 = 1 << 19;\n uint256 internal constant _ROLE_20 = 1 << 20;\n uint256 internal constant _ROLE_21 = 1 << 21;\n uint256 internal constant _ROLE_22 = 1 << 22;\n uint256 internal constant _ROLE_23 = 1 << 23;\n uint256 internal constant _ROLE_24 = 1 << 24;\n uint256 internal constant _ROLE_25 = 1 << 25;\n uint256 internal constant _ROLE_26 = 1 << 26;\n uint256 internal constant _ROLE_27 = 1 << 27;\n uint256 internal constant _ROLE_28 = 1 << 28;\n uint256 internal constant _ROLE_29 = 1 << 29;\n uint256 internal constant _ROLE_30 = 1 << 30;\n uint256 internal constant _ROLE_31 = 1 << 31;\n uint256 internal constant _ROLE_32 = 1 << 32;\n uint256 internal constant _ROLE_33 = 1 << 33;\n uint256 internal constant _ROLE_34 = 1 << 34;\n uint256 internal constant _ROLE_35 = 1 << 35;\n uint256 internal constant _ROLE_36 = 1 << 36;\n uint256 internal constant _ROLE_37 = 1 << 37;\n uint256 internal constant _ROLE_38 = 1 << 38;\n uint256 internal constant _ROLE_39 = 1 << 39;\n uint256 internal constant _ROLE_40 = 1 << 40;\n uint256 internal constant _ROLE_41 = 1 << 41;\n uint256 internal constant _ROLE_42 = 1 << 42;\n uint256 internal constant _ROLE_43 = 1 << 43;\n uint256 internal constant _ROLE_44 = 1 << 44;\n uint256 internal constant _ROLE_45 = 1 << 45;\n uint256 internal constant _ROLE_46 = 1 << 46;\n uint256 internal constant _ROLE_47 = 1 << 47;\n uint256 internal constant _ROLE_48 = 1 << 48;\n uint256 internal constant _ROLE_49 = 1 << 49;\n uint256 internal constant _ROLE_50 = 1 << 50;\n uint256 internal constant _ROLE_51 = 1 << 51;\n uint256 internal constant _ROLE_52 = 1 << 52;\n uint256 internal constant _ROLE_53 = 1 << 53;\n uint256 internal constant _ROLE_54 = 1 << 54;\n uint256 internal constant _ROLE_55 = 1 << 55;\n uint256 internal constant _ROLE_56 = 1 << 56;\n uint256 internal constant _ROLE_57 = 1 << 57;\n uint256 internal constant _ROLE_58 = 1 << 58;\n uint256 internal constant _ROLE_59 = 1 << 59;\n uint256 internal constant _ROLE_60 = 1 << 60;\n uint256 internal constant _ROLE_61 = 1 << 61;\n uint256 internal constant _ROLE_62 = 1 << 62;\n uint256 internal constant _ROLE_63 = 1 << 63;\n uint256 internal constant _ROLE_64 = 1 << 64;\n uint256 internal constant _ROLE_65 = 1 << 65;\n uint256 internal constant _ROLE_66 = 1 << 66;\n uint256 internal constant _ROLE_67 = 1 << 67;\n uint256 internal constant _ROLE_68 = 1 << 68;\n uint256 internal constant _ROLE_69 = 1 << 69;\n uint256 internal constant _ROLE_70 = 1 << 70;\n uint256 internal constant _ROLE_71 = 1 << 71;\n uint256 internal constant _ROLE_72 = 1 << 72;\n uint256 internal constant _ROLE_73 = 1 << 73;\n uint256 internal constant _ROLE_74 = 1 << 74;\n uint256 internal constant _ROLE_75 = 1 << 75;\n uint256 internal constant _ROLE_76 = 1 << 76;\n uint256 internal constant _ROLE_77 = 1 << 77;\n uint256 internal constant _ROLE_78 = 1 << 78;\n uint256 internal constant _ROLE_79 = 1 << 79;\n uint256 internal constant _ROLE_80 = 1 << 80;\n uint256 internal constant _ROLE_81 = 1 << 81;\n uint256 internal constant _ROLE_82 = 1 << 82;\n uint256 internal constant _ROLE_83 = 1 << 83;\n uint256 internal constant _ROLE_84 = 1 << 84;\n uint256 internal constant _ROLE_85 = 1 << 85;\n uint256 internal constant _ROLE_86 = 1 << 86;\n uint256 internal constant _ROLE_87 = 1 << 87;\n uint256 internal constant _ROLE_88 = 1 << 88;\n uint256 internal constant _ROLE_89 = 1 << 89;\n uint256 internal constant _ROLE_90 = 1 << 90;\n uint256 internal constant _ROLE_91 = 1 << 91;\n uint256 internal constant _ROLE_92 = 1 << 92;\n uint256 internal constant _ROLE_93 = 1 << 93;\n uint256 internal constant _ROLE_94 = 1 << 94;\n uint256 internal constant _ROLE_95 = 1 << 95;\n uint256 internal constant _ROLE_96 = 1 << 96;\n uint256 internal constant _ROLE_97 = 1 << 97;\n uint256 internal constant _ROLE_98 = 1 << 98;\n uint256 internal constant _ROLE_99 = 1 << 99;\n uint256 internal constant _ROLE_100 = 1 << 100;\n uint256 internal constant _ROLE_101 = 1 << 101;\n uint256 internal constant _ROLE_102 = 1 << 102;\n uint256 internal constant _ROLE_103 = 1 << 103;\n uint256 internal constant _ROLE_104 = 1 << 104;\n uint256 internal constant _ROLE_105 = 1 << 105;\n uint256 internal constant _ROLE_106 = 1 << 106;\n uint256 internal constant _ROLE_107 = 1 << 107;\n uint256 internal constant _ROLE_108 = 1 << 108;\n uint256 internal constant _ROLE_109 = 1 << 109;\n uint256 internal constant _ROLE_110 = 1 << 110;\n uint256 internal constant _ROLE_111 = 1 << 111;\n uint256 internal constant _ROLE_112 = 1 << 112;\n uint256 internal constant _ROLE_113 = 1 << 113;\n uint256 internal constant _ROLE_114 = 1 << 114;\n uint256 internal constant _ROLE_115 = 1 << 115;\n uint256 internal constant _ROLE_116 = 1 << 116;\n uint256 internal constant _ROLE_117 = 1 << 117;\n uint256 internal constant _ROLE_118 = 1 << 118;\n uint256 internal constant _ROLE_119 = 1 << 119;\n uint256 internal constant _ROLE_120 = 1 << 120;\n uint256 internal constant _ROLE_121 = 1 << 121;\n uint256 internal constant _ROLE_122 = 1 << 122;\n uint256 internal constant _ROLE_123 = 1 << 123;\n uint256 internal constant _ROLE_124 = 1 << 124;\n uint256 internal constant _ROLE_125 = 1 << 125;\n uint256 internal constant _ROLE_126 = 1 << 126;\n uint256 internal constant _ROLE_127 = 1 << 127;\n uint256 internal constant _ROLE_128 = 1 << 128;\n uint256 internal constant _ROLE_129 = 1 << 129;\n uint256 internal constant _ROLE_130 = 1 << 130;\n uint256 internal constant _ROLE_131 = 1 << 131;\n uint256 internal constant _ROLE_132 = 1 << 132;\n uint256 internal constant _ROLE_133 = 1 << 133;\n uint256 internal constant _ROLE_134 = 1 << 134;\n uint256 internal constant _ROLE_135 = 1 << 135;\n uint256 internal constant _ROLE_136 = 1 << 136;\n uint256 internal constant _ROLE_137 = 1 << 137;\n uint256 internal constant _ROLE_138 = 1 << 138;\n uint256 internal constant _ROLE_139 = 1 << 139;\n uint256 internal constant _ROLE_140 = 1 << 140;\n uint256 internal constant _ROLE_141 = 1 << 141;\n uint256 internal constant _ROLE_142 = 1 << 142;\n uint256 internal constant _ROLE_143 = 1 << 143;\n uint256 internal constant _ROLE_144 = 1 << 144;\n uint256 internal constant _ROLE_145 = 1 << 145;\n uint256 internal constant _ROLE_146 = 1 << 146;\n uint256 internal constant _ROLE_147 = 1 << 147;\n uint256 internal constant _ROLE_148 = 1 << 148;\n uint256 internal constant _ROLE_149 = 1 << 149;\n uint256 internal constant _ROLE_150 = 1 << 150;\n uint256 internal constant _ROLE_151 = 1 << 151;\n uint256 internal constant _ROLE_152 = 1 << 152;\n uint256 internal constant _ROLE_153 = 1 << 153;\n uint256 internal constant _ROLE_154 = 1 << 154;\n uint256 internal constant _ROLE_155 = 1 << 155;\n uint256 internal constant _ROLE_156 = 1 << 156;\n uint256 internal constant _ROLE_157 = 1 << 157;\n uint256 internal constant _ROLE_158 = 1 << 158;\n uint256 internal constant _ROLE_159 = 1 << 159;\n uint256 internal constant _ROLE_160 = 1 << 160;\n uint256 internal constant _ROLE_161 = 1 << 161;\n uint256 internal constant _ROLE_162 = 1 << 162;\n uint256 internal constant _ROLE_163 = 1 << 163;\n uint256 internal constant _ROLE_164 = 1 << 164;\n uint256 internal constant _ROLE_165 = 1 << 165;\n uint256 internal constant _ROLE_166 = 1 << 166;\n uint256 internal constant _ROLE_167 = 1 << 167;\n uint256 internal constant _ROLE_168 = 1 << 168;\n uint256 internal constant _ROLE_169 = 1 << 169;\n uint256 internal constant _ROLE_170 = 1 << 170;\n uint256 internal constant _ROLE_171 = 1 << 171;\n uint256 internal constant _ROLE_172 = 1 << 172;\n uint256 internal constant _ROLE_173 = 1 << 173;\n uint256 internal constant _ROLE_174 = 1 << 174;\n uint256 internal constant _ROLE_175 = 1 << 175;\n uint256 internal constant _ROLE_176 = 1 << 176;\n uint256 internal constant _ROLE_177 = 1 << 177;\n uint256 internal constant _ROLE_178 = 1 << 178;\n uint256 internal constant _ROLE_179 = 1 << 179;\n uint256 internal constant _ROLE_180 = 1 << 180;\n uint256 internal constant _ROLE_181 = 1 << 181;\n uint256 internal constant _ROLE_182 = 1 << 182;\n uint256 internal constant _ROLE_183 = 1 << 183;\n uint256 internal constant _ROLE_184 = 1 << 184;\n uint256 internal constant _ROLE_185 = 1 << 185;\n uint256 internal constant _ROLE_186 = 1 << 186;\n uint256 internal constant _ROLE_187 = 1 << 187;\n uint256 internal constant _ROLE_188 = 1 << 188;\n uint256 internal constant _ROLE_189 = 1 << 189;\n uint256 internal constant _ROLE_190 = 1 << 190;\n uint256 internal constant _ROLE_191 = 1 << 191;\n uint256 internal constant _ROLE_192 = 1 << 192;\n uint256 internal constant _ROLE_193 = 1 << 193;\n uint256 internal constant _ROLE_194 = 1 << 194;\n uint256 internal constant _ROLE_195 = 1 << 195;\n uint256 internal constant _ROLE_196 = 1 << 196;\n uint256 internal constant _ROLE_197 = 1 << 197;\n uint256 internal constant _ROLE_198 = 1 << 198;\n uint256 internal constant _ROLE_199 = 1 << 199;\n uint256 internal constant _ROLE_200 = 1 << 200;\n uint256 internal constant _ROLE_201 = 1 << 201;\n uint256 internal constant _ROLE_202 = 1 << 202;\n uint256 internal constant _ROLE_203 = 1 << 203;\n uint256 internal constant _ROLE_204 = 1 << 204;\n uint256 internal constant _ROLE_205 = 1 << 205;\n uint256 internal constant _ROLE_206 = 1 << 206;\n uint256 internal constant _ROLE_207 = 1 << 207;\n uint256 internal constant _ROLE_208 = 1 << 208;\n uint256 internal constant _ROLE_209 = 1 << 209;\n uint256 internal constant _ROLE_210 = 1 << 210;\n uint256 internal constant _ROLE_211 = 1 << 211;\n uint256 internal constant _ROLE_212 = 1 << 212;\n uint256 internal constant _ROLE_213 = 1 << 213;\n uint256 internal constant _ROLE_214 = 1 << 214;\n uint256 internal constant _ROLE_215 = 1 << 215;\n uint256 internal constant _ROLE_216 = 1 << 216;\n uint256 internal constant _ROLE_217 = 1 << 217;\n uint256 internal constant _ROLE_218 = 1 << 218;\n uint256 internal constant _ROLE_219 = 1 << 219;\n uint256 internal constant _ROLE_220 = 1 << 220;\n uint256 internal constant _ROLE_221 = 1 << 221;\n uint256 internal constant _ROLE_222 = 1 << 222;\n uint256 internal constant _ROLE_223 = 1 << 223;\n uint256 internal constant _ROLE_224 = 1 << 224;\n uint256 internal constant _ROLE_225 = 1 << 225;\n uint256 internal constant _ROLE_226 = 1 << 226;\n uint256 internal constant _ROLE_227 = 1 << 227;\n uint256 internal constant _ROLE_228 = 1 << 228;\n uint256 internal constant _ROLE_229 = 1 << 229;\n uint256 internal constant _ROLE_230 = 1 << 230;\n uint256 internal constant _ROLE_231 = 1 << 231;\n uint256 internal constant _ROLE_232 = 1 << 232;\n uint256 internal constant _ROLE_233 = 1 << 233;\n uint256 internal constant _ROLE_234 = 1 << 234;\n uint256 internal constant _ROLE_235 = 1 << 235;\n uint256 internal constant _ROLE_236 = 1 << 236;\n uint256 internal constant _ROLE_237 = 1 << 237;\n uint256 internal constant _ROLE_238 = 1 << 238;\n uint256 internal constant _ROLE_239 = 1 << 239;\n uint256 internal constant _ROLE_240 = 1 << 240;\n uint256 internal constant _ROLE_241 = 1 << 241;\n uint256 internal constant _ROLE_242 = 1 << 242;\n uint256 internal constant _ROLE_243 = 1 << 243;\n uint256 internal constant _ROLE_244 = 1 << 244;\n uint256 internal constant _ROLE_245 = 1 << 245;\n uint256 internal constant _ROLE_246 = 1 << 246;\n uint256 internal constant _ROLE_247 = 1 << 247;\n uint256 internal constant _ROLE_248 = 1 << 248;\n uint256 internal constant _ROLE_249 = 1 << 249;\n uint256 internal constant _ROLE_250 = 1 << 250;\n uint256 internal constant _ROLE_251 = 1 << 251;\n uint256 internal constant _ROLE_252 = 1 << 252;\n uint256 internal constant _ROLE_253 = 1 << 253;\n uint256 internal constant _ROLE_254 = 1 << 254;\n uint256 internal constant _ROLE_255 = 1 << 255;\n}\n"},"contracts/interfaces/IQuestFactory.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuestFactory {\n // Errors\n error AddressAlreadyMinted();\n error AddressNotSigned();\n error AddressZeroNotAllowed();\n error AuthOwnerDiscountToken();\n error Deprecated();\n error Erc20QuestAddressNotSet();\n error InvalidMintFee();\n error MsgValueLessThanQuestNFTFee();\n error OverMaxAllowedToMint();\n error QuestFeeTooHigh();\n error QuestIdUsed();\n error QuestNotQueued();\n error QuestNotStarted();\n error QuestEnded();\n error QuestTypeNotSupported();\n error Reentrancy();\n error ReferralFeeTooHigh();\n error ZeroAddressNotAllowed();\n error QuestAddressMismatch();\n error ClaimFailed();\n error txOriginMismatch();\n\n // Structs\n\n // This struct is used in a mapping - only add new fields to the end\n struct NftQuestFees {\n uint256 fee;\n bool exists;\n }\n\n // This struct is used in a mapping - only add new fields to the end\n struct Quest {\n mapping(address => bool) addressMinted;\n address questAddress;\n uint256 totalParticipants;\n uint256 numberMinted;\n string questType;\n uint40 durationTotal;\n address questCreator;\n address mintFeeRecipient;\n string actionType;\n string questName;\n uint32 txHashChainId;\n }\n\n struct QuestData {\n address questAddress;\n address rewardToken;\n bool queued;\n uint16 questFee;\n uint256 startTime;\n uint256 endTime;\n uint256 totalParticipants;\n uint256 numberMinted;\n uint256 redeemedTokens;\n uint256 rewardAmountOrTokenId;\n bool hasWithdrawn;\n }\n\n struct QuestJsonData {\n string actionType;\n string questName;\n uint32 txHashChainId;\n }\n\n struct ClaimData {\n string questId;\n bytes32 hashBytes;\n bytes signature;\n address ref;\n address claimer;\n string extraData;\n }\n\n struct ERC20QuestData {\n uint32 txHashChainId;\n address rewardTokenAddress;\n uint256 endTime;\n uint256 startTime;\n uint256 totalParticipants;\n uint256 rewardAmount;\n string questId;\n string actionType;\n string questName;\n string questType;\n string projectName;\n uint256 referralRewardFee;\n }\n\n struct ERC1155QuestData {\n uint32 txHashChainId;\n address rewardTokenAddress;\n uint256 endTime;\n uint256 startTime;\n uint256 totalParticipants;\n uint256 tokenId;\n string questId;\n string actionType;\n string questName;\n string projectName;\n }\n\n // Events\n event ExtraMintFeeReturned(address indexed recipient, uint256 amount);\n event MintFeeSet(uint256 mintFee);\n event NftQuestFeeListSet(address[] addresses, uint256[] fees);\n event NftQuestFeeSet(uint256 nftQuestFee);\n\n event QuestCancelled(address indexed questAddress, string questId, uint256 endsAt);\n\n event QuestClaimedData(\n address indexed recipient,\n address indexed questAddress,\n string extraData\n );\n event Quest1155Claimed(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 tokenId\n );\n event QuestClaimed(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWei\n );\n event QuestClaimedReferred(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWeiOrTokenId,\n address referrer,\n uint16 referralFee,\n uint256 mintFeeEthWei\n );\n event QuestClaimReferred(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWeiOrTokenId,\n address referrer,\n uint16 referralFee,\n uint256 mintFeeEthWei,\n uint256 tokenReferralFee,\n uint256 referralClaimAmount\n );\n event MintFeePaid(\n string questId,\n address rabbitHoleAddress,\n uint256 rabbitHoleAmountWei,\n address questCreatorAddress,\n uint256 questCreatorAmountWei,\n address referrerAddress,\n uint256 referrerAmountWei\n );\n event QuestCreated(\n address indexed creator,\n address indexed contractAddress,\n string projectName,\n string questName,\n string questId,\n string questType,\n string actionType,\n uint32 chainId,\n address rewardToken,\n uint256 endTime,\n uint256 startTime,\n uint256 totalParticipants,\n uint256 rewardAmountOrTokenId\n );\n event ReferralFeeSet(uint16 percent);\n\n // Read Functions\n function getAddressMinted(string memory questId_, address address_) external view returns (bool);\n function getNumberMinted(string memory questId_) external view returns (uint256);\n function questData(string memory questId_) external view returns (QuestData memory);\n function questInfo(string memory questId_) external view returns (address, uint256, uint256);\n function recoverSigner(bytes32 hash_, bytes memory signature_) external view returns (address);\n function mintFee() external view returns (uint256);\n function questJsonData(string memory questId_) external view returns (QuestJsonData memory);\n function buildJsonString(\n bytes32 txHash,\n uint32 txHashChainId,\n string memory actionType,\n string memory questName\n ) external pure returns (string memory);\n\n // Create\n function create1155QuestAndQueue(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory\n ) external payable returns (address);\n\n function claimOptimized(bytes calldata signature_, bytes calldata data_) external payable;\n\n // Set\n function setClaimSignerAddress(address claimSignerAddress_) external;\n function setErc1155QuestAddress(address erc1155QuestAddress_) external;\n function setErc20QuestAddress(address erc20QuestAddress_) external;\n function setMintFee(uint256 mintFee_) external;\n function setDefaultMintFeeRecipient(address mintFeeRecipient_) external;\n function setProtocolFeeRecipient(address protocolFeeRecipient_) external;\n function setQuestFee(uint16 questFee_) external;\n\n // Callbacks\n function withdrawCallback(string calldata questId_, address protocolFeeRecipient_, uint protocolPayout_, address mintFeeRecipient_, uint mintPayout) external;\n}"},"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Strings.sol\";\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n enum RecoverError {\n NoError,\n InvalidSignature,\n InvalidSignatureLength,\n InvalidSignatureS,\n InvalidSignatureV // Deprecated in v4.8\n }\n\n function _throwError(RecoverError error) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert(\"ECDSA: invalid signature\");\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert(\"ECDSA: invalid signature length\");\n } else if (error == RecoverError.InvalidSignatureS) {\n revert(\"ECDSA: invalid signature 's' value\");\n }\n }\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature` or error string. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n *\n * Documentation for signature generation:\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\n *\n * _Available since v4.3._\n */\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\n if (signature.length == 65) {\n bytes32 r;\n bytes32 s;\n uint8 v;\n // ecrecover takes the signature parameters, and the only way to get them\n // currently is to use assembly.\n /// @solidity memory-safe-assembly\n assembly {\n r := mload(add(signature, 0x20))\n s := mload(add(signature, 0x40))\n v := byte(0, mload(add(signature, 0x60)))\n }\n return tryRecover(hash, v, r, s);\n } else {\n return (address(0), RecoverError.InvalidSignatureLength);\n }\n }\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature`. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, signature);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\n *\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\n *\n * _Available since v4.3._\n */\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n *\n * _Available since v4.2._\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\n * `r` and `s` signature fields separately.\n *\n * _Available since v4.3._\n */\n function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n //\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n // these malleable signatures as well.\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n return (address(0), RecoverError.InvalidSignatureS);\n }\n\n // If the signature is valid (and not malleable), return the signer address\n address signer = ecrecover(hash, v, r, s);\n if (signer == address(0)) {\n return (address(0), RecoverError.InvalidSignature);\n }\n\n return (signer, RecoverError.NoError);\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n * produces hash corresponding to the one signed with the\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n * JSON-RPC method as part of EIP-191.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {\n // 32 is the length in bytes of hash,\n // enforced by the type signature above\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\")\n mstore(0x1c, hash)\n message := keccak256(0x00, 0x3c)\n }\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from `s`. This\n * produces hash corresponding to the one signed with the\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n * JSON-RPC method as part of EIP-191.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n\", Strings.toString(s.length), s));\n }\n\n /**\n * @dev Returns an Ethereum Signed Typed Data, created from a\n * `domainSeparator` and a `structHash`. This produces hash corresponding\n * to the one signed with the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\n * JSON-RPC method as part of EIP-712.\n *\n * See {recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {\n /// @solidity memory-safe-assembly\n assembly {\n let ptr := mload(0x40)\n mstore(ptr, \"\\x19\\x01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n data := keccak256(ptr, 0x42)\n }\n }\n\n /**\n * @dev Returns an Ethereum Signed Data with intended validator, created from a\n * `validator` and `data` according to the version 0 of EIP-191.\n *\n * See {recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(\"\\x19\\x00\", validator, data));\n }\n}\n"},"lib/solady/src/utils/LibClone.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Minimal proxy library.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol)\n/// @author Minimal proxy by 0age (https://github.com/0age)\n/// @author Clones with immutable args by wighawag, zefram.eth, Saw-mon & Natalie\n/// (https://github.com/Saw-mon-and-Natalie/clones-with-immutable-args)\n/// @author Minimal ERC1967 proxy by jtriley-eth (https://github.com/jtriley-eth/minimum-viable-proxy)\n///\n/// @dev Minimal proxy:\n/// Although the sw0nt pattern saves 5 gas over the erc-1167 pattern during runtime,\n/// it is not supported out-of-the-box on Etherscan. Hence, we choose to use the 0age pattern,\n/// which saves 4 gas over the erc-1167 pattern during runtime, and has the smallest bytecode.\n///\n/// @dev Minimal proxy (PUSH0 variant):\n/// This is a new minimal proxy that uses the PUSH0 opcode introduced during Shanghai.\n/// It is optimized first for minimal runtime gas, then for minimal bytecode.\n/// The PUSH0 clone functions are intentionally postfixed with a jarring \"_PUSH0\" as\n/// many EVM chains may not support the PUSH0 opcode in the early months after Shanghai.\n/// Please use with caution.\n///\n/// @dev Clones with immutable args (CWIA):\n/// The implementation of CWIA here implements a `receive()` method that emits the\n/// `ReceiveETH(uint256)` event. This skips the `DELEGATECALL` when there is no calldata,\n/// enabling us to accept hard gas-capped `sends` & `transfers` for maximum backwards\n/// composability. The minimal proxy implementation does not offer this feature.\n///\n/// @dev Minimal ERC1967 proxy:\n/// An minimal ERC1967 proxy, intended to be upgraded with UUPS.\n/// This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\nlibrary LibClone {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Unable to deploy the clone.\n error DeploymentFailed();\n\n /// @dev The salt must start with either the zero address or `by`.\n error SaltDoesNotStartWith();\n\n /// @dev The ETH transfer has failed.\n error ETHTransferFailed();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MINIMAL PROXY OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Deploys a clone of `implementation`.\n function clone(address implementation) internal returns (address instance) {\n instance = clone(0, implementation);\n }\n\n /// @dev Deploys a clone of `implementation`.\n function clone(uint256 value, address implementation) internal returns (address instance) {\n /// @solidity memory-safe-assembly\n assembly {\n /**\n * --------------------------------------------------------------------------+\n * CREATION (9 bytes) |\n * --------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * --------------------------------------------------------------------------|\n * 60 runSize | PUSH1 runSize | r | |\n * 3d | RETURNDATASIZE | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 3d | RETURNDATASIZE | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * --------------------------------------------------------------------------|\n * RUNTIME (44 bytes) |\n * --------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * --------------------------------------------------------------------------|\n * |\n * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | 0 | |\n * 3d | RETURNDATASIZE | 0 0 | |\n * 3d | RETURNDATASIZE | 0 0 0 | |\n * 3d | RETURNDATASIZE | 0 0 0 0 | |\n * |\n * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds 0 0 0 0 | |\n * 3d | RETURNDATASIZE | 0 cds 0 0 0 0 | |\n * 3d | RETURNDATASIZE | 0 0 cds 0 0 0 0 | |\n * 37 | CALLDATACOPY | 0 0 0 0 | [0..cds): calldata |\n * |\n * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds 0 0 0 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | 0 cds 0 0 0 0 | [0..cds): calldata |\n * 73 addr | PUSH20 addr | addr 0 cds 0 0 0 0 | [0..cds): calldata |\n * 5a | GAS | gas addr 0 cds 0 0 0 0 | [0..cds): calldata |\n * f4 | DELEGATECALL | success 0 0 | [0..cds): calldata |\n * |\n * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds success 0 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | rds rds success 0 0 | [0..cds): calldata |\n * 93 | SWAP4 | 0 rds success 0 rds | [0..cds): calldata |\n * 80 | DUP1 | 0 0 rds success 0 rds | [0..cds): calldata |\n * 3e | RETURNDATACOPY | success 0 rds | [0..rds): returndata |\n * |\n * 60 0x2a | PUSH1 0x2a | 0x2a success 0 rds | [0..rds): returndata |\n * 57 | JUMPI | 0 rds | [0..rds): returndata |\n * |\n * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * fd | REVERT | | [0..rds): returndata |\n * |\n * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | 0 rds | [0..rds): returndata |\n * f3 | RETURN | | [0..rds): returndata |\n * --------------------------------------------------------------------------+\n */\n\n mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n mstore(0x14, implementation)\n mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n instance := create(value, 0x0c, 0x35)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n function cloneDeterministic(address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = cloneDeterministic(0, implementation, salt);\n }\n\n /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n function cloneDeterministic(uint256 value, address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n mstore(0x14, implementation)\n mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n instance := create2(value, 0x0c, 0x35, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the initialization code hash of the clone of `implementation`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHash(address implementation) internal pure returns (bytes32 hash) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n mstore(0x14, implementation)\n mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n hash := keccak256(0x0c, 0x35)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the address of the deterministic clone of `implementation`,\n /// with `salt` by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddress(address implementation, bytes32 salt, address deployer)\n internal\n pure\n returns (address predicted)\n {\n bytes32 hash = initCodeHash(implementation);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MINIMAL PROXY OPERATIONS (PUSH0 VARIANT) */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Deploys a PUSH0 clone of `implementation`.\n function clone_PUSH0(address implementation) internal returns (address instance) {\n instance = clone_PUSH0(0, implementation);\n }\n\n /// @dev Deploys a PUSH0 clone of `implementation`.\n function clone_PUSH0(uint256 value, address implementation)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n /**\n * --------------------------------------------------------------------------+\n * CREATION (9 bytes) |\n * --------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * --------------------------------------------------------------------------|\n * 60 runSize | PUSH1 runSize | r | |\n * 5f | PUSH0 | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 5f | PUSH0 | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * --------------------------------------------------------------------------|\n * RUNTIME (45 bytes) |\n * --------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * --------------------------------------------------------------------------|\n * |\n * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n * 5f | PUSH0 | 0 | |\n * 5f | PUSH0 | 0 0 | |\n * |\n * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds 0 0 | |\n * 5f | PUSH0 | 0 cds 0 0 | |\n * 5f | PUSH0 | 0 0 cds 0 0 | |\n * 37 | CALLDATACOPY | 0 0 | [0..cds): calldata |\n * |\n * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds 0 0 | [0..cds): calldata |\n * 5f | PUSH0 | 0 cds 0 0 | [0..cds): calldata |\n * 73 addr | PUSH20 addr | addr 0 cds 0 0 | [0..cds): calldata |\n * 5a | GAS | gas addr 0 cds 0 0 | [0..cds): calldata |\n * f4 | DELEGATECALL | success | [0..cds): calldata |\n * |\n * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds success | [0..cds): calldata |\n * 5f | PUSH0 | 0 rds success | [0..cds): calldata |\n * 5f | PUSH0 | 0 0 rds success | [0..cds): calldata |\n * 3e | RETURNDATACOPY | success | [0..rds): returndata |\n * |\n * 60 0x29 | PUSH1 0x29 | 0x29 success | [0..rds): returndata |\n * 57 | JUMPI | | [0..rds): returndata |\n * |\n * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds | [0..rds): returndata |\n * 5f | PUSH0 | 0 rds | [0..rds): returndata |\n * fd | REVERT | | [0..rds): returndata |\n * |\n * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | | [0..rds): returndata |\n * 3d | RETURNDATASIZE | rds | [0..rds): returndata |\n * 5f | PUSH0 | 0 rds | [0..rds): returndata |\n * f3 | RETURN | | [0..rds): returndata |\n * --------------------------------------------------------------------------+\n */\n\n mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n mstore(0x14, implementation) // 20\n mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n instance := create(value, 0x0e, 0x36)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n function cloneDeterministic_PUSH0(address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = cloneDeterministic_PUSH0(0, implementation, salt);\n }\n\n /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n function cloneDeterministic_PUSH0(uint256 value, address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n mstore(0x14, implementation) // 20\n mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n instance := create2(value, 0x0e, 0x36, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the initialization code hash of the PUSH0 clone of `implementation`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHash_PUSH0(address implementation) internal pure returns (bytes32 hash) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n mstore(0x14, implementation) // 20\n mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n hash := keccak256(0x0e, 0x36)\n mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the address of the deterministic PUSH0 clone of `implementation`,\n /// with `salt` by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddress_PUSH0(\n address implementation,\n bytes32 salt,\n address deployer\n ) internal pure returns (address predicted) {\n bytes32 hash = initCodeHash_PUSH0(implementation);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CLONES WITH IMMUTABLE ARGS OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: This implementation of CWIA differs from the original implementation.\n // If the calldata is empty, it will emit a `ReceiveETH(uint256)` event and skip the `DELEGATECALL`.\n\n /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `data`.\n function clone(address implementation, bytes memory data) internal returns (address instance) {\n instance = clone(0, implementation, data);\n }\n\n /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `data`.\n function clone(uint256 value, address implementation, bytes memory data)\n internal\n returns (address instance)\n {\n assembly {\n // Compute the boundaries of the data and cache the memory slots around it.\n let mBefore3 := mload(sub(data, 0x60))\n let mBefore2 := mload(sub(data, 0x40))\n let mBefore1 := mload(sub(data, 0x20))\n let dataLength := mload(data)\n let dataEnd := add(add(data, 0x20), dataLength)\n let mAfter1 := mload(dataEnd)\n\n // +2 bytes for telling how much data there is appended to the call.\n let extraLength := add(dataLength, 2)\n // The `creationSize` is `extraLength + 108`\n // The `runSize` is `creationSize - 10`.\n\n /**\n * ---------------------------------------------------------------------------------------------------+\n * CREATION (10 bytes) |\n * ---------------------------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------------------------|\n * 61 runSize | PUSH2 runSize | r | |\n * 3d | RETURNDATASIZE | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 3d | RETURNDATASIZE | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * ---------------------------------------------------------------------------------------------------|\n * RUNTIME (98 bytes + extraLength) |\n * ---------------------------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------------------------|\n * |\n * ::: if no calldata, emit event & return w/o `DELEGATECALL` ::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds | |\n * 60 0x2c | PUSH1 0x2c | 0x2c cds | |\n * 57 | JUMPI | | |\n * 34 | CALLVALUE | cv | |\n * 3d | RETURNDATASIZE | 0 cv | |\n * 52 | MSTORE | | [0..0x20): callvalue |\n * 7f sig | PUSH32 0x9e.. | sig | [0..0x20): callvalue |\n * 59 | MSIZE | 0x20 sig | [0..0x20): callvalue |\n * 3d | RETURNDATASIZE | 0 0x20 sig | [0..0x20): callvalue |\n * a1 | LOG1 | | [0..0x20): callvalue |\n * 00 | STOP | | [0..0x20): callvalue |\n * 5b | JUMPDEST | | |\n * |\n * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds | |\n * 3d | RETURNDATASIZE | 0 cds | |\n * 3d | RETURNDATASIZE | 0 0 cds | |\n * 37 | CALLDATACOPY | | [0..cds): calldata |\n * |\n * ::: keep some values in stack :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | 0 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | 0 0 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | 0 0 0 0 | [0..cds): calldata |\n * 61 extra | PUSH2 extra | e 0 0 0 0 | [0..cds): calldata |\n * |\n * ::: copy extra data to memory :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 80 | DUP1 | e e 0 0 0 0 | [0..cds): calldata |\n * 60 0x62 | PUSH1 0x62 | 0x62 e e 0 0 0 0 | [0..cds): calldata |\n * 36 | CALLDATASIZE | cds 0x62 e e 0 0 0 0 | [0..cds): calldata |\n * 39 | CODECOPY | e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * |\n * ::: delegate call to the implementation contract ::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 01 | ADD | cds+e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 3d | RETURNDATASIZE | 0 cds+e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 73 addr | PUSH20 addr | addr 0 cds+e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 5a | GAS | gas addr 0 cds+e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * f4 | DELEGATECALL | success 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * |\n * ::: copy return data to memory ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds success 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 3d | RETURNDATASIZE | rds rds success 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 93 | SWAP4 | 0 rds success 0 rds | [0..cds): calldata, [cds..cds+e): extraData |\n * 80 | DUP1 | 0 0 rds success 0 rds | [0..cds): calldata, [cds..cds+e): extraData |\n * 3e | RETURNDATACOPY | success 0 rds | [0..rds): returndata |\n * |\n * 60 0x60 | PUSH1 0x60 | 0x60 success 0 rds | [0..rds): returndata |\n * 57 | JUMPI | 0 rds | [0..rds): returndata |\n * |\n * ::: revert ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * fd | REVERT | | [0..rds): returndata |\n * |\n * ::: return ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | 0 rds | [0..rds): returndata |\n * f3 | RETURN | | [0..rds): returndata |\n * ---------------------------------------------------------------------------------------------------+\n */\n\n mstore(data, 0x5af43d3d93803e606057fd5bf3) // Write the bytecode before the data.\n mstore(sub(data, 0x0d), implementation) // Write the address of the implementation.\n // Write the rest of the bytecode.\n mstore(\n sub(data, 0x21),\n or(shl(0x48, extraLength), 0x593da1005b363d3d373d3d3d3d610000806062363936013d73)\n )\n // `keccak256(\"ReceiveETH(uint256)\")`\n mstore(\n sub(data, 0x3a), 0x9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff\n )\n mstore(\n // Do a out-of-gas revert if `extraLength` is too big. 0xffff - 0x62 + 0x01 = 0xff9e.\n // The actual EVM limit may be smaller and may change over time.\n sub(data, add(0x59, lt(extraLength, 0xff9e))),\n or(shl(0x78, add(extraLength, 0x62)), 0xfd6100003d81600a3d39f336602c57343d527f)\n )\n mstore(dataEnd, shl(0xf0, extraLength))\n\n instance := create(value, sub(data, 0x4c), add(extraLength, 0x6c))\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n\n // Restore the overwritten memory surrounding `data`.\n mstore(dataEnd, mAfter1)\n mstore(data, dataLength)\n mstore(sub(data, 0x20), mBefore1)\n mstore(sub(data, 0x40), mBefore2)\n mstore(sub(data, 0x60), mBefore3)\n }\n }\n\n /// @dev Deploys a deterministic clone of `implementation`\n /// with immutable arguments encoded in `data` and `salt`.\n function cloneDeterministic(address implementation, bytes memory data, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = cloneDeterministic(0, implementation, data, salt);\n }\n\n /// @dev Deploys a deterministic clone of `implementation`\n /// with immutable arguments encoded in `data` and `salt`.\n function cloneDeterministic(\n uint256 value,\n address implementation,\n bytes memory data,\n bytes32 salt\n ) internal returns (address instance) {\n assembly {\n // Compute the boundaries of the data and cache the memory slots around it.\n let mBefore3 := mload(sub(data, 0x60))\n let mBefore2 := mload(sub(data, 0x40))\n let mBefore1 := mload(sub(data, 0x20))\n let dataLength := mload(data)\n let dataEnd := add(add(data, 0x20), dataLength)\n let mAfter1 := mload(dataEnd)\n\n // +2 bytes for telling how much data there is appended to the call.\n let extraLength := add(dataLength, 2)\n\n mstore(data, 0x5af43d3d93803e606057fd5bf3) // Write the bytecode before the data.\n mstore(sub(data, 0x0d), implementation) // Write the address of the implementation.\n // Write the rest of the bytecode.\n mstore(\n sub(data, 0x21),\n or(shl(0x48, extraLength), 0x593da1005b363d3d373d3d3d3d610000806062363936013d73)\n )\n // `keccak256(\"ReceiveETH(uint256)\")`\n mstore(\n sub(data, 0x3a), 0x9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff\n )\n mstore(\n // Do a out-of-gas revert if `extraLength` is too big. 0xffff - 0x62 + 0x01 = 0xff9e.\n // The actual EVM limit may be smaller and may change over time.\n sub(data, add(0x59, lt(extraLength, 0xff9e))),\n or(shl(0x78, add(extraLength, 0x62)), 0xfd6100003d81600a3d39f336602c57343d527f)\n )\n mstore(dataEnd, shl(0xf0, extraLength))\n\n instance := create2(value, sub(data, 0x4c), add(extraLength, 0x6c), salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n\n // Restore the overwritten memory surrounding `data`.\n mstore(dataEnd, mAfter1)\n mstore(data, dataLength)\n mstore(sub(data, 0x20), mBefore1)\n mstore(sub(data, 0x40), mBefore2)\n mstore(sub(data, 0x60), mBefore3)\n }\n }\n\n /// @dev Returns the initialization code hash of the clone of `implementation`\n /// using immutable arguments encoded in `data`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHash(address implementation, bytes memory data)\n internal\n pure\n returns (bytes32 hash)\n {\n assembly {\n // Compute the boundaries of the data and cache the memory slots around it.\n let mBefore3 := mload(sub(data, 0x60))\n let mBefore2 := mload(sub(data, 0x40))\n let mBefore1 := mload(sub(data, 0x20))\n let dataLength := mload(data)\n let dataEnd := add(add(data, 0x20), dataLength)\n let mAfter1 := mload(dataEnd)\n\n // Do a out-of-gas revert if `dataLength` is too big. 0xffff - 0x02 - 0x62 = 0xff9b.\n // The actual EVM limit may be smaller and may change over time.\n returndatacopy(returndatasize(), returndatasize(), gt(dataLength, 0xff9b))\n\n // +2 bytes for telling how much data there is appended to the call.\n let extraLength := add(dataLength, 2)\n\n mstore(data, 0x5af43d3d93803e606057fd5bf3) // Write the bytecode before the data.\n mstore(sub(data, 0x0d), implementation) // Write the address of the implementation.\n // Write the rest of the bytecode.\n mstore(\n sub(data, 0x21),\n or(shl(0x48, extraLength), 0x593da1005b363d3d373d3d3d3d610000806062363936013d73)\n )\n // `keccak256(\"ReceiveETH(uint256)\")`\n mstore(\n sub(data, 0x3a), 0x9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff\n )\n mstore(\n sub(data, 0x5a),\n or(shl(0x78, add(extraLength, 0x62)), 0x6100003d81600a3d39f336602c57343d527f)\n )\n mstore(dataEnd, shl(0xf0, extraLength))\n\n hash := keccak256(sub(data, 0x4c), add(extraLength, 0x6c))\n\n // Restore the overwritten memory surrounding `data`.\n mstore(dataEnd, mAfter1)\n mstore(data, dataLength)\n mstore(sub(data, 0x20), mBefore1)\n mstore(sub(data, 0x40), mBefore2)\n mstore(sub(data, 0x60), mBefore3)\n }\n }\n\n /// @dev Returns the address of the deterministic clone of\n /// `implementation` using immutable arguments encoded in `data`, with `salt`, by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddress(\n address implementation,\n bytes memory data,\n bytes32 salt,\n address deployer\n ) internal pure returns (address predicted) {\n bytes32 hash = initCodeHash(implementation, data);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MINIMAL ERC1967 PROXY OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: The ERC1967 proxy here is intended to be upgraded with UUPS.\n // This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n\n /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n function deployERC1967(address implementation) internal returns (address instance) {\n instance = deployERC1967(0, implementation);\n }\n\n /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n function deployERC1967(uint256 value, address implementation)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n /**\n * ---------------------------------------------------------------------------------+\n * CREATION (34 bytes) |\n * ---------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------|\n * 60 runSize | PUSH1 runSize | r | |\n * 3d | RETURNDATASIZE | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 3d | RETURNDATASIZE | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * 73 impl | PUSH20 impl | impl 0 r | [0..runSize): runtime code |\n * 60 slotPos | PUSH1 slotPos | slotPos impl 0 r | [0..runSize): runtime code |\n * 51 | MLOAD | slot impl 0 r | [0..runSize): runtime code |\n * 55 | SSTORE | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * ---------------------------------------------------------------------------------|\n * RUNTIME (62 bytes) |\n * ---------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------|\n * |\n * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds | |\n * 3d | RETURNDATASIZE | 0 cds | |\n * 3d | RETURNDATASIZE | 0 0 cds | |\n * 37 | CALLDATACOPY | | [0..calldatasize): calldata |\n * |\n * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | 0 | |\n * 3d | RETURNDATASIZE | 0 0 | |\n * 36 | CALLDATASIZE | cds 0 0 | [0..calldatasize): calldata |\n * 3d | RETURNDATASIZE | 0 cds 0 0 | [0..calldatasize): calldata |\n * 7f slot | PUSH32 slot | s 0 cds 0 0 | [0..calldatasize): calldata |\n * 54 | SLOAD | i 0 cds 0 0 | [0..calldatasize): calldata |\n * 5a | GAS | g i 0 cds 0 0 | [0..calldatasize): calldata |\n * f4 | DELEGATECALL | succ | [0..calldatasize): calldata |\n * |\n * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds succ | [0..calldatasize): calldata |\n * 60 0x00 | PUSH1 0x00 | 0 rds succ | [0..calldatasize): calldata |\n * 80 | DUP1 | 0 0 rds succ | [0..calldatasize): calldata |\n * 3e | RETURNDATACOPY | succ | [0..returndatasize): returndata |\n * |\n * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n * 60 0x38 | PUSH1 0x38 | dest succ | [0..returndatasize): returndata |\n * 57 | JUMPI | | [0..returndatasize): returndata |\n * |\n * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds | [0..returndatasize): returndata |\n * 60 0x00 | PUSH1 0x00 | 0 rds | [0..returndatasize): returndata |\n * fd | REVERT | | [0..returndatasize): returndata |\n * |\n * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | | [0..returndatasize): returndata |\n * 3d | RETURNDATASIZE | rds | [0..returndatasize): returndata |\n * 60 0x00 | PUSH1 0x00 | 0 rds | [0..returndatasize): returndata |\n * f3 | RETURN | | [0..returndatasize): returndata |\n * ---------------------------------------------------------------------------------+\n */\n\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n mstore(0x20, 0x6009)\n mstore(0x1e, implementation)\n mstore(0x0a, 0x603d3d8160223d3973)\n instance := create(value, 0x21, 0x5f)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n function deployDeterministicERC1967(address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = deployDeterministicERC1967(0, implementation, salt);\n }\n\n /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n function deployDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n mstore(0x20, 0x6009)\n mstore(0x1e, implementation)\n mstore(0x0a, 0x603d3d8160223d3973)\n instance := create2(value, 0x21, 0x5f, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n /// Note: This method is intended for use in ERC4337 factories,\n /// which are expected to NOT revert if the proxy is already deployed.\n function createDeterministicERC1967(address implementation, bytes32 salt)\n internal\n returns (bool alreadyDeployed, address instance)\n {\n return createDeterministicERC1967(0, implementation, salt);\n }\n\n /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n /// Note: This method is intended for use in ERC4337 factories,\n /// which are expected to NOT revert if the proxy is already deployed.\n function createDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n internal\n returns (bool alreadyDeployed, address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n mstore(0x20, 0x6009)\n mstore(0x1e, implementation)\n mstore(0x0a, 0x603d3d8160223d3973)\n // Compute and store the bytecode hash.\n mstore(add(m, 0x35), keccak256(0x21, 0x5f))\n mstore(m, shl(88, address()))\n mstore8(m, 0xff) // Write the prefix.\n mstore(add(m, 0x15), salt)\n instance := keccak256(m, 0x55)\n for {} 1 {} {\n if iszero(extcodesize(instance)) {\n instance := create2(value, 0x21, 0x5f, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n break\n }\n alreadyDeployed := 1\n if iszero(value) { break }\n if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n break\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Returns the initialization code hash of the clone of `implementation`\n /// using immutable arguments encoded in `data`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHashERC1967(address implementation) internal pure returns (bytes32 hash) {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n mstore(0x20, 0x6009)\n mstore(0x1e, implementation)\n mstore(0x0a, 0x603d3d8160223d3973)\n hash := keccak256(0x21, 0x5f)\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Returns the address of the deterministic clone of\n /// `implementation` using immutable arguments encoded in `data`, with `salt`, by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddressERC1967(\n address implementation,\n bytes32 salt,\n address deployer\n ) internal pure returns (address predicted) {\n bytes32 hash = initCodeHashERC1967(implementation);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* OTHER OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the address when a contract with initialization code hash,\n /// `hash`, is deployed with `salt`, by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddress(bytes32 hash, bytes32 salt, address deployer)\n internal\n pure\n returns (address predicted)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and store the bytecode hash.\n mstore8(0x00, 0xff) // Write the prefix.\n mstore(0x35, hash)\n mstore(0x01, shl(96, deployer))\n mstore(0x15, salt)\n predicted := keccak256(0x00, 0x55)\n mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Requires that `salt` starts with either the zero address or `by`.\n function checkStartsWith(bytes32 salt, address by) internal pure {\n /// @solidity memory-safe-assembly\n assembly {\n // If the salt does not start with the zero address or `by`.\n if iszero(or(iszero(shr(96, salt)), eq(shr(96, shl(96, by)), shr(96, salt)))) {\n mstore(0x00, 0x0c4549ef) // `SaltDoesNotStartWith()`.\n revert(0x1c, 0x04)\n }\n }\n }\n}\n"},"lib/solady/src/utils/LibString.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Library for converting numbers into strings and other string operations.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibString.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibString.sol)\nlibrary LibString {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The `length` of the output is too small to contain all the hex digits.\n error HexLengthInsufficient();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The constant returned when the `search` is not found in the string.\n uint256 internal constant NOT_FOUND = type(uint256).max;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* DECIMAL OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the base 10 decimal representation of `value`.\n function toString(uint256 value) internal pure returns (string memory str) {\n /// @solidity memory-safe-assembly\n assembly {\n // The maximum value of a uint256 contains 78 digits (1 byte per digit), but\n // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.\n // We will need 1 word for the trailing zeros padding, 1 word for the length,\n // and 3 words for a maximum of 78 digits.\n str := add(mload(0x40), 0x80)\n // Update the free memory pointer to allocate.\n mstore(0x40, add(str, 0x20))\n // Zeroize the slot after the string.\n mstore(str, 0)\n\n // Cache the end of the memory to calculate the length later.\n let end := str\n\n let w := not(0) // Tsk.\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n for { let temp := value } 1 {} {\n str := add(str, w) // `sub(str, 1)`.\n // Write the character to the pointer.\n // The ASCII index of the '0' character is 48.\n mstore8(str, add(48, mod(temp, 10)))\n // Keep dividing `temp` until zero.\n temp := div(temp, 10)\n if iszero(temp) { break }\n }\n\n let length := sub(end, str)\n // Move the pointer 32 bytes leftwards to make room for the length.\n str := sub(str, 0x20)\n // Store the length.\n mstore(str, length)\n }\n }\n\n /// @dev Returns the base 10 decimal representation of `value`.\n function toString(int256 value) internal pure returns (string memory str) {\n if (value >= 0) {\n return toString(uint256(value));\n }\n unchecked {\n str = toString(uint256(-value));\n }\n /// @solidity memory-safe-assembly\n assembly {\n // We still have some spare memory space on the left,\n // as we have allocated 3 words (96 bytes) for up to 78 digits.\n let length := mload(str) // Load the string length.\n mstore(str, 0x2d) // Store the '-' character.\n str := sub(str, 1) // Move back the string pointer by a byte.\n mstore(str, add(length, 1)) // Update the string length.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* HEXADECIMAL OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the hexadecimal representation of `value`,\n /// left-padded to an input length of `length` bytes.\n /// The output is prefixed with \"0x\" encoded using 2 hexadecimal digits per byte,\n /// giving a total length of `length * 2 + 2` bytes.\n /// Reverts if `length` is too small for the output to contain all the digits.\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value, length);\n /// @solidity memory-safe-assembly\n assembly {\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(str, 0x3078) // Write the \"0x\" prefix.\n str := sub(str, 2) // Move the pointer.\n mstore(str, strLength) // Write the length.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`,\n /// left-padded to an input length of `length` bytes.\n /// The output is prefixed with \"0x\" encoded using 2 hexadecimal digits per byte,\n /// giving a total length of `length * 2` bytes.\n /// Reverts if `length` is too small for the output to contain all the digits.\n function toHexStringNoPrefix(uint256 value, uint256 length)\n internal\n pure\n returns (string memory str)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // We need 0x20 bytes for the trailing zeros padding, `length * 2` bytes\n // for the digits, 0x02 bytes for the prefix, and 0x20 bytes for the length.\n // We add 0x20 to the total and round down to a multiple of 0x20.\n // (0x20 + 0x20 + 0x02 + 0x20) = 0x62.\n str := add(mload(0x40), and(add(shl(1, length), 0x42), not(0x1f)))\n // Allocate the memory.\n mstore(0x40, add(str, 0x20))\n // Zeroize the slot after the string.\n mstore(str, 0)\n\n // Cache the end to calculate the length later.\n let end := str\n // Store \"0123456789abcdef\" in scratch space.\n mstore(0x0f, 0x30313233343536373839616263646566)\n\n let start := sub(str, add(length, length))\n let w := not(1) // Tsk.\n let temp := value\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n for {} 1 {} {\n str := add(str, w) // `sub(str, 2)`.\n mstore8(add(str, 1), mload(and(temp, 15)))\n mstore8(str, mload(and(shr(4, temp), 15)))\n temp := shr(8, temp)\n if iszero(xor(str, start)) { break }\n }\n\n if temp {\n // Store the function selector of `HexLengthInsufficient()`.\n mstore(0x00, 0x2194895a)\n // Revert with (offset, size).\n revert(0x1c, 0x04)\n }\n\n // Compute the string's length.\n let strLength := sub(end, str)\n // Move the pointer and write the length.\n str := sub(str, 0x20)\n mstore(str, strLength)\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is prefixed with \"0x\" and encoded using 2 hexadecimal digits per byte.\n /// As address are 20 bytes long, the output will left-padded to have\n /// a length of `20 * 2 + 2` bytes.\n function toHexString(uint256 value) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value);\n /// @solidity memory-safe-assembly\n assembly {\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(str, 0x3078) // Write the \"0x\" prefix.\n str := sub(str, 2) // Move the pointer.\n mstore(str, strLength) // Write the length.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is prefixed with \"0x\".\n /// The output excludes leading \"0\" from the `toHexString` output.\n /// `0x00: \"0x0\", 0x01: \"0x1\", 0x12: \"0x12\", 0x123: \"0x123\"`.\n function toMinimalHexString(uint256 value) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value);\n /// @solidity memory-safe-assembly\n assembly {\n let o := eq(byte(0, mload(add(str, 0x20))), 0x30) // Whether leading zero is present.\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(add(str, o), 0x3078) // Write the \"0x\" prefix, accounting for leading zero.\n str := sub(add(str, o), 2) // Move the pointer, accounting for leading zero.\n mstore(str, sub(strLength, o)) // Write the length, accounting for leading zero.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output excludes leading \"0\" from the `toHexStringNoPrefix` output.\n /// `0x00: \"0\", 0x01: \"1\", 0x12: \"12\", 0x123: \"123\"`.\n function toMinimalHexStringNoPrefix(uint256 value) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value);\n /// @solidity memory-safe-assembly\n assembly {\n let o := eq(byte(0, mload(add(str, 0x20))), 0x30) // Whether leading zero is present.\n let strLength := mload(str) // Get the length.\n str := add(str, o) // Move the pointer, accounting for leading zero.\n mstore(str, sub(strLength, o)) // Write the length, accounting for leading zero.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is encoded using 2 hexadecimal digits per byte.\n /// As address are 20 bytes long, the output will left-padded to have\n /// a length of `20 * 2` bytes.\n function toHexStringNoPrefix(uint256 value) internal pure returns (string memory str) {\n /// @solidity memory-safe-assembly\n assembly {\n // We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,\n // 0x02 bytes for the prefix, and 0x40 bytes for the digits.\n // The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x40) is 0xa0.\n str := add(mload(0x40), 0x80)\n // Allocate the memory.\n mstore(0x40, add(str, 0x20))\n // Zeroize the slot after the string.\n mstore(str, 0)\n\n // Cache the end to calculate the length later.\n let end := str\n // Store \"0123456789abcdef\" in scratch space.\n mstore(0x0f, 0x30313233343536373839616263646566)\n\n let w := not(1) // Tsk.\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n for { let temp := value } 1 {} {\n str := add(str, w) // `sub(str, 2)`.\n mstore8(add(str, 1), mload(and(temp, 15)))\n mstore8(str, mload(and(shr(4, temp), 15)))\n temp := shr(8, temp)\n if iszero(temp) { break }\n }\n\n // Compute the string's length.\n let strLength := sub(end, str)\n // Move the pointer and write the length.\n str := sub(str, 0x20)\n mstore(str, strLength)\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is prefixed with \"0x\", encoded using 2 hexadecimal digits per byte,\n /// and the alphabets are capitalized conditionally according to\n /// https://eips.ethereum.org/EIPS/eip-55\n function toHexStringChecksummed(address value) internal pure returns (string memory str) {\n str = toHexString(value);\n /// @solidity memory-safe-assembly\n assembly {\n let mask := shl(6, div(not(0), 255)) // `0b010000000100000000 ...`\n let o := add(str, 0x22)\n let hashed := and(keccak256(o, 40), mul(34, mask)) // `0b10001000 ... `\n let t := shl(240, 136) // `0b10001000 << 240`\n for { let i := 0 } 1 {} {\n mstore(add(i, i), mul(t, byte(i, hashed)))\n i := add(i, 1)\n if eq(i, 20) { break }\n }\n mstore(o, xor(mload(o), shr(1, and(mload(0x00), and(mload(o), mask)))))\n o := add(o, 0x20)\n mstore(o, xor(mload(o), shr(1, and(mload(0x20), and(mload(o), mask)))))\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is prefixed with \"0x\" and encoded using 2 hexadecimal digits per byte.\n function toHexString(address value) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value);\n /// @solidity memory-safe-assembly\n assembly {\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(str, 0x3078) // Write the \"0x\" prefix.\n str := sub(str, 2) // Move the pointer.\n mstore(str, strLength) // Write the length.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is encoded using 2 hexadecimal digits per byte.\n function toHexStringNoPrefix(address value) internal pure returns (string memory str) {\n /// @solidity memory-safe-assembly\n assembly {\n str := mload(0x40)\n\n // Allocate the memory.\n // We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,\n // 0x02 bytes for the prefix, and 0x28 bytes for the digits.\n // The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x28) is 0x80.\n mstore(0x40, add(str, 0x80))\n\n // Store \"0123456789abcdef\" in scratch space.\n mstore(0x0f, 0x30313233343536373839616263646566)\n\n str := add(str, 2)\n mstore(str, 40)\n\n let o := add(str, 0x20)\n mstore(add(o, 40), 0)\n\n value := shl(96, value)\n\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n for { let i := 0 } 1 {} {\n let p := add(o, add(i, i))\n let temp := byte(i, value)\n mstore8(add(p, 1), mload(and(temp, 15)))\n mstore8(p, mload(shr(4, temp)))\n i := add(i, 1)\n if eq(i, 20) { break }\n }\n }\n }\n\n /// @dev Returns the hex encoded string from the raw bytes.\n /// The output is encoded using 2 hexadecimal digits per byte.\n function toHexString(bytes memory raw) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(raw);\n /// @solidity memory-safe-assembly\n assembly {\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(str, 0x3078) // Write the \"0x\" prefix.\n str := sub(str, 2) // Move the pointer.\n mstore(str, strLength) // Write the length.\n }\n }\n\n /// @dev Returns the hex encoded string from the raw bytes.\n /// The output is encoded using 2 hexadecimal digits per byte.\n function toHexStringNoPrefix(bytes memory raw) internal pure returns (string memory str) {\n /// @solidity memory-safe-assembly\n assembly {\n let length := mload(raw)\n str := add(mload(0x40), 2) // Skip 2 bytes for the optional prefix.\n mstore(str, add(length, length)) // Store the length of the output.\n\n // Store \"0123456789abcdef\" in scratch space.\n mstore(0x0f, 0x30313233343536373839616263646566)\n\n let o := add(str, 0x20)\n let end := add(raw, length)\n\n for {} iszero(eq(raw, end)) {} {\n raw := add(raw, 1)\n mstore8(add(o, 1), mload(and(mload(raw), 15)))\n mstore8(o, mload(and(shr(4, mload(raw)), 15)))\n o := add(o, 2)\n }\n mstore(o, 0) // Zeroize the slot after the string.\n mstore(0x40, add(o, 0x20)) // Allocate the memory.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* RUNE STRING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the number of UTF characters in the string.\n function runeCount(string memory s) internal pure returns (uint256 result) {\n /// @solidity memory-safe-assembly\n assembly {\n if mload(s) {\n mstore(0x00, div(not(0), 255))\n mstore(0x20, 0x0202020202020202020202020202020202020202020202020303030304040506)\n let o := add(s, 0x20)\n let end := add(o, mload(s))\n for { result := 1 } 1 { result := add(result, 1) } {\n o := add(o, byte(0, mload(shr(250, mload(o)))))\n if iszero(lt(o, end)) { break }\n }\n }\n }\n }\n\n /// @dev Returns if this string is a 7-bit ASCII string.\n /// (i.e. all characters codes are in [0..127])\n function is7BitASCII(string memory s) internal pure returns (bool result) {\n /// @solidity memory-safe-assembly\n assembly {\n let mask := shl(7, div(not(0), 255))\n result := 1\n let n := mload(s)\n if n {\n let o := add(s, 0x20)\n let end := add(o, n)\n let last := mload(end)\n mstore(end, 0)\n for {} 1 {} {\n if and(mask, mload(o)) {\n result := 0\n break\n }\n o := add(o, 0x20)\n if iszero(lt(o, end)) { break }\n }\n mstore(end, last)\n }\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* BYTE STRING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // For performance and bytecode compactness, all indices of the following operations\n // are byte (ASCII) offsets, not UTF character offsets.\n\n /// @dev Returns `subject` all occurrences of `search` replaced with `replacement`.\n function replace(string memory subject, string memory search, string memory replacement)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let subjectLength := mload(subject)\n let searchLength := mload(search)\n let replacementLength := mload(replacement)\n\n subject := add(subject, 0x20)\n search := add(search, 0x20)\n replacement := add(replacement, 0x20)\n result := add(mload(0x40), 0x20)\n\n let subjectEnd := add(subject, subjectLength)\n if iszero(gt(searchLength, subjectLength)) {\n let subjectSearchEnd := add(sub(subjectEnd, searchLength), 1)\n let h := 0\n if iszero(lt(searchLength, 0x20)) { h := keccak256(search, searchLength) }\n let m := shl(3, sub(0x20, and(searchLength, 0x1f)))\n let s := mload(search)\n for {} 1 {} {\n let t := mload(subject)\n // Whether the first `searchLength % 32` bytes of\n // `subject` and `search` matches.\n if iszero(shr(m, xor(t, s))) {\n if h {\n if iszero(eq(keccak256(subject, searchLength), h)) {\n mstore(result, t)\n result := add(result, 1)\n subject := add(subject, 1)\n if iszero(lt(subject, subjectSearchEnd)) { break }\n continue\n }\n }\n // Copy the `replacement` one word at a time.\n for { let o := 0 } 1 {} {\n mstore(add(result, o), mload(add(replacement, o)))\n o := add(o, 0x20)\n if iszero(lt(o, replacementLength)) { break }\n }\n result := add(result, replacementLength)\n subject := add(subject, searchLength)\n if searchLength {\n if iszero(lt(subject, subjectSearchEnd)) { break }\n continue\n }\n }\n mstore(result, t)\n result := add(result, 1)\n subject := add(subject, 1)\n if iszero(lt(subject, subjectSearchEnd)) { break }\n }\n }\n\n let resultRemainder := result\n result := add(mload(0x40), 0x20)\n let k := add(sub(resultRemainder, result), sub(subjectEnd, subject))\n // Copy the rest of the string one word at a time.\n for {} lt(subject, subjectEnd) {} {\n mstore(resultRemainder, mload(subject))\n resultRemainder := add(resultRemainder, 0x20)\n subject := add(subject, 0x20)\n }\n result := sub(result, 0x20)\n let last := add(add(result, 0x20), k) // Zeroize the slot after the string.\n mstore(last, 0)\n mstore(0x40, add(last, 0x20)) // Allocate the memory.\n mstore(result, k) // Store the length.\n }\n }\n\n /// @dev Returns the byte index of the first location of `search` in `subject`,\n /// searching from left to right, starting from `from`.\n /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.\n function indexOf(string memory subject, string memory search, uint256 from)\n internal\n pure\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for { let subjectLength := mload(subject) } 1 {} {\n if iszero(mload(search)) {\n if iszero(gt(from, subjectLength)) {\n result := from\n break\n }\n result := subjectLength\n break\n }\n let searchLength := mload(search)\n let subjectStart := add(subject, 0x20)\n\n result := not(0) // Initialize to `NOT_FOUND`.\n\n subject := add(subjectStart, from)\n let end := add(sub(add(subjectStart, subjectLength), searchLength), 1)\n\n let m := shl(3, sub(0x20, and(searchLength, 0x1f)))\n let s := mload(add(search, 0x20))\n\n if iszero(and(lt(subject, end), lt(from, subjectLength))) { break }\n\n if iszero(lt(searchLength, 0x20)) {\n for { let h := keccak256(add(search, 0x20), searchLength) } 1 {} {\n if iszero(shr(m, xor(mload(subject), s))) {\n if eq(keccak256(subject, searchLength), h) {\n result := sub(subject, subjectStart)\n break\n }\n }\n subject := add(subject, 1)\n if iszero(lt(subject, end)) { break }\n }\n break\n }\n for {} 1 {} {\n if iszero(shr(m, xor(mload(subject), s))) {\n result := sub(subject, subjectStart)\n break\n }\n subject := add(subject, 1)\n if iszero(lt(subject, end)) { break }\n }\n break\n }\n }\n }\n\n /// @dev Returns the byte index of the first location of `search` in `subject`,\n /// searching from left to right.\n /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.\n function indexOf(string memory subject, string memory search)\n internal\n pure\n returns (uint256 result)\n {\n result = indexOf(subject, search, 0);\n }\n\n /// @dev Returns the byte index of the first location of `search` in `subject`,\n /// searching from right to left, starting from `from`.\n /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.\n function lastIndexOf(string memory subject, string memory search, uint256 from)\n internal\n pure\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for {} 1 {} {\n result := not(0) // Initialize to `NOT_FOUND`.\n let searchLength := mload(search)\n if gt(searchLength, mload(subject)) { break }\n let w := result\n\n let fromMax := sub(mload(subject), searchLength)\n if iszero(gt(fromMax, from)) { from := fromMax }\n\n let end := add(add(subject, 0x20), w)\n subject := add(add(subject, 0x20), from)\n if iszero(gt(subject, end)) { break }\n // As this function is not too often used,\n // we shall simply use keccak256 for smaller bytecode size.\n for { let h := keccak256(add(search, 0x20), searchLength) } 1 {} {\n if eq(keccak256(subject, searchLength), h) {\n result := sub(subject, add(end, 1))\n break\n }\n subject := add(subject, w) // `sub(subject, 1)`.\n if iszero(gt(subject, end)) { break }\n }\n break\n }\n }\n }\n\n /// @dev Returns the byte index of the first location of `search` in `subject`,\n /// searching from right to left.\n /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.\n function lastIndexOf(string memory subject, string memory search)\n internal\n pure\n returns (uint256 result)\n {\n result = lastIndexOf(subject, search, uint256(int256(-1)));\n }\n\n /// @dev Returns true if `search` is found in `subject`, false otherwise.\n function contains(string memory subject, string memory search) internal pure returns (bool) {\n return indexOf(subject, search) != NOT_FOUND;\n }\n\n /// @dev Returns whether `subject` starts with `search`.\n function startsWith(string memory subject, string memory search)\n internal\n pure\n returns (bool result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let searchLength := mload(search)\n // Just using keccak256 directly is actually cheaper.\n // forgefmt: disable-next-item\n result := and(\n iszero(gt(searchLength, mload(subject))),\n eq(\n keccak256(add(subject, 0x20), searchLength),\n keccak256(add(search, 0x20), searchLength)\n )\n )\n }\n }\n\n /// @dev Returns whether `subject` ends with `search`.\n function endsWith(string memory subject, string memory search)\n internal\n pure\n returns (bool result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let searchLength := mload(search)\n let subjectLength := mload(subject)\n // Whether `search` is not longer than `subject`.\n let withinRange := iszero(gt(searchLength, subjectLength))\n // Just using keccak256 directly is actually cheaper.\n // forgefmt: disable-next-item\n result := and(\n withinRange,\n eq(\n keccak256(\n // `subject + 0x20 + max(subjectLength - searchLength, 0)`.\n add(add(subject, 0x20), mul(withinRange, sub(subjectLength, searchLength))),\n searchLength\n ),\n keccak256(add(search, 0x20), searchLength)\n )\n )\n }\n }\n\n /// @dev Returns `subject` repeated `times`.\n function repeat(string memory subject, uint256 times)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let subjectLength := mload(subject)\n if iszero(or(iszero(times), iszero(subjectLength))) {\n subject := add(subject, 0x20)\n result := mload(0x40)\n let output := add(result, 0x20)\n for {} 1 {} {\n // Copy the `subject` one word at a time.\n for { let o := 0 } 1 {} {\n mstore(add(output, o), mload(add(subject, o)))\n o := add(o, 0x20)\n if iszero(lt(o, subjectLength)) { break }\n }\n output := add(output, subjectLength)\n times := sub(times, 1)\n if iszero(times) { break }\n }\n mstore(output, 0) // Zeroize the slot after the string.\n let resultLength := sub(output, add(result, 0x20))\n mstore(result, resultLength) // Store the length.\n // Allocate the memory.\n mstore(0x40, add(result, add(resultLength, 0x20)))\n }\n }\n }\n\n /// @dev Returns a copy of `subject` sliced from `start` to `end` (exclusive).\n /// `start` and `end` are byte offsets.\n function slice(string memory subject, uint256 start, uint256 end)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let subjectLength := mload(subject)\n if iszero(gt(subjectLength, end)) { end := subjectLength }\n if iszero(gt(subjectLength, start)) { start := subjectLength }\n if lt(start, end) {\n result := mload(0x40)\n let resultLength := sub(end, start)\n mstore(result, resultLength)\n subject := add(subject, start)\n let w := not(0x1f)\n // Copy the `subject` one word at a time, backwards.\n for { let o := and(add(resultLength, 0x1f), w) } 1 {} {\n mstore(add(result, o), mload(add(subject, o)))\n o := add(o, w) // `sub(o, 0x20)`.\n if iszero(o) { break }\n }\n // Zeroize the slot after the string.\n mstore(add(add(result, 0x20), resultLength), 0)\n // Allocate memory for the length and the bytes,\n // rounded up to a multiple of 32.\n mstore(0x40, add(result, and(add(resultLength, 0x3f), w)))\n }\n }\n }\n\n /// @dev Returns a copy of `subject` sliced from `start` to the end of the string.\n /// `start` is a byte offset.\n function slice(string memory subject, uint256 start)\n internal\n pure\n returns (string memory result)\n {\n result = slice(subject, start, uint256(int256(-1)));\n }\n\n /// @dev Returns all the indices of `search` in `subject`.\n /// The indices are byte offsets.\n function indicesOf(string memory subject, string memory search)\n internal\n pure\n returns (uint256[] memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let subjectLength := mload(subject)\n let searchLength := mload(search)\n\n if iszero(gt(searchLength, subjectLength)) {\n subject := add(subject, 0x20)\n search := add(search, 0x20)\n result := add(mload(0x40), 0x20)\n\n let subjectStart := subject\n let subjectSearchEnd := add(sub(add(subject, subjectLength), searchLength), 1)\n let h := 0\n if iszero(lt(searchLength, 0x20)) { h := keccak256(search, searchLength) }\n let m := shl(3, sub(0x20, and(searchLength, 0x1f)))\n let s := mload(search)\n for {} 1 {} {\n let t := mload(subject)\n // Whether the first `searchLength % 32` bytes of\n // `subject` and `search` matches.\n if iszero(shr(m, xor(t, s))) {\n if h {\n if iszero(eq(keccak256(subject, searchLength), h)) {\n subject := add(subject, 1)\n if iszero(lt(subject, subjectSearchEnd)) { break }\n continue\n }\n }\n // Append to `result`.\n mstore(result, sub(subject, subjectStart))\n result := add(result, 0x20)\n // Advance `subject` by `searchLength`.\n subject := add(subject, searchLength)\n if searchLength {\n if iszero(lt(subject, subjectSearchEnd)) { break }\n continue\n }\n }\n subject := add(subject, 1)\n if iszero(lt(subject, subjectSearchEnd)) { break }\n }\n let resultEnd := result\n // Assign `result` to the free memory pointer.\n result := mload(0x40)\n // Store the length of `result`.\n mstore(result, shr(5, sub(resultEnd, add(result, 0x20))))\n // Allocate memory for result.\n // We allocate one more word, so this array can be recycled for {split}.\n mstore(0x40, add(resultEnd, 0x20))\n }\n }\n }\n\n /// @dev Returns a arrays of strings based on the `delimiter` inside of the `subject` string.\n function split(string memory subject, string memory delimiter)\n internal\n pure\n returns (string[] memory result)\n {\n uint256[] memory indices = indicesOf(subject, delimiter);\n /// @solidity memory-safe-assembly\n assembly {\n let w := not(0x1f)\n let indexPtr := add(indices, 0x20)\n let indicesEnd := add(indexPtr, shl(5, add(mload(indices), 1)))\n mstore(add(indicesEnd, w), mload(subject))\n mstore(indices, add(mload(indices), 1))\n let prevIndex := 0\n for {} 1 {} {\n let index := mload(indexPtr)\n mstore(indexPtr, 0x60)\n if iszero(eq(index, prevIndex)) {\n let element := mload(0x40)\n let elementLength := sub(index, prevIndex)\n mstore(element, elementLength)\n // Copy the `subject` one word at a time, backwards.\n for { let o := and(add(elementLength, 0x1f), w) } 1 {} {\n mstore(add(element, o), mload(add(add(subject, prevIndex), o)))\n o := add(o, w) // `sub(o, 0x20)`.\n if iszero(o) { break }\n }\n // Zeroize the slot after the string.\n mstore(add(add(element, 0x20), elementLength), 0)\n // Allocate memory for the length and the bytes,\n // rounded up to a multiple of 32.\n mstore(0x40, add(element, and(add(elementLength, 0x3f), w)))\n // Store the `element` into the array.\n mstore(indexPtr, element)\n }\n prevIndex := add(index, mload(delimiter))\n indexPtr := add(indexPtr, 0x20)\n if iszero(lt(indexPtr, indicesEnd)) { break }\n }\n result := indices\n if iszero(mload(delimiter)) {\n result := add(indices, 0x20)\n mstore(result, sub(mload(indices), 2))\n }\n }\n }\n\n /// @dev Returns a concatenated string of `a` and `b`.\n /// Cheaper than `string.concat()` and does not de-align the free memory pointer.\n function concat(string memory a, string memory b)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let w := not(0x1f)\n result := mload(0x40)\n let aLength := mload(a)\n // Copy `a` one word at a time, backwards.\n for { let o := and(add(aLength, 0x20), w) } 1 {} {\n mstore(add(result, o), mload(add(a, o)))\n o := add(o, w) // `sub(o, 0x20)`.\n if iszero(o) { break }\n }\n let bLength := mload(b)\n let output := add(result, aLength)\n // Copy `b` one word at a time, backwards.\n for { let o := and(add(bLength, 0x20), w) } 1 {} {\n mstore(add(output, o), mload(add(b, o)))\n o := add(o, w) // `sub(o, 0x20)`.\n if iszero(o) { break }\n }\n let totalLength := add(aLength, bLength)\n let last := add(add(result, 0x20), totalLength)\n // Zeroize the slot after the string.\n mstore(last, 0)\n // Stores the length.\n mstore(result, totalLength)\n // Allocate memory for the length and the bytes,\n // rounded up to a multiple of 32.\n mstore(0x40, and(add(last, 0x1f), w))\n }\n }\n\n /// @dev Returns a copy of the string in either lowercase or UPPERCASE.\n /// WARNING! This function is only compatible with 7-bit ASCII strings.\n function toCase(string memory subject, bool toUpper)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let length := mload(subject)\n if length {\n result := add(mload(0x40), 0x20)\n subject := add(subject, 1)\n let flags := shl(add(70, shl(5, toUpper)), 0x3ffffff)\n let w := not(0)\n for { let o := length } 1 {} {\n o := add(o, w)\n let b := and(0xff, mload(add(subject, o)))\n mstore8(add(result, o), xor(b, and(shr(b, flags), 0x20)))\n if iszero(o) { break }\n }\n result := mload(0x40)\n mstore(result, length) // Store the length.\n let last := add(add(result, 0x20), length)\n mstore(last, 0) // Zeroize the slot after the string.\n mstore(0x40, add(last, 0x20)) // Allocate the memory.\n }\n }\n }\n\n /// @dev Returns a string from a small bytes32 string.\n /// `smallString` must be null terminated, or behavior will be undefined.\n function fromSmallString(bytes32 smallString) internal pure returns (string memory result) {\n if (smallString == bytes32(0)) return result;\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(0x40)\n let n := 0\n for {} 1 {} {\n n := add(n, 1)\n if iszero(byte(n, smallString)) { break } // Scan for '\\0'.\n }\n mstore(result, n)\n let o := add(result, 0x20)\n mstore(o, smallString)\n mstore(add(o, n), 0)\n mstore(0x40, add(result, 0x40))\n }\n }\n\n /// @dev Returns a lowercased copy of the string.\n /// WARNING! This function is only compatible with 7-bit ASCII strings.\n function lower(string memory subject) internal pure returns (string memory result) {\n result = toCase(subject, false);\n }\n\n /// @dev Returns an UPPERCASED copy of the string.\n /// WARNING! This function is only compatible with 7-bit ASCII strings.\n function upper(string memory subject) internal pure returns (string memory result) {\n result = toCase(subject, true);\n }\n\n /// @dev Escapes the string to be used within HTML tags.\n function escapeHTML(string memory s) internal pure returns (string memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n let end := add(s, mload(s))\n result := add(mload(0x40), 0x20)\n // Store the bytes of the packed offsets and strides into the scratch space.\n // `packed = (stride << 5) | offset`. Max offset is 20. Max stride is 6.\n mstore(0x1f, 0x900094)\n mstore(0x08, 0xc0000000a6ab)\n // Store \""&'<>\" into the scratch space.\n mstore(0x00, shl(64, 0x2671756f743b26616d703b262333393b266c743b2667743b))\n for {} iszero(eq(s, end)) {} {\n s := add(s, 1)\n let c := and(mload(s), 0xff)\n // Not in `[\"\\\"\",\"'\",\"&\",\"<\",\">\"]`.\n if iszero(and(shl(c, 1), 0x500000c400000000)) {\n mstore8(result, c)\n result := add(result, 1)\n continue\n }\n let t := shr(248, mload(c))\n mstore(result, mload(and(t, 0x1f)))\n result := add(result, shr(5, t))\n }\n let last := result\n mstore(last, 0) // Zeroize the slot after the string.\n result := mload(0x40)\n mstore(result, sub(last, add(result, 0x20))) // Store the length.\n mstore(0x40, add(last, 0x20)) // Allocate the memory.\n }\n }\n\n /// @dev Escapes the string to be used within double-quotes in a JSON.\n /// If `addDoubleQuotes` is true, the result will be enclosed in double-quotes.\n function escapeJSON(string memory s, bool addDoubleQuotes)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let end := add(s, mload(s))\n result := add(mload(0x40), 0x20)\n if addDoubleQuotes {\n mstore8(result, 34)\n result := add(1, result)\n }\n // Store \"\\\\u0000\" in scratch space.\n // Store \"0123456789abcdef\" in scratch space.\n // Also, store `{0x08:\"b\", 0x09:\"t\", 0x0a:\"n\", 0x0c:\"f\", 0x0d:\"r\"}`.\n // into the scratch space.\n mstore(0x15, 0x5c75303030303031323334353637383961626364656662746e006672)\n // Bitmask for detecting `[\"\\\"\",\"\\\\\"]`.\n let e := or(shl(0x22, 1), shl(0x5c, 1))\n for {} iszero(eq(s, end)) {} {\n s := add(s, 1)\n let c := and(mload(s), 0xff)\n if iszero(lt(c, 0x20)) {\n if iszero(and(shl(c, 1), e)) {\n // Not in `[\"\\\"\",\"\\\\\"]`.\n mstore8(result, c)\n result := add(result, 1)\n continue\n }\n mstore8(result, 0x5c) // \"\\\\\".\n mstore8(add(result, 1), c)\n result := add(result, 2)\n continue\n }\n if iszero(and(shl(c, 1), 0x3700)) {\n // Not in `[\"\\b\",\"\\t\",\"\\n\",\"\\f\",\"\\d\"]`.\n mstore8(0x1d, mload(shr(4, c))) // Hex value.\n mstore8(0x1e, mload(and(c, 15))) // Hex value.\n mstore(result, mload(0x19)) // \"\\\\u00XX\".\n result := add(result, 6)\n continue\n }\n mstore8(result, 0x5c) // \"\\\\\".\n mstore8(add(result, 1), mload(add(c, 8)))\n result := add(result, 2)\n }\n if addDoubleQuotes {\n mstore8(result, 34)\n result := add(1, result)\n }\n let last := result\n mstore(last, 0) // Zeroize the slot after the string.\n result := mload(0x40)\n mstore(result, sub(last, add(result, 0x20))) // Store the length.\n mstore(0x40, add(last, 0x20)) // Allocate the memory.\n }\n }\n\n /// @dev Escapes the string to be used within double-quotes in a JSON.\n function escapeJSON(string memory s) internal pure returns (string memory result) {\n result = escapeJSON(s, false);\n }\n\n /// @dev Returns whether `a` equals `b`.\n function eq(string memory a, string memory b) internal pure returns (bool result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := eq(keccak256(add(a, 0x20), mload(a)), keccak256(add(b, 0x20), mload(b)))\n }\n }\n\n /// @dev Returns whether `a` equals `b`. For small strings up to 32 bytes.\n /// `b` must be null terminated, or behavior will be undefined.\n function eqs(string memory a, bytes32 b) internal pure returns (bool result) {\n /// @solidity memory-safe-assembly\n assembly {\n // These should be evaluated on compile time, as far as possible.\n let x := and(b, add(not(b), 1))\n let r := or(shl(8, iszero(b)), shl(7, iszero(iszero(shr(128, x)))))\n r := or(r, shl(6, iszero(iszero(shr(64, shr(r, x))))))\n r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\n r := or(r, shl(4, lt(0xffff, shr(r, x))))\n r := or(r, shl(3, lt(0xff, shr(r, x))))\n result := gt(eq(mload(a), sub(32, shr(3, r))), shr(r, xor(b, mload(add(a, 0x20)))))\n }\n }\n\n /// @dev Packs a single string with its length into a single word.\n /// Returns `bytes32(0)` if the length is zero or greater than 31.\n function packOne(string memory a) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n // We don't need to zero right pad the string,\n // since this is our own custom non-standard packing scheme.\n result :=\n mul(\n // Load the length and the bytes.\n mload(add(a, 0x1f)),\n // `length != 0 && length < 32`. Abuses underflow.\n // Assumes that the length is valid and within the block gas limit.\n lt(sub(mload(a), 1), 0x1f)\n )\n }\n }\n\n /// @dev Unpacks a string packed using {packOne}.\n /// Returns the empty string if `packed` is `bytes32(0)`.\n /// If `packed` is not an output of {packOne}, the output behavior is undefined.\n function unpackOne(bytes32 packed) internal pure returns (string memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n // Grab the free memory pointer.\n result := mload(0x40)\n // Allocate 2 words (1 for the length, 1 for the bytes).\n mstore(0x40, add(result, 0x40))\n // Zeroize the length slot.\n mstore(result, 0)\n // Store the length and bytes.\n mstore(add(result, 0x1f), packed)\n // Right pad with zeroes.\n mstore(add(add(result, 0x20), mload(result)), 0)\n }\n }\n\n /// @dev Packs two strings with their lengths into a single word.\n /// Returns `bytes32(0)` if combined length is zero or greater than 30.\n function packTwo(string memory a, string memory b) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n let aLength := mload(a)\n // We don't need to zero right pad the strings,\n // since this is our own custom non-standard packing scheme.\n result :=\n mul(\n // Load the length and the bytes of `a` and `b`.\n or(\n shl(shl(3, sub(0x1f, aLength)), mload(add(a, aLength))),\n mload(sub(add(b, 0x1e), aLength))\n ),\n // `totalLength != 0 && totalLength < 31`. Abuses underflow.\n // Assumes that the lengths are valid and within the block gas limit.\n lt(sub(add(aLength, mload(b)), 1), 0x1e)\n )\n }\n }\n\n /// @dev Unpacks strings packed using {packTwo}.\n /// Returns the empty strings if `packed` is `bytes32(0)`.\n /// If `packed` is not an output of {packTwo}, the output behavior is undefined.\n function unpackTwo(bytes32 packed)\n internal\n pure\n returns (string memory resultA, string memory resultB)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Grab the free memory pointer.\n resultA := mload(0x40)\n resultB := add(resultA, 0x40)\n // Allocate 2 words for each string (1 for the length, 1 for the byte). Total 4 words.\n mstore(0x40, add(resultB, 0x40))\n // Zeroize the length slots.\n mstore(resultA, 0)\n mstore(resultB, 0)\n // Store the lengths and bytes.\n mstore(add(resultA, 0x1f), packed)\n mstore(add(resultB, 0x1f), mload(add(add(resultA, 0x20), mload(resultA))))\n // Right pad with zeroes.\n mstore(add(add(resultA, 0x20), mload(resultA)), 0)\n mstore(add(add(resultB, 0x20), mload(resultB)), 0)\n }\n }\n\n /// @dev Directly returns `a` without copying.\n function directReturn(string memory a) internal pure {\n assembly {\n // Assumes that the string does not start from the scratch space.\n let retStart := sub(a, 0x20)\n let retSize := add(mload(a), 0x40)\n // Right pad with zeroes. Just in case the string is produced\n // by a method that doesn't zero right pad.\n mstore(add(retStart, retSize), 0)\n // Store the return offset.\n mstore(retStart, 0x20)\n // End the transaction, returning the string.\n return(retStart, retSize)\n }\n }\n}\n"},"lib/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\n/// - For ERC20s, this implementation won't check that a token has code,\n/// responsibility is delegated to the caller.\nlibrary SafeTransferLib {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ETH transfer has failed.\n error ETHTransferFailed();\n\n /// @dev The ERC20 `transferFrom` has failed.\n error TransferFromFailed();\n\n /// @dev The ERC20 `transfer` has failed.\n error TransferFailed();\n\n /// @dev The ERC20 `approve` has failed.\n error ApproveFailed();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n /// storage reads and writes, but low enough to prevent griefing.\n uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ETH OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n //\n // The regular variants:\n // - Forwards all remaining gas to the target.\n // - Reverts if the target reverts.\n // - Reverts if the current contract has insufficient balance.\n //\n // The force variants:\n // - Forwards with an optional gas stipend\n // (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n // - If the target reverts, or if the gas stipend is exhausted,\n // creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n // Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n // - Reverts if the current contract has insufficient balance.\n //\n // The try variants:\n // - Forwards with a mandatory gas stipend.\n // - Instead of reverting, returns whether the transfer succeeded.\n\n /// @dev Sends `amount` (in wei) ETH to `to`.\n function safeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`.\n function safeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // Transfer all the ETH and check if it succeeded or not.\n if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // forgefmt: disable-next-item\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function trySafeTransferAllETH(address to, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC20 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for\n /// the current contract to manage.\n function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have their entire balance approved for\n /// the current contract to manage.\n function safeTransferAllFrom(address token, address from, address to)\n internal\n returns (uint256 amount)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransfer(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n mstore(0x20, address()) // Store the address of the current contract.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x14, to) // Store the `to` argument.\n amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// Reverts upon failure.\n function safeApprove(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n /// then retries the approval again (some tokens, e.g. USDT, requires this).\n /// Reverts upon failure.\n function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, retrying upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x34, 0) // Store 0 for the `amount`.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n mstore(0x34, amount) // Store back the original `amount`.\n // Retry the approval, reverting upon failure.\n if iszero(\n and(\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Returns the amount of ERC20 `token` owned by `account`.\n /// Returns zero if the `token` does not exist.\n function balanceOf(address token, address account) internal view returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, account) // Store the `account` argument.\n mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n amount :=\n mul(\n mload(0x20),\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n )\n )\n }\n }\n}\n"},"lib/solady/src/utils/LibZip.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Library for compressing and decompressing bytes.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibZip.sol)\n/// @author Calldata compression by clabby (https://github.com/clabby/op-kompressor)\n/// @author FastLZ by ariya (https://github.com/ariya/FastLZ)\n///\n/// @dev Note:\n/// The accompanying solady.js library includes implementations of\n/// FastLZ and calldata operations for convenience.\nlibrary LibZip {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* FAST LZ OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // LZ77 implementation based on FastLZ.\n // Equivalent to level 1 compression and decompression at the following commit:\n // https://github.com/ariya/FastLZ/commit/344eb4025f9ae866ebf7a2ec48850f7113a97a42\n // Decompression is backwards compatible.\n\n /// @dev Returns the compressed `data`.\n function flzCompress(bytes memory data) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n function ms8(d_, v_) -> _d {\n mstore8(d_, v_)\n _d := add(d_, 1)\n }\n function u24(p_) -> _u {\n let w := mload(p_)\n _u := or(shl(16, byte(2, w)), or(shl(8, byte(1, w)), byte(0, w)))\n }\n function cmp(p_, q_, e_) -> _l {\n for { e_ := sub(e_, q_) } lt(_l, e_) { _l := add(_l, 1) } {\n e_ := mul(iszero(byte(0, xor(mload(add(p_, _l)), mload(add(q_, _l))))), e_)\n }\n }\n function literals(runs_, src_, dest_) -> _o {\n for { _o := dest_ } iszero(lt(runs_, 0x20)) { runs_ := sub(runs_, 0x20) } {\n mstore(ms8(_o, 31), mload(src_))\n _o := add(_o, 0x21)\n src_ := add(src_, 0x20)\n }\n if iszero(runs_) { leave }\n mstore(ms8(_o, sub(runs_, 1)), mload(src_))\n _o := add(1, add(_o, runs_))\n }\n function match(l_, d_, o_) -> _o {\n for { d_ := sub(d_, 1) } iszero(lt(l_, 263)) { l_ := sub(l_, 262) } {\n o_ := ms8(ms8(ms8(o_, add(224, shr(8, d_))), 253), and(0xff, d_))\n }\n if iszero(lt(l_, 7)) {\n _o := ms8(ms8(ms8(o_, add(224, shr(8, d_))), sub(l_, 7)), and(0xff, d_))\n leave\n }\n _o := ms8(ms8(o_, add(shl(5, l_), shr(8, d_))), and(0xff, d_))\n }\n function setHash(i_, v_) {\n let p := add(mload(0x40), shl(2, i_))\n mstore(p, xor(mload(p), shl(224, xor(shr(224, mload(p)), v_))))\n }\n function getHash(i_) -> _h {\n _h := shr(224, mload(add(mload(0x40), shl(2, i_))))\n }\n function hash(v_) -> _r {\n _r := and(shr(19, mul(2654435769, v_)), 0x1fff)\n }\n function setNextHash(ip_, ipStart_) -> _ip {\n setHash(hash(u24(ip_)), sub(ip_, ipStart_))\n _ip := add(ip_, 1)\n }\n codecopy(mload(0x40), codesize(), 0x8000) // Zeroize the hashmap.\n let op := add(mload(0x40), 0x8000)\n let a := add(data, 0x20)\n let ipStart := a\n let ipLimit := sub(add(ipStart, mload(data)), 13)\n for { let ip := add(2, a) } lt(ip, ipLimit) {} {\n let r := 0\n let d := 0\n for {} 1 {} {\n let s := u24(ip)\n let h := hash(s)\n r := add(ipStart, getHash(h))\n setHash(h, sub(ip, ipStart))\n d := sub(ip, r)\n if iszero(lt(ip, ipLimit)) { break }\n ip := add(ip, 1)\n if iszero(gt(d, 0x1fff)) { if eq(s, u24(r)) { break } }\n }\n if iszero(lt(ip, ipLimit)) { break }\n ip := sub(ip, 1)\n if gt(ip, a) { op := literals(sub(ip, a), a, op) }\n let l := cmp(add(r, 3), add(ip, 3), add(ipLimit, 9))\n op := match(l, d, op)\n ip := setNextHash(setNextHash(add(ip, l), ipStart), ipStart)\n a := ip\n }\n op := literals(sub(add(ipStart, mload(data)), a), a, op)\n result := mload(0x40)\n let t := add(result, 0x8000)\n let n := sub(op, t)\n mstore(result, n) // Store the length.\n // Copy the result to compact the memory, overwriting the hashmap.\n let o := add(result, 0x20)\n for { let i } lt(i, n) { i := add(i, 0x20) } { mstore(add(o, i), mload(add(t, i))) }\n mstore(add(o, n), 0) // Zeroize the slot after the string.\n mstore(0x40, add(add(o, n), 0x20)) // Allocate the memory.\n }\n }\n\n /// @dev Returns the decompressed `data`.\n function flzDecompress(bytes memory data) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n let n := 0\n let end := add(add(data, 0x20), mload(data))\n result := mload(0x40)\n let op := add(result, 0x20)\n for { data := add(data, 0x20) } lt(data, end) {} {\n let w := mload(data)\n let c := byte(0, w)\n let t := shr(5, c)\n if iszero(t) {\n mstore(add(op, n), mload(add(data, 1)))\n data := add(data, add(2, c))\n n := add(n, add(1, c))\n continue\n }\n let g := eq(t, 7)\n let l := add(2, xor(t, mul(g, xor(t, add(7, byte(1, w))))))\n for {\n let s := add(add(shl(8, and(0x1f, c)), byte(add(1, g), w)), 1)\n let r := add(op, sub(n, s))\n let o := add(op, n)\n let f := xor(s, mul(gt(s, 0x20), xor(s, 0x20)))\n let j := 0\n } 1 {} {\n mstore(add(o, j), mload(add(r, j)))\n j := add(j, f)\n if iszero(lt(j, l)) { break }\n }\n data := add(data, add(2, g))\n n := add(n, l)\n }\n mstore(result, n) // Store the length.\n let o := add(add(result, 0x20), n)\n mstore(o, 0) // Zeroize the slot after the string.\n mstore(0x40, add(o, 0x20)) // Allocate the memory.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CALLDATA OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Calldata compression and decompression using selective run length encoding:\n // - Sequences of 0x00 (up to 128 consecutive).\n // - Sequences of 0xff (up to 32 consecutive).\n //\n // A run length encoded block consists of two bytes:\n // (0) 0x00\n // (1) A control byte with the following bit layout:\n // - [7] `0: 0x00, 1: 0xff`.\n // - [0..6] `runLength - 1`.\n //\n // The first 4 bytes are bitwise negated so that the compressed calldata\n // can be dispatched into the `fallback` and `receive` functions.\n\n /// @dev Returns the compressed `data`.\n function cdCompress(bytes memory data) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n function rle(v_, o_, d_) -> _o, _d {\n mstore(o_, shl(240, or(and(0xff, add(d_, 0xff)), and(0x80, v_))))\n _o := add(o_, 2)\n }\n result := mload(0x40)\n let o := add(result, 0x20)\n let z := 0 // Number of consecutive 0x00.\n let y := 0 // Number of consecutive 0xff.\n for { let end := add(data, mload(data)) } iszero(eq(data, end)) {} {\n data := add(data, 1)\n let c := byte(31, mload(data))\n if iszero(c) {\n if y { o, y := rle(0xff, o, y) }\n z := add(z, 1)\n if eq(z, 0x80) { o, z := rle(0x00, o, 0x80) }\n continue\n }\n if eq(c, 0xff) {\n if z { o, z := rle(0x00, o, z) }\n y := add(y, 1)\n if eq(y, 0x20) { o, y := rle(0xff, o, 0x20) }\n continue\n }\n if y { o, y := rle(0xff, o, y) }\n if z { o, z := rle(0x00, o, z) }\n mstore8(o, c)\n o := add(o, 1)\n }\n if y { o, y := rle(0xff, o, y) }\n if z { o, z := rle(0x00, o, z) }\n // Bitwise negate the first 4 bytes.\n mstore(add(result, 4), not(mload(add(result, 4))))\n mstore(result, sub(o, add(result, 0x20))) // Store the length.\n mstore(o, 0) // Zeroize the slot after the string.\n mstore(0x40, add(o, 0x20)) // Allocate the memory.\n }\n }\n\n /// @dev Returns the decompressed `data`.\n function cdDecompress(bytes memory data) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n if mload(data) {\n result := mload(0x40)\n let o := add(result, 0x20)\n let s := add(data, 4)\n let v := mload(s)\n let end := add(data, mload(data))\n mstore(s, not(v)) // Bitwise negate the first 4 bytes.\n for {} lt(data, end) {} {\n data := add(data, 1)\n let c := byte(31, mload(data))\n if iszero(c) {\n data := add(data, 1)\n let d := byte(31, mload(data))\n // Fill with either 0xff or 0x00.\n mstore(o, not(0))\n if iszero(gt(d, 0x7f)) { codecopy(o, codesize(), add(d, 1)) }\n o := add(o, add(and(d, 0x7f), 1))\n continue\n }\n mstore8(o, c)\n o := add(o, 1)\n }\n mstore(s, v) // Restore the first 4 bytes.\n mstore(result, sub(o, add(result, 0x20))) // Store the length.\n mstore(o, 0) // Zeroize the slot after the string.\n mstore(0x40, add(o, 0x20)) // Allocate the memory.\n }\n }\n }\n\n /// @dev To be called in the `receive` and `fallback` functions.\n /// ```\n /// receive() external payable { LibZip.cdFallback(); }\n /// fallback() external payable { LibZip.cdFallback(); }\n /// ```\n /// For efficiency, this function will directly return the results, terminating the context.\n /// If called internally, it must be called at the end of the function.\n function cdFallback() internal {\n assembly {\n if iszero(calldatasize()) { return(calldatasize(), calldatasize()) }\n let o := 0\n let f := not(3) // For negating the first 4 bytes.\n for { let i := 0 } lt(i, calldatasize()) {} {\n let c := byte(0, xor(add(i, f), calldataload(i)))\n i := add(i, 1)\n if iszero(c) {\n let d := byte(0, xor(add(i, f), calldataload(i)))\n i := add(i, 1)\n // Fill with either 0xff or 0x00.\n mstore(o, not(0))\n if iszero(gt(d, 0x7f)) { codecopy(o, codesize(), add(d, 1)) }\n o := add(o, add(and(d, 0x7f), 1))\n continue\n }\n mstore8(o, c)\n o := add(o, 1)\n }\n let success := delegatecall(gas(), address(), 0x00, o, codesize(), 0x00)\n returndatacopy(0x00, 0x00, returndatasize())\n if iszero(success) { revert(0x00, returndatasize()) }\n return(0x00, returndatasize())\n }\n }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155 is IERC165 {\n /**\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\n */\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\n\n /**\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\n * transfers.\n */\n event TransferBatch(\n address indexed operator,\n address indexed from,\n address indexed to,\n uint256[] ids,\n uint256[] values\n );\n\n /**\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\n * `approved`.\n */\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\n\n /**\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\n *\n * If an {URI} event was emitted for `id`, the standard\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\n * returned by {IERC1155MetadataURI-uri}.\n */\n event URI(string value, uint256 indexed id);\n\n /**\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) external view returns (uint256);\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(\n address[] calldata accounts,\n uint256[] calldata ids\n ) external view returns (uint256[] memory);\n\n /**\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\n *\n * Emits an {ApprovalForAll} event.\n *\n * Requirements:\n *\n * - `operator` cannot be the caller.\n */\n function setApprovalForAll(address operator, bool approved) external;\n\n /**\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\n *\n * See {setApprovalForAll}.\n */\n function isApprovedForAll(address account, address operator) external view returns (bool);\n\n /**\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\n *\n * Emits a {TransferBatch} event.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function safeBatchTransferFrom(\n address from,\n address to,\n uint256[] calldata ids,\n uint256[] calldata amounts,\n bytes calldata data\n ) external;\n}\n"},"contracts/interfaces/IQuestOwnable.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\nimport {IOwnable} from \"./IOwnable.sol\";\nimport {IQuest} from \"./IQuest.sol\";\n\n// solhint-disable-next-line no-empty-blocks\ninterface IQuestOwnable is IQuest, IOwnable {}\n"},"contracts/interfaces/IQuest1155Ownable.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\nimport {IOwnable} from \"./IOwnable.sol\";\nimport {IQuest1155} from \"./IQuest1155.sol\";\n\n// solhint-disable-next-line no-empty-blocks\ninterface IQuest1155Ownable is IQuest1155, IOwnable {}\n"},"contracts/Quest.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\n// Inherits\nimport {Ownable} from \"solady/auth/Ownable.sol\";\nimport {PausableUpgradeable} from \"openzeppelin-contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport {ReentrancyGuardUpgradeable} from \"openzeppelin-contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport {QuestClaimable} from \"./libraries/QuestClaimable.sol\";\n// Implements\nimport {IQuest} from \"./interfaces/IQuest.sol\";\n// Leverages\nimport {SafeTransferLib} from \"solady/utils/SafeTransferLib.sol\";\n// References\nimport {IQuestFactory} from \"./interfaces/IQuestFactory.sol\";\n\n/// @title Quest\n/// @author RabbitHole.gg\n/// @notice This contract is the Erc20Quest contract. It is a quest that is redeemable for ERC20 tokens\n// solhint-disable-next-line max-states-count\ncontract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQuest, QuestClaimable {\n /*//////////////////////////////////////////////////////////////\n USING\n //////////////////////////////////////////////////////////////*/\n using SafeTransferLib for address;\n\n /*//////////////////////////////////////////////////////////////\n STORAGE\n //////////////////////////////////////////////////////////////*/\n address public rabbitHoleReceiptContract; // Deprecated - do not use\n IQuestFactory public questFactoryContract;\n address public rewardToken;\n uint256 public endTime;\n uint256 public startTime;\n uint256 public totalParticipants;\n uint256 public rewardAmountInWei;\n bool public queued;\n string public questId;\n uint16 public questFee;\n bool public hasWithdrawn;\n address public protocolFeeRecipient;\n mapping(uint256 => bool) private claimedList;\n mapping(address => uint256) public streamIdForAddress;\n uint256 public referralRewardFee;\n uint256 public referralClaimTotal;\n mapping (address => uint256) private referralClaimAmounts;\n mapping (address => bool) private referrerHasClaimed;\n uint256 public totalReferralsFeesClaimed;\n\n /*//////////////////////////////////////////////////////////////\n CONSTRUCTOR\n //////////////////////////////////////////////////////////////*/\n /// @custom:oz-upgrades-unsafe-allow constructor\n // solhint-disable-next-line func-visibility\n constructor() {\n _disableInitializers();\n }\n\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmountInWei_,\n string memory questId_,\n uint16 questFee_,\n address protocolFeeRecipient_,\n uint256 referralRewardFee_\n ) external initializer {\n // Validate inputs\n if (endTime_ <= block.timestamp) revert EndTimeInPast();\n if (endTime_ <= startTime_) revert EndTimeLessThanOrEqualToStartTime();\n if (referralRewardFee_ > 500) revert ReferralRewardFeeTooHigh(); // Maximum 5%\n\n // Process input parameters\n rewardToken = rewardTokenAddress_;\n endTime = endTime_;\n startTime = startTime_;\n totalParticipants = totalParticipants_;\n rewardAmountInWei = rewardAmountInWei_;\n questId = questId_;\n questFee = questFee_;\n protocolFeeRecipient = protocolFeeRecipient_;\n referralRewardFee = referralRewardFee_;\n\n // Setup default state\n questFactoryContract = IQuestFactory(payable(msg.sender));\n queued = true;\n referralClaimTotal = 0;\n totalReferralsFeesClaimed = 0;\n _initializeOwner(msg.sender);\n __Pausable_init();\n __ReentrancyGuard_init();\n }\n\n /*//////////////////////////////////////////////////////////////\n MODIFIERS\n //////////////////////////////////////////////////////////////*/\n /// @notice Prevents reward withdrawal until the Quest has ended\n modifier onlyWithdrawAfterEnd() {\n if (block.timestamp < endTime) revert NoWithdrawDuringClaim();\n _;\n }\n\n /// @notice Checks if quest has started both at the function level and at the start time\n modifier onlyQuestActive() {\n if (block.timestamp < startTime) revert ClaimWindowNotStarted();\n _;\n }\n\n /// @notice Checks if the quest end time has not passed\n modifier whenNotEnded() {\n if (block.timestamp > endTime) revert QuestEnded();\n _;\n }\n\n modifier onlyQuestFactory() {\n if (msg.sender != address(questFactoryContract)) revert NotQuestFactory();\n _;\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n\n /// @notice Cancels the Quest by setting the end time to 15 minutes from the current time and pausing the Quest. If the Quest has not yet started, it will end immediately.\n /// @dev Only the owner of the Quest can call this function.\n function cancel() external onlyQuestFactory whenNotPaused whenNotEnded {\n _pause();\n endTime = startTime > block.timestamp ? block.timestamp : block.timestamp + 15 minutes;\n }\n\n /// @dev transfers rewards to the account, can only be called once per account per quest and only by the quest factory\n /// @param account_ The account to transfer rewards to\n function singleClaim(address account_)\n external\n virtual\n nonReentrant\n onlyQuestActive\n whenNotPaused\n onlyQuestFactory\n {\n uint256 totalRedeemableRewards = rewardAmountInWei;\n _transferRewards(account_, totalRedeemableRewards);\n\n }\n\n function claimFromFactory(address claimer_, address ref_) external payable whenNotEnded onlyQuestFactory {\n _transferRewards(claimer_, rewardAmountInWei);\n if (ref_ != address(0)) {\n ref_.safeTransferETH(_claimFee() / 3);\n _updateReferralTokenAmount(ref_);\n }\n }\n\n /// @notice Function that transfers all 1155 tokens in the contract to the owner (creator), and eth to the protocol fee recipient and the owner\n /// @dev Can only be called after the quest has ended\n function withdrawRemainingTokens() external onlyWithdrawAfterEnd {\n if (hasWithdrawn) revert AlreadyWithdrawn();\n hasWithdrawn = true;\n\n uint256 ownerPayout = (_claimFee() * _redeemedTokens()) / 3;\n uint256 protocolPayout = address(this).balance - ownerPayout;\n\n owner().safeTransferETH(ownerPayout);\n protocolFeeRecipient.safeTransferETH(protocolPayout);\n\n // transfer reward tokens\n uint256 protocolFeeForRecipient = (this.protocolFee() / 2) - referralClaimTotal;\n rewardToken.safeTransfer(protocolFeeRecipient, protocolFeeForRecipient);\n\n uint256 remainingBalanceForOwner = rewardToken.balanceOf(address(this)) - (referralClaimTotal - totalReferralsFeesClaimed);\n rewardToken.safeTransfer(owner(), remainingBalanceForOwner);\n\n questFactoryContract.withdrawCallback(questId, protocolFeeRecipient, protocolPayout, address(owner()), ownerPayout);\n }\n\n function claimReferralFees(address referrer) external onlyWithdrawAfterEnd {\n if (referrerHasClaimed[referrer] == true) revert AlreadyWithdrawn();\n\n uint256 referrerClaimAmount = referralClaimAmounts[referrer];\n if (referrerClaimAmount == 0) revert NoReferralFees();\n\n rewardToken.safeTransfer(referrer, referrerClaimAmount);\n referrerHasClaimed[referrer] = true;\n totalReferralsFeesClaimed += referrerClaimAmount;\n emit ClaimedReferralFees(questId, referrer, address(rewardToken), referrerClaimAmount);\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n /// @dev The amount of tokens the quest needs to pay all redeemers plus the protocol fee\n function totalTransferAmount() external view returns (uint256) {\n return this.maxTotalRewards() + this.maxProtocolReward();\n }\n\n /// @dev Function that gets the maximum amount of rewards that can be claimed by all users. It does not include the protocol fee\n /// @return The maximum amount of rewards that can be claimed by all users\n function maxTotalRewards() external view returns (uint256) {\n return totalParticipants * rewardAmountInWei;\n }\n\n /// @notice Function that gets the maximum amount of rewards that can be claimed by the protocol or the quest deployer\n /// @dev The 10_000 comes from Basis Points: https://www.investopedia.com/terms/b/basispoint.asp\n /// @return The maximum amount of rewards that can be claimed by the protocol or the quest deployer\n function maxProtocolReward() external view returns (uint256) {\n return (this.maxTotalRewards() * questFee) / 10_000;\n }\n\n /// @notice Function that calculates the protocol fee\n function protocolFee() external view returns (uint256) {\n return (_redeemedTokens() * rewardAmountInWei * questFee) / 10_000;\n }\n\n function referralRewardAmount() external view returns (uint256) {\n return _referralRewardAmount();\n }\n\n function getReferralAmount(address referrer) external view returns (uint256) {\n return referralClaimAmounts[referrer];\n }\n\n /// @dev Returns the reward amount\n function getRewardAmount() external view returns (uint256) {\n return rewardAmountInWei;\n }\n\n /// @dev Returns the reward token address\n function getRewardToken() external view returns (address) {\n return rewardToken;\n }\n\n function getQuestFactoryContract() public view override returns (IQuestFactory){\n return questFactoryContract;\n }\n\n function getQuestId() public view override returns (string memory){\n return questId;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n /// @notice Internal function that transfers the rewards to the msg.sender\n /// @param sender_ The address to send the rewards to\n /// @param amount_ The amount of rewards to transfer\n function _transferRewards(address sender_, uint256 amount_) internal {\n rewardToken.safeTransfer(sender_, amount_);\n }\n\n /// @notice Internal function to update the referral reward amount\n /// @param referrer_ The address of the referrer\n function _updateReferralTokenAmount(address referrer_) internal {\n uint256 referralAmount = _referralRewardAmount();\n referralClaimTotal += referralAmount;\n referralClaimAmounts[referrer_] += referralAmount;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n function _redeemedTokens() internal view returns (uint256) {\n return questFactoryContract.getNumberMinted(questId);\n }\n\n function _claimFee() internal view returns (uint256) {\n return questFactoryContract.mintFee();\n }\n\n function _referralRewardAmount() internal view returns (uint256) {\n return (referralRewardFee * rewardAmountInWei) / 10_000;\n }\n\n /*//////////////////////////////////////////////////////////////\n DEFAULTS\n //////////////////////////////////////////////////////////////*/\n receive() external payable {}\n fallback() external payable {}\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/AddressUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n *\n * Furthermore, `isContract` will also return true if the target contract within\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n * which only has an effect at the end of a transaction.\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n"},"lib/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The caller is not authorized to call the function.\n error Unauthorized();\n\n /// @dev The `newOwner` cannot be the zero address.\n error NewOwnerIsZeroAddress();\n\n /// @dev The `pendingOwner` does not have a valid handover request.\n error NoHandoverRequest();\n\n /// @dev Cannot double-initialize.\n error AlreadyInitialized();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n /// despite it not being as lightweight as a single argument event.\n event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n /// @dev An ownership handover to `pendingOwner` has been requested.\n event OwnershipHandoverRequested(address indexed pendingOwner);\n\n /// @dev The ownership handover to `pendingOwner` has been canceled.\n event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* STORAGE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The owner slot is given by:\n /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n /// It is intentionally chosen to be a high value\n /// to avoid collision with lower slots.\n /// The choice of manual storage layout is to enable compatibility\n /// with both regular and upgradeable contracts.\n bytes32 internal constant _OWNER_SLOT =\n 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n /// The ownership handover slot of `newOwner` is given by:\n /// ```\n /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n /// let handoverSlot := keccak256(0x00, 0x20)\n /// ```\n /// It stores the expiry timestamp of the two-step ownership handover.\n uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* INTERNAL FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n /// @dev Initializes the owner directly without authorization guard.\n /// This function must be called upon initialization,\n /// regardless of whether the contract is upgradeable or not.\n /// This is to enable generalization to both regular and upgradeable contracts,\n /// and to save gas in case the initial owner is not the caller.\n /// For performance reasons, this function will not check if there\n /// is an existing owner.\n function _initializeOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n if sload(ownerSlot) {\n mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n revert(0x1c, 0x04)\n }\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(_OWNER_SLOT, newOwner)\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n }\n }\n\n /// @dev Sets the owner directly without authorization guard.\n function _setOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, newOwner)\n }\n }\n }\n\n /// @dev Throws if the sender is not the owner.\n function _checkOwner() internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // If the caller is not the stored owner, revert.\n if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n /// Override to return a different value if needed.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n return 48 * 3600;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC UPDATE FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Allows the owner to transfer the ownership to `newOwner`.\n function transferOwnership(address newOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(shl(96, newOwner)) {\n mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n revert(0x1c, 0x04)\n }\n }\n _setOwner(newOwner);\n }\n\n /// @dev Allows the owner to renounce their ownership.\n function renounceOwnership() public payable virtual onlyOwner {\n _setOwner(address(0));\n }\n\n /// @dev Request a two-step ownership handover to the caller.\n /// The request will automatically expire in 48 hours (172800 seconds) by default.\n function requestOwnershipHandover() public payable virtual {\n unchecked {\n uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to `expires`.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), expires)\n // Emit the {OwnershipHandoverRequested} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n }\n }\n }\n\n /// @dev Cancels the two-step ownership handover to the caller, if any.\n function cancelOwnershipHandover() public payable virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), 0)\n // Emit the {OwnershipHandoverCanceled} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n }\n }\n\n /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n let handoverSlot := keccak256(0x0c, 0x20)\n // If the handover does not exist, or has expired.\n if gt(timestamp(), sload(handoverSlot)) {\n mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n revert(0x1c, 0x04)\n }\n // Set the handover slot to 0.\n sstore(handoverSlot, 0)\n }\n _setOwner(pendingOwner);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC READ FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the owner of the contract.\n function owner() public view virtual returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := sload(_OWNER_SLOT)\n }\n }\n\n /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n function ownershipHandoverExpiresAt(address pendingOwner)\n public\n view\n virtual\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the handover slot.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n // Load the handover slot.\n result := sload(keccak256(0x0c, 0x20))\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MODIFIERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Marks a function as only callable by the owner.\n modifier onlyOwner() virtual {\n _checkOwner();\n _;\n }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toString(int256 value) internal pure returns (string memory) {\n return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return keccak256(bytes(a)) == keccak256(bytes(b));\n }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"contracts/interfaces/IOwnable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.19;\n\ninterface IOwnable {\n // Events\n event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n event OwnershipHandoverRequested(address indexed pendingOwner);\n event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n // Update functions\n function transferOwnership(address newOwner) external payable;\n function renounceOwnership() external payable;\n function requestOwnershipHandover() external payable;\n function cancelOwnershipHandover() external payable;\n function completeOwnershipHandover(address pendingOwner) external payable;\n\n // Read functions\n function owner() external view returns (address);\n function ownershipHandoverExpiresAt(address pendingOwner) external view returns (uint256);\n}\n"},"contracts/interfaces/IQuest.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuest {\n event Queued(uint256 timestamp);\n event ProtocolFeeDistributed(string questId, address rewardToken, address protocolOwner, uint256 feeAmountToProtocolOwner, address questOwner, uint256 feeAmountToQuestOwner);\n event ClaimedReferralFees(string questId, address recipient, address tokenAddress, uint256 feeAmount);\n\n error AlreadyClaimed();\n error AlreadyWithdrawn();\n error AmountExceedsBalance();\n error ClaimWindowNotStarted();\n error EndTimeInPast();\n error EndTimeLessThanOrEqualToStartTime();\n error InvalidRefundToken();\n error MustImplementInChild();\n error NotQuestFactory();\n error NoWithdrawDuringClaim();\n error NotStarted();\n error TotalAmountExceedsBalance();\n error AuthOwnerRecipient();\n error AddressNotSigned();\n error InvalidClaimFee();\n error OverMaxAllowedToMint();\n error AddressAlreadyMinted();\n error QuestEnded();\n error ReferralRewardFeeTooHigh();\n error NoReferralFees();\n\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmountInWei_,\n string memory questId_,\n uint16 questFee_,\n address protocolFeeRecipient_,\n uint256 referralRewardFee_\n ) external;\n function getRewardAmount() external view returns (uint256);\n function getRewardToken() external view returns (address);\n function queued() external view returns (bool);\n function startTime() external view returns (uint256);\n function endTime() external view returns (uint256);\n function singleClaim(address account) external;\n function cancel() external;\n function rewardToken() external view returns (address);\n function rewardAmountInWei() external view returns (uint256);\n function totalTransferAmount() external view returns (uint256);\n function questFee() external view returns (uint16);\n function totalParticipants() external view returns (uint256);\n function hasWithdrawn() external view returns (bool);\n function questId() external view returns (string memory);\n}\n"},"contracts/interfaces/IQuest1155.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuest1155 {\n // Structs\n struct FactoryQuest {\n mapping(address => bool) addressMinted;\n address questAddress;\n uint256 totalParticipants;\n uint256 numberMinted;\n string questType;\n address questCreator;\n address mintFeeRecipient;\n }\n\n // Events\n event Queued(uint256 timestamp);\n\n event QuestClaimedData(\n address indexed recipient,\n address indexed referrer,\n string extraData\n );\n\n // Errors\n error EndTimeInPast();\n error EndTimeLessThanOrEqualToStartTime();\n error InsufficientTokenBalance();\n error InsufficientETHBalance();\n error NotStarted();\n error NotEnded();\n error NotQueued();\n error NotQuestFactory();\n error QuestEnded();\n error AlreadyWithdrawn();\n error AddressNotSigned();\n error InvalidClaimFee();\n error AddressAlreadyMinted();\n error OverMaxAllowedToMint();\n\n // Initializer/Contstructor Function\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n address protocolFeeRecipient_,\n string memory questId_\n ) external;\n\n // Read Functions\n function endTime() external view returns (uint256);\n function hasWithdrawn() external view returns (bool);\n\n function maxProtocolReward() external view returns (uint256);\n function questFee() external view returns (uint256);\n function queued() external view returns (bool);\n function startTime() external view returns (uint256);\n function tokenId() external view returns (uint256);\n function rewardToken() external view returns (address);\n\n // Update Functions\n function cancel() external;\n function queue() external;\n function singleClaim(address account_) external;\n function withdrawRemainingTokens() external;\n }\n"},"lib/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n function __Pausable_init() internal onlyInitializing {\n __Pausable_init_unchained();\n }\n\n function __Pausable_init_unchained() internal onlyInitializing {\n _paused = false;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view virtual {\n require(!paused(), \"Pausable: paused\");\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view virtual {\n require(paused(), \"Pausable: not paused\");\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/security/ReentrancyGuardUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n function __ReentrancyGuard_init() internal onlyInitializing {\n __ReentrancyGuard_init_unchained();\n }\n\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n _nonReentrantBefore();\n _;\n _nonReentrantAfter();\n }\n\n function _nonReentrantBefore() private {\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n }\n\n function _nonReentrantAfter() private {\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n * `nonReentrant` function in the call stack.\n */\n function _reentrancyGuardEntered() internal view returns (bool) {\n return _status == _ENTERED;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"contracts/libraries/QuestClaimable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.19;\n\nimport { IQuestFactory } from \"../interfaces/IQuestFactory.sol\";\n\nerror txOriginMismatch();\n\nabstract contract QuestClaimable {\n function getQuestFactoryContract() public view virtual returns (IQuestFactory);\n\n function getQuestId() public view virtual returns (string memory);\n\n function claim() external payable {\n address ref_;\n IQuestFactory questFactoryContract = getQuestFactoryContract();\n string memory questId = getQuestId();\n\n (bytes32 txHash_, bytes32 r_, bytes32 vs_) = abi.decode(msg.data[4:], (bytes32, bytes32, bytes32));\n\n if (msg.data.length > 100) {\n assembly {\n ref_ := calldataload(100)\n ref_ := shr(96, ref_)\n }\n }\n\n IQuestFactory.QuestJsonData memory quest_ = questFactoryContract.questJsonData(questId);\n string memory jsonData_ = questFactoryContract.buildJsonString(txHash_, quest_.txHashChainId, quest_.actionType, quest_.questName);\n bytes memory claimData_ = abi.encode(msg.sender, ref_, questId, jsonData_);\n\n questFactoryContract.claimOptimized{value: msg.value}(abi.encodePacked(r_,vs_), claimData_);\n }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1, \"Math: mulDiv overflow\");\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n }\n }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // must be unchecked in order to support `n = type(int256).min`\n return uint256(n >= 0 ? n : -n);\n }\n }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n"}},"settings":{"remappings":["forge-std/=lib/forge-std/src/","solady/=lib/solady/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/=node_modules/@openzeppelin/","@openzeppelin/contracts/=lib/v2-core/lib/openzeppelin-contracts/contracts/","@prb/=node_modules/@prb/","@prb/math/=lib/v2-core/lib/prb-math/","@prb/test/=lib/v2-core/lib/prb-test/src/","@sablier/=node_modules/@sablier/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","eth-gas-reporter/=node_modules/eth-gas-reporter/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/","prb-math/=lib/v2-core/lib/prb-math/src/","prb-test/=lib/v2-core/lib/prb-test/src/","solarray/=lib/v2-core/lib/solarray/src/","v2-core/=lib/v2-core/"],"optimizer":{"enabled":true,"runs":1000},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"outputSelection":{"*":{"":["ast"],"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","storageLayout"]}},"evmVersion":"paris","viaIR":true,"libraries":{}}} +{"language":"Solidity","sources":{"contracts/QuestFactory.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\n// Inherits\nimport {Initializable} from \"openzeppelin-contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {LegacyStorage} from \"./libraries/LegacyStorage.sol\";\nimport {OwnableRoles} from \"solady/auth/OwnableRoles.sol\";\n// Implements\nimport {IQuestFactory} from \"./interfaces/IQuestFactory.sol\";\n// Leverages\nimport {ECDSA} from \"openzeppelin-contracts/utils/cryptography/ECDSA.sol\";\nimport {LibClone} from \"solady/utils/LibClone.sol\";\nimport {LibString} from \"solady/utils/LibString.sol\";\nimport {SafeTransferLib} from \"solady/utils/SafeTransferLib.sol\";\nimport {LibZip} from \"solady/utils/LibZip.sol\";\n// References\nimport {IERC1155} from \"openzeppelin-contracts/token/ERC1155/IERC1155.sol\";\nimport {IQuestOwnable} from \"./interfaces/IQuestOwnable.sol\";\nimport {IQuest1155Ownable} from \"./interfaces/IQuest1155Ownable.sol\";\nimport {Quest as QuestContract} from \"./Quest.sol\";\n\n/// @title QuestFactory\n/// @author RabbitHole.gg\n/// @dev This contract is used to create quests and handle claims\ncontract QuestFactory is Initializable, LegacyStorage, OwnableRoles, IQuestFactory {\n /*//////////////////////////////////////////////////////////////\n USING\n //////////////////////////////////////////////////////////////*/\n using SafeTransferLib for address;\n using LibClone for address;\n using LibString for string;\n using LibString for uint256;\n using LibString for address;\n\n /*//////////////////////////////////////////////////////////////\n STORAGE\n //////////////////////////////////////////////////////////////*/\n address public claimSignerAddress;\n address public protocolFeeRecipient;\n address public erc20QuestAddress;\n address public erc1155QuestAddress;\n mapping(string => Quest) public quests;\n address private __deprecated_rabbitHoleReceiptContract; // not used\n address private __deprecated_rabbitHoleTicketsContract; // not used\n mapping(address => bool) private __deprecated_rewardAllowlist; // not used\n uint16 public questFee;\n uint256 public mintFee;\n address public defaultMintFeeRecipient;\n uint256 private locked;\n address private __deprecated_defaultReferralFeeRecipient; // not used\n uint256 private __deprecated_nftQuestFee; // not used\n address private __deprecated_questNFTAddress; // not used\n mapping(address => address[]) private ownerCollections;\n mapping(address => NftQuestFees) private __deprecated_nftQuestFeeList; // not used\n uint16 public referralFee;\n address private __deprecated_sablierV2LockupLinearAddress; // not used\n mapping(address => address) private __deprecated_mintFeeRecipientList; // not used\n uint256 public referralRewardTimestamp;\n // insert new vars here at the end to keep the storage layout the same\n\n /*//////////////////////////////////////////////////////////////\n CONSTRUCTOR\n //////////////////////////////////////////////////////////////*/\n /// @custom:oz-upgrades-unsafe-allow constructor\n // solhint-disable-next-line func-visibility\n constructor() initializer {}\n\n function initialize(\n address claimSignerAddress_,\n address protocolFeeRecipient_,\n address erc20QuestAddress_,\n address payable erc1155QuestAddress_,\n address ownerAddress_,\n uint256,\n uint16 referralFee_,\n uint256 mintFee_\n ) external initializer {\n _initializeOwner(ownerAddress_);\n questFee = 2000; // in BIPS\n locked = 1;\n claimSignerAddress = claimSignerAddress_;\n protocolFeeRecipient = protocolFeeRecipient_;\n erc20QuestAddress = erc20QuestAddress_;\n erc1155QuestAddress = erc1155QuestAddress_;\n referralFee = referralFee_;\n mintFee = mintFee_;\n referralRewardTimestamp = block.timestamp;\n }\n\n /*//////////////////////////////////////////////////////////////\n MODIFIERS\n //////////////////////////////////////////////////////////////*/\n\n modifier checkQuest(string memory questId_) {\n Quest storage currentQuest = quests[questId_];\n if (currentQuest.questAddress != address(0)) revert QuestIdUsed();\n if (erc20QuestAddress == address(0)) revert Erc20QuestAddressNotSet();\n _;\n }\n\n modifier claimChecks(ClaimData memory claimData_) {\n Quest storage currentQuest = quests[claimData_.questId];\n\n if (currentQuest.numberMinted + 1 > currentQuest.totalParticipants) revert OverMaxAllowedToMint();\n if (currentQuest.addressMinted[claimData_.claimer]) revert AddressAlreadyMinted();\n if (recoverSigner(claimData_.hashBytes, claimData_.signature) != claimSignerAddress) revert AddressNotSigned();\n _;\n }\n\n /// @dev ReentrancyGuard modifier from solmate, copied here because it was added after storage layout was finalized on first deploy\n /// @dev from https://github.com/transmissions11/solmate/blob/main/src/utils/ReentrancyGuard.sol\n modifier nonReentrant() virtual {\n if (locked != 1) revert Reentrancy();\n locked = 2;\n _;\n locked = 1;\n }\n\n modifier nonZeroAddress(address address_) {\n if (address_ == address(0)) revert ZeroAddressNotAllowed();\n _;\n }\n\n modifier sufficientMintFee() {\n if (msg.value < mintFee) revert InvalidMintFee();\n _;\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n\n /*//////////////////////////////////////////////////////////////\n CREATE\n //////////////////////////////////////////////////////////////*/\n\n /// @dev Create an erc20 quest and start it at the same time. The function will transfer the reward amount to the quest contract\n /// @param txHashChainId_ The chain id of the chain the txHash is on\n /// @param rewardTokenAddress_ The contract address of the reward token\n /// @param endTime_ The end time of the quest\n /// @param startTime_ The start time of the quest\n /// @param totalParticipants_ The total amount of participants (accounts) the quest will have\n /// @param rewardAmount_ The reward amount for an erc20 quest\n /// @param questId_ The id of the quest\n /// @param actionType_ The action type for the quest\n /// @param questName_ The name of the quest\n /// @param projectName_ The name of the project/protocol used for the quest\n /// @return address the quest contract address\n function createERC20Boost(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_\n ) external checkQuest(questId_) returns (address) {\n return createERC20QuestInternal(\n ERC20QuestData(\n txHashChainId_,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n rewardAmount_,\n questId_,\n actionType_,\n questName_,\n \"erc20\",\n projectName_\n )\n );\n }\n\n /// @dev Create an erc20 quest and start it at the same time. The function will transfer the reward amount to the quest contract\n /// @param txHashChainId_ The chain id of the chain the txHash is on\n /// @param rewardTokenAddress_ The contract address of the reward token\n /// @param endTime_ The end time of the quest\n /// @param startTime_ The start time of the quest\n /// @param totalParticipants_ The total amount of participants (accounts) the quest will have\n /// @param rewardAmount_ The reward amount for an erc20 quest\n /// @param questId_ The id of the quest\n /// @param actionType_ The action type for the quest\n /// @param questName_ The name of the quest\n /// @param projectName_ The name of the project/protocol used for the quest\n /// @param referralRewardFee_ The fee amount for referrals -- this is no longer used since we now have a flat 2.5% fee\n /// @return address the quest contract address\n function createERC20Quest(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_,\n uint256 referralRewardFee_\n ) external checkQuest(questId_) returns (address) {\n return createERC20QuestInternal(\n ERC20QuestData(\n txHashChainId_,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n rewardAmount_,\n questId_,\n actionType_,\n questName_,\n \"erc20\",\n projectName_\n )\n );\n }\n\n /// @dev Create an erc1155 quest and start it at the same time. The function will transfer the reward amount to the quest contract\n /// @param txHashChainId_ The chain id of the chain the txHash is on\n /// @param rewardTokenAddress_ The contract address of the reward token\n /// @param endTime_ The end time of the quest\n /// @param startTime_ The start time of the quest\n /// @param totalParticipants_ The total amount of participants (accounts) the quest will have\n /// @param tokenId_ The reward token id of the erc1155 at rewardTokenAddress_\n /// @param questId_ The id of the quest\n /// @param actionType_ The action type for the quest\n /// @param questName_ The name of the quest\n /// @return address the quest contract address\n function createERC1155Quest(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_\n ) external payable nonReentrant returns (address) {\n return createERC1155QuestInternal(\n ERC1155QuestData(\n txHashChainId_,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n tokenId_,\n questId_,\n actionType_,\n questName_,\n projectName_\n )\n );\n }\n\n /// @notice Deprecated\n function createERC1155Quest(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_\n ) external payable nonReentrant returns (address) {\n return createERC1155QuestInternal(\n ERC1155QuestData(\n 0,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n tokenId_,\n questId_,\n actionType_,\n questName_,\n projectName_\n )\n );\n }\n\n /// @notice Deprecated\n function create1155QuestAndQueue(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory\n ) external payable nonReentrant returns (address) {\n return createERC1155QuestInternal(\n ERC1155QuestData(\n 0,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n tokenId_,\n questId_,\n \"\",\n \"\",\n \"\"\n )\n );\n }\n\n /// @notice Deprecated\n function createERC20Quest(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_\n ) external checkQuest(questId_) returns (address) {\n return createERC20QuestInternal(\n ERC20QuestData(\n 0,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n rewardAmount_,\n questId_,\n actionType_,\n questName_,\n \"erc20\",\n \"\"\n )\n );\n }\n\n /// @notice Deprecated\n function createQuestAndQueue(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory,\n uint256\n ) external checkQuest(questId_) returns (address) {\n return createERC20QuestInternal(\n ERC20QuestData(\n 0,\n rewardTokenAddress_,\n endTime_,\n startTime_,\n totalParticipants_,\n rewardAmount_,\n questId_,\n \"\",\n \"\",\n \"erc20\",\n \"\"\n )\n );\n }\n\n function cancelQuest(string calldata questId_) external {\n Quest storage _questData = quests[questId_];\n if (_questData.questCreator != msg.sender) revert Unauthorized();\n IQuestOwnable quest = IQuestOwnable(_questData.questAddress);\n quest.cancel();\n emit QuestCancelled(_questData.questAddress, questId_, quest.endTime());\n }\n\n /*//////////////////////////////////////////////////////////////\n CLAIM\n //////////////////////////////////////////////////////////////*/\n /// @dev Claim rewards for a quest\n /// @param compressedData_ The claim data in abi encoded bytes, compressed with cdCompress from solady LibZip\n function claimCompressed(bytes calldata compressedData_) external payable {\n _claimCompressed(compressedData_, msg.sender);\n }\n\n function claimCompressedRef(bytes calldata compressedData_, address claimer) external payable {\n _claimCompressed(compressedData_, claimer);\n }\n\n /// @dev Claim rewards for a quest\n /// @param compressedData_ The claim data in abi encoded bytes, compressed with cdCompress from solady LibZip\n /// @param claimer The address of the claimer - where rewards are sent\n function _claimCompressed(bytes calldata compressedData_, address claimer) internal {\n bytes memory data_ = LibZip.cdDecompress(compressedData_);\n\n (\n bytes32 txHash_,\n bytes32 r_,\n bytes32 vs_,\n address ref_,\n bytes16 questid_,\n uint32 txHashChainId_\n ) = abi.decode(\n data_,\n (bytes32, bytes32, bytes32, address, bytes16, uint32)\n );\n\n string memory questIdString_ = bytes16ToUUID(questid_);\n Quest storage quest_ = quests[questIdString_];\n\n string memory jsonData_ = _buildJsonString(txHash_, txHashChainId_, quest_.actionType);\n bytes memory claimData_ = abi.encode(claimer, ref_, questIdString_, jsonData_);\n\n // Since `vs_` includes `s` and the bit for `v`, we can extract `s` by masking out the `v` bit.\n bytes32 s = vs_ & bytes32(0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);\n\n // Now extract the `v` by shifting `vs_` right by 255 bits and casting to a uint8\n uint8 v = uint8((uint256(vs_) >> 255));\n\n // If `v` is less than 27 (which means it's either 0, 1, or invalid), add 27 to push it into range (27, 28)\n // Note that if `v` was neither 0 nor 1, this will push it out of range, and the signature will be invalid\n if (v < 27) v += 27;\n\n _claimOptimized(abi.encodePacked(r_, s, v), claimData_);\n }\n\n /// @notice External use is deprecated\n /// @dev Claim rewards for a quest\n /// @param -DEPRECATED- signature_ The signature of the claim data\n /// @param -DEPRECATED- data_ The claim data in abi encoded bytes\n function claimOptimized(bytes calldata, bytes calldata) external payable {\n revert Deprecated();\n }\n\n /// @dev Claim rewards for a quest\n /// @param signature_ The signature of the claim data\n /// @param data_ The claim data in abi encoded bytes\n function _claimOptimized(\n bytes memory signature_,\n bytes memory data_\n ) internal {\n (\n address claimer_,\n address ref_,\n string memory questId_,\n string memory jsonData_\n ) = abi.decode(\n data_,\n (address, address, string, string)\n );\n Quest storage quest = quests[questId_];\n\n uint256 numberMintedPlusOne_ = quest.numberMinted + 1;\n address rewardToken_ = IQuestOwnable(quest.questAddress).rewardToken();\n uint256 rewardAmountOrTokenId;\n\n if (recoverSigner(keccak256(data_), signature_) != claimSignerAddress) revert AddressNotSigned();\n if (msg.value < mintFee) revert InvalidMintFee();\n if (quest.addressMinted[claimer_]) revert AddressAlreadyMinted();\n if (numberMintedPlusOne_ > quest.totalParticipants) revert OverMaxAllowedToMint();\n\n quest.addressMinted[claimer_] = true;\n quest.numberMinted = numberMintedPlusOne_;\n (bool success_, ) = quest.questAddress.call{value: msg.value}(abi.encodeWithSignature(\"claimFromFactory(address,address)\", claimer_, ref_));\n if (!success_) revert ClaimFailed();\n\n emit QuestClaimedData(claimer_, quest.questAddress, jsonData_);\n if (quest.questType.eq(\"erc1155\")) {\n rewardAmountOrTokenId = IQuest1155Ownable(quest.questAddress).tokenId();\n emit Quest1155Claimed(claimer_, quest.questAddress, questId_, rewardToken_, rewardAmountOrTokenId);\n } else {\n rewardAmountOrTokenId = IQuestOwnable(quest.questAddress).rewardAmountInWei();\n emit QuestClaimed(claimer_, quest.questAddress, questId_, rewardToken_, rewardAmountOrTokenId);\n }\n if(ref_ != address(0)){\n if (IQuestOwnable(quest.questAddress).startTime() > referralRewardTimestamp) {\n emit QuestClaimReferred(\n claimer_,\n quest.questAddress,\n questId_,\n rewardToken_,\n rewardAmountOrTokenId,\n ref_, 3333,\n mintFee,\n QuestContract(payable(quest.questAddress)).referralRewardFee(),\n QuestContract(payable(quest.questAddress)).referralRewardAmount())\n ;\n } else {\n emit QuestClaimedReferred(\n claimer_,\n quest.questAddress,\n questId_,\n rewardToken_,\n rewardAmountOrTokenId,\n ref_, 3333,\n mintFee\n );\n }\n emit MintFeePaid(questId_, address(0), 0, address(0), 0, ref_, mintFee / 3);\n }\n }\n\n /*//////////////////////////////////////////////////////////////\n SET\n //////////////////////////////////////////////////////////////*/\n\n /// @dev set the claim signer address\n /// @param claimSignerAddress_ The address of the claim signer\n function setClaimSignerAddress(address claimSignerAddress_) external onlyOwner {\n claimSignerAddress = claimSignerAddress_;\n }\n\n /// @dev set erc1155QuestAddress\n /// @param erc1155QuestAddress_ The address of the erc1155 quest\n function setErc1155QuestAddress(address erc1155QuestAddress_) external onlyOwner {\n erc1155QuestAddress = erc1155QuestAddress_;\n }\n\n /// @dev set erc20QuestAddress\n /// @param erc20QuestAddress_ The address of the erc20 quest\n function setErc20QuestAddress(address erc20QuestAddress_) external onlyOwner {\n erc20QuestAddress = erc20QuestAddress_;\n }\n\n /// @dev set the mint fee\n /// @notice the mint fee in ether\n /// @param mintFee_ The mint fee value\n function setMintFee(uint256 mintFee_) external onlyOwner {\n mintFee = mintFee_;\n emit MintFeeSet(mintFee_);\n }\n\n /// @dev set the protocol fee recipient\n /// @param protocolFeeRecipient_ The address of the protocol fee recipient\n function setProtocolFeeRecipient(address protocolFeeRecipient_) external onlyOwner {\n if (protocolFeeRecipient_ == address(0)) revert AddressZeroNotAllowed();\n protocolFeeRecipient = protocolFeeRecipient_;\n }\n\n /// @dev set the quest fee\n /// @notice the quest fee should be in Basis Point units\n /// @param questFee_ The quest fee value\n function setQuestFee(uint16 questFee_) external onlyOwner {\n if (questFee_ > 10_000) revert QuestFeeTooHigh();\n questFee = questFee_;\n }\n\n /// @dev set the referral fee\n /// @param referralFee_ The value of the referralFee\n function setReferralFee(uint16 referralFee_) external onlyOwner {\n if (referralFee_ > 10_000) revert ReferralFeeTooHigh();\n referralFee = referralFee_;\n emit ReferralFeeSet(referralFee_);\n }\n\n /// @dev set the mintFeeRecipient\n /// @param mintFeeRecipient_ The address of the mint fee recipient\n function setDefaultMintFeeRecipient(address mintFeeRecipient_) external onlyOwner {\n if (mintFeeRecipient_ == address(0)) revert AddressZeroNotAllowed();\n defaultMintFeeRecipient = mintFeeRecipient_;\n }\n\n function setReferralRewardTimestamp(uint256 timestamp_) external onlyOwner {\n referralRewardTimestamp = timestamp_;\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n\n /// @notice This function name is a bit of a misnomer - gets whether an address has claimed a quest yet.\n /// @dev return status of whether an address has claimed a quest\n /// @param questId_ The id of the quest\n /// @param address_ The address to check\n /// @return claimed status\n function getAddressMinted(string memory questId_, address address_) external view returns (bool) {\n return quests[questId_].addressMinted[address_];\n }\n\n /// @dev return the number of quest claims\n /// @param questId_ The id of the quest\n /// @return uint Total quests claimed\n function getNumberMinted(string memory questId_) external view returns (uint256) {\n return quests[questId_].numberMinted;\n }\n\n /// @dev return extended quest data for a questId\n /// @param questId_ The id of the quest\n function questData(string memory questId_) external view returns (QuestData memory) {\n Quest storage thisQuest = quests[questId_];\n IQuestOwnable questContract = IQuestOwnable(thisQuest.questAddress);\n uint256 rewardAmountOrTokenId;\n uint16 erc20QuestFee;\n\n if (thisQuest.questType.eq(\"erc1155\")) {\n rewardAmountOrTokenId = IQuest1155Ownable(thisQuest.questAddress).tokenId();\n } else {\n rewardAmountOrTokenId = questContract.rewardAmountInWei();\n erc20QuestFee = questContract.questFee();\n }\n\n QuestData memory data = QuestData(\n thisQuest.questAddress,\n questContract.rewardToken(),\n questContract.queued(),\n erc20QuestFee,\n questContract.startTime(),\n questContract.endTime(),\n questContract.totalParticipants(),\n thisQuest.numberMinted,\n thisQuest.numberMinted,\n rewardAmountOrTokenId,\n questContract.hasWithdrawn()\n );\n\n return data;\n }\n\n /// @param questId_ The id of the quest\n function questJsonData(string memory questId_) external view returns (QuestJsonData memory) {\n Quest storage thisQuest = quests[questId_];\n\n QuestJsonData memory data = QuestJsonData(\n thisQuest.actionType,\n thisQuest.questName,\n thisQuest.txHashChainId\n );\n\n return data;\n }\n\n /// @dev return data in the quest struct for a questId\n /// @param questId_ The id of the quest\n function questInfo(string memory questId_) external view returns (address, uint256, uint256) {\n Quest storage currentQuest = quests[questId_];\n return (currentQuest.questAddress, currentQuest.totalParticipants, currentQuest.numberMinted);\n }\n\n /// @dev recover the signer from a hash and signature\n /// @param hash_ The hash of the message\n /// @param signature_ The signature of the hash\n function recoverSigner(bytes32 hash_, bytes memory signature_) public view returns (address) {\n return ECDSA.recover(ECDSA.toEthSignedMessageHash(hash_), signature_);\n }\n\n function withdrawCallback(string calldata questId_, address protocolFeeRecipient_, uint protocolPayout_, address mintFeeRecipient_, uint mintPayout) external {\n Quest storage quest = quests[questId_];\n if(msg.sender != quest.questAddress) revert QuestAddressMismatch();\n\n emit MintFeePaid(questId_, protocolFeeRecipient_, protocolPayout_, mintFeeRecipient_, mintPayout, address(0), 0);\n }\n\n function getQuestName(string calldata questId_) external view returns (string memory) {\n return quests[questId_].questName;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n\n /// @dev claim rewards for a quest with a referral address\n /// @param claimData_ The claim data struct\n function claim1155RewardsRef(ClaimData memory claimData_) private\n nonReentrant\n sufficientMintFee\n claimChecks(claimData_)\n {\n Quest storage currentQuest = quests[claimData_.questId];\n IQuest1155Ownable questContract_ = IQuest1155Ownable(currentQuest.questAddress);\n if (!questContract_.queued()) revert QuestNotQueued();\n if (block.timestamp < questContract_.startTime()) revert QuestNotStarted();\n if (block.timestamp > questContract_.endTime()) revert QuestEnded();\n\n currentQuest.addressMinted[claimData_.claimer] = true;\n ++currentQuest.numberMinted;\n questContract_.singleClaim(claimData_.claimer);\n\n if (mintFee > 0) {\n string memory newJson = processMintFee(claimData_.ref, currentQuest.questCreator, claimData_.questId);\n if (bytes(claimData_.extraData).length > 0){\n claimData_.extraData = claimData_.extraData.slice(0, bytes(claimData_.extraData).length -1).concat(newJson);\n }\n }\n\n emit QuestClaimedData(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.extraData\n );\n\n emit Quest1155Claimed(\n claimData_.claimer, currentQuest.questAddress, claimData_.questId, questContract_.rewardToken(), questContract_.tokenId()\n );\n\n if (claimData_.ref != address(0)) {\n if (IQuestOwnable(currentQuest.questAddress).startTime() > referralRewardTimestamp) {\n emit QuestClaimReferred(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.tokenId(),\n claimData_.ref,\n 3333, //referralFee,\n mintFee,\n 0,\n 0\n );\n } else {\n emit QuestClaimedReferred(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.tokenId(),\n claimData_.ref,\n 3333, //referralFee,\n mintFee\n );\n }\n }\n }\n\n /// @dev claim rewards with a referral address\n /// @param claimData_ The claim data struct\n function claimRewardsRef(ClaimData memory claimData_) private\n nonReentrant\n sufficientMintFee\n claimChecks(claimData_)\n {\n Quest storage currentQuest = quests[claimData_.questId];\n IQuestOwnable questContract_ = IQuestOwnable(currentQuest.questAddress);\n if (!questContract_.queued()) revert QuestNotQueued();\n if (block.timestamp < questContract_.startTime()) revert QuestNotStarted();\n if (block.timestamp > questContract_.endTime()) revert QuestEnded();\n\n currentQuest.addressMinted[claimData_.claimer] = true;\n ++currentQuest.numberMinted;\n questContract_.singleClaim(claimData_.claimer);\n\n if (mintFee > 0) {\n string memory newJson = processMintFee(claimData_.ref, currentQuest.questCreator, claimData_.questId);\n if (bytes(claimData_.extraData).length > 0){\n claimData_.extraData = claimData_.extraData.slice(0, bytes(claimData_.extraData).length -1).concat(newJson);\n }\n }\n\n emit QuestClaimedData(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.extraData\n );\n\n emit QuestClaimed(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.rewardAmountInWei()\n );\n\n if (claimData_.ref != address(0)) {\n if (IQuestOwnable(currentQuest.questAddress).startTime() > referralRewardTimestamp) {\n emit QuestClaimReferred(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.rewardAmountInWei(),\n claimData_.ref,\n 3333, //referralFee,\n mintFee,\n 0,\n 0\n );\n } else {\n emit QuestClaimedReferred(\n claimData_.claimer,\n currentQuest.questAddress,\n claimData_.questId,\n questContract_.rewardToken(),\n questContract_.rewardAmountInWei(),\n claimData_.ref,\n 3333, //referralFee,\n mintFee\n );\n }\n }\n }\n\n /// @dev Internal function to create an erc1155 quest\n /// @param data_ The erc20 quest data struct\n function createERC1155QuestInternal(ERC1155QuestData memory data_) internal returns (address) {\n Quest storage currentQuest = quests[data_.questId];\n\n if (currentQuest.questAddress != address(0)) revert QuestIdUsed();\n\n address payable newQuest =\n payable(erc1155QuestAddress.cloneDeterministic(keccak256(abi.encodePacked(msg.sender, block.chainid, block.timestamp))));\n currentQuest.questAddress = address(newQuest);\n currentQuest.totalParticipants = data_.totalParticipants;\n currentQuest.questType = \"erc1155\";\n currentQuest.questCreator = msg.sender;\n currentQuest.actionType = data_.actionType;\n currentQuest.questName = data_.questName;\n currentQuest.txHashChainId = data_.txHashChainId;\n IQuest1155Ownable questContract = IQuest1155Ownable(newQuest);\n\n questContract.initialize(\n data_.rewardTokenAddress,\n data_.endTime,\n data_.startTime,\n data_.totalParticipants,\n data_.tokenId,\n protocolFeeRecipient,\n data_.questId\n );\n\n IERC1155(data_.rewardTokenAddress).safeTransferFrom(msg.sender, newQuest, data_.tokenId, data_.totalParticipants, \"0x00\");\n questContract.queue();\n questContract.transferOwnership(msg.sender);\n\n emit QuestCreated(\n msg.sender,\n address(newQuest),\n data_.projectName,\n data_.questName,\n data_.questId,\n currentQuest.questType,\n data_.actionType,\n data_.txHashChainId,\n data_.rewardTokenAddress,\n data_.endTime,\n data_.startTime,\n data_.totalParticipants,\n data_.tokenId\n );\n\n return newQuest;\n }\n\n /// @dev Internal function to create an erc20 quest\n /// @param data_ The erc20 quest data struct\n function createERC20QuestInternal(ERC20QuestData memory data_) internal returns (address) {\n Quest storage currentQuest = quests[data_.questId];\n address newQuest = erc20QuestAddress.cloneDeterministic(keccak256(abi.encodePacked(msg.sender, block.chainid, block.timestamp)));\n\n currentQuest.questAddress = address(newQuest);\n currentQuest.totalParticipants = data_.totalParticipants;\n currentQuest.questCreator = msg.sender;\n currentQuest.questType = data_.questType;\n currentQuest.actionType = data_.actionType;\n currentQuest.questName = data_.questName;\n currentQuest.txHashChainId = data_.txHashChainId;\n\n emit QuestCreated(\n msg.sender,\n address(newQuest),\n data_.projectName,\n data_.questName,\n data_.questId,\n currentQuest.questType,\n data_.actionType,\n data_.txHashChainId,\n data_.rewardTokenAddress,\n data_.endTime,\n data_.startTime,\n data_.totalParticipants,\n data_.rewardAmount\n );\n\n IQuestOwnable(newQuest).initialize(\n data_.rewardTokenAddress,\n data_.endTime,\n data_.startTime,\n data_.totalParticipants,\n data_.rewardAmount,\n data_.questId,\n questFee,\n protocolFeeRecipient\n );\n\n transferTokensAndOwnership(newQuest, data_.rewardTokenAddress);\n return newQuest;\n }\n\n function processMintFee(address ref_, address mintFeeRecipient_, string memory questId_) private returns (string memory) {\n returnChange();\n uint256 cachedMintFee = mintFee;\n uint256 oneThirdMintfee = cachedMintFee / 3;\n uint256 protocolPayout;\n uint256 mintPayout;\n uint256 referrerPayout;\n\n if(ref_ == address(0)){\n protocolPayout = oneThirdMintfee * 2;\n mintPayout = oneThirdMintfee;\n } else {\n protocolPayout = oneThirdMintfee;\n mintPayout = oneThirdMintfee;\n referrerPayout = oneThirdMintfee;\n }\n\n protocolFeeRecipient.safeTransferETH(protocolPayout);\n mintFeeRecipient_.safeTransferETH(mintPayout);\n if(referrerPayout != 0) ref_.safeTransferETH(referrerPayout);\n\n emit MintFeePaid(questId_, protocolFeeRecipient, protocolPayout, mintFeeRecipient_, mintPayout, ref_, referrerPayout);\n\n return string(abi.encodePacked(\n ', \"claimFee\": \"', cachedMintFee.toString(),\n '\", \"claimFeePayouts\": [{\"name\": \"protocolPayout\", \"address\": \"', protocolFeeRecipient.toHexString(),\n '\", \"value\": \"', protocolPayout.toString(),\n '\"}, {\"name\": \"mintPayout\", \"address\": \"', mintFeeRecipient_.toHexString(),\n '\", \"value\": \"', mintPayout.toString(),\n '\"}, {\"name\": \"referrerPayout\", \"address\": \"', ref_.toHexString(),\n '\", \"value\": \"', referrerPayout.toString(), '\"}]}'\n ));\n }\n\n // Refund any excess payment\n function returnChange() private {\n uint256 change = msg.value - mintFee;\n if (change > 0) {\n msg.sender.safeTransferETH(change);\n }\n }\n\n /// @dev Transfer the total transfer amount to the quest contract\n /// @dev Contract must be approved to transfer first\n /// @param newQuest_ The address of the new quest\n /// @param rewardTokenAddress_ The contract address of the reward token\n function transferTokensAndOwnership(address newQuest_, address rewardTokenAddress_) internal {\n address sender = msg.sender;\n IQuestOwnable questContract = IQuestOwnable(newQuest_);\n rewardTokenAddress_.safeTransferFrom(sender, newQuest_, questContract.totalTransferAmount());\n questContract.transferOwnership(sender);\n }\n\n /// @dev Build the expected json string for a quest\n /// @param txHash The transaction hash\n /// @param txHashChainId The chain id of the transaction hash\n /// @param actionType The action type for the quest\n /// @param -deprecated- The name of the quest\n /// @return string The json string\n function buildJsonString(\n bytes32 txHash,\n uint32 txHashChainId,\n string memory actionType,\n string memory // questName - not used\n ) external pure returns (string memory) {\n return _buildJsonString(txHash, txHashChainId, actionType);\n }\n\n /// @dev Build the expected json string for a quest\n /// @param txHash The transaction hash\n /// @param txHashChainId The chain id of the transaction hash\n /// @param actionType The action type for the quest\n /// @return string The json string\n function _buildJsonString(\n bytes32 txHash,\n uint32 txHashChainId,\n string memory actionType\n ) internal pure returns (string memory) {\n // {\n // actionTxHashes: [\"actionTxHash1\"],\n // actionNetworkChainIds: [\"chainId1\"],\n // actionType: \"mint\"\n // }\n return string(abi.encodePacked(\n '{\"actionTxHashes\":[\"', uint256(txHash).toHexString(32),\n '\"],\"actionNetworkChainIds\":[', uint256(txHashChainId).toString(),\n '],\"actionType\":\"', actionType, '\"}'\n ));\n }\n\n /// @dev Convert bytes16 to a UUID string e.g. 550e8400-e29b-41d4-a716-446655440000\n /// @param data The bytes16 data e.g. 0x550e8400e29b41d4a716446655440000\n function bytes16ToUUID(bytes16 data) internal pure returns (string memory) {\n bytes memory hexChars = \"0123456789abcdef\";\n bytes memory uuid = new bytes(36); // UUID length with hyphens\n\n uint256 j = 0; // Position in uuid\n for (uint256 i = 0; i < 16; i++) {\n // Insert hyphens at the appropriate positions (after 4, 6, 8, 10 bytes)\n if (i == 4 || i == 6 || i == 8 || i == 10) {\n uuid[j++] = '-';\n }\n\n uuid[j++] = hexChars[uint8(data[i] >> 4)];\n uuid[j++] = hexChars[uint8(data[i] & 0x0F)];\n }\n\n return string(uuid);\n }\n\n /*//////////////////////////////////////////////////////////////\n DEFAULTS\n //////////////////////////////////////////////////////////////*/\n // Receive function to receive ETH\n receive() external payable {}\n\n // Fallback function to receive ETH when other functions are not available\n fallback() external payable {}\n}"},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized != type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n"},"contracts/libraries/LegacyStorage.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity 0.8.19;\n\nabstract contract LegacyStorage {\n struct RoleData {\n mapping(address => bool) members;\n bytes32 adminRole;\n }\n\n uint256[50] private __gap;\n address private _owner;\n uint256[49] private __gap1;\n uint256[50] private __gap2;\n mapping(bytes32 => RoleData) private _roles;\n uint256[49] private __gap3;\n}\n"},"lib/solady/src/auth/OwnableRoles.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/// @notice Simple single owner and multiroles authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n/// @dev While the ownable portion follows [EIP-173](https://eips.ethereum.org/EIPS/eip-173)\n/// for compatibility, the nomenclature for the 2-step ownership handover and roles\n/// may be unique to this codebase.\nabstract contract OwnableRoles is Ownable {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The `user`'s roles is updated to `roles`.\n /// Each bit of `roles` represents whether the role is set.\n event RolesUpdated(address indexed user, uint256 indexed roles);\n\n /// @dev `keccak256(bytes(\"RolesUpdated(address,uint256)\"))`.\n uint256 private constant _ROLES_UPDATED_EVENT_SIGNATURE =\n 0x715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* STORAGE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The role slot of `user` is given by:\n /// ```\n /// mstore(0x00, or(shl(96, user), _ROLE_SLOT_SEED))\n /// let roleSlot := keccak256(0x00, 0x20)\n /// ```\n /// This automatically ignores the upper bits of the `user` in case\n /// they are not clean, as well as keep the `keccak256` under 32-bytes.\n ///\n /// Note: This is equivalent to `uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))`.\n uint256 private constant _ROLE_SLOT_SEED = 0x8b78c6d8;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* INTERNAL FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Overwrite the roles directly without authorization guard.\n function _setRoles(address user, uint256 roles) internal virtual {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, user)\n // Store the new value.\n sstore(keccak256(0x0c, 0x20), roles)\n // Emit the {RolesUpdated} event.\n log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), roles)\n }\n }\n\n /// @dev Updates the roles directly without authorization guard.\n /// If `on` is true, each set bit of `roles` will be turned on,\n /// otherwise, each set bit of `roles` will be turned off.\n function _updateRoles(address user, uint256 roles, bool on) internal virtual {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, user)\n let roleSlot := keccak256(0x0c, 0x20)\n // Load the current value.\n let current := sload(roleSlot)\n // Compute the updated roles if `on` is true.\n let updated := or(current, roles)\n // Compute the updated roles if `on` is false.\n // Use `and` to compute the intersection of `current` and `roles`,\n // `xor` it with `current` to flip the bits in the intersection.\n if iszero(on) { updated := xor(current, and(current, roles)) }\n // Then, store the new value.\n sstore(roleSlot, updated)\n // Emit the {RolesUpdated} event.\n log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), updated)\n }\n }\n\n /// @dev Grants the roles directly without authorization guard.\n /// Each bit of `roles` represents the role to turn on.\n function _grantRoles(address user, uint256 roles) internal virtual {\n _updateRoles(user, roles, true);\n }\n\n /// @dev Removes the roles directly without authorization guard.\n /// Each bit of `roles` represents the role to turn off.\n function _removeRoles(address user, uint256 roles) internal virtual {\n _updateRoles(user, roles, false);\n }\n\n /// @dev Throws if the sender does not have any of the `roles`.\n function _checkRoles(uint256 roles) internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the role slot.\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, caller())\n // Load the stored value, and if the `and` intersection\n // of the value and `roles` is zero, revert.\n if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Throws if the sender is not the owner,\n /// and does not have any of the `roles`.\n /// Checks for ownership first, then lazily checks for roles.\n function _checkOwnerOrRoles(uint256 roles) internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // If the caller is not the stored owner.\n // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n // Compute the role slot.\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, caller())\n // Load the stored value, and if the `and` intersection\n // of the value and `roles` is zero, revert.\n if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n }\n\n /// @dev Throws if the sender does not have any of the `roles`,\n /// and is not the owner.\n /// Checks for roles first, then lazily checks for ownership.\n function _checkRolesOrOwner(uint256 roles) internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the role slot.\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, caller())\n // Load the stored value, and if the `and` intersection\n // of the value and `roles` is zero, revert.\n if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n // If the caller is not the stored owner.\n // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n }\n\n /// @dev Convenience function to return a `roles` bitmap from an array of `ordinals`.\n /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n /// Not recommended to be called on-chain.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _rolesFromOrdinals(uint8[] memory ordinals) internal pure returns (uint256 roles) {\n /// @solidity memory-safe-assembly\n assembly {\n for { let i := shl(5, mload(ordinals)) } i { i := sub(i, 0x20) } {\n // We don't need to mask the values of `ordinals`, as Solidity\n // cleans dirty upper bits when storing variables into memory.\n roles := or(shl(mload(add(ordinals, i)), 1), roles)\n }\n }\n }\n\n /// @dev Convenience function to return an array of `ordinals` from the `roles` bitmap.\n /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n /// Not recommended to be called on-chain.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _ordinalsFromRoles(uint256 roles) internal pure returns (uint8[] memory ordinals) {\n /// @solidity memory-safe-assembly\n assembly {\n // Grab the pointer to the free memory.\n ordinals := mload(0x40)\n let ptr := add(ordinals, 0x20)\n let o := 0\n // The absence of lookup tables, De Bruijn, etc., here is intentional for\n // smaller bytecode, as this function is not meant to be called on-chain.\n for { let t := roles } 1 {} {\n mstore(ptr, o)\n // `shr` 5 is equivalent to multiplying by 0x20.\n // Push back into the ordinals array if the bit is set.\n ptr := add(ptr, shl(5, and(t, 1)))\n o := add(o, 1)\n t := shr(o, roles)\n if iszero(t) { break }\n }\n // Store the length of `ordinals`.\n mstore(ordinals, shr(5, sub(ptr, add(ordinals, 0x20))))\n // Allocate the memory.\n mstore(0x40, ptr)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC UPDATE FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Allows the owner to grant `user` `roles`.\n /// If the `user` already has a role, then it will be an no-op for the role.\n function grantRoles(address user, uint256 roles) public payable virtual onlyOwner {\n _grantRoles(user, roles);\n }\n\n /// @dev Allows the owner to remove `user` `roles`.\n /// If the `user` does not have a role, then it will be an no-op for the role.\n function revokeRoles(address user, uint256 roles) public payable virtual onlyOwner {\n _removeRoles(user, roles);\n }\n\n /// @dev Allow the caller to remove their own roles.\n /// If the caller does not have a role, then it will be an no-op for the role.\n function renounceRoles(uint256 roles) public payable virtual {\n _removeRoles(msg.sender, roles);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC READ FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the roles of `user`.\n function rolesOf(address user) public view virtual returns (uint256 roles) {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the role slot.\n mstore(0x0c, _ROLE_SLOT_SEED)\n mstore(0x00, user)\n // Load the stored value.\n roles := sload(keccak256(0x0c, 0x20))\n }\n }\n\n /// @dev Returns whether `user` has any of `roles`.\n function hasAnyRole(address user, uint256 roles) public view virtual returns (bool) {\n return rolesOf(user) & roles != 0;\n }\n\n /// @dev Returns whether `user` has all of `roles`.\n function hasAllRoles(address user, uint256 roles) public view virtual returns (bool) {\n return rolesOf(user) & roles == roles;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MODIFIERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Marks a function as only callable by an account with `roles`.\n modifier onlyRoles(uint256 roles) virtual {\n _checkRoles(roles);\n _;\n }\n\n /// @dev Marks a function as only callable by the owner or by an account\n /// with `roles`. Checks for ownership first, then lazily checks for roles.\n modifier onlyOwnerOrRoles(uint256 roles) virtual {\n _checkOwnerOrRoles(roles);\n _;\n }\n\n /// @dev Marks a function as only callable by an account with `roles`\n /// or the owner. Checks for roles first, then lazily checks for ownership.\n modifier onlyRolesOrOwner(uint256 roles) virtual {\n _checkRolesOrOwner(roles);\n _;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ROLE CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // IYKYK\n\n uint256 internal constant _ROLE_0 = 1 << 0;\n uint256 internal constant _ROLE_1 = 1 << 1;\n uint256 internal constant _ROLE_2 = 1 << 2;\n uint256 internal constant _ROLE_3 = 1 << 3;\n uint256 internal constant _ROLE_4 = 1 << 4;\n uint256 internal constant _ROLE_5 = 1 << 5;\n uint256 internal constant _ROLE_6 = 1 << 6;\n uint256 internal constant _ROLE_7 = 1 << 7;\n uint256 internal constant _ROLE_8 = 1 << 8;\n uint256 internal constant _ROLE_9 = 1 << 9;\n uint256 internal constant _ROLE_10 = 1 << 10;\n uint256 internal constant _ROLE_11 = 1 << 11;\n uint256 internal constant _ROLE_12 = 1 << 12;\n uint256 internal constant _ROLE_13 = 1 << 13;\n uint256 internal constant _ROLE_14 = 1 << 14;\n uint256 internal constant _ROLE_15 = 1 << 15;\n uint256 internal constant _ROLE_16 = 1 << 16;\n uint256 internal constant _ROLE_17 = 1 << 17;\n uint256 internal constant _ROLE_18 = 1 << 18;\n uint256 internal constant _ROLE_19 = 1 << 19;\n uint256 internal constant _ROLE_20 = 1 << 20;\n uint256 internal constant _ROLE_21 = 1 << 21;\n uint256 internal constant _ROLE_22 = 1 << 22;\n uint256 internal constant _ROLE_23 = 1 << 23;\n uint256 internal constant _ROLE_24 = 1 << 24;\n uint256 internal constant _ROLE_25 = 1 << 25;\n uint256 internal constant _ROLE_26 = 1 << 26;\n uint256 internal constant _ROLE_27 = 1 << 27;\n uint256 internal constant _ROLE_28 = 1 << 28;\n uint256 internal constant _ROLE_29 = 1 << 29;\n uint256 internal constant _ROLE_30 = 1 << 30;\n uint256 internal constant _ROLE_31 = 1 << 31;\n uint256 internal constant _ROLE_32 = 1 << 32;\n uint256 internal constant _ROLE_33 = 1 << 33;\n uint256 internal constant _ROLE_34 = 1 << 34;\n uint256 internal constant _ROLE_35 = 1 << 35;\n uint256 internal constant _ROLE_36 = 1 << 36;\n uint256 internal constant _ROLE_37 = 1 << 37;\n uint256 internal constant _ROLE_38 = 1 << 38;\n uint256 internal constant _ROLE_39 = 1 << 39;\n uint256 internal constant _ROLE_40 = 1 << 40;\n uint256 internal constant _ROLE_41 = 1 << 41;\n uint256 internal constant _ROLE_42 = 1 << 42;\n uint256 internal constant _ROLE_43 = 1 << 43;\n uint256 internal constant _ROLE_44 = 1 << 44;\n uint256 internal constant _ROLE_45 = 1 << 45;\n uint256 internal constant _ROLE_46 = 1 << 46;\n uint256 internal constant _ROLE_47 = 1 << 47;\n uint256 internal constant _ROLE_48 = 1 << 48;\n uint256 internal constant _ROLE_49 = 1 << 49;\n uint256 internal constant _ROLE_50 = 1 << 50;\n uint256 internal constant _ROLE_51 = 1 << 51;\n uint256 internal constant _ROLE_52 = 1 << 52;\n uint256 internal constant _ROLE_53 = 1 << 53;\n uint256 internal constant _ROLE_54 = 1 << 54;\n uint256 internal constant _ROLE_55 = 1 << 55;\n uint256 internal constant _ROLE_56 = 1 << 56;\n uint256 internal constant _ROLE_57 = 1 << 57;\n uint256 internal constant _ROLE_58 = 1 << 58;\n uint256 internal constant _ROLE_59 = 1 << 59;\n uint256 internal constant _ROLE_60 = 1 << 60;\n uint256 internal constant _ROLE_61 = 1 << 61;\n uint256 internal constant _ROLE_62 = 1 << 62;\n uint256 internal constant _ROLE_63 = 1 << 63;\n uint256 internal constant _ROLE_64 = 1 << 64;\n uint256 internal constant _ROLE_65 = 1 << 65;\n uint256 internal constant _ROLE_66 = 1 << 66;\n uint256 internal constant _ROLE_67 = 1 << 67;\n uint256 internal constant _ROLE_68 = 1 << 68;\n uint256 internal constant _ROLE_69 = 1 << 69;\n uint256 internal constant _ROLE_70 = 1 << 70;\n uint256 internal constant _ROLE_71 = 1 << 71;\n uint256 internal constant _ROLE_72 = 1 << 72;\n uint256 internal constant _ROLE_73 = 1 << 73;\n uint256 internal constant _ROLE_74 = 1 << 74;\n uint256 internal constant _ROLE_75 = 1 << 75;\n uint256 internal constant _ROLE_76 = 1 << 76;\n uint256 internal constant _ROLE_77 = 1 << 77;\n uint256 internal constant _ROLE_78 = 1 << 78;\n uint256 internal constant _ROLE_79 = 1 << 79;\n uint256 internal constant _ROLE_80 = 1 << 80;\n uint256 internal constant _ROLE_81 = 1 << 81;\n uint256 internal constant _ROLE_82 = 1 << 82;\n uint256 internal constant _ROLE_83 = 1 << 83;\n uint256 internal constant _ROLE_84 = 1 << 84;\n uint256 internal constant _ROLE_85 = 1 << 85;\n uint256 internal constant _ROLE_86 = 1 << 86;\n uint256 internal constant _ROLE_87 = 1 << 87;\n uint256 internal constant _ROLE_88 = 1 << 88;\n uint256 internal constant _ROLE_89 = 1 << 89;\n uint256 internal constant _ROLE_90 = 1 << 90;\n uint256 internal constant _ROLE_91 = 1 << 91;\n uint256 internal constant _ROLE_92 = 1 << 92;\n uint256 internal constant _ROLE_93 = 1 << 93;\n uint256 internal constant _ROLE_94 = 1 << 94;\n uint256 internal constant _ROLE_95 = 1 << 95;\n uint256 internal constant _ROLE_96 = 1 << 96;\n uint256 internal constant _ROLE_97 = 1 << 97;\n uint256 internal constant _ROLE_98 = 1 << 98;\n uint256 internal constant _ROLE_99 = 1 << 99;\n uint256 internal constant _ROLE_100 = 1 << 100;\n uint256 internal constant _ROLE_101 = 1 << 101;\n uint256 internal constant _ROLE_102 = 1 << 102;\n uint256 internal constant _ROLE_103 = 1 << 103;\n uint256 internal constant _ROLE_104 = 1 << 104;\n uint256 internal constant _ROLE_105 = 1 << 105;\n uint256 internal constant _ROLE_106 = 1 << 106;\n uint256 internal constant _ROLE_107 = 1 << 107;\n uint256 internal constant _ROLE_108 = 1 << 108;\n uint256 internal constant _ROLE_109 = 1 << 109;\n uint256 internal constant _ROLE_110 = 1 << 110;\n uint256 internal constant _ROLE_111 = 1 << 111;\n uint256 internal constant _ROLE_112 = 1 << 112;\n uint256 internal constant _ROLE_113 = 1 << 113;\n uint256 internal constant _ROLE_114 = 1 << 114;\n uint256 internal constant _ROLE_115 = 1 << 115;\n uint256 internal constant _ROLE_116 = 1 << 116;\n uint256 internal constant _ROLE_117 = 1 << 117;\n uint256 internal constant _ROLE_118 = 1 << 118;\n uint256 internal constant _ROLE_119 = 1 << 119;\n uint256 internal constant _ROLE_120 = 1 << 120;\n uint256 internal constant _ROLE_121 = 1 << 121;\n uint256 internal constant _ROLE_122 = 1 << 122;\n uint256 internal constant _ROLE_123 = 1 << 123;\n uint256 internal constant _ROLE_124 = 1 << 124;\n uint256 internal constant _ROLE_125 = 1 << 125;\n uint256 internal constant _ROLE_126 = 1 << 126;\n uint256 internal constant _ROLE_127 = 1 << 127;\n uint256 internal constant _ROLE_128 = 1 << 128;\n uint256 internal constant _ROLE_129 = 1 << 129;\n uint256 internal constant _ROLE_130 = 1 << 130;\n uint256 internal constant _ROLE_131 = 1 << 131;\n uint256 internal constant _ROLE_132 = 1 << 132;\n uint256 internal constant _ROLE_133 = 1 << 133;\n uint256 internal constant _ROLE_134 = 1 << 134;\n uint256 internal constant _ROLE_135 = 1 << 135;\n uint256 internal constant _ROLE_136 = 1 << 136;\n uint256 internal constant _ROLE_137 = 1 << 137;\n uint256 internal constant _ROLE_138 = 1 << 138;\n uint256 internal constant _ROLE_139 = 1 << 139;\n uint256 internal constant _ROLE_140 = 1 << 140;\n uint256 internal constant _ROLE_141 = 1 << 141;\n uint256 internal constant _ROLE_142 = 1 << 142;\n uint256 internal constant _ROLE_143 = 1 << 143;\n uint256 internal constant _ROLE_144 = 1 << 144;\n uint256 internal constant _ROLE_145 = 1 << 145;\n uint256 internal constant _ROLE_146 = 1 << 146;\n uint256 internal constant _ROLE_147 = 1 << 147;\n uint256 internal constant _ROLE_148 = 1 << 148;\n uint256 internal constant _ROLE_149 = 1 << 149;\n uint256 internal constant _ROLE_150 = 1 << 150;\n uint256 internal constant _ROLE_151 = 1 << 151;\n uint256 internal constant _ROLE_152 = 1 << 152;\n uint256 internal constant _ROLE_153 = 1 << 153;\n uint256 internal constant _ROLE_154 = 1 << 154;\n uint256 internal constant _ROLE_155 = 1 << 155;\n uint256 internal constant _ROLE_156 = 1 << 156;\n uint256 internal constant _ROLE_157 = 1 << 157;\n uint256 internal constant _ROLE_158 = 1 << 158;\n uint256 internal constant _ROLE_159 = 1 << 159;\n uint256 internal constant _ROLE_160 = 1 << 160;\n uint256 internal constant _ROLE_161 = 1 << 161;\n uint256 internal constant _ROLE_162 = 1 << 162;\n uint256 internal constant _ROLE_163 = 1 << 163;\n uint256 internal constant _ROLE_164 = 1 << 164;\n uint256 internal constant _ROLE_165 = 1 << 165;\n uint256 internal constant _ROLE_166 = 1 << 166;\n uint256 internal constant _ROLE_167 = 1 << 167;\n uint256 internal constant _ROLE_168 = 1 << 168;\n uint256 internal constant _ROLE_169 = 1 << 169;\n uint256 internal constant _ROLE_170 = 1 << 170;\n uint256 internal constant _ROLE_171 = 1 << 171;\n uint256 internal constant _ROLE_172 = 1 << 172;\n uint256 internal constant _ROLE_173 = 1 << 173;\n uint256 internal constant _ROLE_174 = 1 << 174;\n uint256 internal constant _ROLE_175 = 1 << 175;\n uint256 internal constant _ROLE_176 = 1 << 176;\n uint256 internal constant _ROLE_177 = 1 << 177;\n uint256 internal constant _ROLE_178 = 1 << 178;\n uint256 internal constant _ROLE_179 = 1 << 179;\n uint256 internal constant _ROLE_180 = 1 << 180;\n uint256 internal constant _ROLE_181 = 1 << 181;\n uint256 internal constant _ROLE_182 = 1 << 182;\n uint256 internal constant _ROLE_183 = 1 << 183;\n uint256 internal constant _ROLE_184 = 1 << 184;\n uint256 internal constant _ROLE_185 = 1 << 185;\n uint256 internal constant _ROLE_186 = 1 << 186;\n uint256 internal constant _ROLE_187 = 1 << 187;\n uint256 internal constant _ROLE_188 = 1 << 188;\n uint256 internal constant _ROLE_189 = 1 << 189;\n uint256 internal constant _ROLE_190 = 1 << 190;\n uint256 internal constant _ROLE_191 = 1 << 191;\n uint256 internal constant _ROLE_192 = 1 << 192;\n uint256 internal constant _ROLE_193 = 1 << 193;\n uint256 internal constant _ROLE_194 = 1 << 194;\n uint256 internal constant _ROLE_195 = 1 << 195;\n uint256 internal constant _ROLE_196 = 1 << 196;\n uint256 internal constant _ROLE_197 = 1 << 197;\n uint256 internal constant _ROLE_198 = 1 << 198;\n uint256 internal constant _ROLE_199 = 1 << 199;\n uint256 internal constant _ROLE_200 = 1 << 200;\n uint256 internal constant _ROLE_201 = 1 << 201;\n uint256 internal constant _ROLE_202 = 1 << 202;\n uint256 internal constant _ROLE_203 = 1 << 203;\n uint256 internal constant _ROLE_204 = 1 << 204;\n uint256 internal constant _ROLE_205 = 1 << 205;\n uint256 internal constant _ROLE_206 = 1 << 206;\n uint256 internal constant _ROLE_207 = 1 << 207;\n uint256 internal constant _ROLE_208 = 1 << 208;\n uint256 internal constant _ROLE_209 = 1 << 209;\n uint256 internal constant _ROLE_210 = 1 << 210;\n uint256 internal constant _ROLE_211 = 1 << 211;\n uint256 internal constant _ROLE_212 = 1 << 212;\n uint256 internal constant _ROLE_213 = 1 << 213;\n uint256 internal constant _ROLE_214 = 1 << 214;\n uint256 internal constant _ROLE_215 = 1 << 215;\n uint256 internal constant _ROLE_216 = 1 << 216;\n uint256 internal constant _ROLE_217 = 1 << 217;\n uint256 internal constant _ROLE_218 = 1 << 218;\n uint256 internal constant _ROLE_219 = 1 << 219;\n uint256 internal constant _ROLE_220 = 1 << 220;\n uint256 internal constant _ROLE_221 = 1 << 221;\n uint256 internal constant _ROLE_222 = 1 << 222;\n uint256 internal constant _ROLE_223 = 1 << 223;\n uint256 internal constant _ROLE_224 = 1 << 224;\n uint256 internal constant _ROLE_225 = 1 << 225;\n uint256 internal constant _ROLE_226 = 1 << 226;\n uint256 internal constant _ROLE_227 = 1 << 227;\n uint256 internal constant _ROLE_228 = 1 << 228;\n uint256 internal constant _ROLE_229 = 1 << 229;\n uint256 internal constant _ROLE_230 = 1 << 230;\n uint256 internal constant _ROLE_231 = 1 << 231;\n uint256 internal constant _ROLE_232 = 1 << 232;\n uint256 internal constant _ROLE_233 = 1 << 233;\n uint256 internal constant _ROLE_234 = 1 << 234;\n uint256 internal constant _ROLE_235 = 1 << 235;\n uint256 internal constant _ROLE_236 = 1 << 236;\n uint256 internal constant _ROLE_237 = 1 << 237;\n uint256 internal constant _ROLE_238 = 1 << 238;\n uint256 internal constant _ROLE_239 = 1 << 239;\n uint256 internal constant _ROLE_240 = 1 << 240;\n uint256 internal constant _ROLE_241 = 1 << 241;\n uint256 internal constant _ROLE_242 = 1 << 242;\n uint256 internal constant _ROLE_243 = 1 << 243;\n uint256 internal constant _ROLE_244 = 1 << 244;\n uint256 internal constant _ROLE_245 = 1 << 245;\n uint256 internal constant _ROLE_246 = 1 << 246;\n uint256 internal constant _ROLE_247 = 1 << 247;\n uint256 internal constant _ROLE_248 = 1 << 248;\n uint256 internal constant _ROLE_249 = 1 << 249;\n uint256 internal constant _ROLE_250 = 1 << 250;\n uint256 internal constant _ROLE_251 = 1 << 251;\n uint256 internal constant _ROLE_252 = 1 << 252;\n uint256 internal constant _ROLE_253 = 1 << 253;\n uint256 internal constant _ROLE_254 = 1 << 254;\n uint256 internal constant _ROLE_255 = 1 << 255;\n}\n"},"contracts/interfaces/IQuestFactory.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuestFactory {\n // Errors\n error AddressAlreadyMinted();\n error AddressNotSigned();\n error AddressZeroNotAllowed();\n error AuthOwnerDiscountToken();\n error Deprecated();\n error Erc20QuestAddressNotSet();\n error InvalidMintFee();\n error MsgValueLessThanQuestNFTFee();\n error OverMaxAllowedToMint();\n error QuestFeeTooHigh();\n error QuestIdUsed();\n error QuestNotQueued();\n error QuestNotStarted();\n error QuestEnded();\n error QuestTypeNotSupported();\n error Reentrancy();\n error ReferralFeeTooHigh();\n error ZeroAddressNotAllowed();\n error QuestAddressMismatch();\n error ClaimFailed();\n error txOriginMismatch();\n\n // Structs\n\n // This struct is used in a mapping - only add new fields to the end\n struct NftQuestFees {\n uint256 fee;\n bool exists;\n }\n\n // This struct is used in a mapping - only add new fields to the end\n struct Quest {\n mapping(address => bool) addressMinted;\n address questAddress;\n uint256 totalParticipants;\n uint256 numberMinted;\n string questType;\n uint40 durationTotal;\n address questCreator;\n address mintFeeRecipient;\n string actionType;\n string questName;\n uint32 txHashChainId;\n }\n\n struct QuestData {\n address questAddress;\n address rewardToken;\n bool queued;\n uint16 questFee;\n uint256 startTime;\n uint256 endTime;\n uint256 totalParticipants;\n uint256 numberMinted;\n uint256 redeemedTokens;\n uint256 rewardAmountOrTokenId;\n bool hasWithdrawn;\n }\n\n struct QuestJsonData {\n string actionType;\n string questName;\n uint32 txHashChainId;\n }\n\n struct ClaimData {\n string questId;\n bytes32 hashBytes;\n bytes signature;\n address ref;\n address claimer;\n string extraData;\n }\n\n struct ERC20QuestData {\n uint32 txHashChainId;\n address rewardTokenAddress;\n uint256 endTime;\n uint256 startTime;\n uint256 totalParticipants;\n uint256 rewardAmount;\n string questId;\n string actionType;\n string questName;\n string questType;\n string projectName;\n }\n\n struct ERC1155QuestData {\n uint32 txHashChainId;\n address rewardTokenAddress;\n uint256 endTime;\n uint256 startTime;\n uint256 totalParticipants;\n uint256 tokenId;\n string questId;\n string actionType;\n string questName;\n string projectName;\n }\n\n // Events\n event ExtraMintFeeReturned(address indexed recipient, uint256 amount);\n event MintFeeSet(uint256 mintFee);\n event NftQuestFeeListSet(address[] addresses, uint256[] fees);\n event NftQuestFeeSet(uint256 nftQuestFee);\n\n event QuestCancelled(address indexed questAddress, string questId, uint256 endsAt);\n\n event QuestClaimedData(\n address indexed recipient,\n address indexed questAddress,\n string extraData\n );\n event Quest1155Claimed(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 tokenId\n );\n event QuestClaimed(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWei\n );\n event QuestClaimedReferred(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWeiOrTokenId,\n address referrer,\n uint16 referralFee,\n uint256 mintFeeEthWei\n );\n event QuestClaimReferred(\n address indexed recipient,\n address indexed questAddress,\n string questId,\n address rewardToken,\n uint256 rewardAmountInWeiOrTokenId,\n address referrer,\n uint16 referralFee,\n uint256 mintFeeEthWei,\n uint256 tokenReferralFee,\n uint256 referralClaimAmount\n );\n event MintFeePaid(\n string questId,\n address rabbitHoleAddress,\n uint256 rabbitHoleAmountWei,\n address questCreatorAddress,\n uint256 questCreatorAmountWei,\n address referrerAddress,\n uint256 referrerAmountWei\n );\n event QuestCreated(\n address indexed creator,\n address indexed contractAddress,\n string projectName,\n string questName,\n string questId,\n string questType,\n string actionType,\n uint32 chainId,\n address rewardToken,\n uint256 endTime,\n uint256 startTime,\n uint256 totalParticipants,\n uint256 rewardAmountOrTokenId\n );\n event ReferralFeeSet(uint16 percent);\n\n // Read Functions\n function getAddressMinted(string memory questId_, address address_) external view returns (bool);\n function getNumberMinted(string memory questId_) external view returns (uint256);\n function questData(string memory questId_) external view returns (QuestData memory);\n function questInfo(string memory questId_) external view returns (address, uint256, uint256);\n function recoverSigner(bytes32 hash_, bytes memory signature_) external view returns (address);\n function mintFee() external view returns (uint256);\n function questJsonData(string memory questId_) external view returns (QuestJsonData memory);\n function buildJsonString(\n bytes32 txHash,\n uint32 txHashChainId,\n string memory actionType,\n string memory questName\n ) external pure returns (string memory);\n function questFee() external view returns (uint16);\n \n // Create\n function createERC20Boost(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_\n ) external returns (address);\n function createERC20Quest(\n uint32 txHashChainId_,\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmount_,\n string memory questId_,\n string memory actionType_,\n string memory questName_,\n string memory projectName_,\n uint256 referralRewardFee_\n ) external returns (address);\n\n function create1155QuestAndQueue(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n string memory questId_,\n string memory\n ) external payable returns (address);\n\n function claimOptimized(bytes calldata signature_, bytes calldata data_) external payable;\n\n function cancelQuest(string calldata questId_) external;\n\n // Set\n function setClaimSignerAddress(address claimSignerAddress_) external;\n function setErc1155QuestAddress(address erc1155QuestAddress_) external;\n function setErc20QuestAddress(address erc20QuestAddress_) external;\n function setMintFee(uint256 mintFee_) external;\n function setDefaultMintFeeRecipient(address mintFeeRecipient_) external;\n function setProtocolFeeRecipient(address protocolFeeRecipient_) external;\n function setQuestFee(uint16 questFee_) external;\n\n // Callbacks\n function withdrawCallback(string calldata questId_, address protocolFeeRecipient_, uint protocolPayout_, address mintFeeRecipient_, uint mintPayout) external;\n}"},"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Strings.sol\";\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n enum RecoverError {\n NoError,\n InvalidSignature,\n InvalidSignatureLength,\n InvalidSignatureS,\n InvalidSignatureV // Deprecated in v4.8\n }\n\n function _throwError(RecoverError error) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert(\"ECDSA: invalid signature\");\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert(\"ECDSA: invalid signature length\");\n } else if (error == RecoverError.InvalidSignatureS) {\n revert(\"ECDSA: invalid signature 's' value\");\n }\n }\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature` or error string. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n *\n * Documentation for signature generation:\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\n *\n * _Available since v4.3._\n */\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\n if (signature.length == 65) {\n bytes32 r;\n bytes32 s;\n uint8 v;\n // ecrecover takes the signature parameters, and the only way to get them\n // currently is to use assembly.\n /// @solidity memory-safe-assembly\n assembly {\n r := mload(add(signature, 0x20))\n s := mload(add(signature, 0x40))\n v := byte(0, mload(add(signature, 0x60)))\n }\n return tryRecover(hash, v, r, s);\n } else {\n return (address(0), RecoverError.InvalidSignatureLength);\n }\n }\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature`. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, signature);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\n *\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\n *\n * _Available since v4.3._\n */\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n *\n * _Available since v4.2._\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\n * `r` and `s` signature fields separately.\n *\n * _Available since v4.3._\n */\n function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n //\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n // these malleable signatures as well.\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n return (address(0), RecoverError.InvalidSignatureS);\n }\n\n // If the signature is valid (and not malleable), return the signer address\n address signer = ecrecover(hash, v, r, s);\n if (signer == address(0)) {\n return (address(0), RecoverError.InvalidSignature);\n }\n\n return (signer, RecoverError.NoError);\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n * produces hash corresponding to the one signed with the\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n * JSON-RPC method as part of EIP-191.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {\n // 32 is the length in bytes of hash,\n // enforced by the type signature above\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\")\n mstore(0x1c, hash)\n message := keccak256(0x00, 0x3c)\n }\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from `s`. This\n * produces hash corresponding to the one signed with the\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n * JSON-RPC method as part of EIP-191.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n\", Strings.toString(s.length), s));\n }\n\n /**\n * @dev Returns an Ethereum Signed Typed Data, created from a\n * `domainSeparator` and a `structHash`. This produces hash corresponding\n * to the one signed with the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\n * JSON-RPC method as part of EIP-712.\n *\n * See {recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {\n /// @solidity memory-safe-assembly\n assembly {\n let ptr := mload(0x40)\n mstore(ptr, \"\\x19\\x01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n data := keccak256(ptr, 0x42)\n }\n }\n\n /**\n * @dev Returns an Ethereum Signed Data with intended validator, created from a\n * `validator` and `data` according to the version 0 of EIP-191.\n *\n * See {recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(\"\\x19\\x00\", validator, data));\n }\n}\n"},"lib/solady/src/utils/LibClone.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Minimal proxy library.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol)\n/// @author Minimal proxy by 0age (https://github.com/0age)\n/// @author Clones with immutable args by wighawag, zefram.eth, Saw-mon & Natalie\n/// (https://github.com/Saw-mon-and-Natalie/clones-with-immutable-args)\n/// @author Minimal ERC1967 proxy by jtriley-eth (https://github.com/jtriley-eth/minimum-viable-proxy)\n///\n/// @dev Minimal proxy:\n/// Although the sw0nt pattern saves 5 gas over the erc-1167 pattern during runtime,\n/// it is not supported out-of-the-box on Etherscan. Hence, we choose to use the 0age pattern,\n/// which saves 4 gas over the erc-1167 pattern during runtime, and has the smallest bytecode.\n///\n/// @dev Minimal proxy (PUSH0 variant):\n/// This is a new minimal proxy that uses the PUSH0 opcode introduced during Shanghai.\n/// It is optimized first for minimal runtime gas, then for minimal bytecode.\n/// The PUSH0 clone functions are intentionally postfixed with a jarring \"_PUSH0\" as\n/// many EVM chains may not support the PUSH0 opcode in the early months after Shanghai.\n/// Please use with caution.\n///\n/// @dev Clones with immutable args (CWIA):\n/// The implementation of CWIA here implements a `receive()` method that emits the\n/// `ReceiveETH(uint256)` event. This skips the `DELEGATECALL` when there is no calldata,\n/// enabling us to accept hard gas-capped `sends` & `transfers` for maximum backwards\n/// composability. The minimal proxy implementation does not offer this feature.\n///\n/// @dev Minimal ERC1967 proxy:\n/// An minimal ERC1967 proxy, intended to be upgraded with UUPS.\n/// This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n///\n/// @dev ERC1967I proxy:\n/// An variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\nlibrary LibClone {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The keccak256 of the deployed code for the ERC1967 proxy.\n bytes32 internal constant ERC1967_CODE_HASH =\n 0xaaa52c8cc8a0e3fd27ce756cc6b4e70c51423e9b597b11f32d3e49f8b1fc890d;\n\n /// @dev The keccak256 of the deployed code for the ERC1967I proxy.\n bytes32 internal constant ERC1967I_CODE_HASH =\n 0xce700223c0d4cea4583409accfc45adac4a093b3519998a9cbbe1504dadba6f7;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Unable to deploy the clone.\n error DeploymentFailed();\n\n /// @dev The salt must start with either the zero address or `by`.\n error SaltDoesNotStartWith();\n\n /// @dev The ETH transfer has failed.\n error ETHTransferFailed();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MINIMAL PROXY OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Deploys a clone of `implementation`.\n function clone(address implementation) internal returns (address instance) {\n instance = clone(0, implementation);\n }\n\n /// @dev Deploys a clone of `implementation`.\n /// Deposits `value` ETH during deployment.\n function clone(uint256 value, address implementation) internal returns (address instance) {\n /// @solidity memory-safe-assembly\n assembly {\n /**\n * --------------------------------------------------------------------------+\n * CREATION (9 bytes) |\n * --------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * --------------------------------------------------------------------------|\n * 60 runSize | PUSH1 runSize | r | |\n * 3d | RETURNDATASIZE | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 3d | RETURNDATASIZE | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * --------------------------------------------------------------------------|\n * RUNTIME (44 bytes) |\n * --------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * --------------------------------------------------------------------------|\n * |\n * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | 0 | |\n * 3d | RETURNDATASIZE | 0 0 | |\n * 3d | RETURNDATASIZE | 0 0 0 | |\n * 3d | RETURNDATASIZE | 0 0 0 0 | |\n * |\n * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds 0 0 0 0 | |\n * 3d | RETURNDATASIZE | 0 cds 0 0 0 0 | |\n * 3d | RETURNDATASIZE | 0 0 cds 0 0 0 0 | |\n * 37 | CALLDATACOPY | 0 0 0 0 | [0..cds): calldata |\n * |\n * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds 0 0 0 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | 0 cds 0 0 0 0 | [0..cds): calldata |\n * 73 addr | PUSH20 addr | addr 0 cds 0 0 0 0 | [0..cds): calldata |\n * 5a | GAS | gas addr 0 cds 0 0 0 0 | [0..cds): calldata |\n * f4 | DELEGATECALL | success 0 0 | [0..cds): calldata |\n * |\n * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds success 0 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | rds rds success 0 0 | [0..cds): calldata |\n * 93 | SWAP4 | 0 rds success 0 rds | [0..cds): calldata |\n * 80 | DUP1 | 0 0 rds success 0 rds | [0..cds): calldata |\n * 3e | RETURNDATACOPY | success 0 rds | [0..rds): returndata |\n * |\n * 60 0x2a | PUSH1 0x2a | 0x2a success 0 rds | [0..rds): returndata |\n * 57 | JUMPI | 0 rds | [0..rds): returndata |\n * |\n * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * fd | REVERT | | [0..rds): returndata |\n * |\n * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | 0 rds | [0..rds): returndata |\n * f3 | RETURN | | [0..rds): returndata |\n * --------------------------------------------------------------------------+\n */\n mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n mstore(0x14, implementation)\n mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n instance := create(value, 0x0c, 0x35)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n function cloneDeterministic(address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = cloneDeterministic(0, implementation, salt);\n }\n\n /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n /// Deposits `value` ETH during deployment.\n function cloneDeterministic(uint256 value, address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n mstore(0x14, implementation)\n mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n instance := create2(value, 0x0c, 0x35, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the initialization code of the clone of `implementation`.\n function initCode(address implementation) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(0x40)\n mstore(add(result, 0x40), 0x5af43d3d93803e602a57fd5bf30000000000000000000000)\n mstore(add(result, 0x28), implementation)\n mstore(add(result, 0x14), 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n mstore(result, 0x35) // Store the length.\n mstore(0x40, add(result, 0x60)) // Allocate memory.\n }\n }\n\n /// @dev Returns the initialization code hash of the clone of `implementation`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHash(address implementation) internal pure returns (bytes32 hash) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n mstore(0x14, implementation)\n mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n hash := keccak256(0x0c, 0x35)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the address of the deterministic clone of `implementation`,\n /// with `salt` by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddress(address implementation, bytes32 salt, address deployer)\n internal\n pure\n returns (address predicted)\n {\n bytes32 hash = initCodeHash(implementation);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MINIMAL PROXY OPERATIONS (PUSH0 VARIANT) */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Deploys a PUSH0 clone of `implementation`.\n function clone_PUSH0(address implementation) internal returns (address instance) {\n instance = clone_PUSH0(0, implementation);\n }\n\n /// @dev Deploys a PUSH0 clone of `implementation`.\n /// Deposits `value` ETH during deployment.\n function clone_PUSH0(uint256 value, address implementation)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n /**\n * --------------------------------------------------------------------------+\n * CREATION (9 bytes) |\n * --------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * --------------------------------------------------------------------------|\n * 60 runSize | PUSH1 runSize | r | |\n * 5f | PUSH0 | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 5f | PUSH0 | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * --------------------------------------------------------------------------|\n * RUNTIME (45 bytes) |\n * --------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * --------------------------------------------------------------------------|\n * |\n * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n * 5f | PUSH0 | 0 | |\n * 5f | PUSH0 | 0 0 | |\n * |\n * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds 0 0 | |\n * 5f | PUSH0 | 0 cds 0 0 | |\n * 5f | PUSH0 | 0 0 cds 0 0 | |\n * 37 | CALLDATACOPY | 0 0 | [0..cds): calldata |\n * |\n * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds 0 0 | [0..cds): calldata |\n * 5f | PUSH0 | 0 cds 0 0 | [0..cds): calldata |\n * 73 addr | PUSH20 addr | addr 0 cds 0 0 | [0..cds): calldata |\n * 5a | GAS | gas addr 0 cds 0 0 | [0..cds): calldata |\n * f4 | DELEGATECALL | success | [0..cds): calldata |\n * |\n * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds success | [0..cds): calldata |\n * 5f | PUSH0 | 0 rds success | [0..cds): calldata |\n * 5f | PUSH0 | 0 0 rds success | [0..cds): calldata |\n * 3e | RETURNDATACOPY | success | [0..rds): returndata |\n * |\n * 60 0x29 | PUSH1 0x29 | 0x29 success | [0..rds): returndata |\n * 57 | JUMPI | | [0..rds): returndata |\n * |\n * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds | [0..rds): returndata |\n * 5f | PUSH0 | 0 rds | [0..rds): returndata |\n * fd | REVERT | | [0..rds): returndata |\n * |\n * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | | [0..rds): returndata |\n * 3d | RETURNDATASIZE | rds | [0..rds): returndata |\n * 5f | PUSH0 | 0 rds | [0..rds): returndata |\n * f3 | RETURN | | [0..rds): returndata |\n * --------------------------------------------------------------------------+\n */\n mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n mstore(0x14, implementation) // 20\n mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n instance := create(value, 0x0e, 0x36)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n function cloneDeterministic_PUSH0(address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = cloneDeterministic_PUSH0(0, implementation, salt);\n }\n\n /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n /// Deposits `value` ETH during deployment.\n function cloneDeterministic_PUSH0(uint256 value, address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n mstore(0x14, implementation) // 20\n mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n instance := create2(value, 0x0e, 0x36, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the initialization code of the PUSH0 clone of `implementation`.\n function initCode_PUSH0(address implementation) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(0x40)\n mstore(add(result, 0x40), 0x5af43d5f5f3e6029573d5ffd5b3d5ff300000000000000000000) // 16\n mstore(add(result, 0x26), implementation) // 20\n mstore(add(result, 0x12), 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n mstore(result, 0x36) // Store the length.\n mstore(0x40, add(result, 0x60)) // Allocate memory.\n }\n }\n\n /// @dev Returns the initialization code hash of the PUSH0 clone of `implementation`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHash_PUSH0(address implementation) internal pure returns (bytes32 hash) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n mstore(0x14, implementation) // 20\n mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n hash := keccak256(0x0e, 0x36)\n mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the address of the deterministic PUSH0 clone of `implementation`,\n /// with `salt` by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddress_PUSH0(\n address implementation,\n bytes32 salt,\n address deployer\n ) internal pure returns (address predicted) {\n bytes32 hash = initCodeHash_PUSH0(implementation);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CLONES WITH IMMUTABLE ARGS OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: This implementation of CWIA differs from the original implementation.\n // If the calldata is empty, it will emit a `ReceiveETH(uint256)` event and skip the `DELEGATECALL`.\n\n /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `data`.\n function clone(address implementation, bytes memory data) internal returns (address instance) {\n instance = clone(0, implementation, data);\n }\n\n /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `data`.\n /// Deposits `value` ETH during deployment.\n function clone(uint256 value, address implementation, bytes memory data)\n internal\n returns (address instance)\n {\n assembly {\n // Compute the boundaries of the data and cache the memory slots around it.\n let mBefore3 := mload(sub(data, 0x60))\n let mBefore2 := mload(sub(data, 0x40))\n let mBefore1 := mload(sub(data, 0x20))\n let dataLength := mload(data)\n let dataEnd := add(add(data, 0x20), dataLength)\n let mAfter1 := mload(dataEnd)\n\n // +2 bytes for telling how much data there is appended to the call.\n let extraLength := add(dataLength, 2)\n // The `creationSize` is `extraLength + 108`\n // The `runSize` is `creationSize - 10`.\n\n /**\n * ---------------------------------------------------------------------------------------------------+\n * CREATION (10 bytes) |\n * ---------------------------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------------------------|\n * 61 runSize | PUSH2 runSize | r | |\n * 3d | RETURNDATASIZE | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 3d | RETURNDATASIZE | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * ---------------------------------------------------------------------------------------------------|\n * RUNTIME (98 bytes + extraLength) |\n * ---------------------------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------------------------|\n * |\n * ::: if no calldata, emit event & return w/o `DELEGATECALL` ::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds | |\n * 60 0x2c | PUSH1 0x2c | 0x2c cds | |\n * 57 | JUMPI | | |\n * 34 | CALLVALUE | cv | |\n * 3d | RETURNDATASIZE | 0 cv | |\n * 52 | MSTORE | | [0..0x20): callvalue |\n * 7f sig | PUSH32 0x9e.. | sig | [0..0x20): callvalue |\n * 59 | MSIZE | 0x20 sig | [0..0x20): callvalue |\n * 3d | RETURNDATASIZE | 0 0x20 sig | [0..0x20): callvalue |\n * a1 | LOG1 | | [0..0x20): callvalue |\n * 00 | STOP | | [0..0x20): callvalue |\n * 5b | JUMPDEST | | |\n * |\n * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds | |\n * 3d | RETURNDATASIZE | 0 cds | |\n * 3d | RETURNDATASIZE | 0 0 cds | |\n * 37 | CALLDATACOPY | | [0..cds): calldata |\n * |\n * ::: keep some values in stack :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | 0 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | 0 0 0 | [0..cds): calldata |\n * 3d | RETURNDATASIZE | 0 0 0 0 | [0..cds): calldata |\n * 61 extra | PUSH2 extra | e 0 0 0 0 | [0..cds): calldata |\n * |\n * ::: copy extra data to memory :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 80 | DUP1 | e e 0 0 0 0 | [0..cds): calldata |\n * 60 0x62 | PUSH1 0x62 | 0x62 e e 0 0 0 0 | [0..cds): calldata |\n * 36 | CALLDATASIZE | cds 0x62 e e 0 0 0 0 | [0..cds): calldata |\n * 39 | CODECOPY | e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * |\n * ::: delegate call to the implementation contract ::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 01 | ADD | cds+e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 3d | RETURNDATASIZE | 0 cds+e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 73 addr | PUSH20 addr | addr 0 cds+e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 5a | GAS | gas addr 0 cds+e 0 0 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * f4 | DELEGATECALL | success 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * |\n * ::: copy return data to memory ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds success 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 3d | RETURNDATASIZE | rds rds success 0 0 | [0..cds): calldata, [cds..cds+e): extraData |\n * 93 | SWAP4 | 0 rds success 0 rds | [0..cds): calldata, [cds..cds+e): extraData |\n * 80 | DUP1 | 0 0 rds success 0 rds | [0..cds): calldata, [cds..cds+e): extraData |\n * 3e | RETURNDATACOPY | success 0 rds | [0..rds): returndata |\n * |\n * 60 0x60 | PUSH1 0x60 | 0x60 success 0 rds | [0..rds): returndata |\n * 57 | JUMPI | 0 rds | [0..rds): returndata |\n * |\n * ::: revert ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * fd | REVERT | | [0..rds): returndata |\n * |\n * ::: return ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | 0 rds | [0..rds): returndata |\n * f3 | RETURN | | [0..rds): returndata |\n * ---------------------------------------------------------------------------------------------------+\n */\n mstore(data, 0x5af43d3d93803e606057fd5bf3) // Write the bytecode before the data.\n mstore(sub(data, 0x0d), implementation) // Write the address of the implementation.\n // Write the rest of the bytecode.\n mstore(\n sub(data, 0x21),\n or(shl(0x48, extraLength), 0x593da1005b363d3d373d3d3d3d610000806062363936013d73)\n )\n // `keccak256(\"ReceiveETH(uint256)\")`\n mstore(\n sub(data, 0x3a), 0x9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff\n )\n mstore(\n // Do a out-of-gas revert if `extraLength` is too big. 0xffff - 0x62 + 0x01 = 0xff9e.\n // The actual EVM limit may be smaller and may change over time.\n sub(data, add(0x59, lt(extraLength, 0xff9e))),\n or(shl(0x78, add(extraLength, 0x62)), 0xfd6100003d81600a3d39f336602c57343d527f)\n )\n mstore(dataEnd, shl(0xf0, extraLength))\n\n instance := create(value, sub(data, 0x4c), add(extraLength, 0x6c))\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n\n // Restore the overwritten memory surrounding `data`.\n mstore(dataEnd, mAfter1)\n mstore(data, dataLength)\n mstore(sub(data, 0x20), mBefore1)\n mstore(sub(data, 0x40), mBefore2)\n mstore(sub(data, 0x60), mBefore3)\n }\n }\n\n /// @dev Deploys a deterministic clone of `implementation`\n /// with immutable arguments encoded in `data` and `salt`.\n function cloneDeterministic(address implementation, bytes memory data, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = cloneDeterministic(0, implementation, data, salt);\n }\n\n /// @dev Deploys a deterministic clone of `implementation`\n /// with immutable arguments encoded in `data` and `salt`.\n function cloneDeterministic(\n uint256 value,\n address implementation,\n bytes memory data,\n bytes32 salt\n ) internal returns (address instance) {\n assembly {\n // Compute the boundaries of the data and cache the memory slots around it.\n let mBefore3 := mload(sub(data, 0x60))\n let mBefore2 := mload(sub(data, 0x40))\n let mBefore1 := mload(sub(data, 0x20))\n let dataLength := mload(data)\n let dataEnd := add(add(data, 0x20), dataLength)\n let mAfter1 := mload(dataEnd)\n\n // +2 bytes for telling how much data there is appended to the call.\n let extraLength := add(dataLength, 2)\n\n mstore(data, 0x5af43d3d93803e606057fd5bf3) // Write the bytecode before the data.\n mstore(sub(data, 0x0d), implementation) // Write the address of the implementation.\n // Write the rest of the bytecode.\n mstore(\n sub(data, 0x21),\n or(shl(0x48, extraLength), 0x593da1005b363d3d373d3d3d3d610000806062363936013d73)\n )\n // `keccak256(\"ReceiveETH(uint256)\")`\n mstore(\n sub(data, 0x3a), 0x9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff\n )\n mstore(\n // Do a out-of-gas revert if `extraLength` is too big. 0xffff - 0x62 + 0x01 = 0xff9e.\n // The actual EVM limit may be smaller and may change over time.\n sub(data, add(0x59, lt(extraLength, 0xff9e))),\n or(shl(0x78, add(extraLength, 0x62)), 0xfd6100003d81600a3d39f336602c57343d527f)\n )\n mstore(dataEnd, shl(0xf0, extraLength))\n\n instance := create2(value, sub(data, 0x4c), add(extraLength, 0x6c), salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n\n // Restore the overwritten memory surrounding `data`.\n mstore(dataEnd, mAfter1)\n mstore(data, dataLength)\n mstore(sub(data, 0x20), mBefore1)\n mstore(sub(data, 0x40), mBefore2)\n mstore(sub(data, 0x60), mBefore3)\n }\n }\n\n /// @dev Returns the initialization code hash of the clone of `implementation`\n /// using immutable arguments encoded in `data`.\n function initCode(address implementation, bytes memory data)\n internal\n pure\n returns (bytes memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(0x40)\n let dataLength := mload(data)\n\n // Do a out-of-gas revert if `dataLength` is too big. 0xffff - 0x02 - 0x62 = 0xff9b.\n // The actual EVM limit may be smaller and may change over time.\n returndatacopy(returndatasize(), returndatasize(), gt(dataLength, 0xff9b))\n\n let o := add(result, 0x8c)\n let end := add(o, dataLength)\n\n // Copy the `data` into `result`.\n for { let d := sub(add(data, 0x20), o) } 1 {} {\n mstore(o, mload(add(o, d)))\n o := add(o, 0x20)\n if iszero(lt(o, end)) { break }\n }\n\n // +2 bytes for telling how much data there is appended to the call.\n let extraLength := add(dataLength, 2)\n\n mstore(add(result, 0x6c), 0x5af43d3d93803e606057fd5bf3) // Write the bytecode before the data.\n mstore(add(result, 0x5f), implementation) // Write the address of the implementation.\n // Write the rest of the bytecode.\n mstore(\n add(result, 0x4b),\n or(shl(0x48, extraLength), 0x593da1005b363d3d373d3d3d3d610000806062363936013d73)\n )\n // `keccak256(\"ReceiveETH(uint256)\")`\n mstore(\n add(result, 0x32),\n 0x9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff\n )\n mstore(\n add(result, 0x12),\n or(shl(0x78, add(extraLength, 0x62)), 0x6100003d81600a3d39f336602c57343d527f)\n )\n mstore(end, shl(0xf0, extraLength))\n mstore(add(end, 0x02), 0) // Zeroize the slot after the result.\n mstore(result, add(extraLength, 0x6c)) // Store the length.\n mstore(0x40, add(0x22, end)) // Allocate memory.\n }\n }\n\n /// @dev Returns the initialization code hash of the clone of `implementation`\n /// using immutable arguments encoded in `data`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHash(address implementation, bytes memory data)\n internal\n pure\n returns (bytes32 hash)\n {\n assembly {\n // Compute the boundaries of the data and cache the memory slots around it.\n let mBefore3 := mload(sub(data, 0x60))\n let mBefore2 := mload(sub(data, 0x40))\n let mBefore1 := mload(sub(data, 0x20))\n let dataLength := mload(data)\n let dataEnd := add(add(data, 0x20), dataLength)\n let mAfter1 := mload(dataEnd)\n\n // Do a out-of-gas revert if `dataLength` is too big. 0xffff - 0x02 - 0x62 = 0xff9b.\n // The actual EVM limit may be smaller and may change over time.\n returndatacopy(returndatasize(), returndatasize(), gt(dataLength, 0xff9b))\n\n // +2 bytes for telling how much data there is appended to the call.\n let extraLength := add(dataLength, 2)\n\n mstore(data, 0x5af43d3d93803e606057fd5bf3) // Write the bytecode before the data.\n mstore(sub(data, 0x0d), implementation) // Write the address of the implementation.\n // Write the rest of the bytecode.\n mstore(\n sub(data, 0x21),\n or(shl(0x48, extraLength), 0x593da1005b363d3d373d3d3d3d610000806062363936013d73)\n )\n // `keccak256(\"ReceiveETH(uint256)\")`\n mstore(\n sub(data, 0x3a), 0x9e4ac34f21c619cefc926c8bd93b54bf5a39c7ab2127a895af1cc0691d7e3dff\n )\n mstore(\n sub(data, 0x5a),\n or(shl(0x78, add(extraLength, 0x62)), 0x6100003d81600a3d39f336602c57343d527f)\n )\n mstore(dataEnd, shl(0xf0, extraLength))\n\n hash := keccak256(sub(data, 0x4c), add(extraLength, 0x6c))\n\n // Restore the overwritten memory surrounding `data`.\n mstore(dataEnd, mAfter1)\n mstore(data, dataLength)\n mstore(sub(data, 0x20), mBefore1)\n mstore(sub(data, 0x40), mBefore2)\n mstore(sub(data, 0x60), mBefore3)\n }\n }\n\n /// @dev Returns the address of the deterministic clone of\n /// `implementation` using immutable arguments encoded in `data`, with `salt`, by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddress(\n address implementation,\n bytes memory data,\n bytes32 salt,\n address deployer\n ) internal pure returns (address predicted) {\n bytes32 hash = initCodeHash(implementation, data);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MINIMAL ERC1967 PROXY OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: The ERC1967 proxy here is intended to be upgraded with UUPS.\n // This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n\n /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n function deployERC1967(address implementation) internal returns (address instance) {\n instance = deployERC1967(0, implementation);\n }\n\n /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n /// Deposits `value` ETH during deployment.\n function deployERC1967(uint256 value, address implementation)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n /**\n * ---------------------------------------------------------------------------------+\n * CREATION (34 bytes) |\n * ---------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------|\n * 60 runSize | PUSH1 runSize | r | |\n * 3d | RETURNDATASIZE | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 3d | RETURNDATASIZE | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * 73 impl | PUSH20 impl | impl 0 r | [0..runSize): runtime code |\n * 60 slotPos | PUSH1 slotPos | slotPos impl 0 r | [0..runSize): runtime code |\n * 51 | MLOAD | slot impl 0 r | [0..runSize): runtime code |\n * 55 | SSTORE | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * ---------------------------------------------------------------------------------|\n * RUNTIME (61 bytes) |\n * ---------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------|\n * |\n * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds | |\n * 3d | RETURNDATASIZE | 0 cds | |\n * 3d | RETURNDATASIZE | 0 0 cds | |\n * 37 | CALLDATACOPY | | [0..calldatasize): calldata |\n * |\n * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | 0 | |\n * 3d | RETURNDATASIZE | 0 0 | |\n * 36 | CALLDATASIZE | cds 0 0 | [0..calldatasize): calldata |\n * 3d | RETURNDATASIZE | 0 cds 0 0 | [0..calldatasize): calldata |\n * 7f slot | PUSH32 slot | s 0 cds 0 0 | [0..calldatasize): calldata |\n * 54 | SLOAD | i 0 cds 0 0 | [0..calldatasize): calldata |\n * 5a | GAS | g i 0 cds 0 0 | [0..calldatasize): calldata |\n * f4 | DELEGATECALL | succ | [0..calldatasize): calldata |\n * |\n * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds succ | [0..calldatasize): calldata |\n * 60 0x00 | PUSH1 0x00 | 0 rds succ | [0..calldatasize): calldata |\n * 80 | DUP1 | 0 0 rds succ | [0..calldatasize): calldata |\n * 3e | RETURNDATACOPY | succ | [0..returndatasize): returndata |\n * |\n * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n * 60 0x38 | PUSH1 0x38 | dest succ | [0..returndatasize): returndata |\n * 57 | JUMPI | | [0..returndatasize): returndata |\n * |\n * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds | [0..returndatasize): returndata |\n * 60 0x00 | PUSH1 0x00 | 0 rds | [0..returndatasize): returndata |\n * fd | REVERT | | [0..returndatasize): returndata |\n * |\n * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | | [0..returndatasize): returndata |\n * 3d | RETURNDATASIZE | rds | [0..returndatasize): returndata |\n * 60 0x00 | PUSH1 0x00 | 0 rds | [0..returndatasize): returndata |\n * f3 | RETURN | | [0..returndatasize): returndata |\n * ---------------------------------------------------------------------------------+\n */\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n mstore(0x20, 0x6009)\n mstore(0x1e, implementation)\n mstore(0x0a, 0x603d3d8160223d3973)\n instance := create(value, 0x21, 0x5f)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n function deployDeterministicERC1967(address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = deployDeterministicERC1967(0, implementation, salt);\n }\n\n /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n /// Deposits `value` ETH during deployment.\n function deployDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n mstore(0x20, 0x6009)\n mstore(0x1e, implementation)\n mstore(0x0a, 0x603d3d8160223d3973)\n instance := create2(value, 0x21, 0x5f, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n /// Note: This method is intended for use in ERC4337 factories,\n /// which are expected to NOT revert if the proxy is already deployed.\n function createDeterministicERC1967(address implementation, bytes32 salt)\n internal\n returns (bool alreadyDeployed, address instance)\n {\n return createDeterministicERC1967(0, implementation, salt);\n }\n\n /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n /// Deposits `value` ETH during deployment.\n /// Note: This method is intended for use in ERC4337 factories,\n /// which are expected to NOT revert if the proxy is already deployed.\n function createDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n internal\n returns (bool alreadyDeployed, address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n mstore(0x20, 0x6009)\n mstore(0x1e, implementation)\n mstore(0x0a, 0x603d3d8160223d3973)\n // Compute and store the bytecode hash.\n mstore(add(m, 0x35), keccak256(0x21, 0x5f))\n mstore(m, shl(88, address()))\n mstore8(m, 0xff) // Write the prefix.\n mstore(add(m, 0x15), salt)\n instance := keccak256(m, 0x55)\n for {} 1 {} {\n if iszero(extcodesize(instance)) {\n instance := create2(value, 0x21, 0x5f, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n break\n }\n alreadyDeployed := 1\n if iszero(value) { break }\n if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n break\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation`.\n function initCodeERC1967(address implementation) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(0x40)\n mstore(\n add(result, 0x60),\n 0x3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f300\n )\n mstore(\n add(result, 0x40),\n 0x55f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076cc\n )\n mstore(add(result, 0x20), or(shl(24, implementation), 0x600951))\n mstore(add(result, 0x09), 0x603d3d8160223d3973)\n mstore(result, 0x5f) // Store the length.\n mstore(0x40, add(result, 0x80)) // Allocate memory.\n }\n }\n\n /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHashERC1967(address implementation) internal pure returns (bytes32 hash) {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n mstore(0x20, 0x6009)\n mstore(0x1e, implementation)\n mstore(0x0a, 0x603d3d8160223d3973)\n hash := keccak256(0x21, 0x5f)\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Returns the address of the deterministic ERC1967 proxy of `implementation`,\n /// with `salt` by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddressERC1967(\n address implementation,\n bytes32 salt,\n address deployer\n ) internal pure returns (address predicted) {\n bytes32 hash = initCodeHashERC1967(implementation);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC1967I PROXY OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n // This code path skips the delegatecall and directly returns the `implementation` address.\n // The returned implementation is guaranteed to be valid if the keccak256 of the\n // proxy's code is equal to `ERC1967I_CODE_HASH`.\n\n /// @dev Deploys a minimal ERC1967I proxy with `implementation`.\n function deployERC1967I(address implementation) internal returns (address instance) {\n instance = deployERC1967I(0, implementation);\n }\n\n /// @dev Deploys a ERC1967I proxy with `implementation`.\n /// Deposits `value` ETH during deployment.\n function deployERC1967I(uint256 value, address implementation)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n /**\n * ---------------------------------------------------------------------------------+\n * CREATION (34 bytes) |\n * ---------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------|\n * 60 runSize | PUSH1 runSize | r | |\n * 3d | RETURNDATASIZE | 0 r | |\n * 81 | DUP2 | r 0 r | |\n * 60 offset | PUSH1 offset | o r 0 r | |\n * 3d | RETURNDATASIZE | 0 o r 0 r | |\n * 39 | CODECOPY | 0 r | [0..runSize): runtime code |\n * 73 impl | PUSH20 impl | impl 0 r | [0..runSize): runtime code |\n * 60 slotPos | PUSH1 slotPos | slotPos impl 0 r | [0..runSize): runtime code |\n * 51 | MLOAD | slot impl 0 r | [0..runSize): runtime code |\n * 55 | SSTORE | 0 r | [0..runSize): runtime code |\n * f3 | RETURN | | [0..runSize): runtime code |\n * ---------------------------------------------------------------------------------|\n * RUNTIME (82 bytes) |\n * ---------------------------------------------------------------------------------|\n * Opcode | Mnemonic | Stack | Memory |\n * ---------------------------------------------------------------------------------|\n * |\n * ::: check calldatasize ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds | |\n * 58 | PC | 1 cds | |\n * 14 | EQ | eqs | |\n * 60 0x43 | PUSH1 0x43 | dest eqs | |\n * 57 | JUMPI | | |\n * |\n * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 36 | CALLDATASIZE | cds | |\n * 3d | RETURNDATASIZE | 0 cds | |\n * 3d | RETURNDATASIZE | 0 0 cds | |\n * 37 | CALLDATACOPY | | [0..calldatasize): calldata |\n * |\n * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | 0 | |\n * 3d | RETURNDATASIZE | 0 0 | |\n * 36 | CALLDATASIZE | cds 0 0 | [0..calldatasize): calldata |\n * 3d | RETURNDATASIZE | 0 cds 0 0 | [0..calldatasize): calldata |\n * 7f slot | PUSH32 slot | s 0 cds 0 0 | [0..calldatasize): calldata |\n * 54 | SLOAD | i 0 cds 0 0 | [0..calldatasize): calldata |\n * 5a | GAS | g i 0 cds 0 0 | [0..calldatasize): calldata |\n * f4 | DELEGATECALL | succ | [0..calldatasize): calldata |\n * |\n * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds succ | [0..calldatasize): calldata |\n * 60 0x00 | PUSH1 0x00 | 0 rds succ | [0..calldatasize): calldata |\n * 80 | DUP1 | 0 0 rds succ | [0..calldatasize): calldata |\n * 3e | RETURNDATACOPY | succ | [0..returndatasize): returndata |\n * |\n * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n * 60 0x3E | PUSH1 0x3E | dest succ | [0..returndatasize): returndata |\n * 57 | JUMPI | | [0..returndatasize): returndata |\n * |\n * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n * 3d | RETURNDATASIZE | rds | [0..returndatasize): returndata |\n * 60 0x00 | PUSH1 0x00 | 0 rds | [0..returndatasize): returndata |\n * fd | REVERT | | [0..returndatasize): returndata |\n * |\n * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | | [0..returndatasize): returndata |\n * 3d | RETURNDATASIZE | rds | [0..returndatasize): returndata |\n * 60 0x00 | PUSH1 0x00 | 0 rds | [0..returndatasize): returndata |\n * f3 | RETURN | | [0..returndatasize): returndata |\n * |\n * ::: implementation , return :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n * 5b | JUMPDEST | | |\n * 60 0x20 | PUSH1 0x20 | 32 | |\n * 60 0x0F | PUSH1 0x0F | o 32 | |\n * 3d | RETURNDATASIZE | 0 o 32 | |\n * 39 | CODECOPY | | [0..32): implementation slot |\n * 3d | RETURNDATASIZE | 0 | [0..32): implementation slot |\n * 51 | MLOAD | slot | [0..32): implementation slot |\n * 54 | SLOAD | impl | [0..32): implementation slot |\n * 3d | RETURNDATASIZE | 0 impl | [0..32): implementation slot |\n * 52 | MSTORE | | [0..32): implementation address |\n * 59 | MSIZE | 32 | [0..32): implementation address |\n * 3d | RETURNDATASIZE | 0 32 | [0..32): implementation address |\n * f3 | RETURN | | [0..32): implementation address |\n * |\n * ---------------------------------------------------------------------------------+\n */\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n instance := create(value, 0x0c, 0x74)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n function deployDeterministicERC1967I(address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n instance = deployDeterministicERC1967I(0, implementation, salt);\n }\n\n /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n /// Deposits `value` ETH during deployment.\n function deployDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n internal\n returns (address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n instance := create2(value, 0x0c, 0x74, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n /// Note: This method is intended for use in ERC4337 factories,\n /// which are expected to NOT revert if the proxy is already deployed.\n function createDeterministicERC1967I(address implementation, bytes32 salt)\n internal\n returns (bool alreadyDeployed, address instance)\n {\n return createDeterministicERC1967I(0, implementation, salt);\n }\n\n /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n /// Deposits `value` ETH during deployment.\n /// Note: This method is intended for use in ERC4337 factories,\n /// which are expected to NOT revert if the proxy is already deployed.\n function createDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n internal\n returns (bool alreadyDeployed, address instance)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n // Compute and store the bytecode hash.\n mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n mstore(m, shl(88, address()))\n mstore8(m, 0xff) // Write the prefix.\n mstore(add(m, 0x15), salt)\n instance := keccak256(m, 0x55)\n for {} 1 {} {\n if iszero(extcodesize(instance)) {\n instance := create2(value, 0x0c, 0x74, salt)\n if iszero(instance) {\n mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n revert(0x1c, 0x04)\n }\n break\n }\n alreadyDeployed := 1\n if iszero(value) { break }\n if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n break\n }\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation`.\n function initCodeERC1967I(address implementation) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(0x40)\n mstore(\n add(result, 0x74),\n 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3\n )\n mstore(\n add(result, 0x54),\n 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4\n )\n mstore(add(result, 0x34), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n mstore(add(result, 0x1d), implementation)\n mstore(add(result, 0x09), 0x60523d8160223d3973)\n mstore(add(result, 0x94), 0)\n mstore(result, 0x74) // Store the length.\n mstore(0x40, add(result, 0xa0)) // Allocate memory.\n }\n }\n\n /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation`.\n /// Used for mining vanity addresses with create2crunch.\n function initCodeHashERC1967I(address implementation) internal pure returns (bytes32 hash) {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n hash := keccak256(0x0c, 0x74)\n mstore(0x40, m) // Restore the free memory pointer.\n mstore(0x60, 0) // Restore the zero slot.\n }\n }\n\n /// @dev Returns the address of the deterministic ERC1967I proxy of `implementation`,\n /// with `salt` by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddressERC1967I(\n address implementation,\n bytes32 salt,\n address deployer\n ) internal pure returns (address predicted) {\n bytes32 hash = initCodeHashERC1967I(implementation);\n predicted = predictDeterministicAddress(hash, salt, deployer);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* OTHER OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the address when a contract with initialization code hash,\n /// `hash`, is deployed with `salt`, by `deployer`.\n /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n function predictDeterministicAddress(bytes32 hash, bytes32 salt, address deployer)\n internal\n pure\n returns (address predicted)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and store the bytecode hash.\n mstore8(0x00, 0xff) // Write the prefix.\n mstore(0x35, hash)\n mstore(0x01, shl(96, deployer))\n mstore(0x15, salt)\n predicted := keccak256(0x00, 0x55)\n mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Requires that `salt` starts with either the zero address or `by`.\n function checkStartsWith(bytes32 salt, address by) internal pure {\n /// @solidity memory-safe-assembly\n assembly {\n // If the salt does not start with the zero address or `by`.\n if iszero(or(iszero(shr(96, salt)), eq(shr(96, shl(96, by)), shr(96, salt)))) {\n mstore(0x00, 0x0c4549ef) // `SaltDoesNotStartWith()`.\n revert(0x1c, 0x04)\n }\n }\n }\n}\n"},"lib/solady/src/utils/LibString.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Library for converting numbers into strings and other string operations.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibString.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibString.sol)\n///\n/// @dev Note:\n/// For performance and bytecode compactness, most of the string operations are restricted to\n/// byte strings (7-bit ASCII), except where otherwise specified.\n/// Usage of byte string operations on charsets with runes spanning two or more bytes\n/// can lead to undefined behavior.\nlibrary LibString {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The length of the output is too small to contain all the hex digits.\n error HexLengthInsufficient();\n\n /// @dev The length of the string is more than 32 bytes.\n error TooBigForSmallString();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The constant returned when the `search` is not found in the string.\n uint256 internal constant NOT_FOUND = type(uint256).max;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* DECIMAL OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the base 10 decimal representation of `value`.\n function toString(uint256 value) internal pure returns (string memory str) {\n /// @solidity memory-safe-assembly\n assembly {\n // The maximum value of a uint256 contains 78 digits (1 byte per digit), but\n // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.\n // We will need 1 word for the trailing zeros padding, 1 word for the length,\n // and 3 words for a maximum of 78 digits.\n str := add(mload(0x40), 0x80)\n // Update the free memory pointer to allocate.\n mstore(0x40, add(str, 0x20))\n // Zeroize the slot after the string.\n mstore(str, 0)\n\n // Cache the end of the memory to calculate the length later.\n let end := str\n\n let w := not(0) // Tsk.\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n for { let temp := value } 1 {} {\n str := add(str, w) // `sub(str, 1)`.\n // Write the character to the pointer.\n // The ASCII index of the '0' character is 48.\n mstore8(str, add(48, mod(temp, 10)))\n // Keep dividing `temp` until zero.\n temp := div(temp, 10)\n if iszero(temp) { break }\n }\n\n let length := sub(end, str)\n // Move the pointer 32 bytes leftwards to make room for the length.\n str := sub(str, 0x20)\n // Store the length.\n mstore(str, length)\n }\n }\n\n /// @dev Returns the base 10 decimal representation of `value`.\n function toString(int256 value) internal pure returns (string memory str) {\n if (value >= 0) {\n return toString(uint256(value));\n }\n unchecked {\n str = toString(~uint256(value) + 1);\n }\n /// @solidity memory-safe-assembly\n assembly {\n // We still have some spare memory space on the left,\n // as we have allocated 3 words (96 bytes) for up to 78 digits.\n let length := mload(str) // Load the string length.\n mstore(str, 0x2d) // Store the '-' character.\n str := sub(str, 1) // Move back the string pointer by a byte.\n mstore(str, add(length, 1)) // Update the string length.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* HEXADECIMAL OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the hexadecimal representation of `value`,\n /// left-padded to an input length of `length` bytes.\n /// The output is prefixed with \"0x\" encoded using 2 hexadecimal digits per byte,\n /// giving a total length of `length * 2 + 2` bytes.\n /// Reverts if `length` is too small for the output to contain all the digits.\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value, length);\n /// @solidity memory-safe-assembly\n assembly {\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(str, 0x3078) // Write the \"0x\" prefix.\n str := sub(str, 2) // Move the pointer.\n mstore(str, strLength) // Write the length.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`,\n /// left-padded to an input length of `length` bytes.\n /// The output is prefixed with \"0x\" encoded using 2 hexadecimal digits per byte,\n /// giving a total length of `length * 2` bytes.\n /// Reverts if `length` is too small for the output to contain all the digits.\n function toHexStringNoPrefix(uint256 value, uint256 length)\n internal\n pure\n returns (string memory str)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // We need 0x20 bytes for the trailing zeros padding, `length * 2` bytes\n // for the digits, 0x02 bytes for the prefix, and 0x20 bytes for the length.\n // We add 0x20 to the total and round down to a multiple of 0x20.\n // (0x20 + 0x20 + 0x02 + 0x20) = 0x62.\n str := add(mload(0x40), and(add(shl(1, length), 0x42), not(0x1f)))\n // Allocate the memory.\n mstore(0x40, add(str, 0x20))\n // Zeroize the slot after the string.\n mstore(str, 0)\n\n // Cache the end to calculate the length later.\n let end := str\n // Store \"0123456789abcdef\" in scratch space.\n mstore(0x0f, 0x30313233343536373839616263646566)\n\n let start := sub(str, add(length, length))\n let w := not(1) // Tsk.\n let temp := value\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n for {} 1 {} {\n str := add(str, w) // `sub(str, 2)`.\n mstore8(add(str, 1), mload(and(temp, 15)))\n mstore8(str, mload(and(shr(4, temp), 15)))\n temp := shr(8, temp)\n if iszero(xor(str, start)) { break }\n }\n\n if temp {\n mstore(0x00, 0x2194895a) // `HexLengthInsufficient()`.\n revert(0x1c, 0x04)\n }\n\n // Compute the string's length.\n let strLength := sub(end, str)\n // Move the pointer and write the length.\n str := sub(str, 0x20)\n mstore(str, strLength)\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is prefixed with \"0x\" and encoded using 2 hexadecimal digits per byte.\n /// As address are 20 bytes long, the output will left-padded to have\n /// a length of `20 * 2 + 2` bytes.\n function toHexString(uint256 value) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value);\n /// @solidity memory-safe-assembly\n assembly {\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(str, 0x3078) // Write the \"0x\" prefix.\n str := sub(str, 2) // Move the pointer.\n mstore(str, strLength) // Write the length.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is prefixed with \"0x\".\n /// The output excludes leading \"0\" from the `toHexString` output.\n /// `0x00: \"0x0\", 0x01: \"0x1\", 0x12: \"0x12\", 0x123: \"0x123\"`.\n function toMinimalHexString(uint256 value) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value);\n /// @solidity memory-safe-assembly\n assembly {\n let o := eq(byte(0, mload(add(str, 0x20))), 0x30) // Whether leading zero is present.\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(add(str, o), 0x3078) // Write the \"0x\" prefix, accounting for leading zero.\n str := sub(add(str, o), 2) // Move the pointer, accounting for leading zero.\n mstore(str, sub(strLength, o)) // Write the length, accounting for leading zero.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output excludes leading \"0\" from the `toHexStringNoPrefix` output.\n /// `0x00: \"0\", 0x01: \"1\", 0x12: \"12\", 0x123: \"123\"`.\n function toMinimalHexStringNoPrefix(uint256 value) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value);\n /// @solidity memory-safe-assembly\n assembly {\n let o := eq(byte(0, mload(add(str, 0x20))), 0x30) // Whether leading zero is present.\n let strLength := mload(str) // Get the length.\n str := add(str, o) // Move the pointer, accounting for leading zero.\n mstore(str, sub(strLength, o)) // Write the length, accounting for leading zero.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is encoded using 2 hexadecimal digits per byte.\n /// As address are 20 bytes long, the output will left-padded to have\n /// a length of `20 * 2` bytes.\n function toHexStringNoPrefix(uint256 value) internal pure returns (string memory str) {\n /// @solidity memory-safe-assembly\n assembly {\n // We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,\n // 0x02 bytes for the prefix, and 0x40 bytes for the digits.\n // The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x40) is 0xa0.\n str := add(mload(0x40), 0x80)\n // Allocate the memory.\n mstore(0x40, add(str, 0x20))\n // Zeroize the slot after the string.\n mstore(str, 0)\n\n // Cache the end to calculate the length later.\n let end := str\n // Store \"0123456789abcdef\" in scratch space.\n mstore(0x0f, 0x30313233343536373839616263646566)\n\n let w := not(1) // Tsk.\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n for { let temp := value } 1 {} {\n str := add(str, w) // `sub(str, 2)`.\n mstore8(add(str, 1), mload(and(temp, 15)))\n mstore8(str, mload(and(shr(4, temp), 15)))\n temp := shr(8, temp)\n if iszero(temp) { break }\n }\n\n // Compute the string's length.\n let strLength := sub(end, str)\n // Move the pointer and write the length.\n str := sub(str, 0x20)\n mstore(str, strLength)\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is prefixed with \"0x\", encoded using 2 hexadecimal digits per byte,\n /// and the alphabets are capitalized conditionally according to\n /// https://eips.ethereum.org/EIPS/eip-55\n function toHexStringChecksummed(address value) internal pure returns (string memory str) {\n str = toHexString(value);\n /// @solidity memory-safe-assembly\n assembly {\n let mask := shl(6, div(not(0), 255)) // `0b010000000100000000 ...`\n let o := add(str, 0x22)\n let hashed := and(keccak256(o, 40), mul(34, mask)) // `0b10001000 ... `\n let t := shl(240, 136) // `0b10001000 << 240`\n for { let i := 0 } 1 {} {\n mstore(add(i, i), mul(t, byte(i, hashed)))\n i := add(i, 1)\n if eq(i, 20) { break }\n }\n mstore(o, xor(mload(o), shr(1, and(mload(0x00), and(mload(o), mask)))))\n o := add(o, 0x20)\n mstore(o, xor(mload(o), shr(1, and(mload(0x20), and(mload(o), mask)))))\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is prefixed with \"0x\" and encoded using 2 hexadecimal digits per byte.\n function toHexString(address value) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(value);\n /// @solidity memory-safe-assembly\n assembly {\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(str, 0x3078) // Write the \"0x\" prefix.\n str := sub(str, 2) // Move the pointer.\n mstore(str, strLength) // Write the length.\n }\n }\n\n /// @dev Returns the hexadecimal representation of `value`.\n /// The output is encoded using 2 hexadecimal digits per byte.\n function toHexStringNoPrefix(address value) internal pure returns (string memory str) {\n /// @solidity memory-safe-assembly\n assembly {\n str := mload(0x40)\n\n // Allocate the memory.\n // We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,\n // 0x02 bytes for the prefix, and 0x28 bytes for the digits.\n // The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x28) is 0x80.\n mstore(0x40, add(str, 0x80))\n\n // Store \"0123456789abcdef\" in scratch space.\n mstore(0x0f, 0x30313233343536373839616263646566)\n\n str := add(str, 2)\n mstore(str, 40)\n\n let o := add(str, 0x20)\n mstore(add(o, 40), 0)\n\n value := shl(96, value)\n\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n for { let i := 0 } 1 {} {\n let p := add(o, add(i, i))\n let temp := byte(i, value)\n mstore8(add(p, 1), mload(and(temp, 15)))\n mstore8(p, mload(shr(4, temp)))\n i := add(i, 1)\n if eq(i, 20) { break }\n }\n }\n }\n\n /// @dev Returns the hex encoded string from the raw bytes.\n /// The output is encoded using 2 hexadecimal digits per byte.\n function toHexString(bytes memory raw) internal pure returns (string memory str) {\n str = toHexStringNoPrefix(raw);\n /// @solidity memory-safe-assembly\n assembly {\n let strLength := add(mload(str), 2) // Compute the length.\n mstore(str, 0x3078) // Write the \"0x\" prefix.\n str := sub(str, 2) // Move the pointer.\n mstore(str, strLength) // Write the length.\n }\n }\n\n /// @dev Returns the hex encoded string from the raw bytes.\n /// The output is encoded using 2 hexadecimal digits per byte.\n function toHexStringNoPrefix(bytes memory raw) internal pure returns (string memory str) {\n /// @solidity memory-safe-assembly\n assembly {\n let length := mload(raw)\n str := add(mload(0x40), 2) // Skip 2 bytes for the optional prefix.\n mstore(str, add(length, length)) // Store the length of the output.\n\n // Store \"0123456789abcdef\" in scratch space.\n mstore(0x0f, 0x30313233343536373839616263646566)\n\n let o := add(str, 0x20)\n let end := add(raw, length)\n\n for {} iszero(eq(raw, end)) {} {\n raw := add(raw, 1)\n mstore8(add(o, 1), mload(and(mload(raw), 15)))\n mstore8(o, mload(and(shr(4, mload(raw)), 15)))\n o := add(o, 2)\n }\n mstore(o, 0) // Zeroize the slot after the string.\n mstore(0x40, add(o, 0x20)) // Allocate the memory.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* RUNE STRING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the number of UTF characters in the string.\n function runeCount(string memory s) internal pure returns (uint256 result) {\n /// @solidity memory-safe-assembly\n assembly {\n if mload(s) {\n mstore(0x00, div(not(0), 255))\n mstore(0x20, 0x0202020202020202020202020202020202020202020202020303030304040506)\n let o := add(s, 0x20)\n let end := add(o, mload(s))\n for { result := 1 } 1 { result := add(result, 1) } {\n o := add(o, byte(0, mload(shr(250, mload(o)))))\n if iszero(lt(o, end)) { break }\n }\n }\n }\n }\n\n /// @dev Returns if this string is a 7-bit ASCII string.\n /// (i.e. all characters codes are in [0..127])\n function is7BitASCII(string memory s) internal pure returns (bool result) {\n /// @solidity memory-safe-assembly\n assembly {\n let mask := shl(7, div(not(0), 255))\n result := 1\n let n := mload(s)\n if n {\n let o := add(s, 0x20)\n let end := add(o, n)\n let last := mload(end)\n mstore(end, 0)\n for {} 1 {} {\n if and(mask, mload(o)) {\n result := 0\n break\n }\n o := add(o, 0x20)\n if iszero(lt(o, end)) { break }\n }\n mstore(end, last)\n }\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* BYTE STRING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // For performance and bytecode compactness, byte string operations are restricted\n // to 7-bit ASCII strings. All offsets are byte offsets, not UTF character offsets.\n // Usage of byte string operations on charsets with runes spanning two or more bytes\n // can lead to undefined behavior.\n\n /// @dev Returns `subject` all occurrences of `search` replaced with `replacement`.\n function replace(string memory subject, string memory search, string memory replacement)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let subjectLength := mload(subject)\n let searchLength := mload(search)\n let replacementLength := mload(replacement)\n\n subject := add(subject, 0x20)\n search := add(search, 0x20)\n replacement := add(replacement, 0x20)\n result := add(mload(0x40), 0x20)\n\n let subjectEnd := add(subject, subjectLength)\n if iszero(gt(searchLength, subjectLength)) {\n let subjectSearchEnd := add(sub(subjectEnd, searchLength), 1)\n let h := 0\n if iszero(lt(searchLength, 0x20)) { h := keccak256(search, searchLength) }\n let m := shl(3, sub(0x20, and(searchLength, 0x1f)))\n let s := mload(search)\n for {} 1 {} {\n let t := mload(subject)\n // Whether the first `searchLength % 32` bytes of\n // `subject` and `search` matches.\n if iszero(shr(m, xor(t, s))) {\n if h {\n if iszero(eq(keccak256(subject, searchLength), h)) {\n mstore(result, t)\n result := add(result, 1)\n subject := add(subject, 1)\n if iszero(lt(subject, subjectSearchEnd)) { break }\n continue\n }\n }\n // Copy the `replacement` one word at a time.\n for { let o := 0 } 1 {} {\n mstore(add(result, o), mload(add(replacement, o)))\n o := add(o, 0x20)\n if iszero(lt(o, replacementLength)) { break }\n }\n result := add(result, replacementLength)\n subject := add(subject, searchLength)\n if searchLength {\n if iszero(lt(subject, subjectSearchEnd)) { break }\n continue\n }\n }\n mstore(result, t)\n result := add(result, 1)\n subject := add(subject, 1)\n if iszero(lt(subject, subjectSearchEnd)) { break }\n }\n }\n\n let resultRemainder := result\n result := add(mload(0x40), 0x20)\n let k := add(sub(resultRemainder, result), sub(subjectEnd, subject))\n // Copy the rest of the string one word at a time.\n for {} lt(subject, subjectEnd) {} {\n mstore(resultRemainder, mload(subject))\n resultRemainder := add(resultRemainder, 0x20)\n subject := add(subject, 0x20)\n }\n result := sub(result, 0x20)\n let last := add(add(result, 0x20), k) // Zeroize the slot after the string.\n mstore(last, 0)\n mstore(0x40, add(last, 0x20)) // Allocate the memory.\n mstore(result, k) // Store the length.\n }\n }\n\n /// @dev Returns the byte index of the first location of `search` in `subject`,\n /// searching from left to right, starting from `from`.\n /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.\n function indexOf(string memory subject, string memory search, uint256 from)\n internal\n pure\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for { let subjectLength := mload(subject) } 1 {} {\n if iszero(mload(search)) {\n if iszero(gt(from, subjectLength)) {\n result := from\n break\n }\n result := subjectLength\n break\n }\n let searchLength := mload(search)\n let subjectStart := add(subject, 0x20)\n\n result := not(0) // Initialize to `NOT_FOUND`.\n\n subject := add(subjectStart, from)\n let end := add(sub(add(subjectStart, subjectLength), searchLength), 1)\n\n let m := shl(3, sub(0x20, and(searchLength, 0x1f)))\n let s := mload(add(search, 0x20))\n\n if iszero(and(lt(subject, end), lt(from, subjectLength))) { break }\n\n if iszero(lt(searchLength, 0x20)) {\n for { let h := keccak256(add(search, 0x20), searchLength) } 1 {} {\n if iszero(shr(m, xor(mload(subject), s))) {\n if eq(keccak256(subject, searchLength), h) {\n result := sub(subject, subjectStart)\n break\n }\n }\n subject := add(subject, 1)\n if iszero(lt(subject, end)) { break }\n }\n break\n }\n for {} 1 {} {\n if iszero(shr(m, xor(mload(subject), s))) {\n result := sub(subject, subjectStart)\n break\n }\n subject := add(subject, 1)\n if iszero(lt(subject, end)) { break }\n }\n break\n }\n }\n }\n\n /// @dev Returns the byte index of the first location of `search` in `subject`,\n /// searching from left to right.\n /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.\n function indexOf(string memory subject, string memory search)\n internal\n pure\n returns (uint256 result)\n {\n result = indexOf(subject, search, 0);\n }\n\n /// @dev Returns the byte index of the first location of `search` in `subject`,\n /// searching from right to left, starting from `from`.\n /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.\n function lastIndexOf(string memory subject, string memory search, uint256 from)\n internal\n pure\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for {} 1 {} {\n result := not(0) // Initialize to `NOT_FOUND`.\n let searchLength := mload(search)\n if gt(searchLength, mload(subject)) { break }\n let w := result\n\n let fromMax := sub(mload(subject), searchLength)\n if iszero(gt(fromMax, from)) { from := fromMax }\n\n let end := add(add(subject, 0x20), w)\n subject := add(add(subject, 0x20), from)\n if iszero(gt(subject, end)) { break }\n // As this function is not too often used,\n // we shall simply use keccak256 for smaller bytecode size.\n for { let h := keccak256(add(search, 0x20), searchLength) } 1 {} {\n if eq(keccak256(subject, searchLength), h) {\n result := sub(subject, add(end, 1))\n break\n }\n subject := add(subject, w) // `sub(subject, 1)`.\n if iszero(gt(subject, end)) { break }\n }\n break\n }\n }\n }\n\n /// @dev Returns the byte index of the first location of `search` in `subject`,\n /// searching from right to left.\n /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.\n function lastIndexOf(string memory subject, string memory search)\n internal\n pure\n returns (uint256 result)\n {\n result = lastIndexOf(subject, search, uint256(int256(-1)));\n }\n\n /// @dev Returns true if `search` is found in `subject`, false otherwise.\n function contains(string memory subject, string memory search) internal pure returns (bool) {\n return indexOf(subject, search) != NOT_FOUND;\n }\n\n /// @dev Returns whether `subject` starts with `search`.\n function startsWith(string memory subject, string memory search)\n internal\n pure\n returns (bool result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let searchLength := mload(search)\n // Just using keccak256 directly is actually cheaper.\n // forgefmt: disable-next-item\n result := and(\n iszero(gt(searchLength, mload(subject))),\n eq(\n keccak256(add(subject, 0x20), searchLength),\n keccak256(add(search, 0x20), searchLength)\n )\n )\n }\n }\n\n /// @dev Returns whether `subject` ends with `search`.\n function endsWith(string memory subject, string memory search)\n internal\n pure\n returns (bool result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let searchLength := mload(search)\n let subjectLength := mload(subject)\n // Whether `search` is not longer than `subject`.\n let withinRange := iszero(gt(searchLength, subjectLength))\n // Just using keccak256 directly is actually cheaper.\n // forgefmt: disable-next-item\n result := and(\n withinRange,\n eq(\n keccak256(\n // `subject + 0x20 + max(subjectLength - searchLength, 0)`.\n add(add(subject, 0x20), mul(withinRange, sub(subjectLength, searchLength))),\n searchLength\n ),\n keccak256(add(search, 0x20), searchLength)\n )\n )\n }\n }\n\n /// @dev Returns `subject` repeated `times`.\n function repeat(string memory subject, uint256 times)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let subjectLength := mload(subject)\n if iszero(or(iszero(times), iszero(subjectLength))) {\n subject := add(subject, 0x20)\n result := mload(0x40)\n let output := add(result, 0x20)\n for {} 1 {} {\n // Copy the `subject` one word at a time.\n for { let o := 0 } 1 {} {\n mstore(add(output, o), mload(add(subject, o)))\n o := add(o, 0x20)\n if iszero(lt(o, subjectLength)) { break }\n }\n output := add(output, subjectLength)\n times := sub(times, 1)\n if iszero(times) { break }\n }\n mstore(output, 0) // Zeroize the slot after the string.\n let resultLength := sub(output, add(result, 0x20))\n mstore(result, resultLength) // Store the length.\n // Allocate the memory.\n mstore(0x40, add(result, add(resultLength, 0x20)))\n }\n }\n }\n\n /// @dev Returns a copy of `subject` sliced from `start` to `end` (exclusive).\n /// `start` and `end` are byte offsets.\n function slice(string memory subject, uint256 start, uint256 end)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let subjectLength := mload(subject)\n if iszero(gt(subjectLength, end)) { end := subjectLength }\n if iszero(gt(subjectLength, start)) { start := subjectLength }\n if lt(start, end) {\n result := mload(0x40)\n let resultLength := sub(end, start)\n mstore(result, resultLength)\n subject := add(subject, start)\n let w := not(0x1f)\n // Copy the `subject` one word at a time, backwards.\n for { let o := and(add(resultLength, 0x1f), w) } 1 {} {\n mstore(add(result, o), mload(add(subject, o)))\n o := add(o, w) // `sub(o, 0x20)`.\n if iszero(o) { break }\n }\n // Zeroize the slot after the string.\n mstore(add(add(result, 0x20), resultLength), 0)\n // Allocate memory for the length and the bytes,\n // rounded up to a multiple of 32.\n mstore(0x40, add(result, and(add(resultLength, 0x3f), w)))\n }\n }\n }\n\n /// @dev Returns a copy of `subject` sliced from `start` to the end of the string.\n /// `start` is a byte offset.\n function slice(string memory subject, uint256 start)\n internal\n pure\n returns (string memory result)\n {\n result = slice(subject, start, uint256(int256(-1)));\n }\n\n /// @dev Returns all the indices of `search` in `subject`.\n /// The indices are byte offsets.\n function indicesOf(string memory subject, string memory search)\n internal\n pure\n returns (uint256[] memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let subjectLength := mload(subject)\n let searchLength := mload(search)\n\n if iszero(gt(searchLength, subjectLength)) {\n subject := add(subject, 0x20)\n search := add(search, 0x20)\n result := add(mload(0x40), 0x20)\n\n let subjectStart := subject\n let subjectSearchEnd := add(sub(add(subject, subjectLength), searchLength), 1)\n let h := 0\n if iszero(lt(searchLength, 0x20)) { h := keccak256(search, searchLength) }\n let m := shl(3, sub(0x20, and(searchLength, 0x1f)))\n let s := mload(search)\n for {} 1 {} {\n let t := mload(subject)\n // Whether the first `searchLength % 32` bytes of\n // `subject` and `search` matches.\n if iszero(shr(m, xor(t, s))) {\n if h {\n if iszero(eq(keccak256(subject, searchLength), h)) {\n subject := add(subject, 1)\n if iszero(lt(subject, subjectSearchEnd)) { break }\n continue\n }\n }\n // Append to `result`.\n mstore(result, sub(subject, subjectStart))\n result := add(result, 0x20)\n // Advance `subject` by `searchLength`.\n subject := add(subject, searchLength)\n if searchLength {\n if iszero(lt(subject, subjectSearchEnd)) { break }\n continue\n }\n }\n subject := add(subject, 1)\n if iszero(lt(subject, subjectSearchEnd)) { break }\n }\n let resultEnd := result\n // Assign `result` to the free memory pointer.\n result := mload(0x40)\n // Store the length of `result`.\n mstore(result, shr(5, sub(resultEnd, add(result, 0x20))))\n // Allocate memory for result.\n // We allocate one more word, so this array can be recycled for {split}.\n mstore(0x40, add(resultEnd, 0x20))\n }\n }\n }\n\n /// @dev Returns a arrays of strings based on the `delimiter` inside of the `subject` string.\n function split(string memory subject, string memory delimiter)\n internal\n pure\n returns (string[] memory result)\n {\n uint256[] memory indices = indicesOf(subject, delimiter);\n /// @solidity memory-safe-assembly\n assembly {\n let w := not(0x1f)\n let indexPtr := add(indices, 0x20)\n let indicesEnd := add(indexPtr, shl(5, add(mload(indices), 1)))\n mstore(add(indicesEnd, w), mload(subject))\n mstore(indices, add(mload(indices), 1))\n let prevIndex := 0\n for {} 1 {} {\n let index := mload(indexPtr)\n mstore(indexPtr, 0x60)\n if iszero(eq(index, prevIndex)) {\n let element := mload(0x40)\n let elementLength := sub(index, prevIndex)\n mstore(element, elementLength)\n // Copy the `subject` one word at a time, backwards.\n for { let o := and(add(elementLength, 0x1f), w) } 1 {} {\n mstore(add(element, o), mload(add(add(subject, prevIndex), o)))\n o := add(o, w) // `sub(o, 0x20)`.\n if iszero(o) { break }\n }\n // Zeroize the slot after the string.\n mstore(add(add(element, 0x20), elementLength), 0)\n // Allocate memory for the length and the bytes,\n // rounded up to a multiple of 32.\n mstore(0x40, add(element, and(add(elementLength, 0x3f), w)))\n // Store the `element` into the array.\n mstore(indexPtr, element)\n }\n prevIndex := add(index, mload(delimiter))\n indexPtr := add(indexPtr, 0x20)\n if iszero(lt(indexPtr, indicesEnd)) { break }\n }\n result := indices\n if iszero(mload(delimiter)) {\n result := add(indices, 0x20)\n mstore(result, sub(mload(indices), 2))\n }\n }\n }\n\n /// @dev Returns a concatenated string of `a` and `b`.\n /// Cheaper than `string.concat()` and does not de-align the free memory pointer.\n function concat(string memory a, string memory b)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let w := not(0x1f)\n result := mload(0x40)\n let aLength := mload(a)\n // Copy `a` one word at a time, backwards.\n for { let o := and(add(aLength, 0x20), w) } 1 {} {\n mstore(add(result, o), mload(add(a, o)))\n o := add(o, w) // `sub(o, 0x20)`.\n if iszero(o) { break }\n }\n let bLength := mload(b)\n let output := add(result, aLength)\n // Copy `b` one word at a time, backwards.\n for { let o := and(add(bLength, 0x20), w) } 1 {} {\n mstore(add(output, o), mload(add(b, o)))\n o := add(o, w) // `sub(o, 0x20)`.\n if iszero(o) { break }\n }\n let totalLength := add(aLength, bLength)\n let last := add(add(result, 0x20), totalLength)\n // Zeroize the slot after the string.\n mstore(last, 0)\n // Stores the length.\n mstore(result, totalLength)\n // Allocate memory for the length and the bytes,\n // rounded up to a multiple of 32.\n mstore(0x40, and(add(last, 0x1f), w))\n }\n }\n\n /// @dev Returns a copy of the string in either lowercase or UPPERCASE.\n /// WARNING! This function is only compatible with 7-bit ASCII strings.\n function toCase(string memory subject, bool toUpper)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let length := mload(subject)\n if length {\n result := add(mload(0x40), 0x20)\n subject := add(subject, 1)\n let flags := shl(add(70, shl(5, toUpper)), 0x3ffffff)\n let w := not(0)\n for { let o := length } 1 {} {\n o := add(o, w)\n let b := and(0xff, mload(add(subject, o)))\n mstore8(add(result, o), xor(b, and(shr(b, flags), 0x20)))\n if iszero(o) { break }\n }\n result := mload(0x40)\n mstore(result, length) // Store the length.\n let last := add(add(result, 0x20), length)\n mstore(last, 0) // Zeroize the slot after the string.\n mstore(0x40, add(last, 0x20)) // Allocate the memory.\n }\n }\n }\n\n /// @dev Returns a string from a small bytes32 string.\n /// `s` must be null-terminated, or behavior will be undefined.\n function fromSmallString(bytes32 s) internal pure returns (string memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(0x40)\n let n := 0\n for {} byte(n, s) { n := add(n, 1) } {} // Scan for '\\0'.\n mstore(result, n)\n let o := add(result, 0x20)\n mstore(o, s)\n mstore(add(o, n), 0)\n mstore(0x40, add(result, 0x40))\n }\n }\n\n /// @dev Returns the small string, with all bytes after the first null byte zeroized.\n function normalizeSmallString(bytes32 s) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n for {} byte(result, s) { result := add(result, 1) } {} // Scan for '\\0'.\n mstore(0x00, s)\n mstore(result, 0x00)\n result := mload(0x00)\n }\n }\n\n /// @dev Returns the string as a normalized null-terminated small string.\n function toSmallString(string memory s) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(s)\n if iszero(lt(result, 33)) {\n mstore(0x00, 0xec92f9a3) // `TooBigForSmallString()`.\n revert(0x1c, 0x04)\n }\n result := shl(shl(3, sub(32, result)), mload(add(s, result)))\n }\n }\n\n /// @dev Returns a lowercased copy of the string.\n /// WARNING! This function is only compatible with 7-bit ASCII strings.\n function lower(string memory subject) internal pure returns (string memory result) {\n result = toCase(subject, false);\n }\n\n /// @dev Returns an UPPERCASED copy of the string.\n /// WARNING! This function is only compatible with 7-bit ASCII strings.\n function upper(string memory subject) internal pure returns (string memory result) {\n result = toCase(subject, true);\n }\n\n /// @dev Escapes the string to be used within HTML tags.\n function escapeHTML(string memory s) internal pure returns (string memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n let end := add(s, mload(s))\n result := add(mload(0x40), 0x20)\n // Store the bytes of the packed offsets and strides into the scratch space.\n // `packed = (stride << 5) | offset`. Max offset is 20. Max stride is 6.\n mstore(0x1f, 0x900094)\n mstore(0x08, 0xc0000000a6ab)\n // Store \""&'<>\" into the scratch space.\n mstore(0x00, shl(64, 0x2671756f743b26616d703b262333393b266c743b2667743b))\n for {} iszero(eq(s, end)) {} {\n s := add(s, 1)\n let c := and(mload(s), 0xff)\n // Not in `[\"\\\"\",\"'\",\"&\",\"<\",\">\"]`.\n if iszero(and(shl(c, 1), 0x500000c400000000)) {\n mstore8(result, c)\n result := add(result, 1)\n continue\n }\n let t := shr(248, mload(c))\n mstore(result, mload(and(t, 0x1f)))\n result := add(result, shr(5, t))\n }\n let last := result\n mstore(last, 0) // Zeroize the slot after the string.\n result := mload(0x40)\n mstore(result, sub(last, add(result, 0x20))) // Store the length.\n mstore(0x40, add(last, 0x20)) // Allocate the memory.\n }\n }\n\n /// @dev Escapes the string to be used within double-quotes in a JSON.\n /// If `addDoubleQuotes` is true, the result will be enclosed in double-quotes.\n function escapeJSON(string memory s, bool addDoubleQuotes)\n internal\n pure\n returns (string memory result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let end := add(s, mload(s))\n result := add(mload(0x40), 0x20)\n if addDoubleQuotes {\n mstore8(result, 34)\n result := add(1, result)\n }\n // Store \"\\\\u0000\" in scratch space.\n // Store \"0123456789abcdef\" in scratch space.\n // Also, store `{0x08:\"b\", 0x09:\"t\", 0x0a:\"n\", 0x0c:\"f\", 0x0d:\"r\"}`.\n // into the scratch space.\n mstore(0x15, 0x5c75303030303031323334353637383961626364656662746e006672)\n // Bitmask for detecting `[\"\\\"\",\"\\\\\"]`.\n let e := or(shl(0x22, 1), shl(0x5c, 1))\n for {} iszero(eq(s, end)) {} {\n s := add(s, 1)\n let c := and(mload(s), 0xff)\n if iszero(lt(c, 0x20)) {\n if iszero(and(shl(c, 1), e)) {\n // Not in `[\"\\\"\",\"\\\\\"]`.\n mstore8(result, c)\n result := add(result, 1)\n continue\n }\n mstore8(result, 0x5c) // \"\\\\\".\n mstore8(add(result, 1), c)\n result := add(result, 2)\n continue\n }\n if iszero(and(shl(c, 1), 0x3700)) {\n // Not in `[\"\\b\",\"\\t\",\"\\n\",\"\\f\",\"\\d\"]`.\n mstore8(0x1d, mload(shr(4, c))) // Hex value.\n mstore8(0x1e, mload(and(c, 15))) // Hex value.\n mstore(result, mload(0x19)) // \"\\\\u00XX\".\n result := add(result, 6)\n continue\n }\n mstore8(result, 0x5c) // \"\\\\\".\n mstore8(add(result, 1), mload(add(c, 8)))\n result := add(result, 2)\n }\n if addDoubleQuotes {\n mstore8(result, 34)\n result := add(1, result)\n }\n let last := result\n mstore(last, 0) // Zeroize the slot after the string.\n result := mload(0x40)\n mstore(result, sub(last, add(result, 0x20))) // Store the length.\n mstore(0x40, add(last, 0x20)) // Allocate the memory.\n }\n }\n\n /// @dev Escapes the string to be used within double-quotes in a JSON.\n function escapeJSON(string memory s) internal pure returns (string memory result) {\n result = escapeJSON(s, false);\n }\n\n /// @dev Returns whether `a` equals `b`.\n function eq(string memory a, string memory b) internal pure returns (bool result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := eq(keccak256(add(a, 0x20), mload(a)), keccak256(add(b, 0x20), mload(b)))\n }\n }\n\n /// @dev Returns whether `a` equals `b`, where `b` is a null-terminated small string.\n function eqs(string memory a, bytes32 b) internal pure returns (bool result) {\n /// @solidity memory-safe-assembly\n assembly {\n // These should be evaluated on compile time, as far as possible.\n let m := not(shl(7, div(not(iszero(b)), 255))) // `0x7f7f ...`.\n let x := not(or(m, or(b, add(m, and(b, m)))))\n let r := shl(7, iszero(iszero(shr(128, x))))\n r := or(r, shl(6, iszero(iszero(shr(64, shr(r, x))))))\n r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\n r := or(r, shl(4, lt(0xffff, shr(r, x))))\n r := or(r, shl(3, lt(0xff, shr(r, x))))\n // forgefmt: disable-next-item\n result := gt(eq(mload(a), add(iszero(x), xor(31, shr(3, r)))),\n xor(shr(add(8, r), b), shr(add(8, r), mload(add(a, 0x20)))))\n }\n }\n\n /// @dev Packs a single string with its length into a single word.\n /// Returns `bytes32(0)` if the length is zero or greater than 31.\n function packOne(string memory a) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n // We don't need to zero right pad the string,\n // since this is our own custom non-standard packing scheme.\n result :=\n mul(\n // Load the length and the bytes.\n mload(add(a, 0x1f)),\n // `length != 0 && length < 32`. Abuses underflow.\n // Assumes that the length is valid and within the block gas limit.\n lt(sub(mload(a), 1), 0x1f)\n )\n }\n }\n\n /// @dev Unpacks a string packed using {packOne}.\n /// Returns the empty string if `packed` is `bytes32(0)`.\n /// If `packed` is not an output of {packOne}, the output behavior is undefined.\n function unpackOne(bytes32 packed) internal pure returns (string memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n // Grab the free memory pointer.\n result := mload(0x40)\n // Allocate 2 words (1 for the length, 1 for the bytes).\n mstore(0x40, add(result, 0x40))\n // Zeroize the length slot.\n mstore(result, 0)\n // Store the length and bytes.\n mstore(add(result, 0x1f), packed)\n // Right pad with zeroes.\n mstore(add(add(result, 0x20), mload(result)), 0)\n }\n }\n\n /// @dev Packs two strings with their lengths into a single word.\n /// Returns `bytes32(0)` if combined length is zero or greater than 30.\n function packTwo(string memory a, string memory b) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n let aLength := mload(a)\n // We don't need to zero right pad the strings,\n // since this is our own custom non-standard packing scheme.\n result :=\n mul(\n // Load the length and the bytes of `a` and `b`.\n or(\n shl(shl(3, sub(0x1f, aLength)), mload(add(a, aLength))),\n mload(sub(add(b, 0x1e), aLength))\n ),\n // `totalLength != 0 && totalLength < 31`. Abuses underflow.\n // Assumes that the lengths are valid and within the block gas limit.\n lt(sub(add(aLength, mload(b)), 1), 0x1e)\n )\n }\n }\n\n /// @dev Unpacks strings packed using {packTwo}.\n /// Returns the empty strings if `packed` is `bytes32(0)`.\n /// If `packed` is not an output of {packTwo}, the output behavior is undefined.\n function unpackTwo(bytes32 packed)\n internal\n pure\n returns (string memory resultA, string memory resultB)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Grab the free memory pointer.\n resultA := mload(0x40)\n resultB := add(resultA, 0x40)\n // Allocate 2 words for each string (1 for the length, 1 for the byte). Total 4 words.\n mstore(0x40, add(resultB, 0x40))\n // Zeroize the length slots.\n mstore(resultA, 0)\n mstore(resultB, 0)\n // Store the lengths and bytes.\n mstore(add(resultA, 0x1f), packed)\n mstore(add(resultB, 0x1f), mload(add(add(resultA, 0x20), mload(resultA))))\n // Right pad with zeroes.\n mstore(add(add(resultA, 0x20), mload(resultA)), 0)\n mstore(add(add(resultB, 0x20), mload(resultB)), 0)\n }\n }\n\n /// @dev Directly returns `a` without copying.\n function directReturn(string memory a) internal pure {\n assembly {\n // Assumes that the string does not start from the scratch space.\n let retStart := sub(a, 0x20)\n let retSize := add(mload(a), 0x40)\n // Right pad with zeroes. Just in case the string is produced\n // by a method that doesn't zero right pad.\n mstore(add(retStart, retSize), 0)\n // Store the return offset.\n mstore(retStart, 0x20)\n // End the transaction, returning the string.\n return(retStart, retSize)\n }\n }\n}\n"},"lib/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\n/// - For ERC20s, this implementation won't check that a token has code,\n/// responsibility is delegated to the caller.\nlibrary SafeTransferLib {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ETH transfer has failed.\n error ETHTransferFailed();\n\n /// @dev The ERC20 `transferFrom` has failed.\n error TransferFromFailed();\n\n /// @dev The ERC20 `transfer` has failed.\n error TransferFailed();\n\n /// @dev The ERC20 `approve` has failed.\n error ApproveFailed();\n\n /// @dev The Permit2 operation has failed.\n error Permit2Failed();\n\n /// @dev The Permit2 amount must be less than `2**160 - 1`.\n error Permit2AmountOverflow();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n /// storage reads and writes, but low enough to prevent griefing.\n uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n /// @dev The unique EIP-712 domain domain separator for the DAI token contract.\n bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n 0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n /// @dev The address for the WETH9 contract on Ethereum mainnet.\n address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n /// @dev The canonical Permit2 address.\n /// [Github](https://github.com/Uniswap/permit2)\n /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ETH OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n //\n // The regular variants:\n // - Forwards all remaining gas to the target.\n // - Reverts if the target reverts.\n // - Reverts if the current contract has insufficient balance.\n //\n // The force variants:\n // - Forwards with an optional gas stipend\n // (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n // - If the target reverts, or if the gas stipend is exhausted,\n // creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n // Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n // - Reverts if the current contract has insufficient balance.\n //\n // The try variants:\n // - Forwards with a mandatory gas stipend.\n // - Instead of reverting, returns whether the transfer succeeded.\n\n /// @dev Sends `amount` (in wei) ETH to `to`.\n function safeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`.\n function safeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // Transfer all the ETH and check if it succeeded or not.\n if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // forgefmt: disable-next-item\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function trySafeTransferAllETH(address to, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC20 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for\n /// the current contract to manage.\n function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n ///\n /// The `from` account must have at least `amount` approved for the current contract to manage.\n function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n success :=\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have their entire balance approved for the current contract to manage.\n function safeTransferAllFrom(address token, address from, address to)\n internal\n returns (uint256 amount)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransfer(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n mstore(0x20, address()) // Store the address of the current contract.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x14, to) // Store the `to` argument.\n amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// Reverts upon failure.\n function safeApprove(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n /// then retries the approval again (some tokens, e.g. USDT, requires this).\n /// Reverts upon failure.\n function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, retrying upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x34, 0) // Store 0 for the `amount`.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n mstore(0x34, amount) // Store back the original `amount`.\n // Retry the approval, reverting upon failure.\n if iszero(\n and(\n or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.\n call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n )\n ) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Returns the amount of ERC20 `token` owned by `account`.\n /// Returns zero if the `token` does not exist.\n function balanceOf(address token, address account) internal view returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, account) // Store the `account` argument.\n mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n amount :=\n mul( // The arguments of `mul` are evaluated from right to left.\n mload(0x20),\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n )\n )\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// If the initial attempt fails, try to use Permit2 to transfer the token.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for the current contract to manage.\n function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n if (!trySafeTransferFrom(token, from, to, amount)) {\n permit2TransferFrom(token, from, to, amount);\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n /// Reverts upon failure.\n function permit2TransferFrom(address token, address from, address to, uint256 amount)\n internal\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(add(m, 0x74), shr(96, shl(96, token)))\n mstore(add(m, 0x54), amount)\n mstore(add(m, 0x34), to)\n mstore(add(m, 0x20), shl(96, from))\n // `transferFrom(address,address,uint160,address)`.\n mstore(m, 0x36c78516000000000000000000000000)\n let p := PERMIT2\n let exists := eq(chainid(), 1)\n if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n if iszero(and(call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00), exists)) {\n mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n }\n }\n }\n\n /// @dev Permit a user to spend a given amount of\n /// another user's tokens via native EIP-2612 permit if possible, falling\n /// back to Permit2 if native permit fails or is not implemented on the token.\n function permit2(\n address token,\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n bool success;\n /// @solidity memory-safe-assembly\n assembly {\n for {} shl(96, xor(token, WETH9)) {} {\n mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n // Gas stipend to limit gas burn for tokens that don't refund gas when\n // an non-existing function is called. 5K should be enough for a SLOAD.\n staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n )\n ) { break }\n // After here, we can be sure that token is a contract.\n let m := mload(0x40)\n mstore(add(m, 0x34), spender)\n mstore(add(m, 0x20), shl(96, owner))\n mstore(add(m, 0x74), deadline)\n if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n mstore(0x14, owner)\n mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n mstore(add(m, 0x94), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n // `nonces` is already at `add(m, 0x54)`.\n // `1` is already stored at `add(m, 0x94)`.\n mstore(add(m, 0xb4), and(0xff, v))\n mstore(add(m, 0xd4), r)\n mstore(add(m, 0xf4), s)\n success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n break\n }\n mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n mstore(add(m, 0x54), amount)\n mstore(add(m, 0x94), and(0xff, v))\n mstore(add(m, 0xb4), r)\n mstore(add(m, 0xd4), s)\n success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n break\n }\n }\n if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n }\n\n /// @dev Simple permit on the Permit2 contract.\n function simplePermit2(\n address token,\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(m, 0x927da105) // `allowance(address,address,address)`.\n {\n let addressMask := shr(96, not(0))\n mstore(add(m, 0x20), and(addressMask, owner))\n mstore(add(m, 0x40), and(addressMask, token))\n mstore(add(m, 0x60), and(addressMask, spender))\n mstore(add(m, 0xc0), and(addressMask, spender))\n }\n let p := mul(PERMIT2, iszero(shr(160, amount)))\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n )\n ) {\n mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n revert(add(0x18, shl(2, iszero(p))), 0x04)\n }\n mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n // `owner` is already `add(m, 0x20)`.\n // `token` is already at `add(m, 0x40)`.\n mstore(add(m, 0x60), amount)\n mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n // `nonce` is already at `add(m, 0xa0)`.\n // `spender` is already at `add(m, 0xc0)`.\n mstore(add(m, 0xe0), deadline)\n mstore(add(m, 0x100), 0x100) // `signature` offset.\n mstore(add(m, 0x120), 0x41) // `signature` length.\n mstore(add(m, 0x140), r)\n mstore(add(m, 0x160), s)\n mstore(add(m, 0x180), shl(248, v))\n if iszero(call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00)) {\n mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n}\n"},"lib/solady/src/utils/LibZip.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Library for compressing and decompressing bytes.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibZip.sol)\n/// @author Calldata compression by clabby (https://github.com/clabby/op-kompressor)\n/// @author FastLZ by ariya (https://github.com/ariya/FastLZ)\n///\n/// @dev Note:\n/// The accompanying solady.js library includes implementations of\n/// FastLZ and calldata operations for convenience.\nlibrary LibZip {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* FAST LZ OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // LZ77 implementation based on FastLZ.\n // Equivalent to level 1 compression and decompression at the following commit:\n // https://github.com/ariya/FastLZ/commit/344eb4025f9ae866ebf7a2ec48850f7113a97a42\n // Decompression is backwards compatible.\n\n /// @dev Returns the compressed `data`.\n function flzCompress(bytes memory data) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n function ms8(d_, v_) -> _d {\n mstore8(d_, v_)\n _d := add(d_, 1)\n }\n function u24(p_) -> _u {\n _u := mload(p_)\n _u := or(shl(16, byte(2, _u)), or(shl(8, byte(1, _u)), byte(0, _u)))\n }\n function cmp(p_, q_, e_) -> _l {\n for { e_ := sub(e_, q_) } lt(_l, e_) { _l := add(_l, 1) } {\n e_ := mul(iszero(byte(0, xor(mload(add(p_, _l)), mload(add(q_, _l))))), e_)\n }\n }\n function literals(runs_, src_, dest_) -> _o {\n for { _o := dest_ } iszero(lt(runs_, 0x20)) { runs_ := sub(runs_, 0x20) } {\n mstore(ms8(_o, 31), mload(src_))\n _o := add(_o, 0x21)\n src_ := add(src_, 0x20)\n }\n if iszero(runs_) { leave }\n mstore(ms8(_o, sub(runs_, 1)), mload(src_))\n _o := add(1, add(_o, runs_))\n }\n function mt(l_, d_, o_) -> _o {\n for { d_ := sub(d_, 1) } iszero(lt(l_, 263)) { l_ := sub(l_, 262) } {\n o_ := ms8(ms8(ms8(o_, add(224, shr(8, d_))), 253), and(0xff, d_))\n }\n if iszero(lt(l_, 7)) {\n _o := ms8(ms8(ms8(o_, add(224, shr(8, d_))), sub(l_, 7)), and(0xff, d_))\n leave\n }\n _o := ms8(ms8(o_, add(shl(5, l_), shr(8, d_))), and(0xff, d_))\n }\n function setHash(i_, v_) {\n let p_ := add(mload(0x40), shl(2, i_))\n mstore(p_, xor(mload(p_), shl(224, xor(shr(224, mload(p_)), v_))))\n }\n function getHash(i_) -> _h {\n _h := shr(224, mload(add(mload(0x40), shl(2, i_))))\n }\n function hash(v_) -> _r {\n _r := and(shr(19, mul(2654435769, v_)), 0x1fff)\n }\n function setNextHash(ip_, ipStart_) -> _ip {\n setHash(hash(u24(ip_)), sub(ip_, ipStart_))\n _ip := add(ip_, 1)\n }\n result := mload(0x40)\n codecopy(result, codesize(), 0x8000) // Zeroize the hashmap.\n let op := add(result, 0x8000)\n let a := add(data, 0x20)\n let ipStart := a\n let ipLimit := sub(add(ipStart, mload(data)), 13)\n for { let ip := add(2, a) } lt(ip, ipLimit) {} {\n let r := 0\n let d := 0\n for {} 1 {} {\n let s := u24(ip)\n let h := hash(s)\n r := add(ipStart, getHash(h))\n setHash(h, sub(ip, ipStart))\n d := sub(ip, r)\n if iszero(lt(ip, ipLimit)) { break }\n ip := add(ip, 1)\n if iszero(gt(d, 0x1fff)) { if eq(s, u24(r)) { break } }\n }\n if iszero(lt(ip, ipLimit)) { break }\n ip := sub(ip, 1)\n if gt(ip, a) { op := literals(sub(ip, a), a, op) }\n let l := cmp(add(r, 3), add(ip, 3), add(ipLimit, 9))\n op := mt(l, d, op)\n ip := setNextHash(setNextHash(add(ip, l), ipStart), ipStart)\n a := ip\n }\n // Copy the result to compact the memory, overwriting the hashmap.\n let end := sub(literals(sub(add(ipStart, mload(data)), a), a, op), 0x7fe0)\n let o := add(result, 0x20)\n mstore(result, sub(end, o)) // Store the length.\n for {} iszero(gt(o, end)) { o := add(o, 0x20) } { mstore(o, mload(add(o, 0x7fe0))) }\n mstore(end, 0) // Zeroize the slot after the string.\n mstore(0x40, add(end, 0x20)) // Allocate the memory.\n }\n }\n\n /// @dev Returns the decompressed `data`.\n function flzDecompress(bytes memory data) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := mload(0x40)\n let op := add(result, 0x20)\n let end := add(add(data, 0x20), mload(data))\n for { data := add(data, 0x20) } lt(data, end) {} {\n let w := mload(data)\n let c := byte(0, w)\n let t := shr(5, c)\n if iszero(t) {\n mstore(op, mload(add(data, 1)))\n data := add(data, add(2, c))\n op := add(op, add(1, c))\n continue\n }\n for {\n let g := eq(t, 7)\n let l := add(2, xor(t, mul(g, xor(t, add(7, byte(1, w)))))) // M\n let s := add(add(shl(8, and(0x1f, c)), byte(add(1, g), w)), 1) // R\n let r := sub(op, s)\n let f := xor(s, mul(gt(s, 0x20), xor(s, 0x20)))\n let j := 0\n } 1 {} {\n mstore(add(op, j), mload(add(r, j)))\n j := add(j, f)\n if lt(j, l) { continue }\n data := add(data, add(2, g))\n op := add(op, l)\n break\n }\n }\n mstore(result, sub(op, add(result, 0x20))) // Store the length.\n mstore(op, 0) // Zeroize the slot after the string.\n mstore(0x40, add(op, 0x20)) // Allocate the memory.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CALLDATA OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Calldata compression and decompression using selective run length encoding:\n // - Sequences of 0x00 (up to 128 consecutive).\n // - Sequences of 0xff (up to 32 consecutive).\n //\n // A run length encoded block consists of two bytes:\n // (0) 0x00\n // (1) A control byte with the following bit layout:\n // - [7] `0: 0x00, 1: 0xff`.\n // - [0..6] `runLength - 1`.\n //\n // The first 4 bytes are bitwise negated so that the compressed calldata\n // can be dispatched into the `fallback` and `receive` functions.\n\n /// @dev Returns the compressed `data`.\n function cdCompress(bytes memory data) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n function rle(v_, o_, d_) -> _o, _d {\n mstore(o_, shl(240, or(and(0xff, add(d_, 0xff)), and(0x80, v_))))\n _o := add(o_, 2)\n }\n result := mload(0x40)\n let o := add(result, 0x20)\n let z := 0 // Number of consecutive 0x00.\n let y := 0 // Number of consecutive 0xff.\n for { let end := add(data, mload(data)) } iszero(eq(data, end)) {} {\n data := add(data, 1)\n let c := byte(31, mload(data))\n if iszero(c) {\n if y { o, y := rle(0xff, o, y) }\n z := add(z, 1)\n if eq(z, 0x80) { o, z := rle(0x00, o, 0x80) }\n continue\n }\n if eq(c, 0xff) {\n if z { o, z := rle(0x00, o, z) }\n y := add(y, 1)\n if eq(y, 0x20) { o, y := rle(0xff, o, 0x20) }\n continue\n }\n if y { o, y := rle(0xff, o, y) }\n if z { o, z := rle(0x00, o, z) }\n mstore8(o, c)\n o := add(o, 1)\n }\n if y { o, y := rle(0xff, o, y) }\n if z { o, z := rle(0x00, o, z) }\n // Bitwise negate the first 4 bytes.\n mstore(add(result, 4), not(mload(add(result, 4))))\n mstore(result, sub(o, add(result, 0x20))) // Store the length.\n mstore(o, 0) // Zeroize the slot after the string.\n mstore(0x40, add(o, 0x20)) // Allocate the memory.\n }\n }\n\n /// @dev Returns the decompressed `data`.\n function cdDecompress(bytes memory data) internal pure returns (bytes memory result) {\n /// @solidity memory-safe-assembly\n assembly {\n if mload(data) {\n result := mload(0x40)\n let o := add(result, 0x20)\n let s := add(data, 4)\n let v := mload(s)\n let end := add(data, mload(data))\n mstore(s, not(v)) // Bitwise negate the first 4 bytes.\n for {} lt(data, end) {} {\n data := add(data, 1)\n let c := byte(31, mload(data))\n if iszero(c) {\n data := add(data, 1)\n let d := byte(31, mload(data))\n // Fill with either 0xff or 0x00.\n mstore(o, not(0))\n if iszero(gt(d, 0x7f)) { codecopy(o, codesize(), add(d, 1)) }\n o := add(o, add(and(d, 0x7f), 1))\n continue\n }\n mstore8(o, c)\n o := add(o, 1)\n }\n mstore(s, v) // Restore the first 4 bytes.\n mstore(result, sub(o, add(result, 0x20))) // Store the length.\n mstore(o, 0) // Zeroize the slot after the string.\n mstore(0x40, add(o, 0x20)) // Allocate the memory.\n }\n }\n }\n\n /// @dev To be called in the `fallback` function.\n /// ```\n /// fallback() external payable { LibZip.cdFallback(); }\n /// receive() external payable {} // Silence compiler warning to add a `receive` function.\n /// ```\n /// For efficiency, this function will directly return the results, terminating the context.\n /// If called internally, it must be called at the end of the function.\n function cdFallback() internal {\n assembly {\n if iszero(calldatasize()) { return(calldatasize(), calldatasize()) }\n let o := 0\n let f := not(3) // For negating the first 4 bytes.\n for { let i := 0 } lt(i, calldatasize()) {} {\n let c := byte(0, xor(add(i, f), calldataload(i)))\n i := add(i, 1)\n if iszero(c) {\n let d := byte(0, xor(add(i, f), calldataload(i)))\n i := add(i, 1)\n // Fill with either 0xff or 0x00.\n mstore(o, not(0))\n if iszero(gt(d, 0x7f)) { codecopy(o, codesize(), add(d, 1)) }\n o := add(o, add(and(d, 0x7f), 1))\n continue\n }\n mstore8(o, c)\n o := add(o, 1)\n }\n let success := delegatecall(gas(), address(), 0x00, o, codesize(), 0x00)\n returndatacopy(0x00, 0x00, returndatasize())\n if iszero(success) { revert(0x00, returndatasize()) }\n return(0x00, returndatasize())\n }\n }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155 is IERC165 {\n /**\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\n */\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\n\n /**\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\n * transfers.\n */\n event TransferBatch(\n address indexed operator,\n address indexed from,\n address indexed to,\n uint256[] ids,\n uint256[] values\n );\n\n /**\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\n * `approved`.\n */\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\n\n /**\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\n *\n * If an {URI} event was emitted for `id`, the standard\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\n * returned by {IERC1155MetadataURI-uri}.\n */\n event URI(string value, uint256 indexed id);\n\n /**\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) external view returns (uint256);\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(\n address[] calldata accounts,\n uint256[] calldata ids\n ) external view returns (uint256[] memory);\n\n /**\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\n *\n * Emits an {ApprovalForAll} event.\n *\n * Requirements:\n *\n * - `operator` cannot be the caller.\n */\n function setApprovalForAll(address operator, bool approved) external;\n\n /**\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\n *\n * See {setApprovalForAll}.\n */\n function isApprovedForAll(address account, address operator) external view returns (bool);\n\n /**\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\n *\n * Emits a {TransferBatch} event.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function safeBatchTransferFrom(\n address from,\n address to,\n uint256[] calldata ids,\n uint256[] calldata amounts,\n bytes calldata data\n ) external;\n}\n"},"contracts/interfaces/IQuestOwnable.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\nimport {IOwnable} from \"./IOwnable.sol\";\nimport {IQuest} from \"./IQuest.sol\";\n\n// solhint-disable-next-line no-empty-blocks\ninterface IQuestOwnable is IQuest, IOwnable {}\n"},"contracts/interfaces/IQuest1155Ownable.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\nimport {IOwnable} from \"./IOwnable.sol\";\nimport {IQuest1155} from \"./IQuest1155.sol\";\n\n// solhint-disable-next-line no-empty-blocks\ninterface IQuest1155Ownable is IQuest1155, IOwnable {}\n"},"contracts/Quest.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\n// Inherits\nimport {Ownable} from \"solady/auth/Ownable.sol\";\nimport {PausableUpgradeable} from \"openzeppelin-contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport {ReentrancyGuardUpgradeable} from \"openzeppelin-contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport {QuestClaimable} from \"./libraries/QuestClaimable.sol\";\n// Implements\nimport {IQuest} from \"./interfaces/IQuest.sol\";\n// Leverages\nimport {SafeTransferLib} from \"solady/utils/SafeTransferLib.sol\";\n// References\nimport {IQuestFactory} from \"./interfaces/IQuestFactory.sol\";\n\n/// @title Quest\n/// @author RabbitHole.gg\n/// @notice This contract is the Erc20Quest contract. It is a quest that is redeemable for ERC20 tokens\n// solhint-disable-next-line max-states-count\ncontract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQuest, QuestClaimable {\n /*//////////////////////////////////////////////////////////////\n USING\n //////////////////////////////////////////////////////////////*/\n using SafeTransferLib for address;\n\n /*//////////////////////////////////////////////////////////////\n STORAGE\n //////////////////////////////////////////////////////////////*/\n address public rabbitHoleReceiptContract; // Deprecated - do not use\n IQuestFactory public questFactoryContract;\n address public rewardToken;\n uint256 public endTime;\n uint256 public startTime;\n uint256 public totalParticipants;\n uint256 public rewardAmountInWei;\n bool public queued;\n string public questId;\n uint16 public questFee;\n bool public hasWithdrawn;\n address public protocolFeeRecipient;\n mapping(uint256 => bool) private claimedList;\n mapping(address => uint256) public streamIdForAddress;\n uint256 public referralRewardFee;\n uint256 public referralClaimTotal;\n mapping (address => uint256) private referralClaimAmounts;\n mapping (address => bool) private referrerHasClaimed;\n uint256 public totalReferralsFeesClaimed;\n\n /*//////////////////////////////////////////////////////////////\n CONSTRUCTOR\n //////////////////////////////////////////////////////////////*/\n /// @custom:oz-upgrades-unsafe-allow constructor\n // solhint-disable-next-line func-visibility\n constructor() {\n _disableInitializers();\n }\n\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmountInWei_,\n string memory questId_,\n uint16 questFee_,\n address protocolFeeRecipient_\n ) external initializer {\n // Validate inputs\n if (endTime_ <= block.timestamp) revert EndTimeInPast();\n if (endTime_ <= startTime_) revert EndTimeLessThanOrEqualToStartTime();\n\n // Process input parameters\n rewardToken = rewardTokenAddress_;\n endTime = endTime_;\n startTime = startTime_;\n totalParticipants = totalParticipants_;\n rewardAmountInWei = rewardAmountInWei_;\n questId = questId_;\n questFee = questFee_;\n protocolFeeRecipient = protocolFeeRecipient_;\n\n // Setup default state\n questFactoryContract = IQuestFactory(payable(msg.sender));\n queued = true;\n referralClaimTotal = 0;\n totalReferralsFeesClaimed = 0;\n referralRewardFee = 250; // 2.5%\n _initializeOwner(msg.sender);\n __Pausable_init();\n __ReentrancyGuard_init();\n }\n\n /*//////////////////////////////////////////////////////////////\n MODIFIERS\n //////////////////////////////////////////////////////////////*/\n /// @notice Prevents reward withdrawal until the Quest has ended\n modifier onlyWithdrawAfterEnd() {\n if (block.timestamp < endTime) revert NoWithdrawDuringClaim();\n _;\n }\n\n /// @notice Checks if quest has started both at the function level and at the start time\n modifier onlyQuestActive() {\n if (block.timestamp < startTime) revert ClaimWindowNotStarted();\n _;\n }\n\n /// @notice Checks if the quest end time has not passed\n modifier whenNotEnded() {\n if (block.timestamp > endTime) revert QuestEnded();\n _;\n }\n\n modifier onlyQuestFactory() {\n if (msg.sender != address(questFactoryContract)) revert NotQuestFactory();\n _;\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n\n /// @notice Cancels the Quest by setting the end time to 15 minutes from the current time and pausing the Quest. If the Quest has not yet started, it will end immediately.\n /// @dev Only the owner of the Quest can call this function.\n function cancel() external onlyQuestFactory whenNotPaused whenNotEnded {\n _pause();\n endTime = startTime > block.timestamp ? block.timestamp : block.timestamp + 15 minutes;\n }\n\n /// @dev transfers rewards to the account, can only be called once per account per quest and only by the quest factory\n /// @param account_ The account to transfer rewards to\n function singleClaim(address account_)\n external\n virtual\n nonReentrant\n onlyQuestActive\n whenNotPaused\n onlyQuestFactory\n {\n uint256 totalRedeemableRewards = rewardAmountInWei;\n _transferRewards(account_, totalRedeemableRewards);\n\n }\n\n function claimFromFactory(address claimer_, address ref_) external payable whenNotEnded onlyQuestFactory {\n _transferRewards(claimer_, rewardAmountInWei);\n if (ref_ != address(0)) {\n ref_.safeTransferETH(_claimFee() / 3);\n _updateReferralTokenAmount(ref_);\n }\n }\n\n /// @notice Function that transfers all 1155 tokens in the contract to the owner (creator), and eth to the protocol fee recipient and the owner\n /// @dev Can only be called after the quest has ended\n function withdrawRemainingTokens() external onlyWithdrawAfterEnd {\n if (hasWithdrawn) revert AlreadyWithdrawn();\n hasWithdrawn = true;\n\n uint256 ownerPayout = (_claimFee() * _redeemedTokens()) / 3;\n uint256 protocolPayout = address(this).balance - ownerPayout;\n\n owner().safeTransferETH(ownerPayout);\n protocolFeeRecipient.safeTransferETH(protocolPayout);\n\n // transfer reward tokens\n uint256 protocolFeeForRecipient = (this.protocolFee() / 2) - referralClaimTotal;\n rewardToken.safeTransfer(protocolFeeRecipient, protocolFeeForRecipient);\n\n uint256 remainingBalanceForOwner = rewardToken.balanceOf(address(this)) - (referralClaimTotal - totalReferralsFeesClaimed);\n rewardToken.safeTransfer(owner(), remainingBalanceForOwner);\n\n questFactoryContract.withdrawCallback(questId, protocolFeeRecipient, protocolPayout, address(owner()), ownerPayout);\n }\n\n function claimReferralFees(address referrer) external onlyWithdrawAfterEnd {\n if (referrerHasClaimed[referrer] == true) revert AlreadyWithdrawn();\n\n uint256 referrerClaimAmount = referralClaimAmounts[referrer];\n if (referrerClaimAmount == 0) revert NoReferralFees();\n\n rewardToken.safeTransfer(referrer, referrerClaimAmount);\n referrerHasClaimed[referrer] = true;\n totalReferralsFeesClaimed += referrerClaimAmount;\n emit ClaimedReferralFees(questId, referrer, address(rewardToken), referrerClaimAmount);\n }\n\n /*//////////////////////////////////////////////////////////////\n EXTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n /// @dev The amount of tokens the quest creator needs to pay all redeemers, the protocol fee, and the referral fee\n function totalTransferAmount() external view returns (uint256) {\n return this.maxTotalRewards() + this.maxProtocolReward() + this.maxReferralFee();\n }\n\n /// @dev Function that gets the maximum amount of rewards that can be claimed by all users. It does not include the protocol fee\n /// @return The maximum amount of rewards that can be claimed by all users\n function maxTotalRewards() external view returns (uint256) {\n return totalParticipants * rewardAmountInWei;\n }\n\n /// @notice Function that gets the maximum amount of rewards that can be claimed by the protocol or the quest deployer\n /// @dev The 10_000 comes from Basis Points: https://www.investopedia.com/terms/b/basispoint.asp\n /// @return The maximum amount of rewards that can be claimed by the protocol or the quest deployer\n function maxProtocolReward() external view returns (uint256) {\n return (this.maxTotalRewards() * questFee) / 10_000;\n }\n\n function maxReferralFee() external view returns (uint256) {\n return (this.maxTotalRewards() * referralRewardFee) / 10_000;\n }\n\n /// @notice Function that calculates the protocol fee\n function protocolFee() external view returns (uint256) {\n return (_redeemedTokens() * rewardAmountInWei * questFee) / 10_000;\n }\n\n function referralRewardAmount() external view returns (uint256) {\n return _referralRewardAmount();\n }\n\n function getReferralAmount(address referrer) external view returns (uint256) {\n return referralClaimAmounts[referrer];\n }\n\n /// @dev Returns the reward amount\n function getRewardAmount() external view returns (uint256) {\n return rewardAmountInWei;\n }\n\n /// @dev Returns the reward token address\n function getRewardToken() external view returns (address) {\n return rewardToken;\n }\n\n function getQuestFactoryContract() public view override returns (IQuestFactory){\n return questFactoryContract;\n }\n\n function getQuestId() public view override returns (string memory){\n return questId;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL UPDATE\n //////////////////////////////////////////////////////////////*/\n /// @notice Internal function that transfers the rewards to the msg.sender\n /// @param sender_ The address to send the rewards to\n /// @param amount_ The amount of rewards to transfer\n function _transferRewards(address sender_, uint256 amount_) internal {\n rewardToken.safeTransfer(sender_, amount_);\n }\n\n /// @notice Internal function to update the referral reward amount\n /// @param referrer_ The address of the referrer\n function _updateReferralTokenAmount(address referrer_) internal {\n uint256 referralAmount = _referralRewardAmount();\n referralClaimTotal += referralAmount;\n referralClaimAmounts[referrer_] += referralAmount;\n }\n\n /*//////////////////////////////////////////////////////////////\n INTERNAL VIEW\n //////////////////////////////////////////////////////////////*/\n function _redeemedTokens() internal view returns (uint256) {\n return questFactoryContract.getNumberMinted(questId);\n }\n\n function _claimFee() internal view returns (uint256) {\n return questFactoryContract.mintFee();\n }\n\n function _referralRewardAmount() internal view returns (uint256) {\n return (referralRewardFee * rewardAmountInWei) / 10_000;\n }\n\n /*//////////////////////////////////////////////////////////////\n DEFAULTS\n //////////////////////////////////////////////////////////////*/\n receive() external payable {}\n fallback() external payable {}\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/AddressUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n *\n * Furthermore, `isContract` will also return true if the target contract within\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n * which only has an effect at the end of a transaction.\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n"},"lib/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The caller is not authorized to call the function.\n error Unauthorized();\n\n /// @dev The `newOwner` cannot be the zero address.\n error NewOwnerIsZeroAddress();\n\n /// @dev The `pendingOwner` does not have a valid handover request.\n error NoHandoverRequest();\n\n /// @dev Cannot double-initialize.\n error AlreadyInitialized();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n /// despite it not being as lightweight as a single argument event.\n event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n /// @dev An ownership handover to `pendingOwner` has been requested.\n event OwnershipHandoverRequested(address indexed pendingOwner);\n\n /// @dev The ownership handover to `pendingOwner` has been canceled.\n event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* STORAGE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The owner slot is given by:\n /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n /// It is intentionally chosen to be a high value\n /// to avoid collision with lower slots.\n /// The choice of manual storage layout is to enable compatibility\n /// with both regular and upgradeable contracts.\n bytes32 internal constant _OWNER_SLOT =\n 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n /// The ownership handover slot of `newOwner` is given by:\n /// ```\n /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n /// let handoverSlot := keccak256(0x00, 0x20)\n /// ```\n /// It stores the expiry timestamp of the two-step ownership handover.\n uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* INTERNAL FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n /// @dev Initializes the owner directly without authorization guard.\n /// This function must be called upon initialization,\n /// regardless of whether the contract is upgradeable or not.\n /// This is to enable generalization to both regular and upgradeable contracts,\n /// and to save gas in case the initial owner is not the caller.\n /// For performance reasons, this function will not check if there\n /// is an existing owner.\n function _initializeOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n if sload(ownerSlot) {\n mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n revert(0x1c, 0x04)\n }\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(_OWNER_SLOT, newOwner)\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n }\n }\n\n /// @dev Sets the owner directly without authorization guard.\n function _setOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, newOwner)\n }\n }\n }\n\n /// @dev Throws if the sender is not the owner.\n function _checkOwner() internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // If the caller is not the stored owner, revert.\n if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n /// Override to return a different value if needed.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n return 48 * 3600;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC UPDATE FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Allows the owner to transfer the ownership to `newOwner`.\n function transferOwnership(address newOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(shl(96, newOwner)) {\n mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n revert(0x1c, 0x04)\n }\n }\n _setOwner(newOwner);\n }\n\n /// @dev Allows the owner to renounce their ownership.\n function renounceOwnership() public payable virtual onlyOwner {\n _setOwner(address(0));\n }\n\n /// @dev Request a two-step ownership handover to the caller.\n /// The request will automatically expire in 48 hours (172800 seconds) by default.\n function requestOwnershipHandover() public payable virtual {\n unchecked {\n uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to `expires`.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), expires)\n // Emit the {OwnershipHandoverRequested} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n }\n }\n }\n\n /// @dev Cancels the two-step ownership handover to the caller, if any.\n function cancelOwnershipHandover() public payable virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), 0)\n // Emit the {OwnershipHandoverCanceled} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n }\n }\n\n /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n let handoverSlot := keccak256(0x0c, 0x20)\n // If the handover does not exist, or has expired.\n if gt(timestamp(), sload(handoverSlot)) {\n mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n revert(0x1c, 0x04)\n }\n // Set the handover slot to 0.\n sstore(handoverSlot, 0)\n }\n _setOwner(pendingOwner);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC READ FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the owner of the contract.\n function owner() public view virtual returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := sload(_OWNER_SLOT)\n }\n }\n\n /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n function ownershipHandoverExpiresAt(address pendingOwner)\n public\n view\n virtual\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the handover slot.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n // Load the handover slot.\n result := sload(keccak256(0x0c, 0x20))\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MODIFIERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Marks a function as only callable by the owner.\n modifier onlyOwner() virtual {\n _checkOwner();\n _;\n }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toString(int256 value) internal pure returns (string memory) {\n return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return keccak256(bytes(a)) == keccak256(bytes(b));\n }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"contracts/interfaces/IOwnable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.19;\n\ninterface IOwnable {\n // Events\n event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n event OwnershipHandoverRequested(address indexed pendingOwner);\n event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n // Update functions\n function transferOwnership(address newOwner) external payable;\n function renounceOwnership() external payable;\n function requestOwnershipHandover() external payable;\n function cancelOwnershipHandover() external payable;\n function completeOwnershipHandover(address pendingOwner) external payable;\n\n // Read functions\n function owner() external view returns (address);\n function ownershipHandoverExpiresAt(address pendingOwner) external view returns (uint256);\n}\n"},"contracts/interfaces/IQuest.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuest {\n event Queued(uint256 timestamp);\n event ProtocolFeeDistributed(string questId, address rewardToken, address protocolOwner, uint256 feeAmountToProtocolOwner, address questOwner, uint256 feeAmountToQuestOwner);\n event ClaimedReferralFees(string questId, address recipient, address tokenAddress, uint256 feeAmount);\n\n error AlreadyClaimed();\n error AlreadyWithdrawn();\n error AmountExceedsBalance();\n error ClaimWindowNotStarted();\n error EndTimeInPast();\n error EndTimeLessThanOrEqualToStartTime();\n error InvalidRefundToken();\n error MustImplementInChild();\n error NotQuestFactory();\n error NoWithdrawDuringClaim();\n error NotStarted();\n error TotalAmountExceedsBalance();\n error AuthOwnerRecipient();\n error AddressNotSigned();\n error InvalidClaimFee();\n error OverMaxAllowedToMint();\n error AddressAlreadyMinted();\n error QuestEnded();\n error NoReferralFees();\n\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 rewardAmountInWei_,\n string memory questId_,\n uint16 questFee_,\n address protocolFeeRecipient_\n ) external;\n function getRewardAmount() external view returns (uint256);\n function getRewardToken() external view returns (address);\n function queued() external view returns (bool);\n function startTime() external view returns (uint256);\n function endTime() external view returns (uint256);\n function singleClaim(address account) external;\n function cancel() external;\n function rewardToken() external view returns (address);\n function rewardAmountInWei() external view returns (uint256);\n function totalTransferAmount() external view returns (uint256);\n function questFee() external view returns (uint16);\n function totalParticipants() external view returns (uint256);\n function hasWithdrawn() external view returns (bool);\n function questId() external view returns (string memory);\n}\n"},"contracts/interfaces/IQuest1155.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.19;\n\ninterface IQuest1155 {\n // Structs\n struct FactoryQuest {\n mapping(address => bool) addressMinted;\n address questAddress;\n uint256 totalParticipants;\n uint256 numberMinted;\n string questType;\n address questCreator;\n address mintFeeRecipient;\n }\n\n // Events\n event Queued(uint256 timestamp);\n\n event QuestClaimedData(\n address indexed recipient,\n address indexed referrer,\n string extraData\n );\n\n // Errors\n error EndTimeInPast();\n error EndTimeLessThanOrEqualToStartTime();\n error InsufficientTokenBalance();\n error InsufficientETHBalance();\n error NotStarted();\n error NotEnded();\n error NotQueued();\n error NotQuestFactory();\n error QuestEnded();\n error AlreadyWithdrawn();\n error AddressNotSigned();\n error InvalidClaimFee();\n error AddressAlreadyMinted();\n error OverMaxAllowedToMint();\n\n // Initializer/Contstructor Function\n function initialize(\n address rewardTokenAddress_,\n uint256 endTime_,\n uint256 startTime_,\n uint256 totalParticipants_,\n uint256 tokenId_,\n address protocolFeeRecipient_,\n string memory questId_\n ) external;\n\n // Read Functions\n function endTime() external view returns (uint256);\n function hasWithdrawn() external view returns (bool);\n\n function maxProtocolReward() external view returns (uint256);\n function questFee() external view returns (uint256);\n function queued() external view returns (bool);\n function startTime() external view returns (uint256);\n function tokenId() external view returns (uint256);\n function rewardToken() external view returns (address);\n\n // Update Functions\n function cancel() external;\n function queue() external;\n function singleClaim(address account_) external;\n function withdrawRemainingTokens() external;\n }\n"},"lib/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n function __Pausable_init() internal onlyInitializing {\n __Pausable_init_unchained();\n }\n\n function __Pausable_init_unchained() internal onlyInitializing {\n _paused = false;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view virtual {\n require(!paused(), \"Pausable: paused\");\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view virtual {\n require(paused(), \"Pausable: not paused\");\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/security/ReentrancyGuardUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n function __ReentrancyGuard_init() internal onlyInitializing {\n __ReentrancyGuard_init_unchained();\n }\n\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n _nonReentrantBefore();\n _;\n _nonReentrantAfter();\n }\n\n function _nonReentrantBefore() private {\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n }\n\n function _nonReentrantAfter() private {\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n * `nonReentrant` function in the call stack.\n */\n function _reentrancyGuardEntered() internal view returns (bool) {\n return _status == _ENTERED;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n"},"contracts/libraries/QuestClaimable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.19;\n\nimport { IQuestFactory } from \"../interfaces/IQuestFactory.sol\";\n\nerror txOriginMismatch();\n\nabstract contract QuestClaimable {\n function getQuestFactoryContract() public view virtual returns (IQuestFactory);\n\n function getQuestId() public view virtual returns (string memory);\n\n function claim() external payable {\n address ref_;\n IQuestFactory questFactoryContract = getQuestFactoryContract();\n string memory questId = getQuestId();\n\n (bytes32 txHash_, bytes32 r_, bytes32 vs_) = abi.decode(msg.data[4:], (bytes32, bytes32, bytes32));\n\n if (msg.data.length > 100) {\n assembly {\n ref_ := calldataload(100)\n ref_ := shr(96, ref_)\n }\n }\n\n IQuestFactory.QuestJsonData memory quest_ = questFactoryContract.questJsonData(questId);\n string memory jsonData_ = questFactoryContract.buildJsonString(txHash_, quest_.txHashChainId, quest_.actionType, quest_.questName);\n bytes memory claimData_ = abi.encode(msg.sender, ref_, questId, jsonData_);\n\n questFactoryContract.claimOptimized{value: msg.value}(abi.encodePacked(r_,vs_), claimData_);\n }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1, \"Math: mulDiv overflow\");\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n }\n }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // must be unchecked in order to support `n = type(int256).min`\n return uint256(n >= 0 ? n : -n);\n }\n }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n"}},"settings":{"remappings":["forge-std/=lib/forge-std/src/","solady/=lib/solady/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/=node_modules/@openzeppelin/","@openzeppelin/contracts/=lib/v2-core/lib/openzeppelin-contracts/contracts/","@prb/=node_modules/@prb/","@prb/math/=lib/v2-core/lib/prb-math/","@prb/test/=lib/v2-core/lib/prb-test/src/","@sablier/=node_modules/@sablier/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","eth-gas-reporter/=node_modules/eth-gas-reporter/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/","prb-math/=lib/v2-core/lib/prb-math/src/","prb-test/=lib/v2-core/lib/prb-test/src/","solarray/=lib/v2-core/lib/solarray/src/","v2-core/=lib/v2-core/"],"optimizer":{"enabled":true,"runs":1000},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"outputSelection":{"*":{"":["ast"],"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","storageLayout"]}},"evmVersion":"paris","viaIR":true,"libraries":{}}} diff --git a/broadcast/Quest.s.sol/10/run-latest.json b/broadcast/Quest.s.sol/10/run-latest.json index a68af687..cb7ce823 100644 --- a/broadcast/Quest.s.sol/10/run-latest.json +++ b/broadcast/Quest.s.sol/10/run-latest.json @@ -1,40 +1,40 @@ { "transactions": [ { - "hash": "0x9fd646d08a0f8b5841728690e5a5476b9c6e913e1c36e7809b59890171f5e3f7", + "hash": "0x715a8cdb446d07646a5872790ab13b93cb6ea9d248e3e30eb27add721c53d553", "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0x65E49DBcdE08fBD51a9C676dC3Bb22Bb089725ce", + "contractName": "Quest", + "contractAddress": "0x01b44ad4a609150eb8a0ef42e4ef009bb298e8ab", "function": null, "arguments": null, "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", + "gas": "0x2123cb", "value": "0x0", - "data": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea264697066735822122041c5a1594ae2985e35993df6b1363fc7851a06272fdfc3cfc897ddc18d3a119c64736f6c63430008130033", - "nonce": "0x122", - "accessList": [] + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x132", + "chainId": "0xa" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0xeae022560f1150317689c9dd497f4c6c20fdc96b2ff85ee5b93810db81933b60", + "hash": "0xf947d862e744f3c3fb0d697398a3d5205e224f0826b3d3141ad73e63cfa94b42", "transactionType": "CALL", - "contractName": "TransparentUpgradeableProxy", - "contractAddress": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "function": null, - "arguments": null, + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x01B44AD4A609150eB8A0ef42E4EF009BB298e8ab" + ], "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0xc8a6", + "gas": "0xd0de", "value": "0x0", - "data": "0xf8565efd00000000000000000000000065e49dbcde08fbd51a9c676dc3bb22bb089725ce", - "nonce": "0x123", - "accessList": [] + "input": "0x7c93f9ee00000000000000000000000001b44ad4a609150eb8a0ef42e4ef009bb298e8ab", + "nonce": "0x133", + "chainId": "0xa" }, "additionalContracts": [], "isFixedGasLimit": false @@ -42,56 +42,68 @@ ], "receipts": [ { - "transactionHash": "0x9fd646d08a0f8b5841728690e5a5476b9c6e913e1c36e7809b59890171f5e3f7", - "transactionIndex": "0x1", - "blockHash": "0xee67aa3c7e3cd128e87217bcd7e7300fdd68682319102981c22f865490230223", - "blockNumber": "0x72934ea", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x1914c9", - "gasUsed": "0x18697e", - "contractAddress": "0x65E49DBcdE08fBD51a9C676dC3Bb22Bb089725ce", + "status": "0x1", + "cumulativeGasUsed": "0x22d1e9", "logs": [ { - "address": "0x65E49DBcdE08fBD51a9C676dC3Bb22Bb089725ce", + "address": "0x01b44ad4a609150eb8a0ef42e4ef009bb298e8ab", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0xee67aa3c7e3cd128e87217bcd7e7300fdd68682319102981c22f865490230223", - "blockNumber": "0x72934ea", - "transactionHash": "0x9fd646d08a0f8b5841728690e5a5476b9c6e913e1c36e7809b59890171f5e3f7", - "transactionIndex": "0x1", - "logIndex": "0x0", + "blockHash": "0x98a3094d498b84d291dd10a2c3d460931f02d17d3030dcbf3b65e8c1ddd67413", + "blockNumber": "0x7479084", + "transactionHash": "0x715a8cdb446d07646a5872790ab13b93cb6ea9d248e3e30eb27add721c53d553", + "transactionIndex": "0x5", + "logIndex": "0xc", "removed": false } ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000100000020000000000000000000000000000000000000000002000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb3368c13" + "transactionHash": "0x715a8cdb446d07646a5872790ab13b93cb6ea9d248e3e30eb27add721c53d553", + "transactionIndex": "0x5", + "blockHash": "0x98a3094d498b84d291dd10a2c3d460931f02d17d3030dcbf3b65e8c1ddd67413", + "blockNumber": "0x7479084", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0x3ae081e", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x01b44ad4a609150eb8a0ef42e4ef009bb298e8ab", + "l1BaseFeeScalar": "0x558", + "l1BlobBaseFee": "0x1", + "l1BlobBaseFeeScalar": "0xc5fc5", + "l1Fee": "0x197c2a45cca", + "l1GasPrice": "0x28faf6b67", + "l1GasUsed": "0x1c698" }, { - "transactionHash": "0xeae022560f1150317689c9dd497f4c6c20fdc96b2ff85ee5b93810db81933b60", - "transactionIndex": "0x2", - "blockHash": "0xee67aa3c7e3cd128e87217bcd7e7300fdd68682319102981c22f865490230223", - "blockNumber": "0x72934ea", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "cumulativeGasUsed": "0x19a60e", - "gasUsed": "0x9145", - "contractAddress": null, - "logs": [], "status": "0x1", + "cumulativeGasUsed": "0x2360ba", + "logs": [], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb3368c13" + "transactionHash": "0xf947d862e744f3c3fb0d697398a3d5205e224f0826b3d3141ad73e63cfa94b42", + "transactionIndex": "0x6", + "blockHash": "0x98a3094d498b84d291dd10a2c3d460931f02d17d3030dcbf3b65e8c1ddd67413", + "blockNumber": "0x7479084", + "gasUsed": "0x8ed1", + "effectiveGasPrice": "0x3ae081e", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x558", + "l1BlobBaseFee": "0x1", + "l1BlobBaseFeeScalar": "0xc5fc5", + "l1Fee": "0x7a36925e7", + "l1GasPrice": "0x28faf6b67", + "l1GasUsed": "0x884" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715880849, + "timestamp": 1719859909, "chain": 10, - "commit": "a35a3c3" + "commit": "ee7f8c4" } \ No newline at end of file diff --git a/broadcast/Quest.s.sol/11155111/run-1719246321.json b/broadcast/Quest.s.sol/11155111/run-1719246321.json new file mode 100644 index 00000000..c5e87a3c --- /dev/null +++ b/broadcast/Quest.s.sol/11155111/run-1719246321.json @@ -0,0 +1,97 @@ +{ + "transactions": [ + { + "hash": "0x6a776ce40771272cab5e857e53397e9dfc94154a22ed4a5c4996a5aff9f6be25", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x2fa9fa4a5469ce0d43bd69b79edf84417c1d7df7", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x213467", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ced90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461177957816309a69f571461104757816316049ddf1461175557816317a7e45e1461173657816325692962146116eb5781633197cbb6146116cc5781633dd4d94f1461155d5781633ef17b171461153557816340bf898b146114b457816344a22c3614610c765781634719b0d4146114955781634e71d92d146111495781634f51407c1461111e57816354d1f13d146110d85781635c975abb146110b457816364df049e1461108957816367dfa3e71461106657816369940d79146106bf57816369d2dc05146110475781636cb4e61114611020578163715018a614610fd95781637282a4aa14610ef657816378e9792514610ed75781637969256414610db25781637b16e4291461098b578163842acd6814610ce257816385f036ce14610cab5781638a2229ce14610c765781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061192c565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661192c565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611942565b9361028489519586611804565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f546117a0565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b72565b61045b82611b72565b6065541660655561046b81611b72565b611b72565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611981565b049051908152f35b91506020823d8211610766575b8161075360209383611804565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61192c565b90610798611c33565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61192c565b610805611c33565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361192c565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611be3565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611be3565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a45565b609d5490611981565b61ffff60a0541690611981565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c675760a090815460ff8160101c16610c58579362010000849562ff000019161783556003610a90610a82611adf565b610a8a611a45565b90611981565b0490610a9c8247611994565b90638b78c6d81994610aaf848754611c50565b6001600160a01b03610ac78482845460181c16611c50565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c4e578a91610c19575b5090610b2e610b1c610b7d9360a4549060011c611994565b846099541685875460181c1690611c6e565b610b74836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6e60a45460a75490611994565b90611994565b90895490611c6e565b80609854169281835460181c16975497843b15610c15578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bd360a487016119a1565b9460248701526044860152166064840152608483015203925af1908115610c0c5750610bfc5750f35b610c05906117da565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c47575b610c338183611804565b810103126106ae5751899890610b2e610b04565b503d610c29565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610ca790610c94611826565b9051918291602083526020830190611907565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cd261192c565b16815260a5845220549051908152f35b918091506003193601126106b757610cf861192c565b90602435916001600160a01b0390818416948585036106ae57609a544211610da45782609854163303610d96575090610d3891609d549160995416611c6e565b82610d41578380f35b610d59610d8d926003610d52611adf565b0490611c50565b612710610d6b60a354609d5490611981565b0492610d798460a45461195e565b60a455845260a5602052832091825461195e565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dce61192c565b92609a544210610eca576001600160a01b038085169081855260a6602052600160ff8487205416151514610ebb5781855260a560205282852054938415610e945750610e41847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c6e565b81865260a6602052828620600160ff19825416179055610e638460a75461195e565b60a7556099541692825193849360808552610e80608086016119a1565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f1161192c565b600260015414610f96576002600155609b544210610f6e57610f31611be3565b6001600160a01b039182609854163303610f5f575090610f5891609d549160995416611c6e565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fed611c33565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611142609c54609d5490611981565b9051908152f35b836003198436820183811261135557836001600160a01b0391826098541691611170611826565b903689116106b35760608093126106b3576064361161148a575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111c86024820188611907565b0381895afa928315610c4e57908a9182946113ca575b508b61124c63ffffffff8b87015116928c875197015161123d8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611907565b91848303016064850152611907565b0381885afa9182156113c057899261136c575b5061129c6112896112a8948951988994338d870152168a85015260808785015260a0840190611907565b601f199384848303016080850152611907565b03908101855284611804565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113595790859291858552813b1561135557859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261133261131d60a4830183611907565b828103606319016084840152605f1993611907565b03019134905af1908115610c0c5750611349575080f35b611352906117da565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137e8183611804565b8101908881830312610c155780519067ffffffffffffffff82116113bc576113b36112a895949361129c936112899301611b2d565b9394505061125f565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113dd8183611804565b810189828203126113bc57815167ffffffffffffffff9283821161146957019086828203126114865789519287840184811082821117611471578b52825181811161146d578261142e918501611b2d565b84528b830151908111611469578291611449918c9401611b2d565b8b840152015163ffffffff811681036113bc57888201529189908c6111de565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61118a565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114fb575b6020836127106107318760a35490611981565b9092506020833d821161152d575b8161151660209383611804565b8101031261086957509051906127106107316114e8565b3d9150611509565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116c2578291611695575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561168b57839161165c575b506115d99161195e565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa91821561165157809261161f575b50506111429161195e565b9091508482813d831161164a575b6116378183611804565b8101031261086957505161114238611614565b503d61162d565b8451903d90823e3d90fd5b90508581813d8311611684575b6116738183611804565b810103126106b757516115d96115cf565b503d611669565b85513d85823e3d90fd5b90508481813d83116116bb575b6116ac8183611804565b81010312610226575138611594565b503d6116a2565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611981565b90600182811c921680156117d0575b60208310146117ba57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117af565b67ffffffffffffffff81116117ee57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117ee57604052565b60405190600082609f549161183a836117a0565b808352926001908181169081156118c25750600114611863575b5061186192500383611804565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118a75750611861935050810160200138611854565b81935090816020925483858a0101520191019091859261188e565b90506020925061186194915060ff191682840152151560051b82010138611854565b60005b8381106118f75750506000910152565b81810151838201526020016118e7565b90602091611920815180928185528580860191016118e4565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117ee57601f01601f191660200190565b9190820180921161196b57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196b57565b9190820391821161196b57565b609f54600092916119b1826117a0565b80825291600190818116908115611a2857506001146119cf57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a1057505060209250010190565b805460208585018101919091529093019281016119fe565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8f602482016119a1565b03915afa908115611ad357600091611aa5575090565b906020823d8211611acb575b81611abe60209383611804565b8101031261086957505190565b3d9150611ab1565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ad357600091611aa5575090565b81601f820112156106ae578051611b4381611942565b92611b516040519485611804565b818452602082840101116106ae57611b6f91602080850191016118e4565b90565b15611b7957565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611bef57565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c4257565b6382b429006000526004601cfd5b600080809338935af115611c6057565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611caa57603452565b6390b8ec1890526004601cfdfea2646970667358221220aeb823cb2083079c892b805c98c1b3b58fe3cfe73503224c4cd842bc6d1d65c664736f6c63430008130033", + "nonce": "0x195", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xa36b06fc46193b8d1af20a3590eae2ea6068fdaf897748e6afc22452e937d778", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x2fA9fa4a5469ce0D43bD69b79eDF84417c1d7df7" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee0000000000000000000000002fa9fa4a5469ce0d43bd69b79edf84417c1d7df7", + "nonce": "0x196", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0xf72874", + "logs": [ + { + "address": "0x2fa9fa4a5469ce0d43bd69b79edf84417c1d7df7", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x7bbee97a26a7c2eaa66351f6944233f8c46038511ba8aeed0c75db5b895af0c6", + "blockNumber": "0x5e42c7", + "transactionHash": "0x6a776ce40771272cab5e857e53397e9dfc94154a22ed4a5c4996a5aff9f6be25", + "transactionIndex": "0x66", + "logIndex": "0xc0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080400000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x6a776ce40771272cab5e857e53397e9dfc94154a22ed4a5c4996a5aff9f6be25", + "transactionIndex": "0x66", + "blockHash": "0x7bbee97a26a7c2eaa66351f6944233f8c46038511ba8aeed0c75db5b895af0c6", + "blockNumber": "0x5e42c7", + "gasUsed": "0x198ca2", + "effectiveGasPrice": "0x4a73ab0ea", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x2fa9fa4a5469ce0d43bd69b79edf84417c1d7df7" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0xf7b751", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xa36b06fc46193b8d1af20a3590eae2ea6068fdaf897748e6afc22452e937d778", + "transactionIndex": "0x67", + "blockHash": "0x7bbee97a26a7c2eaa66351f6944233f8c46038511ba8aeed0c75db5b895af0c6", + "blockNumber": "0x5e42c7", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x4a73ab0ea", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719246321, + "chain": 11155111, + "commit": "42a9cc2" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/11155111/run-1719441142.json b/broadcast/Quest.s.sol/11155111/run-1719441142.json new file mode 100644 index 00000000..e464e24c --- /dev/null +++ b/broadcast/Quest.s.sol/11155111/run-1719441142.json @@ -0,0 +1,97 @@ +{ + "transactions": [ + { + "hash": "0x65aa78a5ae3ea396de4bf4d47a165860e708adc61d9f9fe6f6c9f3e1a796336a", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0xaaab897aee27247c6eead06fc3f4fb46b2e5f184", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x21296f", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ce390816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176f57816309a69f571461103d57816316049ddf1461174b57816317a7e45e1461172c57816325692962146116e15781633197cbb6146116c25781633dd4d94f146115535781633ef17b171461152b57816340bf898b146114aa57816344a22c3614610c6c5781634719b0d41461148b5781634e71d92d1461113f5781634f51407c1461111457816354d1f13d146110ce5781635c975abb146110aa57816364df049e1461107f57816367dfa3e71461105c57816369940d79146106bf57816369d2dc051461103d5781636cb4e61114611016578163715018a614610fcf5781637282a4aa14610eec57816378e9792514610ecd5781637969256414610da85781637b16e4291461098b578163842acd6814610cd857816385f036ce14610ca15781638a2229ce14610c6c5781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf403610011573461022657602036600319011261022657602091610210611922565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b757610246611922565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611938565b93610284895195866117fa565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611796565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b68565b61045b82611b68565b6065541660655561046b81611b68565b611b68565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611977565b049051908152f35b91506020823d8211610766575b81610753602093836117fa565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f611922565b90610798611c29565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd611922565b610805611c29565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b03610893611922565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd9565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd9565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a3b565b609d5490611977565b61ffff60a0541690611977565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c5d5760a090815460ff8160101c16610c4e579362010000849562ff000019161783556003610a90610a82611ad5565b610a8a611a3b565b90611977565b0490610a9c824761198a565b90638b78c6d81994610aaf848754611c46565b6001600160a01b03610ac78482845460181c16611c46565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c44578a91610c0f575b5090610b24610b739284609954169060011c9085875460181c1690611c64565b610b6a836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6460a45460a7549061198a565b9061198a565b90895490611c64565b80609854169281835460181c16975497843b15610c0b578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc960a48701611997565b9460248701526044860152166064840152608483015203925af1908115610c025750610bf25750f35b610bfb906117d0565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c3d575b610c2981836117fa565b810103126106ae5751899890610b24610b04565b503d610c1f565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9d90610c8a61181c565b90519182916020835260208301906118fd565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc8611922565b16815260a5845220549051908152f35b918091506003193601126106b757610cee611922565b90602435916001600160a01b0390818416948585036106ae57609a544211610d9a5782609854163303610d8c575090610d2e91609d549160995416611c64565b82610d37578380f35b610d4f610d83926003610d48611ad5565b0490611c46565b612710610d6160a354609d5490611977565b0492610d6f8460a454611954565b60a455845260a56020528320918254611954565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dc4611922565b92609a544210610ec0576001600160a01b038085169081855260a6602052600160ff8487205416151514610eb15781855260a560205282852054938415610e8a5750610e37847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c64565b81865260a6602052828620600160ff19825416179055610e598460a754611954565b60a7556099541692825193849360808552610e7660808601611997565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f07611922565b600260015414610f8c576002600155609b544210610f6457610f27611bd9565b6001600160a01b039182609854163303610f55575090610f4e91609d549160995416611c64565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fe3611c29565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611138609c54609d5490611977565b9051908152f35b836003198436820183811261134b57836001600160a01b039182609854169161116661181c565b903689116106b35760608093126106b35760643611611480575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111be60248201886118fd565b0381895afa928315610c4457908a9182946113c0575b508b61124263ffffffff8b87015116928c87519701516112338d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118fd565b918483030160648501526118fd565b0381885afa9182156113b6578992611362575b5061129261127f61129e948951988994338d870152168a85015260808785015260a08401906118fd565b601f1993848483030160808501526118fd565b039081018552846117fa565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134f5790859291858552813b1561134b57859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132861131360a48301836118fd565b828103606319016084840152605f19936118fd565b03019134905af1908115610c02575061133f575080f35b611348906117d0565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137481836117fa565b8101908881830312610c0b5780519067ffffffffffffffff82116113b2576113a961129e9594936112929361127f9301611b23565b93945050611255565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113d381836117fa565b810189828203126113b257815167ffffffffffffffff9283821161145f570190868282031261147c5789519287840184811082821117611467578b5282518181116114635782611424918501611b23565b84528b83015190811161145f57829161143f918c9401611b23565b8b840152015163ffffffff811681036113b257888201529189908c6111d4565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c611180565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114f1575b6020836127106107318760a35490611977565b9092506020833d8211611523575b8161150c602093836117fa565b8101031261086957509051906127106107316114de565b3d91506114ff565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b857829161168b575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa908115611681578391611652575b506115cf91611954565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611647578092611615575b505061113891611954565b9091508482813d8311611640575b61162d81836117fa565b810103126108695750516111383861160a565b503d611623565b8451903d90823e3d90fd5b90508581813d831161167a575b61166981836117fa565b810103126106b757516115cf6115c5565b503d61165f565b85513d85823e3d90fd5b90508481813d83116116b1575b6116a281836117fa565b8101031261022657513861158a565b503d611698565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611977565b90600182811c921680156117c6575b60208310146117b057565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a5565b67ffffffffffffffff81116117e457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117e457604052565b60405190600082609f549161183083611796565b808352926001908181169081156118b85750600114611859575b50611857925003836117fa565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061189d575061185793505081016020013861184a565b81935090816020925483858a01015201910190918592611884565b90506020925061185794915060ff191682840152151560051b8201013861184a565b60005b8381106118ed5750506000910152565b81810151838201526020016118dd565b90602091611916815180928185528580860191016118da565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117e457601f01601f191660200190565b9190820180921161196157565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196157565b9190820391821161196157565b609f54600092916119a782611796565b80825291600190818116908115611a1e57506001146119c557505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0657505060209250010190565b805460208585018101919091529093019281016119f4565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8560248201611997565b03915afa908115611ac957600091611a9b575090565b906020823d8211611ac1575b81611ab4602093836117fa565b8101031261086957505190565b3d9150611aa7565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac957600091611a9b575090565b81601f820112156106ae578051611b3981611938565b92611b4760405194856117fa565b818452602082840101116106ae57611b6591602080850191016118da565b90565b15611b6f57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be557565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3857565b6382b429006000526004601cfd5b600080809338935af115611c5657565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611ca057603452565b6390b8ec1890526004601cfdfea2646970667358221220149d2d670275d49a11bac0173e3530dbc20af47da68fc6c86775d669c3ecbb0a64736f6c63430008130033", + "nonce": "0x198", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x696dd78aa22f97db7ec2732ecc28fbe646d465cb67681b9792957039949b6a4c", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0xAAAB897AEe27247c6EeAD06fC3f4Fb46b2E5f184" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee000000000000000000000000aaab897aee27247c6eead06fc3f4fb46b2e5f184", + "nonce": "0x199", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x97947b", + "logs": [ + { + "address": "0xaaab897aee27247c6eead06fc3f4fb46b2e5f184", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x9312855ddb7325b773db26b0871cf19fe69dd916d3414cb7a73ed260a335a728", + "blockNumber": "0x5e8227", + "transactionHash": "0x65aa78a5ae3ea396de4bf4d47a165860e708adc61d9f9fe6f6c9f3e1a796336a", + "transactionIndex": "0x33", + "logIndex": "0x60", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x65aa78a5ae3ea396de4bf4d47a165860e708adc61d9f9fe6f6c9f3e1a796336a", + "transactionIndex": "0x33", + "blockHash": "0x9312855ddb7325b773db26b0871cf19fe69dd916d3414cb7a73ed260a335a728", + "blockNumber": "0x5e8227", + "gasUsed": "0x198432", + "effectiveGasPrice": "0x839c81a2", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xaaab897aee27247c6eead06fc3f4fb46b2e5f184" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x982358", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x696dd78aa22f97db7ec2732ecc28fbe646d465cb67681b9792957039949b6a4c", + "transactionIndex": "0x34", + "blockHash": "0x9312855ddb7325b773db26b0871cf19fe69dd916d3414cb7a73ed260a335a728", + "blockNumber": "0x5e8227", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x839c81a2", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719441142, + "chain": 11155111, + "commit": "f6ec43b" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/11155111/run-1719596556.json b/broadcast/Quest.s.sol/11155111/run-1719596556.json new file mode 100644 index 00000000..2ac55333 --- /dev/null +++ b/broadcast/Quest.s.sol/11155111/run-1719596556.json @@ -0,0 +1,97 @@ +{ + "transactions": [ + { + "hash": "0xce335b47a21088ee7561d0c3b07b5ac37663a4d2a4f5ad1c7f8a0916fe8636ec", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x9fd5211c3ed50fc01160088f2ab4f1e8045b148f", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x2123cb", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x19a", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xcc4079750eacd4356c292c9977b33c78674d878496f5adaaa5e6c810131baf6d", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x9fD5211C3ed50fC01160088F2ab4f1E8045B148f" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee0000000000000000000000009fd5211c3ed50fc01160088f2ab4f1e8045b148f", + "nonce": "0x19b", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x15c11eb", + "logs": [ + { + "address": "0x9fd5211c3ed50fc01160088f2ab4f1e8045b148f", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x9bbb5add5e0531d6b7b3f83ad6d2a4c5b55b15ec740aa1ae0ce7d736aad87092", + "blockNumber": "0x5eb3ec", + "transactionHash": "0xce335b47a21088ee7561d0c3b07b5ac37663a4d2a4f5ad1c7f8a0916fe8636ec", + "transactionIndex": "0x9d", + "logIndex": "0xf1", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xce335b47a21088ee7561d0c3b07b5ac37663a4d2a4f5ad1c7f8a0916fe8636ec", + "transactionIndex": "0x9d", + "blockHash": "0x9bbb5add5e0531d6b7b3f83ad6d2a4c5b55b15ec740aa1ae0ce7d736aad87092", + "blockNumber": "0x5eb3ec", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0x5bb8c12d4", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x9fd5211c3ed50fc01160088f2ab4f1e8045b148f" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x15ca0c8", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xcc4079750eacd4356c292c9977b33c78674d878496f5adaaa5e6c810131baf6d", + "transactionIndex": "0x9e", + "blockHash": "0x9bbb5add5e0531d6b7b3f83ad6d2a4c5b55b15ec740aa1ae0ce7d736aad87092", + "blockNumber": "0x5eb3ec", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x5bb8c12d4", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719596556, + "chain": 11155111, + "commit": "c9330bc" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/11155111/run-latest.json b/broadcast/Quest.s.sol/11155111/run-latest.json index 37e8642a..2ac55333 100644 --- a/broadcast/Quest.s.sol/11155111/run-latest.json +++ b/broadcast/Quest.s.sol/11155111/run-latest.json @@ -1,39 +1,39 @@ { "transactions": [ { - "hash": "0x2c305f1472d6e22cea89630d3be37d7c9a28a1e1aa0a4d0dfa849484f3b6049d", + "hash": "0xce335b47a21088ee7561d0c3b07b5ac37663a4d2a4f5ad1c7f8a0916fe8636ec", "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0x92aac38efae144bc626e81549673c05fd7e44b2e", + "contractName": "Quest", + "contractAddress": "0x9fd5211c3ed50fc01160088f2ab4f1e8045b148f", "function": null, "arguments": null, "transaction": { "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", + "gas": "0x2123cb", "value": "0x0", - "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea26469706673582212202ca0993f27d582c6a5845a2cf18426545ef011bd292ba8f8e6e70ca062e5334a64736f6c63430008130033", - "nonce": "0x190", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x19a", "chainId": "0xaa36a7" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0xa38e6a8fb4fcf0b7c6666cc6c22cb52cd986956783b83d2e8f214b990019d466", + "hash": "0xcc4079750eacd4356c292c9977b33c78674d878496f5adaaa5e6c810131baf6d", "transactionType": "CALL", "contractName": null, "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "function": "setErc1155QuestAddress(address)", + "function": "setErc20QuestAddress(address)", "arguments": [ - "0x92aAc38EFaE144bC626e81549673C05fD7e44b2E" + "0x9fD5211C3ed50fC01160088F2ab4f1E8045B148f" ], "transaction": { "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0xc8a6", + "gas": "0xc553", "value": "0x0", - "input": "0xf8565efd00000000000000000000000092aac38efae144bc626e81549673c05fd7e44b2e", - "nonce": "0x191", + "input": "0x7c93f9ee0000000000000000000000009fd5211c3ed50fc01160088f2ab4f1e8045b148f", + "nonce": "0x19b", "chainId": "0xaa36a7" }, "additionalContracts": [], @@ -43,46 +43,46 @@ "receipts": [ { "status": "0x1", - "cumulativeGasUsed": "0x31e971", + "cumulativeGasUsed": "0x15c11eb", "logs": [ { - "address": "0x92aac38efae144bc626e81549673c05fd7e44b2e", + "address": "0x9fd5211c3ed50fc01160088f2ab4f1e8045b148f", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0x8c5af5c8a65b081af2321c92014b4aeaf40f38bae863d976552aacf44e91416d", - "blockNumber": "0x5a13fb", - "transactionHash": "0x2c305f1472d6e22cea89630d3be37d7c9a28a1e1aa0a4d0dfa849484f3b6049d", - "transactionIndex": "0xe", - "logIndex": "0x28", + "blockHash": "0x9bbb5add5e0531d6b7b3f83ad6d2a4c5b55b15ec740aa1ae0ce7d736aad87092", + "blockNumber": "0x5eb3ec", + "transactionHash": "0xce335b47a21088ee7561d0c3b07b5ac37663a4d2a4f5ad1c7f8a0916fe8636ec", + "transactionIndex": "0x9d", + "logIndex": "0xf1", "removed": false } ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000040000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000", "type": "0x2", - "transactionHash": "0x2c305f1472d6e22cea89630d3be37d7c9a28a1e1aa0a4d0dfa849484f3b6049d", - "transactionIndex": "0xe", - "blockHash": "0x8c5af5c8a65b081af2321c92014b4aeaf40f38bae863d976552aacf44e91416d", - "blockNumber": "0x5a13fb", - "gasUsed": "0x18697e", - "effectiveGasPrice": "0x3cec9d895", + "transactionHash": "0xce335b47a21088ee7561d0c3b07b5ac37663a4d2a4f5ad1c7f8a0916fe8636ec", + "transactionIndex": "0x9d", + "blockHash": "0x9bbb5add5e0531d6b7b3f83ad6d2a4c5b55b15ec740aa1ae0ce7d736aad87092", + "blockNumber": "0x5eb3ec", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0x5bb8c12d4", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": null, - "contractAddress": "0x92aac38efae144bc626e81549673c05fd7e44b2e" + "contractAddress": "0x9fd5211c3ed50fc01160088f2ab4f1e8045b148f" }, { "status": "0x1", - "cumulativeGasUsed": "0x327ab6", + "cumulativeGasUsed": "0x15ca0c8", "logs": [], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "transactionHash": "0xa38e6a8fb4fcf0b7c6666cc6c22cb52cd986956783b83d2e8f214b990019d466", - "transactionIndex": "0xf", - "blockHash": "0x8c5af5c8a65b081af2321c92014b4aeaf40f38bae863d976552aacf44e91416d", - "blockNumber": "0x5a13fb", - "gasUsed": "0x9145", - "effectiveGasPrice": "0x3cec9d895", + "transactionHash": "0xcc4079750eacd4356c292c9977b33c78674d878496f5adaaa5e6c810131baf6d", + "transactionIndex": "0x9e", + "blockHash": "0x9bbb5add5e0531d6b7b3f83ad6d2a4c5b55b15ec740aa1ae0ce7d736aad87092", + "blockNumber": "0x5eb3ec", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x5bb8c12d4", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "contractAddress": null @@ -91,7 +91,7 @@ "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715718618, + "timestamp": 1719596556, "chain": 11155111, - "commit": "dda03a1" + "commit": "c9330bc" } \ No newline at end of file diff --git a/broadcast/Quest.s.sol/137/run-latest.json b/broadcast/Quest.s.sol/137/run-latest.json index 0134fe7c..95582cda 100644 --- a/broadcast/Quest.s.sol/137/run-latest.json +++ b/broadcast/Quest.s.sol/137/run-latest.json @@ -1,40 +1,40 @@ { "transactions": [ { - "hash": "0x4f0717db4430950e9d9ea619f3d212c016e730bbffb9443589f034421df3e613", + "hash": "0x33bcfe0885a92f7073b09c59055b9274edd23ce5765a708095d1664671d6df6d", "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0x8E584bD8cDB9fE89bbCCa6dBAe1731E0D3AF6E96", + "contractName": "Quest", + "contractAddress": "0x45a2cf9745afdfb61098cbd789df60c61b71abfc", "function": null, "arguments": null, "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", + "gas": "0x2123cb", "value": "0x0", - "data": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea264697066735822122041c5a1594ae2985e35993df6b1363fc7851a06272fdfc3cfc897ddc18d3a119c64736f6c63430008130033", - "nonce": "0xde", - "accessList": [] + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0xe8", + "chainId": "0x89" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0xf993d0fc0c8800eb3f5b068984eb401c9f78dfc2fd3424847f66c8b4ea87dd71", + "hash": "0xb0d6f8db6daa37309e866fe76de36cc884cdc00c8d258194f0119fac7e471251", "transactionType": "CALL", - "contractName": "TransparentUpgradeableProxy", - "contractAddress": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "function": null, - "arguments": null, + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x45A2CF9745aFDfb61098cBD789Df60c61b71ABFC" + ], "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0xc8a6", + "gas": "0xc553", "value": "0x0", - "data": "0xf8565efd0000000000000000000000008e584bd8cdb9fe89bbcca6dbae1731e0d3af6e96", - "nonce": "0xdf", - "accessList": [] + "input": "0x7c93f9ee00000000000000000000000045a2cf9745afdfb61098cbd789df60c61b71abfc", + "nonce": "0xe9", + "chainId": "0x89" }, "additionalContracts": [], "isFixedGasLimit": false @@ -42,27 +42,20 @@ ], "receipts": [ { - "transactionHash": "0x4f0717db4430950e9d9ea619f3d212c016e730bbffb9443589f034421df3e613", - "transactionIndex": "0x77", - "blockHash": "0xc315323daf44070861bd3cd05ce2686ed28f822c8a236166be2b0e37aaa4ce2f", - "blockNumber": "0x3665eff", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0xac41cd", - "gasUsed": "0x18697e", - "contractAddress": "0x8E584bD8cDB9fE89bbCCa6dBAe1731E0D3AF6E96", + "status": "0x1", + "cumulativeGasUsed": "0x130be69", "logs": [ { - "address": "0x8E584bD8cDB9fE89bbCCa6dBAe1731E0D3AF6E96", + "address": "0x45a2cf9745afdfb61098cbd789df60c61b71abfc", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0xc315323daf44070861bd3cd05ce2686ed28f822c8a236166be2b0e37aaa4ce2f", - "blockNumber": "0x3665eff", - "transactionHash": "0x4f0717db4430950e9d9ea619f3d212c016e730bbffb9443589f034421df3e613", - "transactionIndex": "0x77", - "logIndex": "0x16c", + "blockHash": "0x440bf240454a83ba886ef98bfe52124d0908880a1f40fe74ba80c2f28cf2e5cc", + "blockNumber": "0x381cd73", + "transactionHash": "0x33bcfe0885a92f7073b09c59055b9274edd23ce5765a708095d1664671d6df6d", + "transactionIndex": "0x48", + "logIndex": "0x125", "removed": false }, { @@ -71,32 +64,32 @@ "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c", - "0x000000000000000000000000365b3d473d137995ebf776e46a8ad233006c0049" + "0x000000000000000000000000f0245f6251bef9447a08766b9da2b07b28ad80b0" ], - "data": "0x00000000000000000000000000000000000000000000000000b919133571d89a00000000000000000000000000000000000000000000001219abd3ebb5bd9c9a00000000000000000000000000000000000000000000000262121f925ee43a0d00000000000000000000000000000000000000000000001218f2bad8804bc40000000000000000000000000000000000000000000000000262cb38a5945612a7", - "blockHash": "0xc315323daf44070861bd3cd05ce2686ed28f822c8a236166be2b0e37aaa4ce2f", - "blockNumber": "0x3665eff", - "transactionHash": "0x4f0717db4430950e9d9ea619f3d212c016e730bbffb9443589f034421df3e613", - "transactionIndex": "0x77", - "logIndex": "0x16d", + "data": "0x00000000000000000000000000000000000000000000000000b21c8b30d824000000000000000000000000000000000000000000000000121598ef58a2dc42440000000000000000000000000000000000000000000006dc2566cf5dbc9af61c00000000000000000000000000000000000000000000001214e6d2cd72041e440000000000000000000000000000000000000000000006dc2618ebe8ed731a1c", + "blockHash": "0x440bf240454a83ba886ef98bfe52124d0908880a1f40fe74ba80c2f28cf2e5cc", + "blockNumber": "0x381cd73", + "transactionHash": "0x33bcfe0885a92f7073b09c59055b9274edd23ce5765a708095d1664671d6df6d", + "transactionIndex": "0x48", + "logIndex": "0x126", "removed": false } ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000400000000800010000000000000000100400000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000080000000000000000000200000000000000000000000000402000000000000000000000200000000004000000000000000000001000000040000000100000000000000100000000000000000000000000000000000000000000020000000000000000000000000100000", + "logsBloom": "0x00000800000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000008000000000000000000000000000000080000000000000000400000000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000080000000000000080000200200000000000000000000000400000000000000000000000200000000004000000000000000000001000000040000000100000000000000100000000000000000000000000000000000000000000000000000000000000000000004100000", "type": "0x2", - "effectiveGasPrice": "0xa5b296f6c" + "transactionHash": "0x33bcfe0885a92f7073b09c59055b9274edd23ce5765a708095d1664671d6df6d", + "transactionIndex": "0x48", + "blockHash": "0x440bf240454a83ba886ef98bfe52124d0908880a1f40fe74ba80c2f28cf2e5cc", + "blockNumber": "0x381cd73", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0x6fc23ac1d", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x45a2cf9745afdfb61098cbd789df60c61b71abfc" }, { - "transactionHash": "0xf993d0fc0c8800eb3f5b068984eb401c9f78dfc2fd3424847f66c8b4ea87dd71", - "transactionIndex": "0x78", - "blockHash": "0xc315323daf44070861bd3cd05ce2686ed28f822c8a236166be2b0e37aaa4ce2f", - "blockNumber": "0x3665eff", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "cumulativeGasUsed": "0xacd312", - "gasUsed": "0x9145", - "contractAddress": null, + "status": "0x1", + "cumulativeGasUsed": "0x133797c", "logs": [ { "address": "0x0000000000000000000000000000000000001010", @@ -104,27 +97,34 @@ "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c", - "0x000000000000000000000000365b3d473d137995ebf776e46a8ad233006c0049" + "0x000000000000000000000000f0245f6251bef9447a08766b9da2b07b28ad80b0" ], - "data": "0x00000000000000000000000000000000000000000000000000044d777ab89d7f00000000000000000000000000000000000000000000001218af038c6685797200000000000000000000000000000000000000000000000262cb38a5945612a700000000000000000000000000000000000000000000001218aab614ebccdbf300000000000000000000000000000000000000000000000262cf861d0f0eb026", - "blockHash": "0xc315323daf44070861bd3cd05ce2686ed28f822c8a236166be2b0e37aaa4ce2f", - "blockNumber": "0x3665eff", - "transactionHash": "0xf993d0fc0c8800eb3f5b068984eb401c9f78dfc2fd3424847f66c8b4ea87dd71", - "transactionIndex": "0x78", - "logIndex": "0x16e", + "data": "0x0000000000000000000000000000000000000000000000000003e5e374337c0000000000000000000000000000000000000000000000001214e6d2cd6f20a2750000000000000000000000000000000000000000000006dc262818ff9689621c00000000000000000000000000000000000000000000001214e2ece9faed26750000000000000000000000000000000000000000000006dc262bfee30abcde1c", + "blockHash": "0x440bf240454a83ba886ef98bfe52124d0908880a1f40fe74ba80c2f28cf2e5cc", + "blockNumber": "0x381cd73", + "transactionHash": "0xb0d6f8db6daa37309e866fe76de36cc884cdc00c8d258194f0119fac7e471251", + "transactionIndex": "0x4a", + "logIndex": "0x12a", "removed": false } ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000400000000800010000000000000000100400000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000200000000004000000000000000000001000000000000000100000000000000100000000000000000000000000000000000000000000020000000000000000000000000100000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000008000000000000000000000000000000080000000000000000400000000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000080000200000000000000000000000000000000000000000000000000200000000004000000000000000000001000000000000000100000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000", "type": "0x2", - "effectiveGasPrice": "0xa5b296f6c" + "transactionHash": "0xb0d6f8db6daa37309e866fe76de36cc884cdc00c8d258194f0119fac7e471251", + "transactionIndex": "0x4a", + "blockHash": "0x440bf240454a83ba886ef98bfe52124d0908880a1f40fe74ba80c2f28cf2e5cc", + "blockNumber": "0x381cd73", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x6fc23ac1d", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715879239, + "timestamp": 1719859340, "chain": 137, - "commit": "a35a3c3" + "commit": "ee7f8c4" } \ No newline at end of file diff --git a/broadcast/Quest.s.sol/42161/run-latest.json b/broadcast/Quest.s.sol/42161/run-latest.json index c84bd360..9c77dd0d 100644 --- a/broadcast/Quest.s.sol/42161/run-latest.json +++ b/broadcast/Quest.s.sol/42161/run-latest.json @@ -1,40 +1,40 @@ { "transactions": [ { - "hash": "0xd26e2cd48b0cc0b72a84199ef83a75ecb1c4a6534d06d59bcd51abbfd4faa666", + "hash": "0x03cfe1673f677b3d7f112d483da2a80527266bbdb970b2dd4edf68c485b860a2", "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0x1aA1e4c371bE21fbA51C5a2B61bCe87fF9679949", + "contractName": "Quest", + "contractAddress": "0x9327f2b0c88fdea67a94450a99f2fec29f72abd0", "function": null, "arguments": null, "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x28ff56", + "gas": "0x4f4730", "value": "0x0", - "data": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea264697066735822122041c5a1594ae2985e35993df6b1363fc7851a06272fdfc3cfc897ddc18d3a119c64736f6c63430008130033", - "nonce": "0xc9", - "accessList": [] + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0xd3", + "chainId": "0xa4b1" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0x1822891a2bdaf433e78791265a394f644f1a48f0091c9633556a2ed4ffd80ca2", + "hash": "0xcbfe3fb5281be9b0d6f20712c7e70cb23a2fd144bc1e3e3c6b5d8f3925370141", "transactionType": "CALL", - "contractName": "TransparentUpgradeableProxy", - "contractAddress": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "function": null, - "arguments": null, + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x9327F2b0c88FDEa67A94450A99F2feC29f72ABD0" + ], "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0x119d6", + "gas": "0x2734d", "value": "0x0", - "data": "0xf8565efd0000000000000000000000001aa1e4c371be21fba51c5a2b61bce87ff9679949", - "nonce": "0xca", - "accessList": [] + "input": "0x7c93f9ee0000000000000000000000009327f2b0c88fdea67a94450a99f2fec29f72abd0", + "nonce": "0xd4", + "chainId": "0xa4b1" }, "additionalContracts": [], "isFixedGasLimit": false @@ -42,56 +42,60 @@ ], "receipts": [ { - "transactionHash": "0xd26e2cd48b0cc0b72a84199ef83a75ecb1c4a6534d06d59bcd51abbfd4faa666", - "transactionIndex": "0x2", - "blockHash": "0xa7e077b7ccd06642a1d07abc7e9b335b5e360c49fb1a080b1c3ad6c671c990dc", - "blockNumber": "0xca1acee", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x210ef0", - "gasUsed": "0x1ecd61", - "contractAddress": "0x1aA1e4c371bE21fbA51C5a2B61bCe87fF9679949", + "status": "0x1", + "cumulativeGasUsed": "0x49616d", "logs": [ { - "address": "0x1aA1e4c371bE21fbA51C5a2B61bCe87fF9679949", + "address": "0x9327f2b0c88fdea67a94450a99f2fec29f72abd0", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0xa7e077b7ccd06642a1d07abc7e9b335b5e360c49fb1a080b1c3ad6c671c990dc", - "blockNumber": "0xca1acee", - "transactionHash": "0xd26e2cd48b0cc0b72a84199ef83a75ecb1c4a6534d06d59bcd51abbfd4faa666", - "transactionIndex": "0x2", - "logIndex": "0x4", + "blockHash": "0xab2bc2c60164748a652d0cb55cc208e87683f42edec72d4d30cb152dd61d59d9", + "blockNumber": "0xd92dc9a", + "transactionHash": "0x03cfe1673f677b3d7f112d483da2a80527266bbdb970b2dd4edf68c485b860a2", + "transactionIndex": "0x4", + "logIndex": "0xd", "removed": false } ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000040000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000002000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0x989680" + "transactionHash": "0x03cfe1673f677b3d7f112d483da2a80527266bbdb970b2dd4edf68c485b860a2", + "transactionIndex": "0x4", + "blockHash": "0xab2bc2c60164748a652d0cb55cc208e87683f42edec72d4d30cb152dd61d59d9", + "blockNumber": "0xd92dc9a", + "gasUsed": "0x391891", + "effectiveGasPrice": "0x989680", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x9327f2b0c88fdea67a94450a99f2fec29f72abd0", + "gasUsedForL1": "0x1f98b6", + "l1BlockNumber": "0x1346f4d" }, { - "transactionHash": "0x1822891a2bdaf433e78791265a394f644f1a48f0091c9633556a2ed4ffd80ca2", - "transactionIndex": "0x6", - "blockHash": "0x213089b420255f0268039d5133b404c1b71a645b2454efa05ac42b35ea9a7ee0", - "blockNumber": "0xca1ad0e", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "cumulativeGasUsed": "0x91b79", - "gasUsed": "0xc853", - "contractAddress": null, - "logs": [], "status": "0x1", + "cumulativeGasUsed": "0xff59e", + "logs": [], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0x989680" + "transactionHash": "0xcbfe3fb5281be9b0d6f20712c7e70cb23a2fd144bc1e3e3c6b5d8f3925370141", + "transactionIndex": "0x3", + "blockHash": "0x9b040316fae42b6598287bf27c7b31ff71b0be8ed2decfd1431869a7949b31cb", + "blockNumber": "0xd92dcba", + "gasUsed": "0x18bb0", + "effectiveGasPrice": "0x989680", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "gasUsedForL1": "0xfcd3", + "l1BlockNumber": "0x1346f4d" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715881251, + "timestamp": 1719859971, "chain": 42161, - "commit": "a35a3c3" + "commit": "ee7f8c4" } \ No newline at end of file diff --git a/broadcast/Quest.s.sol/666666666/run-1719425782.json b/broadcast/Quest.s.sol/666666666/run-1719425782.json new file mode 100644 index 00000000..a36b0574 --- /dev/null +++ b/broadcast/Quest.s.sol/666666666/run-1719425782.json @@ -0,0 +1,101 @@ +{ + "transactions": [ + { + "hash": "0xafd1e743b6986977fda56dee86a0e6e9696fabba9e76dc9f022955f84a3ee8d8", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x76829bd875a06ddbe41aaf5ddbf5087dd17ddbed", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x213467", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ced90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461177957816309a69f571461104757816316049ddf1461175557816317a7e45e1461173657816325692962146116eb5781633197cbb6146116cc5781633dd4d94f1461155d5781633ef17b171461153557816340bf898b146114b457816344a22c3614610c765781634719b0d4146114955781634e71d92d146111495781634f51407c1461111e57816354d1f13d146110d85781635c975abb146110b457816364df049e1461108957816367dfa3e71461106657816369940d79146106bf57816369d2dc05146110475781636cb4e61114611020578163715018a614610fd95781637282a4aa14610ef657816378e9792514610ed75781637969256414610db25781637b16e4291461098b578163842acd6814610ce257816385f036ce14610cab5781638a2229ce14610c765781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061192c565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661192c565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611942565b9361028489519586611804565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f546117a0565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b72565b61045b82611b72565b6065541660655561046b81611b72565b611b72565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611981565b049051908152f35b91506020823d8211610766575b8161075360209383611804565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61192c565b90610798611c33565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61192c565b610805611c33565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361192c565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611be3565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611be3565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a45565b609d5490611981565b61ffff60a0541690611981565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c675760a090815460ff8160101c16610c58579362010000849562ff000019161783556003610a90610a82611adf565b610a8a611a45565b90611981565b0490610a9c8247611994565b90638b78c6d81994610aaf848754611c50565b6001600160a01b03610ac78482845460181c16611c50565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c4e578a91610c19575b5090610b2e610b1c610b7d9360a4549060011c611994565b846099541685875460181c1690611c6e565b610b74836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6e60a45460a75490611994565b90611994565b90895490611c6e565b80609854169281835460181c16975497843b15610c15578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bd360a487016119a1565b9460248701526044860152166064840152608483015203925af1908115610c0c5750610bfc5750f35b610c05906117da565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c47575b610c338183611804565b810103126106ae5751899890610b2e610b04565b503d610c29565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610ca790610c94611826565b9051918291602083526020830190611907565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cd261192c565b16815260a5845220549051908152f35b918091506003193601126106b757610cf861192c565b90602435916001600160a01b0390818416948585036106ae57609a544211610da45782609854163303610d96575090610d3891609d549160995416611c6e565b82610d41578380f35b610d59610d8d926003610d52611adf565b0490611c50565b612710610d6b60a354609d5490611981565b0492610d798460a45461195e565b60a455845260a5602052832091825461195e565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dce61192c565b92609a544210610eca576001600160a01b038085169081855260a6602052600160ff8487205416151514610ebb5781855260a560205282852054938415610e945750610e41847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c6e565b81865260a6602052828620600160ff19825416179055610e638460a75461195e565b60a7556099541692825193849360808552610e80608086016119a1565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f1161192c565b600260015414610f96576002600155609b544210610f6e57610f31611be3565b6001600160a01b039182609854163303610f5f575090610f5891609d549160995416611c6e565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fed611c33565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611142609c54609d5490611981565b9051908152f35b836003198436820183811261135557836001600160a01b0391826098541691611170611826565b903689116106b35760608093126106b3576064361161148a575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111c86024820188611907565b0381895afa928315610c4e57908a9182946113ca575b508b61124c63ffffffff8b87015116928c875197015161123d8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611907565b91848303016064850152611907565b0381885afa9182156113c057899261136c575b5061129c6112896112a8948951988994338d870152168a85015260808785015260a0840190611907565b601f199384848303016080850152611907565b03908101855284611804565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113595790859291858552813b1561135557859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261133261131d60a4830183611907565b828103606319016084840152605f1993611907565b03019134905af1908115610c0c5750611349575080f35b611352906117da565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137e8183611804565b8101908881830312610c155780519067ffffffffffffffff82116113bc576113b36112a895949361129c936112899301611b2d565b9394505061125f565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113dd8183611804565b810189828203126113bc57815167ffffffffffffffff9283821161146957019086828203126114865789519287840184811082821117611471578b52825181811161146d578261142e918501611b2d565b84528b830151908111611469578291611449918c9401611b2d565b8b840152015163ffffffff811681036113bc57888201529189908c6111de565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61118a565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114fb575b6020836127106107318760a35490611981565b9092506020833d821161152d575b8161151660209383611804565b8101031261086957509051906127106107316114e8565b3d9150611509565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116c2578291611695575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561168b57839161165c575b506115d99161195e565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa91821561165157809261161f575b50506111429161195e565b9091508482813d831161164a575b6116378183611804565b8101031261086957505161114238611614565b503d61162d565b8451903d90823e3d90fd5b90508581813d8311611684575b6116738183611804565b810103126106b757516115d96115cf565b503d611669565b85513d85823e3d90fd5b90508481813d83116116bb575b6116ac8183611804565b81010312610226575138611594565b503d6116a2565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611981565b90600182811c921680156117d0575b60208310146117ba57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117af565b67ffffffffffffffff81116117ee57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117ee57604052565b60405190600082609f549161183a836117a0565b808352926001908181169081156118c25750600114611863575b5061186192500383611804565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118a75750611861935050810160200138611854565b81935090816020925483858a0101520191019091859261188e565b90506020925061186194915060ff191682840152151560051b82010138611854565b60005b8381106118f75750506000910152565b81810151838201526020016118e7565b90602091611920815180928185528580860191016118e4565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117ee57601f01601f191660200190565b9190820180921161196b57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196b57565b9190820391821161196b57565b609f54600092916119b1826117a0565b80825291600190818116908115611a2857506001146119cf57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a1057505060209250010190565b805460208585018101919091529093019281016119fe565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8f602482016119a1565b03915afa908115611ad357600091611aa5575090565b906020823d8211611acb575b81611abe60209383611804565b8101031261086957505190565b3d9150611ab1565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ad357600091611aa5575090565b81601f820112156106ae578051611b4381611942565b92611b516040519485611804565b818452602082840101116106ae57611b6f91602080850191016118e4565b90565b15611b7957565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611bef57565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c4257565b6382b429006000526004601cfd5b600080809338935af115611c6057565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611caa57603452565b6390b8ec1890526004601cfdfea2646970667358221220aeb823cb2083079c892b805c98c1b3b58fe3cfe73503224c4cd842bc6d1d65c664736f6c63430008130033", + "nonce": "0x11", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x88108660a1e0d86dabed5636f71580f3cb49c8af6d5590736be29560702ee55f", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x76829bD875a06DdBE41aaf5ddbF5087dD17dDBED" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee00000000000000000000000076829bd875a06ddbe41aaf5ddbf5087dd17ddbed", + "nonce": "0x12", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x198ac6", + "logs": [ + { + "address": "0x76829bd875a06ddbe41aaf5ddbf5087dd17ddbed", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x07472afa94a214823a37aa461f5875567f8a60c7702c118c4672ef98066d899f", + "blockNumber": "0x1635d6b", + "transactionHash": "0xafd1e743b6986977fda56dee86a0e6e9696fabba9e76dc9f022955f84a3ee8d8", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000080000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xafd1e743b6986977fda56dee86a0e6e9696fabba9e76dc9f022955f84a3ee8d8", + "transactionIndex": "0x1", + "blockHash": "0x07472afa94a214823a37aa461f5875567f8a60c7702c118c4672ef98066d899f", + "blockNumber": "0x1635d6b", + "gasUsed": "0x198ac6", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x76829bd875a06ddbe41aaf5ddbf5087dd17ddbed", + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xf8ff02" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x1a19a3", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x88108660a1e0d86dabed5636f71580f3cb49c8af6d5590736be29560702ee55f", + "transactionIndex": "0x2", + "blockHash": "0x07472afa94a214823a37aa461f5875567f8a60c7702c118c4672ef98066d899f", + "blockNumber": "0x1635d6b", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xf8ff02" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719425782, + "chain": 666666666, + "commit": "6cb07c2" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/666666666/run-1719444123.json b/broadcast/Quest.s.sol/666666666/run-1719444123.json new file mode 100644 index 00000000..0a6eb113 --- /dev/null +++ b/broadcast/Quest.s.sol/666666666/run-1719444123.json @@ -0,0 +1,101 @@ +{ + "transactions": [ + { + "hash": "0xd9c74282ef9bda1e73b02e1f4b5a36445a0834e02079ec5c8ba8a3903b14433a", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0xd574fae75dedbbb6697077bb39186b12ba384895", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x21296f", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ce390816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176f57816309a69f571461103d57816316049ddf1461174b57816317a7e45e1461172c57816325692962146116e15781633197cbb6146116c25781633dd4d94f146115535781633ef17b171461152b57816340bf898b146114aa57816344a22c3614610c6c5781634719b0d41461148b5781634e71d92d1461113f5781634f51407c1461111457816354d1f13d146110ce5781635c975abb146110aa57816364df049e1461107f57816367dfa3e71461105c57816369940d79146106bf57816369d2dc051461103d5781636cb4e61114611016578163715018a614610fcf5781637282a4aa14610eec57816378e9792514610ecd5781637969256414610da85781637b16e4291461098b578163842acd6814610cd857816385f036ce14610ca15781638a2229ce14610c6c5781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf403610011573461022657602036600319011261022657602091610210611922565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b757610246611922565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611938565b93610284895195866117fa565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611796565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b68565b61045b82611b68565b6065541660655561046b81611b68565b611b68565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611977565b049051908152f35b91506020823d8211610766575b81610753602093836117fa565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f611922565b90610798611c29565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd611922565b610805611c29565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b03610893611922565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd9565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd9565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a3b565b609d5490611977565b61ffff60a0541690611977565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c5d5760a090815460ff8160101c16610c4e579362010000849562ff000019161783556003610a90610a82611ad5565b610a8a611a3b565b90611977565b0490610a9c824761198a565b90638b78c6d81994610aaf848754611c46565b6001600160a01b03610ac78482845460181c16611c46565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c44578a91610c0f575b5090610b24610b739284609954169060011c9085875460181c1690611c64565b610b6a836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6460a45460a7549061198a565b9061198a565b90895490611c64565b80609854169281835460181c16975497843b15610c0b578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc960a48701611997565b9460248701526044860152166064840152608483015203925af1908115610c025750610bf25750f35b610bfb906117d0565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c3d575b610c2981836117fa565b810103126106ae5751899890610b24610b04565b503d610c1f565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9d90610c8a61181c565b90519182916020835260208301906118fd565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc8611922565b16815260a5845220549051908152f35b918091506003193601126106b757610cee611922565b90602435916001600160a01b0390818416948585036106ae57609a544211610d9a5782609854163303610d8c575090610d2e91609d549160995416611c64565b82610d37578380f35b610d4f610d83926003610d48611ad5565b0490611c46565b612710610d6160a354609d5490611977565b0492610d6f8460a454611954565b60a455845260a56020528320918254611954565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dc4611922565b92609a544210610ec0576001600160a01b038085169081855260a6602052600160ff8487205416151514610eb15781855260a560205282852054938415610e8a5750610e37847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c64565b81865260a6602052828620600160ff19825416179055610e598460a754611954565b60a7556099541692825193849360808552610e7660808601611997565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f07611922565b600260015414610f8c576002600155609b544210610f6457610f27611bd9565b6001600160a01b039182609854163303610f55575090610f4e91609d549160995416611c64565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fe3611c29565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611138609c54609d5490611977565b9051908152f35b836003198436820183811261134b57836001600160a01b039182609854169161116661181c565b903689116106b35760608093126106b35760643611611480575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111be60248201886118fd565b0381895afa928315610c4457908a9182946113c0575b508b61124263ffffffff8b87015116928c87519701516112338d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118fd565b918483030160648501526118fd565b0381885afa9182156113b6578992611362575b5061129261127f61129e948951988994338d870152168a85015260808785015260a08401906118fd565b601f1993848483030160808501526118fd565b039081018552846117fa565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134f5790859291858552813b1561134b57859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132861131360a48301836118fd565b828103606319016084840152605f19936118fd565b03019134905af1908115610c02575061133f575080f35b611348906117d0565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137481836117fa565b8101908881830312610c0b5780519067ffffffffffffffff82116113b2576113a961129e9594936112929361127f9301611b23565b93945050611255565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113d381836117fa565b810189828203126113b257815167ffffffffffffffff9283821161145f570190868282031261147c5789519287840184811082821117611467578b5282518181116114635782611424918501611b23565b84528b83015190811161145f57829161143f918c9401611b23565b8b840152015163ffffffff811681036113b257888201529189908c6111d4565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c611180565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114f1575b6020836127106107318760a35490611977565b9092506020833d8211611523575b8161150c602093836117fa565b8101031261086957509051906127106107316114de565b3d91506114ff565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b857829161168b575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa908115611681578391611652575b506115cf91611954565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611647578092611615575b505061113891611954565b9091508482813d8311611640575b61162d81836117fa565b810103126108695750516111383861160a565b503d611623565b8451903d90823e3d90fd5b90508581813d831161167a575b61166981836117fa565b810103126106b757516115cf6115c5565b503d61165f565b85513d85823e3d90fd5b90508481813d83116116b1575b6116a281836117fa565b8101031261022657513861158a565b503d611698565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611977565b90600182811c921680156117c6575b60208310146117b057565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a5565b67ffffffffffffffff81116117e457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117e457604052565b60405190600082609f549161183083611796565b808352926001908181169081156118b85750600114611859575b50611857925003836117fa565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061189d575061185793505081016020013861184a565b81935090816020925483858a01015201910190918592611884565b90506020925061185794915060ff191682840152151560051b8201013861184a565b60005b8381106118ed5750506000910152565b81810151838201526020016118dd565b90602091611916815180928185528580860191016118da565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117e457601f01601f191660200190565b9190820180921161196157565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196157565b9190820391821161196157565b609f54600092916119a782611796565b80825291600190818116908115611a1e57506001146119c557505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0657505060209250010190565b805460208585018101919091529093019281016119f4565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8560248201611997565b03915afa908115611ac957600091611a9b575090565b906020823d8211611ac1575b81611ab4602093836117fa565b8101031261086957505190565b3d9150611aa7565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac957600091611a9b575090565b81601f820112156106ae578051611b3981611938565b92611b4760405194856117fa565b818452602082840101116106ae57611b6591602080850191016118da565b90565b15611b6f57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be557565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3857565b6382b429006000526004601cfd5b600080809338935af115611c5657565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611ca057603452565b6390b8ec1890526004601cfdfea2646970667358221220149d2d670275d49a11bac0173e3530dbc20af47da68fc6c86775d669c3ecbb0a64736f6c63430008130033", + "nonce": "0x14", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x4c51550a6cbc2f2f828012cbe0a7220dd50ff13a53679df391a8b93ca1e7f8f6", + "transactionType": "CALL", + "contractName": "QuestFactory", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0xD574fAE75dEDbbB6697077BB39186B12BA384895" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee000000000000000000000000d574fae75dedbbb6697077bb39186b12ba384895", + "nonce": "0x15", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x198256", + "logs": [ + { + "address": "0xd574fae75dedbbb6697077bb39186b12ba384895", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xcd17de540b8e1f4e2fafe8535eacb0ad243928b455f3915dc7aa04b7555c90af", + "blockNumber": "0x1636a7e", + "transactionHash": "0xd9c74282ef9bda1e73b02e1f4b5a36445a0834e02079ec5c8ba8a3903b14433a", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000408000000000000000000000000000000000000000000000000000000000000040000000400000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xd9c74282ef9bda1e73b02e1f4b5a36445a0834e02079ec5c8ba8a3903b14433a", + "transactionIndex": "0x1", + "blockHash": "0xcd17de540b8e1f4e2fafe8535eacb0ad243928b455f3915dc7aa04b7555c90af", + "blockNumber": "0x1636a7e", + "gasUsed": "0x198256", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xd574fae75dedbbb6697077bb39186b12ba384895", + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xf922da" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x8edd", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x4c51550a6cbc2f2f828012cbe0a7220dd50ff13a53679df391a8b93ca1e7f8f6", + "transactionIndex": "0x1", + "blockHash": "0xa37ab2219a192421a5c8543f0e16a71f6e4090fab632cc2a19ae923e71bd044a", + "blockNumber": "0x1636a7f", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xf922da" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719444123, + "chain": 666666666, + "commit": "f6ec43b" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/666666666/run-1719859026.json b/broadcast/Quest.s.sol/666666666/run-1719859026.json new file mode 100644 index 00000000..9be03569 --- /dev/null +++ b/broadcast/Quest.s.sol/666666666/run-1719859026.json @@ -0,0 +1,101 @@ +{ + "transactions": [ + { + "hash": "0x43d3862899c266d07900079a2fd667b7f5d4d3c4460ce34019bcfa685b580df9", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x090e4125781f6fe88a08908975546d01ec9b03e7", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x2123cb", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x16", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x570bae697e127503c2737c5430089177a0a7c82308ef5c69e95dbf76253291ca", + "transactionType": "CALL", + "contractName": "QuestFactory", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x090e4125781f6FE88a08908975546d01ec9b03E7" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee000000000000000000000000090e4125781f6fe88a08908975546d01ec9b03e7", + "nonce": "0x17", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x197dff", + "logs": [ + { + "address": "0x090e4125781f6fe88a08908975546d01ec9b03e7", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x99848c1c66ad3985ede90dad4271f44e38f2514bb0507d98c4bd402fcef47c1d", + "blockNumber": "0x1649c5d", + "transactionHash": "0x43d3862899c266d07900079a2fd667b7f5d4d3c4460ce34019bcfa685b580df9", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100", + "type": "0x2", + "transactionHash": "0x43d3862899c266d07900079a2fd667b7f5d4d3c4460ce34019bcfa685b580df9", + "transactionIndex": "0x1", + "blockHash": "0x99848c1c66ad3985ede90dad4271f44e38f2514bb0507d98c4bd402fcef47c1d", + "blockNumber": "0x1649c5d", + "gasUsed": "0x197dff", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x090e4125781f6fe88a08908975546d01ec9b03e7", + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xfc4d30" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x8edd", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x570bae697e127503c2737c5430089177a0a7c82308ef5c69e95dbf76253291ca", + "transactionIndex": "0x1", + "blockHash": "0x01618f842600d6ac71b4a735e96ac5fa7f2113e77dac932a8bc58926f24caad7", + "blockNumber": "0x1649c5e", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xfc4d30" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719859026, + "chain": 666666666, + "commit": "ee7f8c4" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/666666666/run-latest.json b/broadcast/Quest.s.sol/666666666/run-latest.json index 94fe6aa6..9be03569 100644 --- a/broadcast/Quest.s.sol/666666666/run-latest.json +++ b/broadcast/Quest.s.sol/666666666/run-latest.json @@ -1,42 +1,40 @@ { "transactions": [ { - "hash": "0xf8883bb7634af072ed39426270c3c7c0929e54e93af26cabe1118be2c1b2c140", + "hash": "0x43d3862899c266d07900079a2fd667b7f5d4d3c4460ce34019bcfa685b580df9", "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0x563B244a67aec9Eb2cEf5509AE633a22448cd02f", + "contractName": "Quest", + "contractAddress": "0x090e4125781f6fe88a08908975546d01ec9b03e7", "function": null, "arguments": null, "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", + "gas": "0x2123cb", "value": "0x0", - "data": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea264697066735822122041c5a1594ae2985e35993df6b1363fc7851a06272fdfc3cfc897ddc18d3a119c64736f6c63430008130033", - "nonce": "0xc", - "accessList": [] + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x16", + "chainId": "0x27bc86aa" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0x9acf308d652f8785c021cb570486f1864805d2913ecb47e426e46d2f7794ee1d", + "hash": "0x570bae697e127503c2737c5430089177a0a7c82308ef5c69e95dbf76253291ca", "transactionType": "CALL", - "contractName": null, - "contractAddress": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "function": "setErc1155QuestAddress(address)", + "contractName": "QuestFactory", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", "arguments": [ - "0x563B244a67aec9Eb2cEf5509AE633a22448cd02f" + "0x090e4125781f6FE88a08908975546d01ec9b03E7" ], "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0xc8a6", + "gas": "0xc553", "value": "0x0", - "data": "0xf8565efd000000000000000000000000563b244a67aec9eb2cef5509ae633a22448cd02f", - "nonce": "0xd", - "accessList": [] + "input": "0x7c93f9ee000000000000000000000000090e4125781f6fe88a08908975546d01ec9b03e7", + "nonce": "0x17", + "chainId": "0x27bc86aa" }, "additionalContracts": [], "isFixedGasLimit": false @@ -44,56 +42,60 @@ ], "receipts": [ { - "transactionHash": "0xf8883bb7634af072ed39426270c3c7c0929e54e93af26cabe1118be2c1b2c140", - "transactionIndex": "0x2", - "blockHash": "0xfe17b66417c9c140f2c885b8b9234827bde35977f67ab7aa328278e2ca1e4f2e", - "blockNumber": "0xee0447", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x2041d4", - "gasUsed": "0x1871b2", - "contractAddress": "0x563B244a67aec9Eb2cEf5509AE633a22448cd02f", + "status": "0x1", + "cumulativeGasUsed": "0x197dff", "logs": [ { - "address": "0x563B244a67aec9Eb2cEf5509AE633a22448cd02f", + "address": "0x090e4125781f6fe88a08908975546d01ec9b03e7", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0xfe17b66417c9c140f2c885b8b9234827bde35977f67ab7aa328278e2ca1e4f2e", - "blockNumber": "0xee0447", - "transactionHash": "0xf8883bb7634af072ed39426270c3c7c0929e54e93af26cabe1118be2c1b2c140", - "transactionIndex": "0x2", + "blockHash": "0x99848c1c66ad3985ede90dad4271f44e38f2514bb0507d98c4bd402fcef47c1d", + "blockNumber": "0x1649c5d", + "transactionHash": "0x43d3862899c266d07900079a2fd667b7f5d4d3c4460ce34019bcfa685b580df9", + "transactionIndex": "0x1", "logIndex": "0x0", "removed": false } ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000080000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000800000004000000000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100", "type": "0x2", - "effectiveGasPrice": "0x989680" + "transactionHash": "0x43d3862899c266d07900079a2fd667b7f5d4d3c4460ce34019bcfa685b580df9", + "transactionIndex": "0x1", + "blockHash": "0x99848c1c66ad3985ede90dad4271f44e38f2514bb0507d98c4bd402fcef47c1d", + "blockNumber": "0x1649c5d", + "gasUsed": "0x197dff", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x090e4125781f6fe88a08908975546d01ec9b03e7", + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xfc4d30" }, { - "transactionHash": "0x9acf308d652f8785c021cb570486f1864805d2913ecb47e426e46d2f7794ee1d", - "transactionIndex": "0x3", - "blockHash": "0xfe17b66417c9c140f2c885b8b9234827bde35977f67ab7aa328278e2ca1e4f2e", - "blockNumber": "0xee0447", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "cumulativeGasUsed": "0x20d36b", - "gasUsed": "0x9197", - "contractAddress": null, - "logs": [], "status": "0x1", + "cumulativeGasUsed": "0x8edd", + "logs": [], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0x989680" + "transactionHash": "0x570bae697e127503c2737c5430089177a0a7c82308ef5c69e95dbf76253291ca", + "transactionIndex": "0x1", + "blockHash": "0x01618f842600d6ac71b4a735e96ac5fa7f2113e77dac932a8bc58926f24caad7", + "blockNumber": "0x1649c5e", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xfc4d30" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715883493, + "timestamp": 1719859026, "chain": 666666666, - "commit": "a35a3c3" + "commit": "ee7f8c4" } \ No newline at end of file diff --git a/broadcast/Quest.s.sol/7560/run-1719427778.json b/broadcast/Quest.s.sol/7560/run-1719427778.json new file mode 100644 index 00000000..fd13a817 --- /dev/null +++ b/broadcast/Quest.s.sol/7560/run-1719427778.json @@ -0,0 +1,103 @@ +{ + "transactions": [ + { + "hash": "0x624fbce9f5de3153c1f812f3f4c082d1b7047fa0a9499ada545dad5857279e3f", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x4d6c349be46f7904e1e1ae89dbedae35e54945af", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x213467", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ced90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461177957816309a69f571461104757816316049ddf1461175557816317a7e45e1461173657816325692962146116eb5781633197cbb6146116cc5781633dd4d94f1461155d5781633ef17b171461153557816340bf898b146114b457816344a22c3614610c765781634719b0d4146114955781634e71d92d146111495781634f51407c1461111e57816354d1f13d146110d85781635c975abb146110b457816364df049e1461108957816367dfa3e71461106657816369940d79146106bf57816369d2dc05146110475781636cb4e61114611020578163715018a614610fd95781637282a4aa14610ef657816378e9792514610ed75781637969256414610db25781637b16e4291461098b578163842acd6814610ce257816385f036ce14610cab5781638a2229ce14610c765781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061192c565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661192c565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611942565b9361028489519586611804565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f546117a0565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b72565b61045b82611b72565b6065541660655561046b81611b72565b611b72565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611981565b049051908152f35b91506020823d8211610766575b8161075360209383611804565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61192c565b90610798611c33565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61192c565b610805611c33565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361192c565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611be3565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611be3565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a45565b609d5490611981565b61ffff60a0541690611981565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c675760a090815460ff8160101c16610c58579362010000849562ff000019161783556003610a90610a82611adf565b610a8a611a45565b90611981565b0490610a9c8247611994565b90638b78c6d81994610aaf848754611c50565b6001600160a01b03610ac78482845460181c16611c50565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c4e578a91610c19575b5090610b2e610b1c610b7d9360a4549060011c611994565b846099541685875460181c1690611c6e565b610b74836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6e60a45460a75490611994565b90611994565b90895490611c6e565b80609854169281835460181c16975497843b15610c15578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bd360a487016119a1565b9460248701526044860152166064840152608483015203925af1908115610c0c5750610bfc5750f35b610c05906117da565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c47575b610c338183611804565b810103126106ae5751899890610b2e610b04565b503d610c29565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610ca790610c94611826565b9051918291602083526020830190611907565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cd261192c565b16815260a5845220549051908152f35b918091506003193601126106b757610cf861192c565b90602435916001600160a01b0390818416948585036106ae57609a544211610da45782609854163303610d96575090610d3891609d549160995416611c6e565b82610d41578380f35b610d59610d8d926003610d52611adf565b0490611c50565b612710610d6b60a354609d5490611981565b0492610d798460a45461195e565b60a455845260a5602052832091825461195e565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dce61192c565b92609a544210610eca576001600160a01b038085169081855260a6602052600160ff8487205416151514610ebb5781855260a560205282852054938415610e945750610e41847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c6e565b81865260a6602052828620600160ff19825416179055610e638460a75461195e565b60a7556099541692825193849360808552610e80608086016119a1565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f1161192c565b600260015414610f96576002600155609b544210610f6e57610f31611be3565b6001600160a01b039182609854163303610f5f575090610f5891609d549160995416611c6e565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fed611c33565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611142609c54609d5490611981565b9051908152f35b836003198436820183811261135557836001600160a01b0391826098541691611170611826565b903689116106b35760608093126106b3576064361161148a575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111c86024820188611907565b0381895afa928315610c4e57908a9182946113ca575b508b61124c63ffffffff8b87015116928c875197015161123d8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611907565b91848303016064850152611907565b0381885afa9182156113c057899261136c575b5061129c6112896112a8948951988994338d870152168a85015260808785015260a0840190611907565b601f199384848303016080850152611907565b03908101855284611804565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113595790859291858552813b1561135557859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261133261131d60a4830183611907565b828103606319016084840152605f1993611907565b03019134905af1908115610c0c5750611349575080f35b611352906117da565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137e8183611804565b8101908881830312610c155780519067ffffffffffffffff82116113bc576113b36112a895949361129c936112899301611b2d565b9394505061125f565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113dd8183611804565b810189828203126113bc57815167ffffffffffffffff9283821161146957019086828203126114865789519287840184811082821117611471578b52825181811161146d578261142e918501611b2d565b84528b830151908111611469578291611449918c9401611b2d565b8b840152015163ffffffff811681036113bc57888201529189908c6111de565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61118a565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114fb575b6020836127106107318760a35490611981565b9092506020833d821161152d575b8161151660209383611804565b8101031261086957509051906127106107316114e8565b3d9150611509565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116c2578291611695575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561168b57839161165c575b506115d99161195e565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa91821561165157809261161f575b50506111429161195e565b9091508482813d831161164a575b6116378183611804565b8101031261086957505161114238611614565b503d61162d565b8451903d90823e3d90fd5b90508581813d8311611684575b6116738183611804565b810103126106b757516115d96115cf565b503d611669565b85513d85823e3d90fd5b90508481813d83116116bb575b6116ac8183611804565b81010312610226575138611594565b503d6116a2565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611981565b90600182811c921680156117d0575b60208310146117ba57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117af565b67ffffffffffffffff81116117ee57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117ee57604052565b60405190600082609f549161183a836117a0565b808352926001908181169081156118c25750600114611863575b5061186192500383611804565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118a75750611861935050810160200138611854565b81935090816020925483858a0101520191019091859261188e565b90506020925061186194915060ff191682840152151560051b82010138611854565b60005b8381106118f75750506000910152565b81810151838201526020016118e7565b90602091611920815180928185528580860191016118e4565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117ee57601f01601f191660200190565b9190820180921161196b57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196b57565b9190820391821161196b57565b609f54600092916119b1826117a0565b80825291600190818116908115611a2857506001146119cf57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a1057505060209250010190565b805460208585018101919091529093019281016119fe565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8f602482016119a1565b03915afa908115611ad357600091611aa5575090565b906020823d8211611acb575b81611abe60209383611804565b8101031261086957505190565b3d9150611ab1565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ad357600091611aa5575090565b81601f820112156106ae578051611b4381611942565b92611b516040519485611804565b818452602082840101116106ae57611b6f91602080850191016118e4565b90565b15611b7957565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611bef57565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c4257565b6382b429006000526004601cfd5b600080809338935af115611c6057565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611caa57603452565b6390b8ec1890526004601cfdfea2646970667358221220aeb823cb2083079c892b805c98c1b3b58fe3cfe73503224c4cd842bc6d1d65c664736f6c63430008130033", + "nonce": "0xb", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x40406148a7341516ef01d32b8261336a2084b1a1a3cb217ebf10381c976490f0", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x4d6C349BE46F7904E1E1aE89DBedAe35E54945AF" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee0000000000000000000000004d6c349be46f7904e1e1ae89dbedae35e54945af", + "nonce": "0xc", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x1a37ed", + "logs": [ + { + "address": "0x4d6c349be46f7904e1e1ae89dbedae35e54945af", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xce795600110fe9583584b7a4617d132bf02123705e871dacccbb0a9584fa9be3", + "blockNumber": "0x2dc534", + "transactionHash": "0x624fbce9f5de3153c1f812f3f4c082d1b7047fa0a9499ada545dad5857279e3f", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080100000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x624fbce9f5de3153c1f812f3f4c082d1b7047fa0a9499ada545dad5857279e3f", + "transactionIndex": "0x1", + "blockHash": "0xce795600110fe9583584b7a4617d132bf02123705e871dacccbb0a9584fa9be3", + "blockNumber": "0x2dc534", + "gasUsed": "0x198ca2", + "effectiveGasPrice": "0xf433c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x4d6c349be46f7904e1e1ae89dbedae35e54945af", + "l1Fee": "0x38ab39a3f1d0", + "l1GasPrice": "0x18e0edb83", + "l1GasUsed": "0x1c790" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x1ac6ca", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x40406148a7341516ef01d32b8261336a2084b1a1a3cb217ebf10381c976490f0", + "transactionIndex": "0x2", + "blockHash": "0xce795600110fe9583584b7a4617d132bf02123705e871dacccbb0a9584fa9be3", + "blockNumber": "0x2dc534", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0xf433c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1Fee": "0x10eadf16d8f", + "l1GasPrice": "0x18e0edb83", + "l1GasUsed": "0x880" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719427778, + "chain": 7560, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/7560/run-1719444041.json b/broadcast/Quest.s.sol/7560/run-1719444041.json new file mode 100644 index 00000000..53f5a4c6 --- /dev/null +++ b/broadcast/Quest.s.sol/7560/run-1719444041.json @@ -0,0 +1,103 @@ +{ + "transactions": [ + { + "hash": "0xf40531f49285aa88795d2f6773f60f386e58c1a63710b932c8c253ed22a3a508", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x15ef39a70bf0b24383042ab7ed323652659f2ad7", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x21296f", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ce390816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176f57816309a69f571461103d57816316049ddf1461174b57816317a7e45e1461172c57816325692962146116e15781633197cbb6146116c25781633dd4d94f146115535781633ef17b171461152b57816340bf898b146114aa57816344a22c3614610c6c5781634719b0d41461148b5781634e71d92d1461113f5781634f51407c1461111457816354d1f13d146110ce5781635c975abb146110aa57816364df049e1461107f57816367dfa3e71461105c57816369940d79146106bf57816369d2dc051461103d5781636cb4e61114611016578163715018a614610fcf5781637282a4aa14610eec57816378e9792514610ecd5781637969256414610da85781637b16e4291461098b578163842acd6814610cd857816385f036ce14610ca15781638a2229ce14610c6c5781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf403610011573461022657602036600319011261022657602091610210611922565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b757610246611922565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611938565b93610284895195866117fa565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611796565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b68565b61045b82611b68565b6065541660655561046b81611b68565b611b68565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611977565b049051908152f35b91506020823d8211610766575b81610753602093836117fa565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f611922565b90610798611c29565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd611922565b610805611c29565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b03610893611922565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd9565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd9565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a3b565b609d5490611977565b61ffff60a0541690611977565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c5d5760a090815460ff8160101c16610c4e579362010000849562ff000019161783556003610a90610a82611ad5565b610a8a611a3b565b90611977565b0490610a9c824761198a565b90638b78c6d81994610aaf848754611c46565b6001600160a01b03610ac78482845460181c16611c46565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c44578a91610c0f575b5090610b24610b739284609954169060011c9085875460181c1690611c64565b610b6a836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6460a45460a7549061198a565b9061198a565b90895490611c64565b80609854169281835460181c16975497843b15610c0b578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc960a48701611997565b9460248701526044860152166064840152608483015203925af1908115610c025750610bf25750f35b610bfb906117d0565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c3d575b610c2981836117fa565b810103126106ae5751899890610b24610b04565b503d610c1f565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9d90610c8a61181c565b90519182916020835260208301906118fd565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc8611922565b16815260a5845220549051908152f35b918091506003193601126106b757610cee611922565b90602435916001600160a01b0390818416948585036106ae57609a544211610d9a5782609854163303610d8c575090610d2e91609d549160995416611c64565b82610d37578380f35b610d4f610d83926003610d48611ad5565b0490611c46565b612710610d6160a354609d5490611977565b0492610d6f8460a454611954565b60a455845260a56020528320918254611954565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dc4611922565b92609a544210610ec0576001600160a01b038085169081855260a6602052600160ff8487205416151514610eb15781855260a560205282852054938415610e8a5750610e37847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c64565b81865260a6602052828620600160ff19825416179055610e598460a754611954565b60a7556099541692825193849360808552610e7660808601611997565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f07611922565b600260015414610f8c576002600155609b544210610f6457610f27611bd9565b6001600160a01b039182609854163303610f55575090610f4e91609d549160995416611c64565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fe3611c29565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611138609c54609d5490611977565b9051908152f35b836003198436820183811261134b57836001600160a01b039182609854169161116661181c565b903689116106b35760608093126106b35760643611611480575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111be60248201886118fd565b0381895afa928315610c4457908a9182946113c0575b508b61124263ffffffff8b87015116928c87519701516112338d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118fd565b918483030160648501526118fd565b0381885afa9182156113b6578992611362575b5061129261127f61129e948951988994338d870152168a85015260808785015260a08401906118fd565b601f1993848483030160808501526118fd565b039081018552846117fa565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134f5790859291858552813b1561134b57859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132861131360a48301836118fd565b828103606319016084840152605f19936118fd565b03019134905af1908115610c02575061133f575080f35b611348906117d0565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137481836117fa565b8101908881830312610c0b5780519067ffffffffffffffff82116113b2576113a961129e9594936112929361127f9301611b23565b93945050611255565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113d381836117fa565b810189828203126113b257815167ffffffffffffffff9283821161145f570190868282031261147c5789519287840184811082821117611467578b5282518181116114635782611424918501611b23565b84528b83015190811161145f57829161143f918c9401611b23565b8b840152015163ffffffff811681036113b257888201529189908c6111d4565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c611180565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114f1575b6020836127106107318760a35490611977565b9092506020833d8211611523575b8161150c602093836117fa565b8101031261086957509051906127106107316114de565b3d91506114ff565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b857829161168b575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa908115611681578391611652575b506115cf91611954565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611647578092611615575b505061113891611954565b9091508482813d8311611640575b61162d81836117fa565b810103126108695750516111383861160a565b503d611623565b8451903d90823e3d90fd5b90508581813d831161167a575b61166981836117fa565b810103126106b757516115cf6115c5565b503d61165f565b85513d85823e3d90fd5b90508481813d83116116b1575b6116a281836117fa565b8101031261022657513861158a565b503d611698565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611977565b90600182811c921680156117c6575b60208310146117b057565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a5565b67ffffffffffffffff81116117e457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117e457604052565b60405190600082609f549161183083611796565b808352926001908181169081156118b85750600114611859575b50611857925003836117fa565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061189d575061185793505081016020013861184a565b81935090816020925483858a01015201910190918592611884565b90506020925061185794915060ff191682840152151560051b8201013861184a565b60005b8381106118ed5750506000910152565b81810151838201526020016118dd565b90602091611916815180928185528580860191016118da565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117e457601f01601f191660200190565b9190820180921161196157565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196157565b9190820391821161196157565b609f54600092916119a782611796565b80825291600190818116908115611a1e57506001146119c557505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0657505060209250010190565b805460208585018101919091529093019281016119f4565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8560248201611997565b03915afa908115611ac957600091611a9b575090565b906020823d8211611ac1575b81611ab4602093836117fa565b8101031261086957505190565b3d9150611aa7565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac957600091611a9b575090565b81601f820112156106ae578051611b3981611938565b92611b4760405194856117fa565b818452602082840101116106ae57611b6591602080850191016118da565b90565b15611b6f57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be557565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3857565b6382b429006000526004601cfd5b600080809338935af115611c5657565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611ca057603452565b6390b8ec1890526004601cfdfea2646970667358221220149d2d670275d49a11bac0173e3530dbc20af47da68fc6c86775d669c3ecbb0a64736f6c63430008130033", + "nonce": "0xe", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x03b466c9b6ab91c221b77527f24a9435157b0cb9bbb0ebb05872c0aa397c5ec8", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x15ef39a70bF0b24383042aB7ED323652659F2aD7" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee00000000000000000000000015ef39a70bf0b24383042ab7ed323652659f2ad7", + "nonce": "0xf", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x1aa5f4", + "logs": [ + { + "address": "0x15ef39a70bf0b24383042ab7ed323652659f2ad7", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x592212bd0dcc1671dd87d7f7ac22b79dffc26fea8f092789c8e5171248133d8b", + "blockNumber": "0x2de4f7", + "transactionHash": "0xf40531f49285aa88795d2f6773f60f386e58c1a63710b932c8c253ed22a3a508", + "transactionIndex": "0x2", + "logIndex": "0x1", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000080000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xf40531f49285aa88795d2f6773f60f386e58c1a63710b932c8c253ed22a3a508", + "transactionIndex": "0x2", + "blockHash": "0x592212bd0dcc1671dd87d7f7ac22b79dffc26fea8f092789c8e5171248133d8b", + "blockNumber": "0x2de4f7", + "gasUsed": "0x198432", + "effectiveGasPrice": "0xfd", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x15ef39a70bf0b24383042ab7ed323652659f2ad7", + "l1Fee": "0x185e97e7bd40", + "l1GasPrice": "0xab81fa0e", + "l1GasUsed": "0x1c6b0" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x1b34d1", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x03b466c9b6ab91c221b77527f24a9435157b0cb9bbb0ebb05872c0aa397c5ec8", + "transactionIndex": "0x3", + "blockHash": "0x592212bd0dcc1671dd87d7f7ac22b79dffc26fea8f092789c8e5171248133d8b", + "blockNumber": "0x2de4f7", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0xfd", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1Fee": "0x7131f1d60a", + "l1GasPrice": "0xab81fa0e", + "l1GasUsed": "0x840" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719444041, + "chain": 7560, + "commit": "f6ec43b" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/7560/run-1719859112.json b/broadcast/Quest.s.sol/7560/run-1719859112.json new file mode 100644 index 00000000..f0001ebd --- /dev/null +++ b/broadcast/Quest.s.sol/7560/run-1719859112.json @@ -0,0 +1,103 @@ +{ + "transactions": [ + { + "hash": "0xba94bc67b8e5146220bd541ecd51e3f29bda6dbec46f9b3399f4d9d6d2b70166", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x9ea55699cf0e4f62b515d0331dc7506375599a57", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x2123cb", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x10", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xcb1f4c98f29ae1d3b6f6bf86abf513b9073458c6af0540cb346624ddd5647610", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x9ea55699CF0e4f62b515d0331dC7506375599a57" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee0000000000000000000000009ea55699cf0e4f62b515d0331dc7506375599a57", + "nonce": "0x11", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x1a2b02", + "logs": [ + { + "address": "0x9ea55699cf0e4f62b515d0331dc7506375599a57", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xf66548b67097441dd90febe1858a296fa0ab9b9084bf867e13bfe9f95a3c589c", + "blockNumber": "0x310fa7", + "transactionHash": "0xba94bc67b8e5146220bd541ecd51e3f29bda6dbec46f9b3399f4d9d6d2b70166", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xba94bc67b8e5146220bd541ecd51e3f29bda6dbec46f9b3399f4d9d6d2b70166", + "transactionIndex": "0x1", + "blockHash": "0xf66548b67097441dd90febe1858a296fa0ab9b9084bf867e13bfe9f95a3c589c", + "blockNumber": "0x310fa7", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0xf433c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x9ea55699cf0e4f62b515d0331dc7506375599a57", + "l1Fee": "0xcf2f800b5b53", + "l1GasPrice": "0x2d950e009", + "l1GasUsed": "0x1c688" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x1ab9df", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xcb1f4c98f29ae1d3b6f6bf86abf513b9073458c6af0540cb346624ddd5647610", + "transactionIndex": "0x2", + "blockHash": "0xf66548b67097441dd90febe1858a296fa0ab9b9084bf867e13bfe9f95a3c589c", + "blockNumber": "0x310fa7", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0xf433c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1Fee": "0x3dfdea153eb", + "l1GasPrice": "0x2d950e009", + "l1GasUsed": "0x880" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719859112, + "chain": 7560, + "commit": "ee7f8c4" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/7560/run-latest.json b/broadcast/Quest.s.sol/7560/run-latest.json new file mode 100644 index 00000000..f0001ebd --- /dev/null +++ b/broadcast/Quest.s.sol/7560/run-latest.json @@ -0,0 +1,103 @@ +{ + "transactions": [ + { + "hash": "0xba94bc67b8e5146220bd541ecd51e3f29bda6dbec46f9b3399f4d9d6d2b70166", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x9ea55699cf0e4f62b515d0331dc7506375599a57", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x2123cb", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x10", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xcb1f4c98f29ae1d3b6f6bf86abf513b9073458c6af0540cb346624ddd5647610", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x9ea55699CF0e4f62b515d0331dC7506375599a57" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee0000000000000000000000009ea55699cf0e4f62b515d0331dc7506375599a57", + "nonce": "0x11", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x1a2b02", + "logs": [ + { + "address": "0x9ea55699cf0e4f62b515d0331dc7506375599a57", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xf66548b67097441dd90febe1858a296fa0ab9b9084bf867e13bfe9f95a3c589c", + "blockNumber": "0x310fa7", + "transactionHash": "0xba94bc67b8e5146220bd541ecd51e3f29bda6dbec46f9b3399f4d9d6d2b70166", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xba94bc67b8e5146220bd541ecd51e3f29bda6dbec46f9b3399f4d9d6d2b70166", + "transactionIndex": "0x1", + "blockHash": "0xf66548b67097441dd90febe1858a296fa0ab9b9084bf867e13bfe9f95a3c589c", + "blockNumber": "0x310fa7", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0xf433c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x9ea55699cf0e4f62b515d0331dc7506375599a57", + "l1Fee": "0xcf2f800b5b53", + "l1GasPrice": "0x2d950e009", + "l1GasUsed": "0x1c688" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x1ab9df", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xcb1f4c98f29ae1d3b6f6bf86abf513b9073458c6af0540cb346624ddd5647610", + "transactionIndex": "0x2", + "blockHash": "0xf66548b67097441dd90febe1858a296fa0ab9b9084bf867e13bfe9f95a3c589c", + "blockNumber": "0x310fa7", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0xf433c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1Fee": "0x3dfdea153eb", + "l1GasPrice": "0x2d950e009", + "l1GasUsed": "0x880" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719859112, + "chain": 7560, + "commit": "ee7f8c4" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/7777777/run-1719429866.json b/broadcast/Quest.s.sol/7777777/run-1719429866.json new file mode 100644 index 00000000..09977416 --- /dev/null +++ b/broadcast/Quest.s.sol/7777777/run-1719429866.json @@ -0,0 +1,109 @@ +{ + "transactions": [ + { + "hash": "0x6594112abb5781072379f7ec2708a0468d2e7be700fc00db99197271efb60d8f", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x770584d3f47defe6711992b7c6810147ddaa7118", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x213467", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ced90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461177957816309a69f571461104757816316049ddf1461175557816317a7e45e1461173657816325692962146116eb5781633197cbb6146116cc5781633dd4d94f1461155d5781633ef17b171461153557816340bf898b146114b457816344a22c3614610c765781634719b0d4146114955781634e71d92d146111495781634f51407c1461111e57816354d1f13d146110d85781635c975abb146110b457816364df049e1461108957816367dfa3e71461106657816369940d79146106bf57816369d2dc05146110475781636cb4e61114611020578163715018a614610fd95781637282a4aa14610ef657816378e9792514610ed75781637969256414610db25781637b16e4291461098b578163842acd6814610ce257816385f036ce14610cab5781638a2229ce14610c765781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061192c565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661192c565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611942565b9361028489519586611804565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f546117a0565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b72565b61045b82611b72565b6065541660655561046b81611b72565b611b72565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611981565b049051908152f35b91506020823d8211610766575b8161075360209383611804565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61192c565b90610798611c33565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61192c565b610805611c33565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361192c565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611be3565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611be3565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a45565b609d5490611981565b61ffff60a0541690611981565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c675760a090815460ff8160101c16610c58579362010000849562ff000019161783556003610a90610a82611adf565b610a8a611a45565b90611981565b0490610a9c8247611994565b90638b78c6d81994610aaf848754611c50565b6001600160a01b03610ac78482845460181c16611c50565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c4e578a91610c19575b5090610b2e610b1c610b7d9360a4549060011c611994565b846099541685875460181c1690611c6e565b610b74836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6e60a45460a75490611994565b90611994565b90895490611c6e565b80609854169281835460181c16975497843b15610c15578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bd360a487016119a1565b9460248701526044860152166064840152608483015203925af1908115610c0c5750610bfc5750f35b610c05906117da565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c47575b610c338183611804565b810103126106ae5751899890610b2e610b04565b503d610c29565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610ca790610c94611826565b9051918291602083526020830190611907565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cd261192c565b16815260a5845220549051908152f35b918091506003193601126106b757610cf861192c565b90602435916001600160a01b0390818416948585036106ae57609a544211610da45782609854163303610d96575090610d3891609d549160995416611c6e565b82610d41578380f35b610d59610d8d926003610d52611adf565b0490611c50565b612710610d6b60a354609d5490611981565b0492610d798460a45461195e565b60a455845260a5602052832091825461195e565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dce61192c565b92609a544210610eca576001600160a01b038085169081855260a6602052600160ff8487205416151514610ebb5781855260a560205282852054938415610e945750610e41847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c6e565b81865260a6602052828620600160ff19825416179055610e638460a75461195e565b60a7556099541692825193849360808552610e80608086016119a1565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f1161192c565b600260015414610f96576002600155609b544210610f6e57610f31611be3565b6001600160a01b039182609854163303610f5f575090610f5891609d549160995416611c6e565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fed611c33565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611142609c54609d5490611981565b9051908152f35b836003198436820183811261135557836001600160a01b0391826098541691611170611826565b903689116106b35760608093126106b3576064361161148a575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111c86024820188611907565b0381895afa928315610c4e57908a9182946113ca575b508b61124c63ffffffff8b87015116928c875197015161123d8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611907565b91848303016064850152611907565b0381885afa9182156113c057899261136c575b5061129c6112896112a8948951988994338d870152168a85015260808785015260a0840190611907565b601f199384848303016080850152611907565b03908101855284611804565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113595790859291858552813b1561135557859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261133261131d60a4830183611907565b828103606319016084840152605f1993611907565b03019134905af1908115610c0c5750611349575080f35b611352906117da565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137e8183611804565b8101908881830312610c155780519067ffffffffffffffff82116113bc576113b36112a895949361129c936112899301611b2d565b9394505061125f565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113dd8183611804565b810189828203126113bc57815167ffffffffffffffff9283821161146957019086828203126114865789519287840184811082821117611471578b52825181811161146d578261142e918501611b2d565b84528b830151908111611469578291611449918c9401611b2d565b8b840152015163ffffffff811681036113bc57888201529189908c6111de565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61118a565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114fb575b6020836127106107318760a35490611981565b9092506020833d821161152d575b8161151660209383611804565b8101031261086957509051906127106107316114e8565b3d9150611509565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116c2578291611695575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561168b57839161165c575b506115d99161195e565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa91821561165157809261161f575b50506111429161195e565b9091508482813d831161164a575b6116378183611804565b8101031261086957505161114238611614565b503d61162d565b8451903d90823e3d90fd5b90508581813d8311611684575b6116738183611804565b810103126106b757516115d96115cf565b503d611669565b85513d85823e3d90fd5b90508481813d83116116bb575b6116ac8183611804565b81010312610226575138611594565b503d6116a2565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611981565b90600182811c921680156117d0575b60208310146117ba57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117af565b67ffffffffffffffff81116117ee57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117ee57604052565b60405190600082609f549161183a836117a0565b808352926001908181169081156118c25750600114611863575b5061186192500383611804565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118a75750611861935050810160200138611854565b81935090816020925483858a0101520191019091859261188e565b90506020925061186194915060ff191682840152151560051b82010138611854565b60005b8381106118f75750506000910152565b81810151838201526020016118e7565b90602091611920815180928185528580860191016118e4565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117ee57601f01601f191660200190565b9190820180921161196b57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196b57565b9190820391821161196b57565b609f54600092916119b1826117a0565b80825291600190818116908115611a2857506001146119cf57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a1057505060209250010190565b805460208585018101919091529093019281016119fe565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8f602482016119a1565b03915afa908115611ad357600091611aa5575090565b906020823d8211611acb575b81611abe60209383611804565b8101031261086957505190565b3d9150611ab1565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ad357600091611aa5575090565b81601f820112156106ae578051611b4381611942565b92611b516040519485611804565b818452602082840101116106ae57611b6f91602080850191016118e4565b90565b15611b7957565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611bef57565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c4257565b6382b429006000526004601cfd5b600080809338935af115611c6057565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611caa57603452565b6390b8ec1890526004601cfdfea2646970667358221220aeb823cb2083079c892b805c98c1b3b58fe3cfe73503224c4cd842bc6d1d65c664736f6c63430008130033", + "nonce": "0x27", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x0cb37b6a9fda2b0b70e5fb8eb453c59f04992c266ec5c01c514f820bdd7c451a", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x770584d3f47DEfE6711992b7C6810147ddaA7118" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee000000000000000000000000770584d3f47defe6711992b7c6810147ddaa7118", + "nonce": "0x28", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x28fd24", + "logs": [ + { + "address": "0x770584d3f47defe6711992b7c6810147ddaa7118", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xe5459c211de7f4c8fa0bb6137723e82e26e49cb400a5914e97e81983624469cb", + "blockNumber": "0xf9c183", + "transactionHash": "0x6594112abb5781072379f7ec2708a0468d2e7be700fc00db99197271efb60d8f", + "transactionIndex": "0xd", + "logIndex": "0x5b", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000080000400000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x6594112abb5781072379f7ec2708a0468d2e7be700fc00db99197271efb60d8f", + "transactionIndex": "0xd", + "blockHash": "0xe5459c211de7f4c8fa0bb6137723e82e26e49cb400a5914e97e81983624469cb", + "blockNumber": "0xf9c183", + "gasUsed": "0x198ca2", + "effectiveGasPrice": "0x57e4", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x770584d3f47defe6711992b7c6810147ddaa7118", + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x63654", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x119263dd7e09", + "l1GasPrice": "0x1edbce787", + "l1GasUsed": "0x1c780" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x298c01", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x0cb37b6a9fda2b0b70e5fb8eb453c59f04992c266ec5c01c514f820bdd7c451a", + "transactionIndex": "0xe", + "blockHash": "0xe5459c211de7f4c8fa0bb6137723e82e26e49cb400a5914e97e81983624469cb", + "blockNumber": "0xf9c183", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x57e4", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x63654", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x53538db13a", + "l1GasPrice": "0x1edbce787", + "l1GasUsed": "0x870" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719429866, + "chain": 7777777, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/7777777/run-1719443394.json b/broadcast/Quest.s.sol/7777777/run-1719443394.json new file mode 100644 index 00000000..61a82623 --- /dev/null +++ b/broadcast/Quest.s.sol/7777777/run-1719443394.json @@ -0,0 +1,109 @@ +{ + "transactions": [ + { + "hash": "0x3503e1af37d7d5f9787055f888d96dafc0548f4e3adfbe7327798758a8c58d1a", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0xeec05017987d9f7e3d7543ff39b321f6e0620822", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x21296f", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ce390816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176f57816309a69f571461103d57816316049ddf1461174b57816317a7e45e1461172c57816325692962146116e15781633197cbb6146116c25781633dd4d94f146115535781633ef17b171461152b57816340bf898b146114aa57816344a22c3614610c6c5781634719b0d41461148b5781634e71d92d1461113f5781634f51407c1461111457816354d1f13d146110ce5781635c975abb146110aa57816364df049e1461107f57816367dfa3e71461105c57816369940d79146106bf57816369d2dc051461103d5781636cb4e61114611016578163715018a614610fcf5781637282a4aa14610eec57816378e9792514610ecd5781637969256414610da85781637b16e4291461098b578163842acd6814610cd857816385f036ce14610ca15781638a2229ce14610c6c5781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf403610011573461022657602036600319011261022657602091610210611922565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b757610246611922565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611938565b93610284895195866117fa565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611796565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b68565b61045b82611b68565b6065541660655561046b81611b68565b611b68565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611977565b049051908152f35b91506020823d8211610766575b81610753602093836117fa565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f611922565b90610798611c29565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd611922565b610805611c29565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b03610893611922565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd9565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd9565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a3b565b609d5490611977565b61ffff60a0541690611977565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c5d5760a090815460ff8160101c16610c4e579362010000849562ff000019161783556003610a90610a82611ad5565b610a8a611a3b565b90611977565b0490610a9c824761198a565b90638b78c6d81994610aaf848754611c46565b6001600160a01b03610ac78482845460181c16611c46565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c44578a91610c0f575b5090610b24610b739284609954169060011c9085875460181c1690611c64565b610b6a836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6460a45460a7549061198a565b9061198a565b90895490611c64565b80609854169281835460181c16975497843b15610c0b578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc960a48701611997565b9460248701526044860152166064840152608483015203925af1908115610c025750610bf25750f35b610bfb906117d0565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c3d575b610c2981836117fa565b810103126106ae5751899890610b24610b04565b503d610c1f565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9d90610c8a61181c565b90519182916020835260208301906118fd565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc8611922565b16815260a5845220549051908152f35b918091506003193601126106b757610cee611922565b90602435916001600160a01b0390818416948585036106ae57609a544211610d9a5782609854163303610d8c575090610d2e91609d549160995416611c64565b82610d37578380f35b610d4f610d83926003610d48611ad5565b0490611c46565b612710610d6160a354609d5490611977565b0492610d6f8460a454611954565b60a455845260a56020528320918254611954565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dc4611922565b92609a544210610ec0576001600160a01b038085169081855260a6602052600160ff8487205416151514610eb15781855260a560205282852054938415610e8a5750610e37847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c64565b81865260a6602052828620600160ff19825416179055610e598460a754611954565b60a7556099541692825193849360808552610e7660808601611997565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f07611922565b600260015414610f8c576002600155609b544210610f6457610f27611bd9565b6001600160a01b039182609854163303610f55575090610f4e91609d549160995416611c64565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fe3611c29565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611138609c54609d5490611977565b9051908152f35b836003198436820183811261134b57836001600160a01b039182609854169161116661181c565b903689116106b35760608093126106b35760643611611480575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111be60248201886118fd565b0381895afa928315610c4457908a9182946113c0575b508b61124263ffffffff8b87015116928c87519701516112338d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118fd565b918483030160648501526118fd565b0381885afa9182156113b6578992611362575b5061129261127f61129e948951988994338d870152168a85015260808785015260a08401906118fd565b601f1993848483030160808501526118fd565b039081018552846117fa565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134f5790859291858552813b1561134b57859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132861131360a48301836118fd565b828103606319016084840152605f19936118fd565b03019134905af1908115610c02575061133f575080f35b611348906117d0565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137481836117fa565b8101908881830312610c0b5780519067ffffffffffffffff82116113b2576113a961129e9594936112929361127f9301611b23565b93945050611255565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113d381836117fa565b810189828203126113b257815167ffffffffffffffff9283821161145f570190868282031261147c5789519287840184811082821117611467578b5282518181116114635782611424918501611b23565b84528b83015190811161145f57829161143f918c9401611b23565b8b840152015163ffffffff811681036113b257888201529189908c6111d4565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c611180565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114f1575b6020836127106107318760a35490611977565b9092506020833d8211611523575b8161150c602093836117fa565b8101031261086957509051906127106107316114de565b3d91506114ff565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b857829161168b575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa908115611681578391611652575b506115cf91611954565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611647578092611615575b505061113891611954565b9091508482813d8311611640575b61162d81836117fa565b810103126108695750516111383861160a565b503d611623565b8451903d90823e3d90fd5b90508581813d831161167a575b61166981836117fa565b810103126106b757516115cf6115c5565b503d61165f565b85513d85823e3d90fd5b90508481813d83116116b1575b6116a281836117fa565b8101031261022657513861158a565b503d611698565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611977565b90600182811c921680156117c6575b60208310146117b057565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a5565b67ffffffffffffffff81116117e457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117e457604052565b60405190600082609f549161183083611796565b808352926001908181169081156118b85750600114611859575b50611857925003836117fa565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061189d575061185793505081016020013861184a565b81935090816020925483858a01015201910190918592611884565b90506020925061185794915060ff191682840152151560051b8201013861184a565b60005b8381106118ed5750506000910152565b81810151838201526020016118dd565b90602091611916815180928185528580860191016118da565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117e457601f01601f191660200190565b9190820180921161196157565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196157565b9190820391821161196157565b609f54600092916119a782611796565b80825291600190818116908115611a1e57506001146119c557505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0657505060209250010190565b805460208585018101919091529093019281016119f4565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8560248201611997565b03915afa908115611ac957600091611a9b575090565b906020823d8211611ac1575b81611ab4602093836117fa565b8101031261086957505190565b3d9150611aa7565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac957600091611a9b575090565b81601f820112156106ae578051611b3981611938565b92611b4760405194856117fa565b818452602082840101116106ae57611b6591602080850191016118da565b90565b15611b6f57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be557565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3857565b6382b429006000526004601cfd5b600080809338935af115611c5657565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611ca057603452565b6390b8ec1890526004601cfdfea2646970667358221220149d2d670275d49a11bac0173e3530dbc20af47da68fc6c86775d669c3ecbb0a64736f6c63430008130033", + "nonce": "0x2a", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xcb57c2e2988535e25227e329f133e16e1da3241bb5e5dbd9ed7b9b43226c4cbf", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0xeec05017987D9f7E3d7543Ff39b321F6E0620822" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee000000000000000000000000eec05017987d9f7e3d7543ff39b321f6e0620822", + "nonce": "0x2b", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x1f1774", + "logs": [ + { + "address": "0xeec05017987d9f7e3d7543ff39b321f6e0620822", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x3d5e12f9251250fde2952c9ac9e25aab88ae86c517f129fcd704302481a3d5d0", + "blockNumber": "0xf9dbef", + "transactionHash": "0x3503e1af37d7d5f9787055f888d96dafc0548f4e3adfbe7327798758a8c58d1a", + "transactionIndex": "0x3", + "logIndex": "0x7", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000002000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x3503e1af37d7d5f9787055f888d96dafc0548f4e3adfbe7327798758a8c58d1a", + "transactionIndex": "0x3", + "blockHash": "0x3d5e12f9251250fde2952c9ac9e25aab88ae86c517f129fcd704302481a3d5d0", + "blockNumber": "0xf9dbef", + "gasUsed": "0x198432", + "effectiveGasPrice": "0x1484", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xeec05017987d9f7e3d7543ff39b321f6e0620822", + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0xe1", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x8784b6a6662", + "l1GasPrice": "0xee5d38aa", + "l1GasUsed": "0x1c6d4" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x1fa651", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xcb57c2e2988535e25227e329f133e16e1da3241bb5e5dbd9ed7b9b43226c4cbf", + "transactionIndex": "0x4", + "blockHash": "0x3d5e12f9251250fde2952c9ac9e25aab88ae86c517f129fcd704302481a3d5d0", + "blockNumber": "0xf9dbef", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x1484", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0xe1", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x2839550e45", + "l1GasPrice": "0xee5d38aa", + "l1GasUsed": "0x870" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719443394, + "chain": 7777777, + "commit": "f6ec43b" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/7777777/run-1719860051.json b/broadcast/Quest.s.sol/7777777/run-1719860051.json new file mode 100644 index 00000000..62e13457 --- /dev/null +++ b/broadcast/Quest.s.sol/7777777/run-1719860051.json @@ -0,0 +1,109 @@ +{ + "transactions": [ + { + "hash": "0xed2332c76f0ce7f02bbf385d0faef7bf1487551a89aad056d36299b601e60f43", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0xb82c79f679dde7ba650afec3842248d260869dba", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x2123cb", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x2c", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x60922f071c469f6634ba8754d427979288d680cd73a3d1754b9965c00151a206", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0xb82C79F679DDe7Ba650afEC3842248D260869dBa" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee000000000000000000000000b82c79f679dde7ba650afec3842248d260869dba", + "nonce": "0x2d", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x24e87c", + "logs": [ + { + "address": "0xb82c79f679dde7ba650afec3842248d260869dba", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x0adac7a175aa7ddc88c1e08455e3d98b0664a4cfa93703088298ed40f0a93687", + "blockNumber": "0xfd09b8", + "transactionHash": "0xed2332c76f0ce7f02bbf385d0faef7bf1487551a89aad056d36299b601e60f43", + "transactionIndex": "0x4", + "logIndex": "0x5", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xed2332c76f0ce7f02bbf385d0faef7bf1487551a89aad056d36299b601e60f43", + "transactionIndex": "0x4", + "blockHash": "0x0adac7a175aa7ddc88c1e08455e3d98b0664a4cfa93703088298ed40f0a93687", + "blockNumber": "0xfd09b8", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0x445c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xb82c79f679dde7ba650afec3842248d260869dba", + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x1", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x138e439f030d", + "l1GasPrice": "0x226c8312c", + "l1GasUsed": "0x1c678" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x257759", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x60922f071c469f6634ba8754d427979288d680cd73a3d1754b9965c00151a206", + "transactionIndex": "0x5", + "blockHash": "0x0adac7a175aa7ddc88c1e08455e3d98b0664a4cfa93703088298ed40f0a93687", + "blockNumber": "0xfd09b8", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x445c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x1", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x5cf1c84c8f", + "l1GasPrice": "0x226c8312c", + "l1GasUsed": "0x870" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719860051, + "chain": 7777777, + "commit": "ee7f8c4" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/7777777/run-latest.json b/broadcast/Quest.s.sol/7777777/run-latest.json index a59fa559..62e13457 100644 --- a/broadcast/Quest.s.sol/7777777/run-latest.json +++ b/broadcast/Quest.s.sol/7777777/run-latest.json @@ -1,42 +1,40 @@ { "transactions": [ { - "hash": "0xae7620945dfa0cd3208b56da880e76f7097f8859211c5e45261915a7d956c09c", + "hash": "0xed2332c76f0ce7f02bbf385d0faef7bf1487551a89aad056d36299b601e60f43", "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0x54e986CbE464e243700083bA4F2da64F6648343F", + "contractName": "Quest", + "contractAddress": "0xb82c79f679dde7ba650afec3842248d260869dba", "function": null, "arguments": null, "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", + "gas": "0x2123cb", "value": "0x0", - "data": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea264697066735822122041c5a1594ae2985e35993df6b1363fc7851a06272fdfc3cfc897ddc18d3a119c64736f6c63430008130033", - "nonce": "0x1c", - "accessList": [] + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x2c", + "chainId": "0x76adf1" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0x868c8217b3adf46d5751e777f2e46ea404f6f6a0ddde3b0bef7b7b670f5f5f16", + "hash": "0x60922f071c469f6634ba8754d427979288d680cd73a3d1754b9965c00151a206", "transactionType": "CALL", "contractName": null, - "contractAddress": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "function": "setErc1155QuestAddress(address)", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", "arguments": [ - "0x54e986CbE464e243700083bA4F2da64F6648343F" + "0xb82C79F679DDe7Ba650afEC3842248D260869dBa" ], "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0xd463", + "gas": "0xc553", "value": "0x0", - "data": "0xf8565efd00000000000000000000000054e986cbe464e243700083ba4f2da64f6648343f", - "nonce": "0x1d", - "accessList": [] + "input": "0x7c93f9ee000000000000000000000000b82c79f679dde7ba650afec3842248d260869dba", + "nonce": "0x2d", + "chainId": "0x76adf1" }, "additionalContracts": [], "isFixedGasLimit": false @@ -44,56 +42,68 @@ ], "receipts": [ { - "transactionHash": "0xae7620945dfa0cd3208b56da880e76f7097f8859211c5e45261915a7d956c09c", - "transactionIndex": "0x1", - "blockHash": "0x06a38141dfca48067e41dfbaafe946523cce85add15163f0398b831790aedb19", - "blockNumber": "0xdeafaf", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x1914c9", - "gasUsed": "0x18697e", - "contractAddress": "0x54e986CbE464e243700083bA4F2da64F6648343F", + "status": "0x1", + "cumulativeGasUsed": "0x24e87c", "logs": [ { - "address": "0x54e986CbE464e243700083bA4F2da64F6648343F", + "address": "0xb82c79f679dde7ba650afec3842248d260869dba", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0x06a38141dfca48067e41dfbaafe946523cce85add15163f0398b831790aedb19", - "blockNumber": "0xdeafaf", - "transactionHash": "0xae7620945dfa0cd3208b56da880e76f7097f8859211c5e45261915a7d956c09c", - "transactionIndex": "0x1", - "logIndex": "0x0", + "blockHash": "0x0adac7a175aa7ddc88c1e08455e3d98b0664a4cfa93703088298ed40f0a93687", + "blockNumber": "0xfd09b8", + "transactionHash": "0xed2332c76f0ce7f02bbf385d0faef7bf1487551a89aad056d36299b601e60f43", + "transactionIndex": "0x4", + "logIndex": "0x5", "removed": false } ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000800000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logsBloom": "0x00000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb2d05efc" + "transactionHash": "0xed2332c76f0ce7f02bbf385d0faef7bf1487551a89aad056d36299b601e60f43", + "transactionIndex": "0x4", + "blockHash": "0x0adac7a175aa7ddc88c1e08455e3d98b0664a4cfa93703088298ed40f0a93687", + "blockNumber": "0xfd09b8", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0x445c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xb82c79f679dde7ba650afec3842248d260869dba", + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x1", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x138e439f030d", + "l1GasPrice": "0x226c8312c", + "l1GasUsed": "0x1c678" }, { - "transactionHash": "0x868c8217b3adf46d5751e777f2e46ea404f6f6a0ddde3b0bef7b7b670f5f5f16", - "transactionIndex": "0x2", - "blockHash": "0x06a38141dfca48067e41dfbaafe946523cce85add15163f0398b831790aedb19", - "blockNumber": "0xdeafaf", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "cumulativeGasUsed": "0x19a602", - "gasUsed": "0x9139", - "contractAddress": null, - "logs": [], "status": "0x1", + "cumulativeGasUsed": "0x257759", + "logs": [], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb2d05efc" + "transactionHash": "0x60922f071c469f6634ba8754d427979288d680cd73a3d1754b9965c00151a206", + "transactionIndex": "0x5", + "blockHash": "0x0adac7a175aa7ddc88c1e08455e3d98b0664a4cfa93703088298ed40f0a93687", + "blockNumber": "0xfd09b8", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x445c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x1", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x5cf1c84c8f", + "l1GasPrice": "0x226c8312c", + "l1GasUsed": "0x870" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715881775, + "timestamp": 1719860051, "chain": 7777777, - "commit": "a35a3c3" + "commit": "ee7f8c4" } \ No newline at end of file diff --git a/broadcast/Quest.s.sol/81457/run-1719428764.json b/broadcast/Quest.s.sol/81457/run-1719428764.json new file mode 100644 index 00000000..427ba824 --- /dev/null +++ b/broadcast/Quest.s.sol/81457/run-1719428764.json @@ -0,0 +1,103 @@ +{ + "transactions": [ + { + "hash": "0xad4666381ff76a2202f925c436edcf7d5b96352d485484cc4a37b644453d9f14", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x2a4a4f6330b30f257146bb0bc6e57019b8ddbe78", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x213467", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611ced90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461177957816309a69f571461104757816316049ddf1461175557816317a7e45e1461173657816325692962146116eb5781633197cbb6146116cc5781633dd4d94f1461155d5781633ef17b171461153557816340bf898b146114b457816344a22c3614610c765781634719b0d4146114955781634e71d92d146111495781634f51407c1461111e57816354d1f13d146110d85781635c975abb146110b457816364df049e1461108957816367dfa3e71461106657816369940d79146106bf57816369d2dc05146110475781636cb4e61114611020578163715018a614610fd95781637282a4aa14610ef657816378e9792514610ed75781637969256414610db25781637b16e4291461098b578163842acd6814610ce257816385f036ce14610cab5781638a2229ce14610c765781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061192c565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661192c565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611942565b9361028489519586611804565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f546117a0565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b72565b61045b82611b72565b6065541660655561046b81611b72565b611b72565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611981565b049051908152f35b91506020823d8211610766575b8161075360209383611804565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61192c565b90610798611c33565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61192c565b610805611c33565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361192c565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611be3565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611be3565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a45565b609d5490611981565b61ffff60a0541690611981565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c675760a090815460ff8160101c16610c58579362010000849562ff000019161783556003610a90610a82611adf565b610a8a611a45565b90611981565b0490610a9c8247611994565b90638b78c6d81994610aaf848754611c50565b6001600160a01b03610ac78482845460181c16611c50565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c4e578a91610c19575b5090610b2e610b1c610b7d9360a4549060011c611994565b846099541685875460181c1690611c6e565b610b74836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b6e60a45460a75490611994565b90611994565b90895490611c6e565b80609854169281835460181c16975497843b15610c15578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bd360a487016119a1565b9460248701526044860152166064840152608483015203925af1908115610c0c5750610bfc5750f35b610c05906117da565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c47575b610c338183611804565b810103126106ae5751899890610b2e610b04565b503d610c29565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610ca790610c94611826565b9051918291602083526020830190611907565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cd261192c565b16815260a5845220549051908152f35b918091506003193601126106b757610cf861192c565b90602435916001600160a01b0390818416948585036106ae57609a544211610da45782609854163303610d96575090610d3891609d549160995416611c6e565b82610d41578380f35b610d59610d8d926003610d52611adf565b0490611c50565b612710610d6b60a354609d5490611981565b0492610d798460a45461195e565b60a455845260a5602052832091825461195e565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dce61192c565b92609a544210610eca576001600160a01b038085169081855260a6602052600160ff8487205416151514610ebb5781855260a560205282852054938415610e945750610e41847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c6e565b81865260a6602052828620600160ff19825416179055610e638460a75461195e565b60a7556099541692825193849360808552610e80608086016119a1565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f1161192c565b600260015414610f96576002600155609b544210610f6e57610f31611be3565b6001600160a01b039182609854163303610f5f575090610f5891609d549160995416611c6e565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fed611c33565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611142609c54609d5490611981565b9051908152f35b836003198436820183811261135557836001600160a01b0391826098541691611170611826565b903689116106b35760608093126106b3576064361161148a575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111c86024820188611907565b0381895afa928315610c4e57908a9182946113ca575b508b61124c63ffffffff8b87015116928c875197015161123d8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611907565b91848303016064850152611907565b0381885afa9182156113c057899261136c575b5061129c6112896112a8948951988994338d870152168a85015260808785015260a0840190611907565b601f199384848303016080850152611907565b03908101855284611804565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113595790859291858552813b1561135557859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261133261131d60a4830183611907565b828103606319016084840152605f1993611907565b03019134905af1908115610c0c5750611349575080f35b611352906117da565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61137e8183611804565b8101908881830312610c155780519067ffffffffffffffff82116113bc576113b36112a895949361129c936112899301611b2d565b9394505061125f565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113dd8183611804565b810189828203126113bc57815167ffffffffffffffff9283821161146957019086828203126114865789519287840184811082821117611471578b52825181811161146d578261142e918501611b2d565b84528b830151908111611469578291611449918c9401611b2d565b8b840152015163ffffffff811681036113bc57888201529189908c6111de565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61118a565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114fb575b6020836127106107318760a35490611981565b9092506020833d821161152d575b8161151660209383611804565b8101031261086957509051906127106107316114e8565b3d9150611509565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116c2578291611695575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561168b57839161165c575b506115d99161195e565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa91821561165157809261161f575b50506111429161195e565b9091508482813d831161164a575b6116378183611804565b8101031261086957505161114238611614565b503d61162d565b8451903d90823e3d90fd5b90508581813d8311611684575b6116738183611804565b810103126106b757516115d96115cf565b503d611669565b85513d85823e3d90fd5b90508481813d83116116bb575b6116ac8183611804565b81010312610226575138611594565b503d6116a2565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611981565b90600182811c921680156117d0575b60208310146117ba57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117af565b67ffffffffffffffff81116117ee57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117ee57604052565b60405190600082609f549161183a836117a0565b808352926001908181169081156118c25750600114611863575b5061186192500383611804565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118a75750611861935050810160200138611854565b81935090816020925483858a0101520191019091859261188e565b90506020925061186194915060ff191682840152151560051b82010138611854565b60005b8381106118f75750506000910152565b81810151838201526020016118e7565b90602091611920815180928185528580860191016118e4565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117ee57601f01601f191660200190565b9190820180921161196b57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561196b57565b9190820391821161196b57565b609f54600092916119b1826117a0565b80825291600190818116908115611a2857506001146119cf57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a1057505060209250010190565b805460208585018101919091529093019281016119fe565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8f602482016119a1565b03915afa908115611ad357600091611aa5575090565b906020823d8211611acb575b81611abe60209383611804565b8101031261086957505190565b3d9150611ab1565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ad357600091611aa5575090565b81601f820112156106ae578051611b4381611942565b92611b516040519485611804565b818452602082840101116106ae57611b6f91602080850191016118e4565b90565b15611b7957565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611bef57565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c4257565b6382b429006000526004601cfd5b600080809338935af115611c6057565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611caa57603452565b6390b8ec1890526004601cfdfea2646970667358221220aeb823cb2083079c892b805c98c1b3b58fe3cfe73503224c4cd842bc6d1d65c664736f6c63430008130033", + "nonce": "0x25", + "chainId": "0x13e31" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x9af61055172cf0c9bff8b40245a0d863ef033ab831ae39eeffa3d6346b50fe70", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x2a4A4f6330b30f257146bb0bc6e57019b8ddbE78" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee0000000000000000000000002a4a4f6330b30f257146bb0bc6e57019b8ddbe78", + "nonce": "0x26", + "chainId": "0x13e31" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x3b88c7", + "logs": [ + { + "address": "0x2a4a4f6330b30f257146bb0bc6e57019b8ddbe78", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xbce62bf70920313840708eb0c5369696953dfc7c9d2fad03cb97fbe94b1ddefd", + "blockNumber": "0x510420", + "transactionHash": "0xad4666381ff76a2202f925c436edcf7d5b96352d485484cc4a37b644453d9f14", + "transactionIndex": "0xd", + "logIndex": "0x26", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000200000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xad4666381ff76a2202f925c436edcf7d5b96352d485484cc4a37b644453d9f14", + "transactionIndex": "0xd", + "blockHash": "0xbce62bf70920313840708eb0c5369696953dfc7c9d2fad03cb97fbe94b1ddefd", + "blockNumber": "0x510420", + "gasUsed": "0x198ca2", + "effectiveGasPrice": "0x10b9aed8", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x2a4a4f6330b30f257146bb0bc6e57019b8ddbe78", + "l1Fee": "0xdcbe8afbfe", + "l1GasPrice": "0x1af6cdf0e", + "l1GasUsed": "0x1c7b0" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x3c17a4", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x9af61055172cf0c9bff8b40245a0d863ef033ab831ae39eeffa3d6346b50fe70", + "transactionIndex": "0xe", + "blockHash": "0xbce62bf70920313840708eb0c5369696953dfc7c9d2fad03cb97fbe94b1ddefd", + "blockNumber": "0x510420", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x10b9aed8", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1Fee": "0x42d99a579", + "l1GasPrice": "0x1af6cdf0e", + "l1GasUsed": "0x8a0" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719428764, + "chain": 81457, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/Quest.s.sol/81457/run-latest.json b/broadcast/Quest.s.sol/81457/run-latest.json index ab501cdf..3fb7f194 100644 --- a/broadcast/Quest.s.sol/81457/run-latest.json +++ b/broadcast/Quest.s.sol/81457/run-latest.json @@ -1,40 +1,40 @@ { "transactions": [ { - "hash": "0x95d6d598b8ec724fcf305d01ee1424064b126a640e463bec5046e2671860cee4", + "hash": "0x2a60eac0ec1fe48cf121ac974b89760e52734cdd44de9b526c9e742ccdc2c113", "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0xF5A70EB5c9455a17F2A4622EF35B0067Bcb5b802", + "contractName": "Quest", + "contractAddress": "0xeec05017987d9f7e3d7543ff39b321f6e0620822", "function": null, "arguments": null, "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", + "gas": "0x2123cb", "value": "0x0", - "data": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea264697066735822122041c5a1594ae2985e35993df6b1363fc7851a06272fdfc3cfc897ddc18d3a119c64736f6c63430008130033", - "nonce": "0x20", - "accessList": [] + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0x2a", + "chainId": "0x13e31" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0x93f18b1efaf1e42993c63c49e1646f5e23627e17308179ceef326d857ec49bed", + "hash": "0xbb99a0f333ed62d0c183ecabdf8902f073c7df93503af92a6f9d80833e841485", "transactionType": "CALL", - "contractName": "TransparentUpgradeableProxy", - "contractAddress": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "function": null, - "arguments": null, + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0xeec05017987D9f7E3d7543Ff39b321F6E0620822" + ], "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0xd463", + "gas": "0xc553", "value": "0x0", - "data": "0xf8565efd000000000000000000000000f5a70eb5c9455a17f2a4622ef35b0067bcb5b802", - "nonce": "0x21", - "accessList": [] + "input": "0x7c93f9ee000000000000000000000000eec05017987d9f7e3d7543ff39b321f6e0620822", + "nonce": "0x2b", + "chainId": "0x13e31" }, "additionalContracts": [], "isFixedGasLimit": false @@ -42,56 +42,62 @@ ], "receipts": [ { - "transactionHash": "0x95d6d598b8ec724fcf305d01ee1424064b126a640e463bec5046e2671860cee4", - "transactionIndex": "0x1", - "blockHash": "0xae1df15139832ec8329d387fc6288f8ef0f7d0033ade4c96bd75e202a46cd41a", - "blockNumber": "0x35f0fc", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x1920eb", - "gasUsed": "0x18697e", - "contractAddress": "0xF5A70EB5c9455a17F2A4622EF35B0067Bcb5b802", + "status": "0x1", + "cumulativeGasUsed": "0x2ffc9a", "logs": [ { - "address": "0xF5A70EB5c9455a17F2A4622EF35B0067Bcb5b802", + "address": "0xeec05017987d9f7e3d7543ff39b321f6e0620822", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0xae1df15139832ec8329d387fc6288f8ef0f7d0033ade4c96bd75e202a46cd41a", - "blockNumber": "0x35f0fc", - "transactionHash": "0x95d6d598b8ec724fcf305d01ee1424064b126a640e463bec5046e2671860cee4", - "transactionIndex": "0x1", - "logIndex": "0x0", + "blockHash": "0x4b43f1849750605b087720ce0de1c78a563bc8929903939713a06a2570b85983", + "blockNumber": "0x544cdd", + "transactionHash": "0x2a60eac0ec1fe48cf121ac974b89760e52734cdd44de9b526c9e742ccdc2c113", + "transactionIndex": "0xb", + "logIndex": "0x16", "removed": false } ], - "status": "0x1", - "logsBloom": "0x08000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000002000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb3ff606c" + "transactionHash": "0x2a60eac0ec1fe48cf121ac974b89760e52734cdd44de9b526c9e742ccdc2c113", + "transactionIndex": "0xb", + "blockHash": "0x4b43f1849750605b087720ce0de1c78a563bc8929903939713a06a2570b85983", + "blockNumber": "0x544cdd", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0x8857b2", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xeec05017987d9f7e3d7543ff39b321f6e0620822", + "l1Fee": "0x1148d344273", + "l1GasPrice": "0x229324e40", + "l1GasUsed": "0x1c678" }, { - "transactionHash": "0x93f18b1efaf1e42993c63c49e1646f5e23627e17308179ceef326d857ec49bed", - "transactionIndex": "0x2", - "blockHash": "0xae1df15139832ec8329d387fc6288f8ef0f7d0033ade4c96bd75e202a46cd41a", - "blockNumber": "0x35f0fc", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "cumulativeGasUsed": "0x19b224", - "gasUsed": "0x9139", - "contractAddress": null, - "logs": [], "status": "0x1", + "cumulativeGasUsed": "0x308b77", + "logs": [], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb3ff606c" + "transactionHash": "0xbb99a0f333ed62d0c183ecabdf8902f073c7df93503af92a6f9d80833e841485", + "transactionIndex": "0xc", + "blockHash": "0x4b43f1849750605b087720ce0de1c78a563bc8929903939713a06a2570b85983", + "blockNumber": "0x544cdd", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x8857b2", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1Fee": "0x52265188e", + "l1GasPrice": "0x229324e40", + "l1GasUsed": "0x870" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715880020, + "timestamp": 1719859223, "chain": 81457, - "commit": "a35a3c3" + "commit": "ee7f8c4" } \ No newline at end of file diff --git a/broadcast/Quest.s.sol/8453/run-latest.json b/broadcast/Quest.s.sol/8453/run-latest.json index 01f9a6e3..7dd04bfd 100644 --- a/broadcast/Quest.s.sol/8453/run-latest.json +++ b/broadcast/Quest.s.sol/8453/run-latest.json @@ -1,40 +1,40 @@ { "transactions": [ { - "hash": "0x33e107905552ef13260f3d81b2e136628a66720faa3d686a2689e47d74131add", + "hash": "0x0cc4b3e1d85710d67815b6199bbf21281ea68cdd19eb183c8bd01d47a11bf5e6", "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0x9Dc819C478c110052f37bBDd6D61005089027155", + "contractName": "Quest", + "contractAddress": "0xaae40f261880637c6b4f55992cbbbc26140f9a3b", "function": null, "arguments": null, "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", + "gas": "0x2123cb", "value": "0x0", - "data": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea264697066735822122041c5a1594ae2985e35993df6b1363fc7851a06272fdfc3cfc897ddc18d3a119c64736f6c63430008130033", - "nonce": "0xa8", - "accessList": [] + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0xc1", + "chainId": "0x2105" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0x4442ad1507eec84a82e8ab158b4e38d32a573fd9f0cfcfeee47b544160e8f3c2", + "hash": "0x8c89025e2627d1cc6cc644260d9d7998ff1ee3345c954461e0ebb8f73b93dd9b", "transactionType": "CALL", - "contractName": "TransparentUpgradeableProxy", - "contractAddress": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "function": null, - "arguments": null, + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0xAaE40f261880637C6b4f55992CbbBC26140F9a3b" + ], "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0xd463", + "gas": "0xc553", "value": "0x0", - "data": "0xf8565efd0000000000000000000000009dc819c478c110052f37bbdd6d61005089027155", - "nonce": "0xa9", - "accessList": [] + "input": "0x7c93f9ee000000000000000000000000aae40f261880637c6b4f55992cbbbc26140f9a3b", + "nonce": "0xc2", + "chainId": "0x2105" }, "additionalContracts": [], "isFixedGasLimit": false @@ -42,56 +42,68 @@ ], "receipts": [ { - "transactionHash": "0x33e107905552ef13260f3d81b2e136628a66720faa3d686a2689e47d74131add", - "transactionIndex": "0x1", - "blockHash": "0xb35c285455cd4207dfd2760712105458b606bfa0c9bd39dd5236ff3e1d475409", - "blockNumber": "0xddf295", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x1914c9", - "gasUsed": "0x18697e", - "contractAddress": "0x9Dc819C478c110052f37bBDd6D61005089027155", + "status": "0x1", + "cumulativeGasUsed": "0x94af91", "logs": [ { - "address": "0x9Dc819C478c110052f37bBDd6D61005089027155", + "address": "0xaae40f261880637c6b4f55992cbbbc26140f9a3b", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0xb35c285455cd4207dfd2760712105458b606bfa0c9bd39dd5236ff3e1d475409", - "blockNumber": "0xddf295", - "transactionHash": "0x33e107905552ef13260f3d81b2e136628a66720faa3d686a2689e47d74131add", - "transactionIndex": "0x1", - "logIndex": "0x0", + "blockHash": "0x411f6630c7d151a90c399a53c99a6dab7e0e2d10a077df0c62aa0b4adaf20658", + "blockNumber": "0xfc4dfb", + "transactionHash": "0x0cc4b3e1d85710d67815b6199bbf21281ea68cdd19eb183c8bd01d47a11bf5e6", + "transactionIndex": "0x32", + "logIndex": "0x84", "removed": false } ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000200000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb66a3467" + "transactionHash": "0x0cc4b3e1d85710d67815b6199bbf21281ea68cdd19eb183c8bd01d47a11bf5e6", + "transactionIndex": "0x32", + "blockHash": "0x411f6630c7d151a90c399a53c99a6dab7e0e2d10a077df0c62aa0b4adaf20658", + "blockNumber": "0xfc4dfb", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0x974168", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xaae40f261880637c6b4f55992cbbbc26140f9a3b", + "l1BaseFeeScalar": "0x58a", + "l1BlobBaseFee": "0x1", + "l1BlobBaseFeeScalar": "0xa118b", + "l1Fee": "0x1aad747488e", + "l1GasPrice": "0x29635f342", + "l1GasUsed": "0x1c690" }, { - "transactionHash": "0x4442ad1507eec84a82e8ab158b4e38d32a573fd9f0cfcfeee47b544160e8f3c2", - "transactionIndex": "0x2", - "blockHash": "0xb35c285455cd4207dfd2760712105458b606bfa0c9bd39dd5236ff3e1d475409", - "blockNumber": "0xddf295", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "cumulativeGasUsed": "0x19a602", - "gasUsed": "0x9139", - "contractAddress": null, - "logs": [], "status": "0x1", + "cumulativeGasUsed": "0x953e6e", + "logs": [], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb66a3467" + "transactionHash": "0x8c89025e2627d1cc6cc644260d9d7998ff1ee3345c954461e0ebb8f73b93dd9b", + "transactionIndex": "0x33", + "blockHash": "0x411f6630c7d151a90c399a53c99a6dab7e0e2d10a077df0c62aa0b4adaf20658", + "blockNumber": "0xfc4dfb", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0x974168", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x58a", + "l1BlobBaseFee": "0x1", + "l1BlobBaseFeeScalar": "0xa118b", + "l1Fee": "0x819584212", + "l1GasPrice": "0x29635f342", + "l1GasUsed": "0x8a0" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715880465, + "timestamp": 1719859421, "chain": 8453, - "commit": "a35a3c3" + "commit": "ee7f8c4" } \ No newline at end of file diff --git a/broadcast/Quest.s.sol/84532/run-latest.json b/broadcast/Quest.s.sol/84532/run-latest.json new file mode 100644 index 00000000..442c17a9 --- /dev/null +++ b/broadcast/Quest.s.sol/84532/run-latest.json @@ -0,0 +1,109 @@ +{ + "transactions": [ + { + "hash": "0xa493cec4392b0b2c319a241655b2521aa260fb19aafc7de88688416161dc994b", + "transactionType": "CREATE", + "contractName": "Quest", + "contractAddress": "0x15ef39a70bf0b24383042ab7ed323652659f2ad7", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x2123cb", + "value": "0x0", + "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611cde90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d21461176a57816309a69f571461103857816316049ddf1461174657816317a7e45e1461172757816325692962146116dc5781633197cbb6146116bd5781633dd4d94f1461154e5781633ef17b171461152657816340bf898b146114a557816344a22c3614610c675781634719b0d4146114865781634e71d92d1461113a5781634f51407c1461110f57816354d1f13d146110c95781635c975abb146110a557816364df049e1461107a57816367dfa3e71461105757816369940d79146106bf57816369d2dc05146110385781636cb4e61114611011578163715018a614610fca5781637282a4aa14610ee757816378e9792514610ec85781637969256414610da35781637b16e4291461098b578163842acd6814610cd357816385f036ce14610c9c5781638a2229ce14610c675781638afbf66914610a3a5781638da5cb5b14610a0e578163a26dbf26146109ef578163b0e21e8a146109b3578163cb6644361461098b578163e9870ee51461096c578163ea8a1af0146108a3578163ef89c4e61461086c578163f04e283e146107e8578163f2fde38b14610779578163f4c17a6b146106e7578163f7c618c1146106bf578163fb96aa2e1461022a575063fee81cf40361001157346102265760203660031901126102265760209161021061191d565b9063389a75e1600c525281600c20549051908152f35b5080fd5b9050346106b7576101003660031901126106b75761024661191d565b6024359160a43567ffffffffffffffff8082116106bb57366023830112156106bb5786828401359261027784611933565b93610284895195866117f5565b80855236602482840101116106b75780602460209301838701378401015260c4359161ffff83168093036106b35760e435936001600160a01b0380861686036106ae5789549760ff8960081c16159889809a6106a1575b801561068a575b15610621579189979593918c9997959360019b8c9b60ff199d8e8416179055610610575b50428111156105e85760443591828211156105c0577fffffffffffffffffffffffff00000000000000000000000000000000000000009816886099541617609955609a55609b55606435609c55608435609d5581519283116105ad57508190610370609f54611791565b601f811161053d575b50602090601f83116001146104be578b926104b3575b5050600019600383901b1c191690861b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a055339060985416176098558183609e541617609e558460a4558460a75560fa60a35533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361047085549360ff8560081c169061045282611b63565b61045b82611b63565b6065541660655561046b81611b63565b611b63565b81805561047b578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a13880808380f35b01519050388061038f565b609f8c528893507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de289190601f1984168d5b8181106105255750841161050c575b505050811b01609f556103a4565b015160001960f88460031b161c191690553880806104fe565b8284015185558b9690940193602093840193016104ef565b909150609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c810191602085106105a3575b84939291601f8b920160051c01915b828110610595575050610379565b8d81558594508a9101610587565b9091508190610578565b8a6041602492634e487b7160e01b835252fd5b838d517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b828c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d5538610306565b60848460208d519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b1580156102e25750600160ff8216146102e2565b50600160ff8216106102db565b600080fd5b8780fd5b8280fd5b8680fd5b5050346102265781600319360112610226576020906001600160a01b03609954169051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5792610739575b5061271061073160209361ffff60a0541690611972565b049051908152f35b91506020823d8211610766575b81610753602093836117f5565b810103126106ae5790519061271061071a565b3d9150610746565b8251903d90823e3d90fd5b839060203660031901126102265761078f61191d565b90610798611c24565b8160601b156107dd57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b836020366003190112610869576107fd61191d565b610805611c24565b63389a75e1600c528082526020600c20928354421161085e5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461022657602036600319011261022657806020926001600160a01b0361089361191d565b16815260a2845220549051908152f35b919050346106b757826003193601126106b7576001600160a01b0360985416330361095f576108d0611bd4565b609a5442116109525760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610905611bd4565b600160ff19606554161760655551338152a142609b541160001461092c5750425b609a5580f35b61038442019081421161093f5750610926565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461022657816003193601126102265760209060a7549051908152f35b5050346102265781600319360112610226576020906001600160a01b03609854169051908152f35b5050346102265781600319360112610226576020906127106107316109e26109d9611a36565b609d5490611972565b61ffff60a0541690611972565b505034610226578160031936011261022657602090609c549051908152f35b5050346102265781600319360112610226576020906001600160a01b03638b78c6d81954915191168152f35b838334610226578160031936011261022657609a544210610c585760a090815460ff8160101c16610c49579362010000849562ff000019161783556003610a90610a82611ad0565b610a8a611a36565b90611972565b0490610a9c8247611985565b90638b78c6d81994610aaf848754611c41565b6001600160a01b03610ac78482845460181c16611c41565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c3f578a91610c0a575b5090610b1f610b6e92846099541685875460181c1690611c5f565b610b65836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b5f60a45460a75490611985565b90611985565b90895490611c5f565b80609854169281835460181c16975497843b15610c06578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610bc460a48701611992565b9460248701526044860152166064840152608483015203925af1908115610bfd5750610bed5750f35b610bf6906117cb565b6108695780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c38575b610c2481836117f5565b810103126106ae5751899890610b1f610b04565b503d610c1a565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b505034610226578160031936011261022657610c9890610c85611817565b90519182916020835260208301906118f8565b0390f35b50503461022657602036600319011261022657806020926001600160a01b03610cc361191d565b16815260a5845220549051908152f35b918091506003193601126106b757610ce961191d565b90602435916001600160a01b0390818416948585036106ae57609a544211610d955782609854163303610d87575090610d2991609d549160995416611c5f565b82610d32578380f35b610d4a610d7e926003610d43611ad0565b0490611c41565b612710610d5c60a354609d5490611972565b0492610d6a8460a45461194f565b60a455845260a5602052832091825461194f565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461022657602036600319011261022657610dbf61191d565b92609a544210610ebb576001600160a01b038085169081855260a6602052600160ff8487205416151514610eac5781855260a560205282852054938415610e855750610e32847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611c5f565b81865260a6602052828620600160ff19825416179055610e548460a75461194f565b60a7556099541692825193849360808552610e7160808601611992565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b505034610226578160031936011261022657602090609b549051908152f35b83833461022657602036600319011261022657610f0261191d565b600260015414610f87576002600155609b544210610f5f57610f22611bd4565b6001600160a01b039182609854163303610f50575090610f4991609d549160995416611c5f565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b838060031936011261086957610fde611c24565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461022657816003193601126102265760209060ff60a05460101c1690519015158152f35b505034610226578160031936011261022657602090609d549051908152f35b50503461022657816003193601126102265760209061ffff60a054169051908152f35b5050346102265781600319360112610226576020906001600160a01b0360a05460181c169051908152f35b50503461022657816003193601126102265760209060ff6065541690519015158152f35b83806003193601126108695763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b505034610226578160031936011261022657602090611133609c54609d5490611972565b9051908152f35b836003198436820183811261134657836001600160a01b0391826098541691611161611817565b903689116106b35760608093126106b3576064361161147b575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b8401528983806111b960248201886118f8565b0381895afa928315610c3f57908a9182946113bb575b508b61123d63ffffffff8b87015116928c875197015161122e8d5198899687967fa5454dbd00000000000000000000000000000000000000000000000000000000885280359088015260248701526080604487015260848601906118f8565b918483030160648501526118f8565b0381885afa9182156113b157899261135d575b5061128d61127a611299948951988994338d870152168a85015260808785015260a08401906118f8565b601f1993848483030160808501526118f8565b039081018552846117f5565b835194602435908601526044358486015283855284019380851067ffffffffffffffff86111761134a5790859291858552813b1561134657859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261132361130e60a48301836118f8565b828103606319016084840152605f19936118f8565b03019134905af1908115610bfd575061133a575080f35b611343906117cb565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61136f81836117f5565b8101908881830312610c065780519067ffffffffffffffff82116113ad576113a461129995949361128d9361127a9301611b1e565b93945050611250565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ce81836117f5565b810189828203126113ad57815167ffffffffffffffff9283821161145a57019086828203126114775789519287840184811082821117611462578b52825181811161145e578261141f918501611b1e565b84528b83015190811161145a57829161143a918c9401611b1e565b8b840152015163ffffffff811681036113ad57888201529189908c6111cf565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c61117b565b50503461022657816003193601126102265760209060a4549051908152f35b9050346106b757826003193601126106b7576020825180926313d4501f60e21b825281305afa92831561076e5780936114ec575b6020836127106107318760a35490611972565b9092506020833d821161151e575b81611507602093836117f5565b8101031261086957509051906127106107316114d9565b3d91506114fa565b5050346102265781600319360112610226576020906001600160a01b03609754169051908152f35b9050346106b757826003193601126106b7578151926313d4501f60e21b845260209384818481305afa9081156116b3578291611686575b5083517ff4c17a6b00000000000000000000000000000000000000000000000000000000815285818581305afa90811561167c57839161164d575b506115ca9161194f565b9184845180927f40bf898b00000000000000000000000000000000000000000000000000000000825281305afa918215611642578092611610575b50506111339161194f565b9091508482813d831161163b575b61162881836117f5565b8101031261086957505161113338611605565b503d61161e565b8451903d90823e3d90fd5b90508581813d8311611675575b61166481836117f5565b810103126106b757516115ca6115c0565b503d61165a565b85513d85823e3d90fd5b90508481813d83116116ac575b61169d81836117f5565b81010312610226575138611585565b503d611693565b84513d84823e3d90fd5b505034610226578160031936011261022657602090609a549051908152f35b83806003193601126108695763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461022657816003193601126102265760209060a3549051908152f35b50503461022657816003193601126102265760209060ff609e541690519015158152f35b50503461022657816003193601126102265760209061271061073160a354609d5490611972565b90600182811c921680156117c1575b60208310146117ab57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117a0565b67ffffffffffffffff81116117df57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176117df57604052565b60405190600082609f549161182b83611791565b808352926001908181169081156118b35750600114611854575b50611852925003836117f5565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106118985750611852935050810160200138611845565b81935090816020925483858a0101520191019091859261187f565b90506020925061185294915060ff191682840152151560051b82010138611845565b60005b8381106118e85750506000910152565b81810151838201526020016118d8565b90602091611911815180928185528580860191016118d5565b601f01601f1916010190565b600435906001600160a01b03821682036106ae57565b67ffffffffffffffff81116117df57601f01601f191660200190565b9190820180921161195c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561195c57565b9190820391821161195c57565b609f54600092916119a282611791565b80825291600190818116908115611a1957506001146119c057505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b848410611a0157505060209250010190565b805460208585018101919091529093019281016119ef565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d10000000000000000000000000000000000000000000000000000000082528260048301528180611a8060248201611992565b03915afa908115611ac457600091611a96575090565b906020823d8211611abc575b81611aaf602093836117f5565b8101031261086957505190565b3d9150611aa2565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611ac457600091611a96575090565b81601f820112156106ae578051611b3481611933565b92611b4260405194856117f5565b818452602082840101116106ae57611b6091602080850191016118d5565b90565b15611b6a57565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611be057565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611c3357565b6382b429006000526004601cfd5b600080809338935af115611c5157565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c9b57603452565b6390b8ec1890526004601cfdfea2646970667358221220bcf9960f9ef235606c69b316e7c0e9008e4b8e514bad0200c970bb36ab8d7e1564736f6c63430008130033", + "nonce": "0xe", + "chainId": "0x14a34" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xc31bb0594110940f9accffc98a9af79453247bdb0fe207057c3acc728b91fd5b", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setErc20QuestAddress(address)", + "arguments": [ + "0x15ef39a70bF0b24383042aB7ED323652659F2aD7" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xc553", + "value": "0x0", + "input": "0x7c93f9ee00000000000000000000000015ef39a70bf0b24383042ab7ed323652659f2ad7", + "nonce": "0xf", + "chainId": "0x14a34" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x43872c", + "logs": [ + { + "address": "0x15ef39a70bf0b24383042ab7ed323652659f2ad7", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xf595ab6dbe7ce00e69af9b02b2f46e0c7206497e02dd9e7e47fbba2a7a1dfba0", + "blockNumber": "0xb5cc1f", + "transactionHash": "0xa493cec4392b0b2c319a241655b2521aa260fb19aafc7de88688416161dc994b", + "transactionIndex": "0xa", + "logIndex": "0x2d", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000080000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xa493cec4392b0b2c319a241655b2521aa260fb19aafc7de88688416161dc994b", + "transactionIndex": "0xa", + "blockHash": "0xf595ab6dbe7ce00e69af9b02b2f46e0c7206497e02dd9e7e47fbba2a7a1dfba0", + "blockNumber": "0xb5cc1f", + "gasUsed": "0x197fdb", + "effectiveGasPrice": "0xf442a", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x15ef39a70bf0b24383042ab7ed323652659f2ad7", + "l1BaseFeeScalar": "0x44d", + "l1BlobBaseFee": "0x2", + "l1BlobBaseFeeScalar": "0xa118b", + "l1Fee": "0x1b615dc64d6", + "l1GasPrice": "0x59ddbc754", + "l1GasUsed": "0x114ba" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x441609", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xc31bb0594110940f9accffc98a9af79453247bdb0fe207057c3acc728b91fd5b", + "transactionIndex": "0xb", + "blockHash": "0xf595ab6dbe7ce00e69af9b02b2f46e0c7206497e02dd9e7e47fbba2a7a1dfba0", + "blockNumber": "0xb5cc1f", + "gasUsed": "0x8edd", + "effectiveGasPrice": "0xf442a", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x44d", + "l1BlobBaseFee": "0x2", + "l1BlobBaseFeeScalar": "0xa118b", + "l1Fee": "0x9e4ee7aaf", + "l1GasPrice": "0x59ddbc754", + "l1GasUsed": "0x640" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719596835, + "chain": 84532, + "commit": "c9330bc" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/10/run-1719429420.json b/broadcast/QuestFactory.s.sol/10/run-1719429420.json new file mode 100644 index 00000000..7ae23068 --- /dev/null +++ b/broadcast/QuestFactory.s.sol/10/run-1719429420.json @@ -0,0 +1,53 @@ +{ + "transactions": [ + { + "hash": "0x02f2ca7583060d2bf7d38dd491a823d1a74b39a80fb3507f3f1e92007a1c6dd2", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x12f", + "chainId": "0xa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x259f0d", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x02f2ca7583060d2bf7d38dd491a823d1a74b39a80fb3507f3f1e92007a1c6dd2", + "transactionIndex": "0x10", + "blockHash": "0x5e6093a243e4140a66969076b236e941ae7e4af6a5765e620c1003d64474021e", + "blockNumber": "0x74447b6", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x18a240e", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x558", + "l1BlobBaseFee": "0x11ee80", + "l1BlobBaseFeeScalar": "0xc5fc5", + "l1Fee": "0x41817040e", + "l1GasPrice": "0x1838015f4", + "l1GasUsed": "0x7ac" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719429420, + "chain": 10, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/10/run-latest.json b/broadcast/QuestFactory.s.sol/10/run-latest.json index 87ef8c39..7ae23068 100644 --- a/broadcast/QuestFactory.s.sol/10/run-latest.json +++ b/broadcast/QuestFactory.s.sol/10/run-latest.json @@ -1,43 +1,20 @@ { "transactions": [ { - "hash": "0x47bf5f08f9b82968e657a2def9d3e69991de9121981226f35398001459a92701", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0xA26810638bD8477E36e31F06590a7c155b1E2552", + "hash": "0x02f2ca7583060d2bf7d38dd491a823d1a74b39a80fb3507f3f1e92007a1c6dd2", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "function": null, "arguments": null, "transaction": { - "type": "0x02", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", - "value": "0x0", - "data": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212207957da406aebba03d6ca779a30b78b85fcc281c0902f0aa064e0027a03da7df964736f6c63430008130033", - "nonce": "0x11e", - "accessList": [] - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0xb225dae2f43f599b53d74c76d92677a96bb1af577bd251fdfadbc15e4e402bb8", - "transactionType": "CALL", - "contractName": "ProxyAdmin", - "contractAddress": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "function": "upgrade(address,address)", - "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0xA26810638bD8477E36e31F06590a7c155b1E2552" - ], - "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0bd", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", "value": "0x0", - "data": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000a26810638bd8477e36e31f06590a7c155b1e2552", - "nonce": "0x11f", - "accessList": [] + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x12f", + "chainId": "0xa" }, "additionalContracts": [], "isFixedGasLimit": false @@ -45,71 +22,32 @@ ], "receipts": [ { - "transactionHash": "0x47bf5f08f9b82968e657a2def9d3e69991de9121981226f35398001459a92701", - "transactionIndex": "0x1", - "blockHash": "0xec13a28df27a5999b0f90c17656136989907dee00fec977105431f638b42a926", - "blockNumber": "0x729346e", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x3ac0fa", - "gasUsed": "0x3a15af", - "contractAddress": "0xA26810638bD8477E36e31F06590a7c155b1E2552", - "logs": [ - { - "address": "0xA26810638bD8477E36e31F06590a7c155b1E2552", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0xec13a28df27a5999b0f90c17656136989907dee00fec977105431f638b42a926", - "blockNumber": "0x729346e", - "transactionHash": "0x47bf5f08f9b82968e657a2def9d3e69991de9121981226f35398001459a92701", - "transactionIndex": "0x1", - "logIndex": "0x0", - "removed": false - } - ], "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000800000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "cumulativeGasUsed": "0x259f0d", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb33e0bb4" - }, - { - "transactionHash": "0xb225dae2f43f599b53d74c76d92677a96bb1af577bd251fdfadbc15e4e402bb8", - "transactionIndex": "0x2", - "blockHash": "0xec13a28df27a5999b0f90c17656136989907dee00fec977105431f638b42a926", - "blockNumber": "0x729346e", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "cumulativeGasUsed": "0x3b581a", - "gasUsed": "0x9720", + "transactionHash": "0x02f2ca7583060d2bf7d38dd491a823d1a74b39a80fb3507f3f1e92007a1c6dd2", + "transactionIndex": "0x10", + "blockHash": "0x5e6093a243e4140a66969076b236e941ae7e4af6a5765e620c1003d64474021e", + "blockNumber": "0x74447b6", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x18a240e", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "contractAddress": null, - "logs": [ - { - "address": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000a26810638bd8477e36e31f06590a7c155b1e2552" - ], - "data": "0x", - "blockHash": "0xec13a28df27a5999b0f90c17656136989907dee00fec977105431f638b42a926", - "blockNumber": "0x729346e", - "transactionHash": "0xb225dae2f43f599b53d74c76d92677a96bb1af577bd251fdfadbc15e4e402bb8", - "transactionIndex": "0x2", - "logIndex": "0x1", - "removed": false - } - ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000001000000000000000000000000000000000000000000080000000000000000000000000000008000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "effectiveGasPrice": "0xb33e0bb4" + "l1BaseFeeScalar": "0x558", + "l1BlobBaseFee": "0x11ee80", + "l1BlobBaseFeeScalar": "0xc5fc5", + "l1Fee": "0x41817040e", + "l1GasPrice": "0x1838015f4", + "l1GasUsed": "0x7ac" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715880602, + "timestamp": 1719429420, "chain": 10, - "commit": "a35a3c3" + "commit": "9f10ed7" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/11155111/run-1719246225.json b/broadcast/QuestFactory.s.sol/11155111/run-1719246225.json new file mode 100644 index 00000000..86e59caf --- /dev/null +++ b/broadcast/QuestFactory.s.sol/11155111/run-1719246225.json @@ -0,0 +1,113 @@ +{ + "transactions": [ + { + "hash": "0x03cb26d4256dfcaa4611fd9266454afe336ec6eb52794f026731a8607aab5a6d", + "transactionType": "CREATE", + "contractName": "QuestFactory", + "contractAddress": "0xdaef24c4582aa974b4618a8e2631c423152186c9", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x4bf164", + "value": "0x0", + "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b6040516143f890816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611ed6575080630b6fc16314611eaf57806311f4b35b14611e9157806313966db514611e7357806313a4057014611df7578063183a4f6e14611dde5780631c10893f14611d7c5780631cd64df414611d4257806323e2c1ba14611d1f5780632569296214611cd457806327b0655f14611c6f5780632de9480714611c3c57806332f58eb514611bf757806343ff27d114611ba95780634a4ee7b114611b80578063514e62fc14611b4757806354d1f13d14611b015780635caf9de114611ac357806364df049e14611a9c57806367dfa3e714611a7a57806370dfd40a1461198c578063715018a6146119465780637c93f9ee146119075780637e4176e3146117d65780637f7c0ef71461122c57806381589b1f1461112357806384ae2bc6146111015780638da5cb5b146110d657806397aba7f91461103f578063a1db1ba414611018578063a2e4459314610fde578063a5454dbd14610f72578063abab135a14610e50578063b4cbdd8b14610e11578063c42fe71814610d7d578063c6eba76614610c78578063cc923e0c14610c51578063ce53b15214610bdd578063d4faaa1714610bb6578063de0580dc14610abe578063e05d39ac146109fc578063e15cfcf514610832578063e1bc3aba146107ca578063e521cb921461075b578063ea22e4ab146106e2578063ec461ac414610660578063ed21bb8314610553578063eddd0d9c14610505578063f01a5934146103cd578063f04e283e1461034c578063f2fde38b146102de578063f8565efd1461029f5763fee81cf40361000f573461029c57602036600319011261029c576102836120d1565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b503461029c57602036600319011261029c576001600160a01b036102c16120d1565b6102c961435e565b166001600160a01b031960cc54161760cc5580f35b50602036600319011261029c576102f36120d1565b6102fb61435e565b8060601b1561033f576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029c576103616120d1565b61036961435e565b63389a75e1600c528082526020600c20805442116103c05790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b50610120908160031936011261029c576103e56120d1565b9067ffffffffffffffff9060a43582811161050157610408903690600401612257565b9160c4358181116104fd57610421903690600401612257565b9460e4358281116104f95761043a903690600401612257565b91610104359081116104f957610454903690600401612257565b91600160d454036104cf576020966104c195600260d455604051956104788761210e565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e08501526101008401528201526132cf565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b503461029c57602036600319011261029c577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561054561435e565b8060d255604051908152a180f35b503461029c576020806003193601126105015760043567ffffffffffffffff81116104fd578160609361058d6105b8933690600401612257565b906040805161059b81612172565b87815287858201520152816040519382858094519384920161234f565b810160cd8152030190209063ffffffff6106546008610641836009870154169461061c604051976105e889612172565b604051610603816105fc81600786016123d2565b03826121e2565b895261061560405180968193016123d2565b03846121e2565b8087019283526040870195865260405197889782895251918801526080870190612468565b9051858203601f19016040870152612468565b91511660608301520390f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760606106ac60206106993660048701612257565b816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c576107576105fc610743600860206107213660048901612321565b9190826040519384928337810160cd81520301902001604051928380926123d2565b604051918291602083526020830190612468565b0390f35b503461029c57602036600319011261029c576001600160a01b0361077d6120d1565b61078561435e565b1680156107a0576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff6107e76120fd565b6107ef61435e565b1661271081116108085761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029c576020908160031936011261029c5760043567ffffffffffffffff811161050157610866903690600401612321565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109d257600101948386541693843b156109ce576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109c3576109ab575b5081906004959697541695604051958680926318cbe5db60e11b82525afa80156109a057869061094e575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c49450610944604051948594604086526040860191612532565b918301520390a280f35b508084813d8311610999575b61096481836121e2565b81010312610994577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c4935161090a565b600080fd5b503d61095a565b6040513d88823e3d90fd5b90600495966109ba849361215e565b969550906108df565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029c57610a0b36612275565b9560409997989995919594929451988451610a2a818c6020890161234f565b8a0160cd815260018b60206001600160a01b039d8e9403019020015416610a94578960cb541615610a6a5760209a610a61996124c6565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029c5761016036600319011261029c576004359063ffffffff8216820361029c57610aea6120e7565b9167ffffffffffffffff60c4358181116104f957610b0c903690600401612257565b9260e43582811161050157610b25903690600401612257565b91610104358181116104fd57610b3f903690600401612257565b916101243591821161029c5750610b5a903690600401612257565b91604051948051610b6f81886020850161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a619560a435916084359160643591604435916124c6565b503461029c578060031936011261029c5760206001600160a01b0360cc5416604051908152f35b50604036600319011261029c5767ffffffffffffffff6004358181116104fd57610c0b903690600401612321565b505060243590811161050157610c25903690600401612321565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029c578060031936011261029c5760206001600160a01b0360d35416604051908152f35b503461029c5760a036600319011261029c5760043567ffffffffffffffff811161050157610caa903690600401612321565b90610cb36120e7565b91606435926001600160a01b03938481168091036109ce578460016040518587823760208187810160cd8152030190200154163303610d53577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d2560405195869560e0875260e0870191612532565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff610d9a6120fd565b610da261435e565b166127108111610de7576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c576001600160a01b03610e336120d1565b610e3b61435e565b166001600160a01b031960c954161760c95580f35b503461029c576101008060031936011261050157610e6c6120d1565b67ffffffffffffffff929060a4358481116104fd57610e8f903690600401612257565b9160c43585811161050157610ea8903690600401612257565b9460e43590811161050157610ec1903690600401612257565b604051948451610ed581886020890161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a61958760405196610f1588612141565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f5261248d565b61012083015260405190610f658261218e565b8152610140820152613901565b503461029c57608036600319011261029c5760243563ffffffff811681036105015767ffffffffffffffff6044358181116104f957610fb5903690600401612257565b9260643591821161029c576107576107438585610fd53660048801612257565b50600435613f8a565b50602036600319011261029c5760043567ffffffffffffffff81116105015761100e611015913690600401612321565b3391612567565b80f35b503461029c578060031936011261029c5760206001600160a01b0360cb5416604051908152f35b503461029c57604036600319011261029c5760243567ffffffffffffffff81116105015736602382011215610501576110bd602092603c61108d6110c5943690602481600401359101612220565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c52206142a4565b919091614172565b6001600160a01b0360405191168152f35b503461029c578060031936011261029c576020638b78c6d819546001600160a01b0360405191168152f35b503461029c578060031936011261029c57602061ffff60da5416604051908152f35b503461029c57610100908160031936011261029c576111406120d1565b67ffffffffffffffff9060a4358281116104f957611162903690600401612257565b9160c4359081116104f95761117b903690600401612257565b5060405192825161119081866020870161234f565b840160cd815260018560206001600160a01b0397889403019020015416610a94578360cb541615610a6a57602094610a619385604051946111d086612141565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516112098161218e565b82815260e08401526040519061121e8261218e565b828252830152610f5261248d565b503461029c57602036600319011261029c5760043567ffffffffffffffff81116105015760206112636112c2923690600401612257565b8361014060405161127381612141565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690829061130f6040516112f4816105fc81600487016123d2565b6112fc613161565b6020815191012090602081519101201490565b156116f0576040516305f5c3df60e21b8152602081600481875afa9081156116e55785916116af575b505b6040519263f7c618c160e01b8452602084600481885afa9384156109a057869461167e575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109c357879461165d575b506040516378e9792560e01b81526020816004818a5afa90811561165257889161161c575b50604051906318cbe5db60e11b82526020826004818b5afa9182156116115789926115d9575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115ce578a94611595575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561158a57906101409998979695949392916101609c98611553575b509061ffff916001600160a01b036040519a6114978c612141565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff9291985061157b9060203d602011611583575b61157381836121e2565b8101906131c5565b97909161147c565b503d611569565b6040513d8d823e3d90fd5b9093506020813d6020116115c6575b816115b1602093836121e2565b810103126115c25751926003611428565b8980fd5b3d91506115a4565b6040513d8c823e3d90fd5b9091506020813d602011611609575b816115f5602093836121e2565b81010312611605575190386113e9565b8880fd5b3d91506115e8565b6040513d8b823e3d90fd5b90506020813d60201161164a575b81611637602093836121e2565b810103126116465751386113c3565b8780fd5b3d915061162a565b6040513d8a823e3d90fd5b61167791945060203d6020116115835761157381836121e2565b923861139e565b6116a191945060203d6020116116a8575b61169981836121e2565b810190613142565b923861135f565b503d61168f565b90506020813d6020116116dd575b816116ca602093836121e2565b810103126116d9575138611338565b8480fd5b3d91506116bd565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117cb578491611799575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116e557859161175c575b509161133a565b90506020813d602011611791575b81611777602093836121e2565b810103126116d9575161ffff811681036116d95738611755565b3d915061176a565b90506020813d6020116117c3575b816117b4602093836121e2565b810103126104f9575138611716565b3d91506117a7565b6040513d86823e3d90fd5b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5761180d60206106993660048601612257565b810160cd8152030190206001600160a01b0380600183015416906118fc6002840154936118ed60038201549360405161184d816105fc81600488016123d2565b60058401549180600686015416906118c46040519361187a856118738160078c016123d2565b03866121e2565b63ffffffff60096040519961189d8b61189681600885016123d2565b038c6121e2565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b0190612468565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e0880152612468565b90848203610100860152612468565b906101208301520390f35b503461029c57602036600319011261029c576001600160a01b036119296120d1565b61193161435e565b166001600160a01b031960cb54161760cb5580f35b508060031936011261029c5761195a61435e565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029c576119a16120d1565b67ffffffffffffffff9160a435838111610501576119c3903690600401612257565b9260c435908111610501576119dc903690600401612257565b50600160d454036104cf576020926104c191600260d45560405191611a008361210e565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a438161218e565b81815260e0830152604051611a578161218e565b81815261010083015260405190611a6d8261218e565b81526101208201526132cf565b503461029c578060031936011261029c57602061ffff60d15416604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360ca5416604051908152f35b50604036600319011261029c5760043567ffffffffffffffff811161050157611af3611015913690600401612321565b611afb6120e7565b91612567565b508060031936011261029c5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029c57604036600319011261029c57611b616120d1565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029c57611015611b986120d1565b611ba061435e565b6024359061437b565b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760206003611be3826106993660048801612257565b810160cd8152030190200154604051908152f35b503461029c57602036600319011261029c576001600160a01b03611c196120d1565b611c2161435e565b1680156107a0576001600160a01b031960d354161760d35580f35b503461029c57602036600319011261029c57611c566120d1565b90638b78c6d8600c5252602080600c2054604051908152f35b503461029c57604036600319011261029c5760043567ffffffffffffffff8111610501576040602092611ca860ff933690600401612257565b6001600160a01b03611cc1611cbb6120e7565b92612372565b9116825284522054166040519015158152f35b508060031936011261029c5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029c57602036600319011261029c57611d3961435e565b60043560dc5580f35b503461029c57604036600319011261029c57602090611d5f6120d1565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029c57611d916120d1565b611d9961435e565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029c576110156004353361437b565b611e0036612275565b94600160d49a979a95929594939454036104cf576020996104c198600260d45563ffffffff60405199611e328b61210e565b1689526001600160a01b03809b168c8a015260408901526060880152608087015260a086015260c085015260e08401526101008301526101208201526132cf565b503461029c578060031936011261029c57602060d254604051908152f35b503461029c578060031936011261029c57602060dc54604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360c95416604051908152f35b9050346105015761010036600319011261050157611ef26120d1565b611efa6120e7565b6044356001600160a01b03928382168092036109ce57606435918483168093036120cd57608435948086168096036116465760c4359561ffff871680970361160557885460ff8160081c16159889809a6120c0575b80156120a9575b15612041575060ff1981166001178a5588612030575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc55611ff95780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611f6c565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611f565750600160ff831614611f56565b50600160ff831610611f4f565b8680fd5b600435906001600160a01b038216820361099457565b602435906001600160a01b038216820361099457565b6004359061ffff8216820361099457565b610140810190811067ffffffffffffffff82111761212b57604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57604052565b6060810190811067ffffffffffffffff82111761212b57604052565b6020810190811067ffffffffffffffff82111761212b57604052565b6040810190811067ffffffffffffffff82111761212b57604052565b6080810190811067ffffffffffffffff82111761212b57604052565b90601f8019910116810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57601f01601f191660200190565b92919261222c82612204565b9161223a60405193846121e2565b829481845281830111610994578281602093846000960137010152565b9080601f830112156109945781602061227293359101612220565b90565b6101406003198201126109945760043563ffffffff8116810361099457916024356001600160a01b0381168103610994579160443591606435916084359160a4359167ffffffffffffffff9060c43582811161099457816122d891600401612257565b9260e43583811161099457826122f091600401612257565b9261010435818111610994578361230991600401612257565b92610124359182116109945761227291600401612257565b9181601f840112156109945782359167ffffffffffffffff8311610994576020838186019501011161099457565b60005b8381106123625750506000910152565b8181015183820152602001612352565b602061238b91816040519382858094519384920161234f565b810160cd81520301902090565b90600182811c921680156123c8575b60208310146123b257565b634e487b7160e01b600052602260045260246000fd5b91607f16916123a7565b90600092918054916123e383612398565b9182825260019384811690816000146124455750600114612405575b50505050565b90919394506000526020928360002092846000945b8386106124315750505050010190388080806123ff565b80548587018301529401938590820161241a565b9294505050602093945060ff191683830152151560051b010190388080806123ff565b906020916124818151809281855285808601910161234f565b601f01601f1916010190565b6040519061249a826121aa565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b979593916001600160a01b036122729a9896949263ffffffff6040519b6124ec8d612141565b168b521660208a015260408901526060880152608087015260a086015260c085015260e084015261010083015261252161248d565b610120830152610140820152613901565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361099457565b612575919392933691612220565b9160609280518061305f575b505060c083805181010312610994576020830151926040810151916060820151916125ae60808201612553565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109945760c001519063ffffffff82168203610994576040516125fc816121aa565b60108082527f303132333435363738396162636465660000000000000000000000000000000060208301526040519461263486612172565b6024865260208601926040368537600091825b848110612f665750505050506001600160a01b03979893886126a96106156126ec98966126e0966126a4600761268d60206126cd9a604051809381928d5192839161234f565b810160cd81520301902001604051948580926123d2565b613f8a565b956040519a8b961660208701521660408501526080606085015260a0840190612468565b601f199384848303016080850152612468565b039081018552846121e2565b8060ff1c601b8110612f54575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b16606082015260418152612761816121c6565b8151820191608081602085019403126109945761278060208201612553565b9161278d60408301612553565b92606083015167ffffffffffffffff90818111610994578660206127b392870101613100565b9560808501519182116109945760206127ce92860101613100565b9260405160208188516127e48183858d0161234f565b810160cd8152030190206003810154600181018111612f3e5760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612c5457600096612f15575b506110bd61287391600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c86206142a4565b6001600160a01b038060c95416911603612eeb5760d2543410612ec1576001600160a01b03841683528160205260ff604084205416612e975760028201546001820111612e6d576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a16604483015260448252612946826121c6565b6020825192019034905af13d15612e68573d61296181612204565b9061296f60405192836121e2565b81528360203d92013e5b15612e3e5760046112f4826001600160a01b0360016129eb9501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129d86001600160a01b038c16946020830190612468565b0390a36105fc60405180948193016123d2565b15612d9257506040516305f5c3df60e21b8152602081600481875afa908115612c5457600091612d60575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d823433160405180612a546001600160a01b03881694898d8461319a565b0390a35b6001600160a01b038516612a6f575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612c5457600091612d2e575b5060dc541015612c945760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612c5457600092612c60575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612c5457600094612c19575b50976001600160a01b03819795612be39997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b90957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a0190612468565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e0860190612468565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a1388080808080612a67565b90936020823d602011612c4c575b81612c34602093836121e2565b8101031261029c575051926001600160a01b03612b20565b3d9150612c27565b6040513d6000823e3d90fd5b90916020823d602011612c8c575b81612c7b602093836121e2565b8101031261029c5750519038612ae0565b3d9150612c6e565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612be396946001600160a01b0360d2549260405193849360c0855283612d0360c087018d612468565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612bc1565b906020823d602011612d58575b81612d48602093836121e2565b8101031261029c57505138612a94565b3d9150612d3b565b906020823d602011612d8a575b81612d7a602093836121e2565b8101031261029c57505138612a16565b3d9150612d6d565b6040516369d2dc0560e01b8152602081600481885afa918215612e32578092612dfd575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612df56001600160a01b03881694898d8461319a565b0390a3612a58565b9091506020823d602011612e2a575b81612e19602093836121e2565b8101031261029c5750513880612db6565b3d9150612e0c565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612979565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b612873919650612f366110bd9160203d6020116116a85761169981836121e2565b969150612832565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612f3e57906126f9565b6004898183148015613055575b801561304b575b8015613041575b61300f575b612fea612fe28493612fcc938761300a971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c61414b565b51169a612fd88161413c565b9b60001a9261414b565b53168661414b565b511694613004612ff98261413c565b9660001a918c61414b565b5361413c565b612647565b94612fea612fe261300a9493602d6130348561302e612fcc979161413c565b9b61414b565b5393945050505089612f86565b50600a8314612f81565b5060088314612f7a565b5060068314612f73565b6040516004830180518019825260208301975090959284019491935b8097868210156130db5760018092019860ff808b51169182156130a6575050815301955b959661307b565b60020180516000198552909b50607f92509084908216838111156130d0575b50501601019561309f565b0138843983386130c5565b91909652838103601f1901845260008152602001604052919450925090503880612581565b81601f8201121561099457805161311681612204565b9261312460405194856121e2565b8184526020828401011161099457612272916020808501910161234f565b9081602091031261099457516001600160a01b03811681036109945790565b6040519061316e826121aa565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131ba60409396959496606084526060840190612468565b951660208201520152565b90816020910312610994575180151581036109945790565b8181106131e8575050565b600081556001016131dd565b9190601f811161320357505050565b61322f926000526020600020906020601f840160051c83019310613231575b601f0160051c01906131dd565b565b9091508190613222565b979461329f6001600160a01b03956132916101409c999f9e9d9a966132838d63ffffffff986132756132ad99610160808552840190612468565b916020818403910152612468565b8d810360408f015290612468565b908b820360608d01526123d2565b9089820360808b0152612468565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c0820151916132e1600093612372565b60018101916001600160a01b03835416610a945760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b03909216919061334581607481015b03601f1981018352826121e2565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f580156138f4576001600160a01b0390866021521692836001600160a01b0319825416179055608081015160028301556133b66004830154612398565b601f81116138d2575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116138445781906134638261345a6007880154612398565b600788016131f4565b602090601f8311600114613863578892613858575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116138445781906134c4826134bb6008880154612398565b600888016131f4565b602090601f83116001146137d55788926137ca575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b156120cd576135a59360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e4830190612468565b038183885af180156109a0576137b7575b50846001600160a01b0360208301511660a08301516080840151823b156104f95760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af18015613798576137a3575b5050823b156116d957846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af1801561379857613784575b5050823b156116d9576040519463f2fde38b60e01b8652336004870152808660248183885af19586156137775784959661375b575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516137556101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c61323b565b0390a390565b81929394506137699061215e565b61029c5790818493926136d7565b50604051903d90823e3d90fd5b61378d9061215e565b6116d95784386136a2565b6040513d84823e3d90fd5b6137ac9061215e565b6116d957843861365e565b6137c39095919561215e565b93386135b6565b0151905038806134d9565b9250600885018852602088209088935b601f1984168510613829576001945083601f19811610613810575b505050811b0160088301556134f1565b015160001960f88460031b161c19169055388080613800565b818101518355602094850194600190930192909101906137e5565b602487634e487b7160e01b81526041600452fd5b015190503880613478565b9250600785018852602088209088935b601f19841685106138b7576001945083601f1981161061389e575b505050811b016007830155613490565b015160001960f88460031b161c1916905538808061388e565b81810151835560209485019460019093019290910190613873565b600483018652602086206138ee91601f0160051c8101906131dd565b386133bf565b633011642586526004601cfd5b60c0810151613911600091612372565b916001600160a01b0360cb54166040516020810190613959816133374246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f7d5760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e75578190613a3f82613a366004870154612398565b600487016131f4565b602090601f8311600114613f0e578692613f03575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e75578190613a9f82613a966007870154612398565b600787016131f4565b602090601f8311600114613e94578692613e89575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e75578190613b0082613af76008870154612398565b600887016131f4565b602090601f8311600114613e06578692613dfb575b50508160011b916000199060031b1c19161760088201555b815163ffffffff1690600981018263ffffffff19825416179055610140830151906101008401519060c08501519060e0860151928860208801516001600160a01b03169560408901958987519860608201998a519160808401519360a0019c8d5195604051996001600160a01b038b9a169c339c60040191613baf9a8c61323b565b037fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd91a360208401516001600160a01b03169051915192608085015190519060c086015160d15461ffff169260ca546001600160a01b0316926001600160a01b038b163b156115c25791613c7a918a9796959493604051998a9889987ffb96aa2e000000000000000000000000000000000000000000000000000000008a5260048a0152602489015260448801526064870152608486015261010060a4860152610104850190612468565b9160c484015260e48301520381836001600160a01b0389165af18015613dd357613dde575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613dd35783908192613d9e575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d915781606052806040526001600160a01b0383163b156105015763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561379857613d7f57505090565b613d89829161215e565b61029c575090565b637939f42482526004601cfd5b9150506020813d602011613dcb575b81613dba602093836121e2565b810103126109945751826064613cf6565b3d9150613dad565b6040513d85823e3d90fd5b6001600160a01b039192613df360209261215e565b929150613c9f565b015190503880613b15565b9250600884018652602086209086935b601f1984168510613e5a576001945083601f19811610613e41575b505050811b016008820155613b2d565b015160001960f88460031b161c19169055388080613e31565b81810151835560209485019460019093019290910190613e16565b602485634e487b7160e01b81526041600452fd5b015190503880613ab4565b9250600784018652602086209086935b601f1984168510613ee8576001945083601f19811610613ecf575b505050811b016007820155613acc565b015160001960f88460031b161c19169055388080613ebf565b81810151835560209485019460019093019290910190613ea4565b015190503880613a54565b9250600484018652602086209086935b601f1984168510613f62576001945083601f19811610613f49575b505050811b016004820155613a6c565b015160001960f88460031b161c19169055388080613f39565b81810151835560209485019460019093019290910190613f1e565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613fe45790613fbb565b50905061412e57601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a90603082820601845304918261401c5791506140be612272966062966080856140889b81019503018452519889967f7b22616374696f6e5478486173686573223a5b22000000000000000000000000602089015251809260348901906001190161234f565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b000000006034840152518093605084019061234f565b017f5d2c22616374696f6e54797065223a220000000000000000000000000000000060508201526140f982518093602060608501910161234f565b017f227d00000000000000000000000000000000000000000000000000000000000060608201520360428101845201826121e2565b632194895a6000526004601cfd5b6000198114612f3e5760010190565b90815181101561415c570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561428e57806141835750565b600181036141cf57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b6002810361421b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b60031461422457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b9060418151146000146142d2576142ce916020820151906060604084015193015160001a906142dc565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143525791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137775781516001600160a01b0381161561434c579190565b50600190565b50505050600090600390565b638b78c6d81954330361436d57565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212203e7fc49d11f35efc0ae6db80e30dee7264fabb42e7ad8ab7ee6080091a8cda0064736f6c63430008130033", + "nonce": "0x193", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x3084c04de5571dee36696d33ff44644e80d7f6dce15715ad33141e1290cc4545", + "transactionType": "CALL", + "contractName": "ProxyAdmin", + "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "function": "upgrade(address,address)", + "arguments": [ + "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", + "0xDaeF24C4582Aa974B4618a8e2631c423152186C9" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "gas": "0xd0bd", + "value": "0x0", + "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000daef24c4582aa974b4618a8e2631c423152186c9", + "nonce": "0x194", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0xff53b9", + "logs": [ + { + "address": "0xdaef24c4582aa974b4618a8e2631c423152186c9", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000001", + "blockHash": "0x5ced38985a553fbd703a379c75484abad353c082b2da219ff285f71f4af44951", + "blockNumber": "0x5e42bf", + "transactionHash": "0x03cb26d4256dfcaa4611fd9266454afe336ec6eb52794f026731a8607aab5a6d", + "transactionIndex": "0x66", + "logIndex": "0x9e", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000004000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x03cb26d4256dfcaa4611fd9266454afe336ec6eb52794f026731a8607aab5a6d", + "transactionIndex": "0x66", + "blockHash": "0x5ced38985a553fbd703a379c75484abad353c082b2da219ff285f71f4af44951", + "blockNumber": "0x5e42bf", + "gasUsed": "0x3a6f3f", + "effectiveGasPrice": "0x4bda814f4", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xdaef24c4582aa974b4618a8e2631c423152186c9" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0xffead9", + "logs": [ + { + "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x000000000000000000000000daef24c4582aa974b4618a8e2631c423152186c9" + ], + "data": "0x", + "blockHash": "0x5ced38985a553fbd703a379c75484abad353c082b2da219ff285f71f4af44951", + "blockNumber": "0x5e42bf", + "transactionHash": "0x3084c04de5571dee36696d33ff44644e80d7f6dce15715ad33141e1290cc4545", + "transactionIndex": "0x67", + "logIndex": "0x9f", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000002000000000000000000000400000000000000040000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x3084c04de5571dee36696d33ff44644e80d7f6dce15715ad33141e1290cc4545", + "transactionIndex": "0x67", + "blockHash": "0x5ced38985a553fbd703a379c75484abad353c082b2da219ff285f71f4af44951", + "blockNumber": "0x5e42bf", + "gasUsed": "0x9720", + "effectiveGasPrice": "0x4bda814f4", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719246225, + "chain": 11155111, + "commit": "42a9cc2" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/11155111/run-1719249950.json b/broadcast/QuestFactory.s.sol/11155111/run-1719249950.json new file mode 100644 index 00000000..95e4d835 --- /dev/null +++ b/broadcast/QuestFactory.s.sol/11155111/run-1719249950.json @@ -0,0 +1,47 @@ +{ + "transactions": [ + { + "hash": "0x46b08ba8ceb5c8759f9b53accfee98f5201af9aa2854531e81651c60ba066883", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x197", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x78ba80", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x46b08ba8ceb5c8759f9b53accfee98f5201af9aa2854531e81651c60ba066883", + "transactionIndex": "0x3f", + "blockHash": "0x44461736fc1e4e06bd05c0cb28510593ffc3d39f61f0a2ea3a361081a556ba30", + "blockNumber": "0x5e43f9", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x3f25c9071", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719249950, + "chain": 11155111, + "commit": "42a9cc2" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/11155111/run-latest.json b/broadcast/QuestFactory.s.sol/11155111/run-latest.json index 81a80439..95e4d835 100644 --- a/broadcast/QuestFactory.s.sol/11155111/run-latest.json +++ b/broadcast/QuestFactory.s.sol/11155111/run-latest.json @@ -1,40 +1,19 @@ { "transactions": [ { - "hash": "0x13a901b384d6ee12dcb4bc259b787863845d802e8cb1dd1e1855893334a62af4", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0xceebfa1802aaf791d4bc7c5e756a825e2255476a", + "hash": "0x46b08ba8ceb5c8759f9b53accfee98f5201af9aa2854531e81651c60ba066883", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "function": null, "arguments": null, "transaction": { "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", - "value": "0x0", - "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea2646970667358221220e7dba0ba70c67946a5160329c823fbf41a0e980abffed1164a80b4d93ff9cc2764736f6c63430008130033", - "nonce": "0x18c", - "chainId": "0xaa36a7" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x2f33c9337aa460c0f91a1856a78227b0714c36e4f5fea2d852d8a0250a57468b", - "transactionType": "CALL", - "contractName": null, - "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "function": "upgrade(address,address)", - "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0xCEebfA1802AAF791D4bC7c5E756a825E2255476a" - ], - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0bd", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", "value": "0x0", - "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000ceebfa1802aaf791d4bc7c5e756a825e2255476a", - "nonce": "0x18d", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x197", "chainId": "0xaa36a7" }, "additionalContracts": [], @@ -44,70 +23,25 @@ "receipts": [ { "status": "0x1", - "cumulativeGasUsed": "0x77a832", - "logs": [ - { - "address": "0xceebfa1802aaf791d4bc7c5e756a825e2255476a", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0xd8fd59a99a0d6f47fbbab4a29b19f7f91bf8841bccd4c1af32848ee5ac45b7e4", - "blockNumber": "0x5a13f0", - "transactionHash": "0x13a901b384d6ee12dcb4bc259b787863845d802e8cb1dd1e1855893334a62af4", - "transactionIndex": "0x21", - "logIndex": "0x5e", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000004000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0x13a901b384d6ee12dcb4bc259b787863845d802e8cb1dd1e1855893334a62af4", - "transactionIndex": "0x21", - "blockHash": "0xd8fd59a99a0d6f47fbbab4a29b19f7f91bf8841bccd4c1af32848ee5ac45b7e4", - "blockNumber": "0x5a13f0", - "gasUsed": "0x3a15af", - "effectiveGasPrice": "0x376c76c70", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": null, - "contractAddress": "0xceebfa1802aaf791d4bc7c5e756a825e2255476a" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x783f52", - "logs": [ - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000ceebfa1802aaf791d4bc7c5e756a825e2255476a" - ], - "data": "0x", - "blockHash": "0xd8fd59a99a0d6f47fbbab4a29b19f7f91bf8841bccd4c1af32848ee5ac45b7e4", - "blockNumber": "0x5a13f0", - "transactionHash": "0x2f33c9337aa460c0f91a1856a78227b0714c36e4f5fea2d852d8a0250a57468b", - "transactionIndex": "0x22", - "logIndex": "0x5f", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000002000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000", + "cumulativeGasUsed": "0x78ba80", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "transactionHash": "0x2f33c9337aa460c0f91a1856a78227b0714c36e4f5fea2d852d8a0250a57468b", - "transactionIndex": "0x22", - "blockHash": "0xd8fd59a99a0d6f47fbbab4a29b19f7f91bf8841bccd4c1af32848ee5ac45b7e4", - "blockNumber": "0x5a13f0", - "gasUsed": "0x9720", - "effectiveGasPrice": "0x376c76c70", + "transactionHash": "0x46b08ba8ceb5c8759f9b53accfee98f5201af9aa2854531e81651c60ba066883", + "transactionIndex": "0x3f", + "blockHash": "0x44461736fc1e4e06bd05c0cb28510593ffc3d39f61f0a2ea3a361081a556ba30", + "blockNumber": "0x5e43f9", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x3f25c9071", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "contractAddress": null } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715718479, + "timestamp": 1719249950, "chain": 11155111, - "commit": "dda03a1" + "commit": "42a9cc2" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/137/run-1719429110.json b/broadcast/QuestFactory.s.sol/137/run-1719429110.json new file mode 100644 index 00000000..b685ecbf --- /dev/null +++ b/broadcast/QuestFactory.s.sol/137/run-1719429110.json @@ -0,0 +1,64 @@ +{ + "transactions": [ + { + "hash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0xe5", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x613541", + "logs": [ + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c", + "0x0000000000000000000000007c7379531b2aee82e4ca06d4175d13b9cbeafd49" + ], + "data": "0x0000000000000000000000000000000000000000000000000003eb4a77ca84000000000000000000000000000000000000000000000000121652fb6200f98be8000000000000000000000000000000000000000000030b04e742fc2f8eb9e835000000000000000000000000000000000000000000000012164f1017892f07e8000000000000000000000000000000000000000000030b04e746e77a06846c35", + "blockHash": "0xb101f8a97c027b660a23afc9a5ab28b0f1adebb30fd6a46b8905fdd83f9a7f1a", + "blockNumber": "0x37ec729", + "transactionHash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983", + "transactionIndex": "0x48", + "logIndex": "0xe8", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000008000000000000000000000000000000000000000000000000400000000800000000000400000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000200000000004000000000000000000001000000000000000100000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000", + "type": "0x2", + "transactionHash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983", + "transactionIndex": "0x48", + "blockHash": "0xb101f8a97c027b660a23afc9a5ab28b0f1adebb30fd6a46b8905fdd83f9a7f1a", + "blockNumber": "0x37ec729", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x6fc23ac39", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719429110, + "chain": 137, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/137/run-latest.json b/broadcast/QuestFactory.s.sol/137/run-latest.json index abd5ec9e..b685ecbf 100644 --- a/broadcast/QuestFactory.s.sol/137/run-latest.json +++ b/broadcast/QuestFactory.s.sol/137/run-latest.json @@ -1,43 +1,20 @@ { "transactions": [ { - "hash": "0x49cbe6b904c313d451add55962b2493f3e4ec6037aaca1008283d053d0ed7ecf", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0x642bF786A3987473998a245fdf0A1E09f4EFA81b", + "hash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "function": null, "arguments": null, "transaction": { - "type": "0x02", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", - "value": "0x0", - "data": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212207957da406aebba03d6ca779a30b78b85fcc281c0902f0aa064e0027a03da7df964736f6c63430008130033", - "nonce": "0xda", - "accessList": [] - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x1e34d3a8f680caa88386517af9f4184a8f8d299b3c86e62cb0fc603bbffb0213", - "transactionType": "CALL", - "contractName": "ProxyAdmin", - "contractAddress": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "function": "upgrade(address,address)", - "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0x642bF786A3987473998a245fdf0A1E09f4EFA81b" - ], - "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0bd", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", "value": "0x0", - "data": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000642bf786a3987473998a245fdf0a1e09f4efa81b", - "nonce": "0xdb", - "accessList": [] + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0xe5", + "chainId": "0x89" }, "additionalContracts": [], "isFixedGasLimit": false @@ -45,103 +22,43 @@ ], "receipts": [ { - "transactionHash": "0x49cbe6b904c313d451add55962b2493f3e4ec6037aaca1008283d053d0ed7ecf", - "transactionIndex": "0x99", - "blockHash": "0xa9404172ba9a75b60fb90a2ba83bfcae4d59e3b9a5fb2d406ae2106575941933", - "blockNumber": "0x3665e86", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x146446b", - "gasUsed": "0x3a15af", - "contractAddress": "0x642bF786A3987473998a245fdf0A1E09f4EFA81b", - "logs": [ - { - "address": "0x642bF786A3987473998a245fdf0A1E09f4EFA81b", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0xa9404172ba9a75b60fb90a2ba83bfcae4d59e3b9a5fb2d406ae2106575941933", - "blockNumber": "0x3665e86", - "transactionHash": "0x49cbe6b904c313d451add55962b2493f3e4ec6037aaca1008283d053d0ed7ecf", - "transactionIndex": "0x99", - "logIndex": "0x257", - "removed": false - }, - { - "address": "0x0000000000000000000000000000000000001010", - "topics": [ - "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", - "0x0000000000000000000000000000000000000000000000000000000000001010", - "0x000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c", - "0x0000000000000000000000001d25c827abd466387bda00b429fe728627d6eee6" - ], - "data": "0x00000000000000000000000000000000000000000000000001c0727cb48727a70000000000000000000000000000000000000000000000121d64d086a021f726000000000000000000000000000000000000000000000422caaf390c2a2030e40000000000000000000000000000000000000000000000121ba45e09eb9acf7f000000000000000000000000000000000000000000000422cc6fab88dea7588b", - "blockHash": "0xa9404172ba9a75b60fb90a2ba83bfcae4d59e3b9a5fb2d406ae2106575941933", - "blockNumber": "0x3665e86", - "transactionHash": "0x49cbe6b904c313d451add55962b2493f3e4ec6037aaca1008283d053d0ed7ecf", - "transactionIndex": "0x99", - "logIndex": "0x258", - "removed": false - } - ], "status": "0x1", - "logsBloom": "0x00000000000000000000002000000000000000000000000010000004000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000400000000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000080000000000000000000208000000000000000000000000400000000000000000000000200000000004000000000000000000001000000040000000100000000000000100000000000004000000000000000000000040000000000000000000000000000000000100000", - "type": "0x2", - "effectiveGasPrice": "0xade3014cd" - }, - { - "transactionHash": "0x1e34d3a8f680caa88386517af9f4184a8f8d299b3c86e62cb0fc603bbffb0213", - "transactionIndex": "0x9a", - "blockHash": "0xa9404172ba9a75b60fb90a2ba83bfcae4d59e3b9a5fb2d406ae2106575941933", - "blockNumber": "0x3665e86", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "cumulativeGasUsed": "0x146db8b", - "gasUsed": "0x9720", - "contractAddress": null, + "cumulativeGasUsed": "0x613541", "logs": [ - { - "address": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000642bf786a3987473998a245fdf0a1e09f4efa81b" - ], - "data": "0x", - "blockHash": "0xa9404172ba9a75b60fb90a2ba83bfcae4d59e3b9a5fb2d406ae2106575941933", - "blockNumber": "0x3665e86", - "transactionHash": "0x1e34d3a8f680caa88386517af9f4184a8f8d299b3c86e62cb0fc603bbffb0213", - "transactionIndex": "0x9a", - "logIndex": "0x259", - "removed": false - }, { "address": "0x0000000000000000000000000000000000001010", "topics": [ "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c", - "0x0000000000000000000000001d25c827abd466387bda00b429fe728627d6eee6" + "0x0000000000000000000000007c7379531b2aee82e4ca06d4175d13b9cbeafd49" ], - "data": "0x00000000000000000000000000000000000000000000000000048ec58d8640200000000000000000000000000000000000000000000000121aed8dfa151cee03000000000000000000000000000000000000000000000422cc6fab88dea7588b0000000000000000000000000000000000000000000000121ae8ff348796ade3000000000000000000000000000000000000000000000422cc743a4e6c2d98ab", - "blockHash": "0xa9404172ba9a75b60fb90a2ba83bfcae4d59e3b9a5fb2d406ae2106575941933", - "blockNumber": "0x3665e86", - "transactionHash": "0x1e34d3a8f680caa88386517af9f4184a8f8d299b3c86e62cb0fc603bbffb0213", - "transactionIndex": "0x9a", - "logIndex": "0x25a", + "data": "0x0000000000000000000000000000000000000000000000000003eb4a77ca84000000000000000000000000000000000000000000000000121652fb6200f98be8000000000000000000000000000000000000000000030b04e742fc2f8eb9e835000000000000000000000000000000000000000000000012164f1017892f07e8000000000000000000000000000000000000000000030b04e746e77a06846c35", + "blockHash": "0xb101f8a97c027b660a23afc9a5ab28b0f1adebb30fd6a46b8905fdd83f9a7f1a", + "blockNumber": "0x37ec729", + "transactionHash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983", + "transactionIndex": "0x48", + "logIndex": "0xe8", "removed": false } ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000440000000000000010000004000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000400000002800000000000000000000500000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000200000000004000000020000000000001000000000000002100000000000000100080000000000000000000000000000000040000000000000000000000000000000000100000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000008000000000000000000000000000000000000000000000000400000000800000000000400000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000200000000004000000000000000000001000000000000000100000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000", "type": "0x2", - "effectiveGasPrice": "0xade3014cd" + "transactionHash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983", + "transactionIndex": "0x48", + "blockHash": "0xb101f8a97c027b660a23afc9a5ab28b0f1adebb30fd6a46b8905fdd83f9a7f1a", + "blockNumber": "0x37ec729", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x6fc23ac39", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715878936, + "timestamp": 1719429110, "chain": 137, - "commit": "a35a3c3" + "commit": "9f10ed7" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/42161/run-1719429647.json b/broadcast/QuestFactory.s.sol/42161/run-1719429647.json new file mode 100644 index 00000000..fac7a2ca --- /dev/null +++ b/broadcast/QuestFactory.s.sol/42161/run-1719429647.json @@ -0,0 +1,49 @@ +{ + "transactions": [ + { + "hash": "0x767e5fd57c5bf64013a94827b149fa6591925094404a8021c3d56be0438eae91", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xbc93", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0xd0", + "chainId": "0xa4b1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x2eb66", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x767e5fd57c5bf64013a94827b149fa6591925094404a8021c3d56be0438eae91", + "transactionIndex": "0x4", + "blockHash": "0x35d9d61b2acd28362917927deb05ec0750d52386bddb79870153c1c9e241de45", + "blockNumber": "0xd78a1f3", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x989680", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "gasUsedForL1": "0x0", + "l1BlockNumber": "0x133e3f6" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719429647, + "chain": 42161, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/42161/run-latest.json b/broadcast/QuestFactory.s.sol/42161/run-latest.json index a18b889f..fac7a2ca 100644 --- a/broadcast/QuestFactory.s.sol/42161/run-latest.json +++ b/broadcast/QuestFactory.s.sol/42161/run-latest.json @@ -1,43 +1,20 @@ { "transactions": [ { - "hash": "0xae27c98d6295316134420cc14ee8ef57f540c5bb536c0624999190e1ed718682", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0x7Cbc27954f6F4a9aB3258A46b911a9cBf76EECcD", + "hash": "0x767e5fd57c5bf64013a94827b149fa6591925094404a8021c3d56be0438eae91", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "function": null, "arguments": null, "transaction": { - "type": "0x02", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x620c4f", - "value": "0x0", - "data": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212207957da406aebba03d6ca779a30b78b85fcc281c0902f0aa064e0027a03da7df964736f6c63430008130033", - "nonce": "0xc5", - "accessList": [] - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x9bdf619b327393c167834db2bbd2e58407f76faefebea225a01186983225d6f8", - "transactionType": "CALL", - "contractName": "ProxyAdmin", - "contractAddress": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "function": "upgrade(address,address)", - "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0x7Cbc27954f6F4a9aB3258A46b911a9cBf76EECcD" - ], - "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0bd", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xbc93", "value": "0x0", - "data": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e0000000000000000000000007cbc27954f6f4a9ab3258a46b911a9cbf76eeccd", - "nonce": "0xc6", - "accessList": [] + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0xd0", + "chainId": "0xa4b1" }, "additionalContracts": [], "isFixedGasLimit": false @@ -45,71 +22,28 @@ ], "receipts": [ { - "transactionHash": "0xae27c98d6295316134420cc14ee8ef57f540c5bb536c0624999190e1ed718682", - "transactionIndex": "0x4", - "blockHash": "0x2c53aef6f9030584d00e71e1efd45230b9ada596f4d5f9d101bfbe532d613163", - "blockNumber": "0xca1a8dc", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x501c68", - "gasUsed": "0x49a325", - "contractAddress": "0x7Cbc27954f6F4a9aB3258A46b911a9cBf76EECcD", - "logs": [ - { - "address": "0x7Cbc27954f6F4a9aB3258A46b911a9cBf76EECcD", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0x2c53aef6f9030584d00e71e1efd45230b9ada596f4d5f9d101bfbe532d613163", - "blockNumber": "0xca1a8dc", - "transactionHash": "0xae27c98d6295316134420cc14ee8ef57f540c5bb536c0624999190e1ed718682", - "transactionIndex": "0x4", - "logIndex": "0x7", - "removed": false - } - ], "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000020000000000000000400000000000000000000000000000000000000000000000000000000000000040000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "cumulativeGasUsed": "0x2eb66", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0x989680" - }, - { - "transactionHash": "0x9bdf619b327393c167834db2bbd2e58407f76faefebea225a01186983225d6f8", - "transactionIndex": "0x2", - "blockHash": "0x7f287a7b5670e219b15007fd75725404799db06a802a8788019ff27e6e897f42", - "blockNumber": "0xca1a8fc", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "cumulativeGasUsed": "0xbecd8", - "gasUsed": "0xe4e3", + "transactionHash": "0x767e5fd57c5bf64013a94827b149fa6591925094404a8021c3d56be0438eae91", + "transactionIndex": "0x4", + "blockHash": "0x35d9d61b2acd28362917927deb05ec0750d52386bddb79870153c1c9e241de45", + "blockNumber": "0xd78a1f3", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x989680", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "contractAddress": null, - "logs": [ - { - "address": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000007cbc27954f6f4a9ab3258a46b911a9cbf76eeccd" - ], - "data": "0x", - "blockHash": "0x7f287a7b5670e219b15007fd75725404799db06a802a8788019ff27e6e897f42", - "blockNumber": "0xca1a8fc", - "transactionHash": "0x9bdf619b327393c167834db2bbd2e58407f76faefebea225a01186983225d6f8", - "transactionIndex": "0x2", - "logIndex": "0x10", - "removed": false - } - ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000002000000000000010000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "effectiveGasPrice": "0x989680" + "gasUsedForL1": "0x0", + "l1BlockNumber": "0x133e3f6" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715880985, + "timestamp": 1719429647, "chain": 42161, - "commit": "a35a3c3" + "commit": "9f10ed7" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/666666666/run-1719425769.json b/broadcast/QuestFactory.s.sol/666666666/run-1719425769.json new file mode 100644 index 00000000..e9d6413e --- /dev/null +++ b/broadcast/QuestFactory.s.sol/666666666/run-1719425769.json @@ -0,0 +1,117 @@ +{ + "transactions": [ + { + "hash": "0xc25d48bb1147ac73b0481670813cb32befc5e01150255271409e7703db901001", + "transactionType": "CREATE", + "contractName": "QuestFactory", + "contractAddress": "0xd01716fd8fd62749cde6761e64d36f76d03d52d9", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x4bf164", + "value": "0x0", + "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b6040516143f890816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611ed6575080630b6fc16314611eaf57806311f4b35b14611e9157806313966db514611e7357806313a4057014611df7578063183a4f6e14611dde5780631c10893f14611d7c5780631cd64df414611d4257806323e2c1ba14611d1f5780632569296214611cd457806327b0655f14611c6f5780632de9480714611c3c57806332f58eb514611bf757806343ff27d114611ba95780634a4ee7b114611b80578063514e62fc14611b4757806354d1f13d14611b015780635caf9de114611ac357806364df049e14611a9c57806367dfa3e714611a7a57806370dfd40a1461198c578063715018a6146119465780637c93f9ee146119075780637e4176e3146117d65780637f7c0ef71461122c57806381589b1f1461112357806384ae2bc6146111015780638da5cb5b146110d657806397aba7f91461103f578063a1db1ba414611018578063a2e4459314610fde578063a5454dbd14610f72578063abab135a14610e50578063b4cbdd8b14610e11578063c42fe71814610d7d578063c6eba76614610c78578063cc923e0c14610c51578063ce53b15214610bdd578063d4faaa1714610bb6578063de0580dc14610abe578063e05d39ac146109fc578063e15cfcf514610832578063e1bc3aba146107ca578063e521cb921461075b578063ea22e4ab146106e2578063ec461ac414610660578063ed21bb8314610553578063eddd0d9c14610505578063f01a5934146103cd578063f04e283e1461034c578063f2fde38b146102de578063f8565efd1461029f5763fee81cf40361000f573461029c57602036600319011261029c576102836120d1565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b503461029c57602036600319011261029c576001600160a01b036102c16120d1565b6102c961435e565b166001600160a01b031960cc54161760cc5580f35b50602036600319011261029c576102f36120d1565b6102fb61435e565b8060601b1561033f576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029c576103616120d1565b61036961435e565b63389a75e1600c528082526020600c20805442116103c05790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b50610120908160031936011261029c576103e56120d1565b9067ffffffffffffffff9060a43582811161050157610408903690600401612257565b9160c4358181116104fd57610421903690600401612257565b9460e4358281116104f95761043a903690600401612257565b91610104359081116104f957610454903690600401612257565b91600160d454036104cf576020966104c195600260d455604051956104788761210e565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e08501526101008401528201526132cf565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b503461029c57602036600319011261029c577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561054561435e565b8060d255604051908152a180f35b503461029c576020806003193601126105015760043567ffffffffffffffff81116104fd578160609361058d6105b8933690600401612257565b906040805161059b81612172565b87815287858201520152816040519382858094519384920161234f565b810160cd8152030190209063ffffffff6106546008610641836009870154169461061c604051976105e889612172565b604051610603816105fc81600786016123d2565b03826121e2565b895261061560405180968193016123d2565b03846121e2565b8087019283526040870195865260405197889782895251918801526080870190612468565b9051858203601f19016040870152612468565b91511660608301520390f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760606106ac60206106993660048701612257565b816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c576107576105fc610743600860206107213660048901612321565b9190826040519384928337810160cd81520301902001604051928380926123d2565b604051918291602083526020830190612468565b0390f35b503461029c57602036600319011261029c576001600160a01b0361077d6120d1565b61078561435e565b1680156107a0576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff6107e76120fd565b6107ef61435e565b1661271081116108085761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029c576020908160031936011261029c5760043567ffffffffffffffff811161050157610866903690600401612321565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109d257600101948386541693843b156109ce576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109c3576109ab575b5081906004959697541695604051958680926318cbe5db60e11b82525afa80156109a057869061094e575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c49450610944604051948594604086526040860191612532565b918301520390a280f35b508084813d8311610999575b61096481836121e2565b81010312610994577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c4935161090a565b600080fd5b503d61095a565b6040513d88823e3d90fd5b90600495966109ba849361215e565b969550906108df565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029c57610a0b36612275565b9560409997989995919594929451988451610a2a818c6020890161234f565b8a0160cd815260018b60206001600160a01b039d8e9403019020015416610a94578960cb541615610a6a5760209a610a61996124c6565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029c5761016036600319011261029c576004359063ffffffff8216820361029c57610aea6120e7565b9167ffffffffffffffff60c4358181116104f957610b0c903690600401612257565b9260e43582811161050157610b25903690600401612257565b91610104358181116104fd57610b3f903690600401612257565b916101243591821161029c5750610b5a903690600401612257565b91604051948051610b6f81886020850161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a619560a435916084359160643591604435916124c6565b503461029c578060031936011261029c5760206001600160a01b0360cc5416604051908152f35b50604036600319011261029c5767ffffffffffffffff6004358181116104fd57610c0b903690600401612321565b505060243590811161050157610c25903690600401612321565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029c578060031936011261029c5760206001600160a01b0360d35416604051908152f35b503461029c5760a036600319011261029c5760043567ffffffffffffffff811161050157610caa903690600401612321565b90610cb36120e7565b91606435926001600160a01b03938481168091036109ce578460016040518587823760208187810160cd8152030190200154163303610d53577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d2560405195869560e0875260e0870191612532565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff610d9a6120fd565b610da261435e565b166127108111610de7576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c576001600160a01b03610e336120d1565b610e3b61435e565b166001600160a01b031960c954161760c95580f35b503461029c576101008060031936011261050157610e6c6120d1565b67ffffffffffffffff929060a4358481116104fd57610e8f903690600401612257565b9160c43585811161050157610ea8903690600401612257565b9460e43590811161050157610ec1903690600401612257565b604051948451610ed581886020890161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a61958760405196610f1588612141565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f5261248d565b61012083015260405190610f658261218e565b8152610140820152613901565b503461029c57608036600319011261029c5760243563ffffffff811681036105015767ffffffffffffffff6044358181116104f957610fb5903690600401612257565b9260643591821161029c576107576107438585610fd53660048801612257565b50600435613f8a565b50602036600319011261029c5760043567ffffffffffffffff81116105015761100e611015913690600401612321565b3391612567565b80f35b503461029c578060031936011261029c5760206001600160a01b0360cb5416604051908152f35b503461029c57604036600319011261029c5760243567ffffffffffffffff81116105015736602382011215610501576110bd602092603c61108d6110c5943690602481600401359101612220565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c52206142a4565b919091614172565b6001600160a01b0360405191168152f35b503461029c578060031936011261029c576020638b78c6d819546001600160a01b0360405191168152f35b503461029c578060031936011261029c57602061ffff60da5416604051908152f35b503461029c57610100908160031936011261029c576111406120d1565b67ffffffffffffffff9060a4358281116104f957611162903690600401612257565b9160c4359081116104f95761117b903690600401612257565b5060405192825161119081866020870161234f565b840160cd815260018560206001600160a01b0397889403019020015416610a94578360cb541615610a6a57602094610a619385604051946111d086612141565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516112098161218e565b82815260e08401526040519061121e8261218e565b828252830152610f5261248d565b503461029c57602036600319011261029c5760043567ffffffffffffffff81116105015760206112636112c2923690600401612257565b8361014060405161127381612141565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690829061130f6040516112f4816105fc81600487016123d2565b6112fc613161565b6020815191012090602081519101201490565b156116f0576040516305f5c3df60e21b8152602081600481875afa9081156116e55785916116af575b505b6040519263f7c618c160e01b8452602084600481885afa9384156109a057869461167e575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109c357879461165d575b506040516378e9792560e01b81526020816004818a5afa90811561165257889161161c575b50604051906318cbe5db60e11b82526020826004818b5afa9182156116115789926115d9575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115ce578a94611595575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561158a57906101409998979695949392916101609c98611553575b509061ffff916001600160a01b036040519a6114978c612141565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff9291985061157b9060203d602011611583575b61157381836121e2565b8101906131c5565b97909161147c565b503d611569565b6040513d8d823e3d90fd5b9093506020813d6020116115c6575b816115b1602093836121e2565b810103126115c25751926003611428565b8980fd5b3d91506115a4565b6040513d8c823e3d90fd5b9091506020813d602011611609575b816115f5602093836121e2565b81010312611605575190386113e9565b8880fd5b3d91506115e8565b6040513d8b823e3d90fd5b90506020813d60201161164a575b81611637602093836121e2565b810103126116465751386113c3565b8780fd5b3d915061162a565b6040513d8a823e3d90fd5b61167791945060203d6020116115835761157381836121e2565b923861139e565b6116a191945060203d6020116116a8575b61169981836121e2565b810190613142565b923861135f565b503d61168f565b90506020813d6020116116dd575b816116ca602093836121e2565b810103126116d9575138611338565b8480fd5b3d91506116bd565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117cb578491611799575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116e557859161175c575b509161133a565b90506020813d602011611791575b81611777602093836121e2565b810103126116d9575161ffff811681036116d95738611755565b3d915061176a565b90506020813d6020116117c3575b816117b4602093836121e2565b810103126104f9575138611716565b3d91506117a7565b6040513d86823e3d90fd5b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5761180d60206106993660048601612257565b810160cd8152030190206001600160a01b0380600183015416906118fc6002840154936118ed60038201549360405161184d816105fc81600488016123d2565b60058401549180600686015416906118c46040519361187a856118738160078c016123d2565b03866121e2565b63ffffffff60096040519961189d8b61189681600885016123d2565b038c6121e2565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b0190612468565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e0880152612468565b90848203610100860152612468565b906101208301520390f35b503461029c57602036600319011261029c576001600160a01b036119296120d1565b61193161435e565b166001600160a01b031960cb54161760cb5580f35b508060031936011261029c5761195a61435e565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029c576119a16120d1565b67ffffffffffffffff9160a435838111610501576119c3903690600401612257565b9260c435908111610501576119dc903690600401612257565b50600160d454036104cf576020926104c191600260d45560405191611a008361210e565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a438161218e565b81815260e0830152604051611a578161218e565b81815261010083015260405190611a6d8261218e565b81526101208201526132cf565b503461029c578060031936011261029c57602061ffff60d15416604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360ca5416604051908152f35b50604036600319011261029c5760043567ffffffffffffffff811161050157611af3611015913690600401612321565b611afb6120e7565b91612567565b508060031936011261029c5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029c57604036600319011261029c57611b616120d1565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029c57611015611b986120d1565b611ba061435e565b6024359061437b565b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760206003611be3826106993660048801612257565b810160cd8152030190200154604051908152f35b503461029c57602036600319011261029c576001600160a01b03611c196120d1565b611c2161435e565b1680156107a0576001600160a01b031960d354161760d35580f35b503461029c57602036600319011261029c57611c566120d1565b90638b78c6d8600c5252602080600c2054604051908152f35b503461029c57604036600319011261029c5760043567ffffffffffffffff8111610501576040602092611ca860ff933690600401612257565b6001600160a01b03611cc1611cbb6120e7565b92612372565b9116825284522054166040519015158152f35b508060031936011261029c5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029c57602036600319011261029c57611d3961435e565b60043560dc5580f35b503461029c57604036600319011261029c57602090611d5f6120d1565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029c57611d916120d1565b611d9961435e565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029c576110156004353361437b565b611e0036612275565b94600160d49a979a95929594939454036104cf576020996104c198600260d45563ffffffff60405199611e328b61210e565b1689526001600160a01b03809b168c8a015260408901526060880152608087015260a086015260c085015260e08401526101008301526101208201526132cf565b503461029c578060031936011261029c57602060d254604051908152f35b503461029c578060031936011261029c57602060dc54604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360c95416604051908152f35b9050346105015761010036600319011261050157611ef26120d1565b611efa6120e7565b6044356001600160a01b03928382168092036109ce57606435918483168093036120cd57608435948086168096036116465760c4359561ffff871680970361160557885460ff8160081c16159889809a6120c0575b80156120a9575b15612041575060ff1981166001178a5588612030575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc55611ff95780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611f6c565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611f565750600160ff831614611f56565b50600160ff831610611f4f565b8680fd5b600435906001600160a01b038216820361099457565b602435906001600160a01b038216820361099457565b6004359061ffff8216820361099457565b610140810190811067ffffffffffffffff82111761212b57604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57604052565b6060810190811067ffffffffffffffff82111761212b57604052565b6020810190811067ffffffffffffffff82111761212b57604052565b6040810190811067ffffffffffffffff82111761212b57604052565b6080810190811067ffffffffffffffff82111761212b57604052565b90601f8019910116810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57601f01601f191660200190565b92919261222c82612204565b9161223a60405193846121e2565b829481845281830111610994578281602093846000960137010152565b9080601f830112156109945781602061227293359101612220565b90565b6101406003198201126109945760043563ffffffff8116810361099457916024356001600160a01b0381168103610994579160443591606435916084359160a4359167ffffffffffffffff9060c43582811161099457816122d891600401612257565b9260e43583811161099457826122f091600401612257565b9261010435818111610994578361230991600401612257565b92610124359182116109945761227291600401612257565b9181601f840112156109945782359167ffffffffffffffff8311610994576020838186019501011161099457565b60005b8381106123625750506000910152565b8181015183820152602001612352565b602061238b91816040519382858094519384920161234f565b810160cd81520301902090565b90600182811c921680156123c8575b60208310146123b257565b634e487b7160e01b600052602260045260246000fd5b91607f16916123a7565b90600092918054916123e383612398565b9182825260019384811690816000146124455750600114612405575b50505050565b90919394506000526020928360002092846000945b8386106124315750505050010190388080806123ff565b80548587018301529401938590820161241a565b9294505050602093945060ff191683830152151560051b010190388080806123ff565b906020916124818151809281855285808601910161234f565b601f01601f1916010190565b6040519061249a826121aa565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b979593916001600160a01b036122729a9896949263ffffffff6040519b6124ec8d612141565b168b521660208a015260408901526060880152608087015260a086015260c085015260e084015261010083015261252161248d565b610120830152610140820152613901565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361099457565b612575919392933691612220565b9160609280518061305f575b505060c083805181010312610994576020830151926040810151916060820151916125ae60808201612553565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109945760c001519063ffffffff82168203610994576040516125fc816121aa565b60108082527f303132333435363738396162636465660000000000000000000000000000000060208301526040519461263486612172565b6024865260208601926040368537600091825b848110612f665750505050506001600160a01b03979893886126a96106156126ec98966126e0966126a4600761268d60206126cd9a604051809381928d5192839161234f565b810160cd81520301902001604051948580926123d2565b613f8a565b956040519a8b961660208701521660408501526080606085015260a0840190612468565b601f199384848303016080850152612468565b039081018552846121e2565b8060ff1c601b8110612f54575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b16606082015260418152612761816121c6565b8151820191608081602085019403126109945761278060208201612553565b9161278d60408301612553565b92606083015167ffffffffffffffff90818111610994578660206127b392870101613100565b9560808501519182116109945760206127ce92860101613100565b9260405160208188516127e48183858d0161234f565b810160cd8152030190206003810154600181018111612f3e5760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612c5457600096612f15575b506110bd61287391600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c86206142a4565b6001600160a01b038060c95416911603612eeb5760d2543410612ec1576001600160a01b03841683528160205260ff604084205416612e975760028201546001820111612e6d576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a16604483015260448252612946826121c6565b6020825192019034905af13d15612e68573d61296181612204565b9061296f60405192836121e2565b81528360203d92013e5b15612e3e5760046112f4826001600160a01b0360016129eb9501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129d86001600160a01b038c16946020830190612468565b0390a36105fc60405180948193016123d2565b15612d9257506040516305f5c3df60e21b8152602081600481875afa908115612c5457600091612d60575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d823433160405180612a546001600160a01b03881694898d8461319a565b0390a35b6001600160a01b038516612a6f575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612c5457600091612d2e575b5060dc541015612c945760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612c5457600092612c60575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612c5457600094612c19575b50976001600160a01b03819795612be39997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b90957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a0190612468565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e0860190612468565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a1388080808080612a67565b90936020823d602011612c4c575b81612c34602093836121e2565b8101031261029c575051926001600160a01b03612b20565b3d9150612c27565b6040513d6000823e3d90fd5b90916020823d602011612c8c575b81612c7b602093836121e2565b8101031261029c5750519038612ae0565b3d9150612c6e565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612be396946001600160a01b0360d2549260405193849360c0855283612d0360c087018d612468565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612bc1565b906020823d602011612d58575b81612d48602093836121e2565b8101031261029c57505138612a94565b3d9150612d3b565b906020823d602011612d8a575b81612d7a602093836121e2565b8101031261029c57505138612a16565b3d9150612d6d565b6040516369d2dc0560e01b8152602081600481885afa918215612e32578092612dfd575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612df56001600160a01b03881694898d8461319a565b0390a3612a58565b9091506020823d602011612e2a575b81612e19602093836121e2565b8101031261029c5750513880612db6565b3d9150612e0c565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612979565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b612873919650612f366110bd9160203d6020116116a85761169981836121e2565b969150612832565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612f3e57906126f9565b6004898183148015613055575b801561304b575b8015613041575b61300f575b612fea612fe28493612fcc938761300a971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c61414b565b51169a612fd88161413c565b9b60001a9261414b565b53168661414b565b511694613004612ff98261413c565b9660001a918c61414b565b5361413c565b612647565b94612fea612fe261300a9493602d6130348561302e612fcc979161413c565b9b61414b565b5393945050505089612f86565b50600a8314612f81565b5060088314612f7a565b5060068314612f73565b6040516004830180518019825260208301975090959284019491935b8097868210156130db5760018092019860ff808b51169182156130a6575050815301955b959661307b565b60020180516000198552909b50607f92509084908216838111156130d0575b50501601019561309f565b0138843983386130c5565b91909652838103601f1901845260008152602001604052919450925090503880612581565b81601f8201121561099457805161311681612204565b9261312460405194856121e2565b8184526020828401011161099457612272916020808501910161234f565b9081602091031261099457516001600160a01b03811681036109945790565b6040519061316e826121aa565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131ba60409396959496606084526060840190612468565b951660208201520152565b90816020910312610994575180151581036109945790565b8181106131e8575050565b600081556001016131dd565b9190601f811161320357505050565b61322f926000526020600020906020601f840160051c83019310613231575b601f0160051c01906131dd565b565b9091508190613222565b979461329f6001600160a01b03956132916101409c999f9e9d9a966132838d63ffffffff986132756132ad99610160808552840190612468565b916020818403910152612468565b8d810360408f015290612468565b908b820360608d01526123d2565b9089820360808b0152612468565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c0820151916132e1600093612372565b60018101916001600160a01b03835416610a945760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b03909216919061334581607481015b03601f1981018352826121e2565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f580156138f4576001600160a01b0390866021521692836001600160a01b0319825416179055608081015160028301556133b66004830154612398565b601f81116138d2575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116138445781906134638261345a6007880154612398565b600788016131f4565b602090601f8311600114613863578892613858575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116138445781906134c4826134bb6008880154612398565b600888016131f4565b602090601f83116001146137d55788926137ca575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b156120cd576135a59360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e4830190612468565b038183885af180156109a0576137b7575b50846001600160a01b0360208301511660a08301516080840151823b156104f95760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af18015613798576137a3575b5050823b156116d957846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af1801561379857613784575b5050823b156116d9576040519463f2fde38b60e01b8652336004870152808660248183885af19586156137775784959661375b575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516137556101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c61323b565b0390a390565b81929394506137699061215e565b61029c5790818493926136d7565b50604051903d90823e3d90fd5b61378d9061215e565b6116d95784386136a2565b6040513d84823e3d90fd5b6137ac9061215e565b6116d957843861365e565b6137c39095919561215e565b93386135b6565b0151905038806134d9565b9250600885018852602088209088935b601f1984168510613829576001945083601f19811610613810575b505050811b0160088301556134f1565b015160001960f88460031b161c19169055388080613800565b818101518355602094850194600190930192909101906137e5565b602487634e487b7160e01b81526041600452fd5b015190503880613478565b9250600785018852602088209088935b601f19841685106138b7576001945083601f1981161061389e575b505050811b016007830155613490565b015160001960f88460031b161c1916905538808061388e565b81810151835560209485019460019093019290910190613873565b600483018652602086206138ee91601f0160051c8101906131dd565b386133bf565b633011642586526004601cfd5b60c0810151613911600091612372565b916001600160a01b0360cb54166040516020810190613959816133374246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f7d5760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e75578190613a3f82613a366004870154612398565b600487016131f4565b602090601f8311600114613f0e578692613f03575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e75578190613a9f82613a966007870154612398565b600787016131f4565b602090601f8311600114613e94578692613e89575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e75578190613b0082613af76008870154612398565b600887016131f4565b602090601f8311600114613e06578692613dfb575b50508160011b916000199060031b1c19161760088201555b815163ffffffff1690600981018263ffffffff19825416179055610140830151906101008401519060c08501519060e0860151928860208801516001600160a01b03169560408901958987519860608201998a519160808401519360a0019c8d5195604051996001600160a01b038b9a169c339c60040191613baf9a8c61323b565b037fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd91a360208401516001600160a01b03169051915192608085015190519060c086015160d15461ffff169260ca546001600160a01b0316926001600160a01b038b163b156115c25791613c7a918a9796959493604051998a9889987ffb96aa2e000000000000000000000000000000000000000000000000000000008a5260048a0152602489015260448801526064870152608486015261010060a4860152610104850190612468565b9160c484015260e48301520381836001600160a01b0389165af18015613dd357613dde575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613dd35783908192613d9e575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d915781606052806040526001600160a01b0383163b156105015763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561379857613d7f57505090565b613d89829161215e565b61029c575090565b637939f42482526004601cfd5b9150506020813d602011613dcb575b81613dba602093836121e2565b810103126109945751826064613cf6565b3d9150613dad565b6040513d85823e3d90fd5b6001600160a01b039192613df360209261215e565b929150613c9f565b015190503880613b15565b9250600884018652602086209086935b601f1984168510613e5a576001945083601f19811610613e41575b505050811b016008820155613b2d565b015160001960f88460031b161c19169055388080613e31565b81810151835560209485019460019093019290910190613e16565b602485634e487b7160e01b81526041600452fd5b015190503880613ab4565b9250600784018652602086209086935b601f1984168510613ee8576001945083601f19811610613ecf575b505050811b016007820155613acc565b015160001960f88460031b161c19169055388080613ebf565b81810151835560209485019460019093019290910190613ea4565b015190503880613a54565b9250600484018652602086209086935b601f1984168510613f62576001945083601f19811610613f49575b505050811b016004820155613a6c565b015160001960f88460031b161c19169055388080613f39565b81810151835560209485019460019093019290910190613f1e565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613fe45790613fbb565b50905061412e57601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a90603082820601845304918261401c5791506140be612272966062966080856140889b81019503018452519889967f7b22616374696f6e5478486173686573223a5b22000000000000000000000000602089015251809260348901906001190161234f565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b000000006034840152518093605084019061234f565b017f5d2c22616374696f6e54797065223a220000000000000000000000000000000060508201526140f982518093602060608501910161234f565b017f227d00000000000000000000000000000000000000000000000000000000000060608201520360428101845201826121e2565b632194895a6000526004601cfd5b6000198114612f3e5760010190565b90815181101561415c570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561428e57806141835750565b600181036141cf57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b6002810361421b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b60031461422457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b9060418151146000146142d2576142ce916020820151906060604084015193015160001a906142dc565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143525791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137775781516001600160a01b0381161561434c579190565b50600190565b50505050600090600390565b638b78c6d81954330361436d57565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212203e7fc49d11f35efc0ae6db80e30dee7264fabb42e7ad8ab7ee6080091a8cda0064736f6c63430008130033", + "nonce": "0xf", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x9f4d25f4df3d55c444deadaf8b94068e8d48621b3a13737476c4aa2fc12c2ae8", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "function": "upgrade(address,address)", + "arguments": [ + "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", + "0xd01716fd8Fd62749Cde6761e64D36f76d03d52d9" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "gas": "0xd0bd", + "value": "0x0", + "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000d01716fd8fd62749cde6761e64d36f76d03d52d9", + "nonce": "0x10", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x3a6aec", + "logs": [ + { + "address": "0xd01716fd8fd62749cde6761e64d36f76d03d52d9", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000001", + "blockHash": "0x0716a880a7ac2ebee7230bd2d007e9201d8d7922d30118b32e4c4c8e07e63dc6", + "blockNumber": "0x1635d62", + "transactionHash": "0xc25d48bb1147ac73b0481670813cb32befc5e01150255271409e7703db901001", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000040000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xc25d48bb1147ac73b0481670813cb32befc5e01150255271409e7703db901001", + "transactionIndex": "0x1", + "blockHash": "0x0716a880a7ac2ebee7230bd2d007e9201d8d7922d30118b32e4c4c8e07e63dc6", + "blockNumber": "0x1635d62", + "gasUsed": "0x3a6aec", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xd01716fd8fd62749cde6761e64d36f76d03d52d9", + "gasUsedForL1": "0x1", + "l1BlockNumber": "0xf8fefb" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x9720", + "logs": [ + { + "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x000000000000000000000000d01716fd8fd62749cde6761e64d36f76d03d52d9" + ], + "data": "0x", + "blockHash": "0xc9f5b64b738d2a1fee18d9ac8a2def1d583e06a5c3326ceaf1858956473e1061", + "blockNumber": "0x1635d63", + "transactionHash": "0x9f4d25f4df3d55c444deadaf8b94068e8d48621b3a13737476c4aa2fc12c2ae8", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000002000000000000000000000400000000000000000000000000000020000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x9f4d25f4df3d55c444deadaf8b94068e8d48621b3a13737476c4aa2fc12c2ae8", + "transactionIndex": "0x1", + "blockHash": "0xc9f5b64b738d2a1fee18d9ac8a2def1d583e06a5c3326ceaf1858956473e1061", + "blockNumber": "0x1635d63", + "gasUsed": "0x9720", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "contractAddress": null, + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xf8fefb" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719425769, + "chain": 666666666, + "commit": "6cb07c2" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/666666666/run-1719425865.json b/broadcast/QuestFactory.s.sol/666666666/run-1719425865.json new file mode 100644 index 00000000..a8138838 --- /dev/null +++ b/broadcast/QuestFactory.s.sol/666666666/run-1719425865.json @@ -0,0 +1,51 @@ +{ + "transactions": [ + { + "hash": "0x63d61506389865f872d1323eea3004295a5dfc10c8924a31069236b8fe2d735c", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setQuestFee(uint16)", + "arguments": [ + "250" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x13", + "chainId": "0x27bc86aa" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x8fa3", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x63d61506389865f872d1323eea3004295a5dfc10c8924a31069236b8fe2d735c", + "transactionIndex": "0x1", + "blockHash": "0xe871a6bdd456cff16d935a34cc3925a8511e7a2383814608232342f25bcf171d", + "blockNumber": "0x1635d9b", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xf8ff30" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719425865, + "chain": 666666666, + "commit": "6cb07c2" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/666666666/run-latest.json b/broadcast/QuestFactory.s.sol/666666666/run-latest.json index 706ec982..a8138838 100644 --- a/broadcast/QuestFactory.s.sol/666666666/run-latest.json +++ b/broadcast/QuestFactory.s.sol/666666666/run-latest.json @@ -1,43 +1,22 @@ { "transactions": [ { - "hash": "0x4575e186c7c7b7a613c85990c585dab1188b263cb41ead0a45861338ba616d3e", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0xaeA1151CedEf5A728d10dEBAeD2fE77d867964Cf", - "function": null, - "arguments": null, - "transaction": { - "type": "0x02", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", - "value": "0x0", - "data": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212207957da406aebba03d6ca779a30b78b85fcc281c0902f0aa064e0027a03da7df964736f6c63430008130033", - "nonce": "0x8", - "accessList": [] - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x2deb3e8bf8d14b4744aed292d1121a505d290166f2c445bce143eef251f88540", + "hash": "0x63d61506389865f872d1323eea3004295a5dfc10c8924a31069236b8fe2d735c", "transactionType": "CALL", "contractName": null, - "contractAddress": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "function": "upgrade(address,address)", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setQuestFee(uint16)", "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0xaeA1151CedEf5A728d10dEBAeD2fE77d867964Cf" + "250" ], "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0bd", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", "value": "0x0", - "data": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000aea1151cedef5a728d10debaed2fe77d867964cf", - "nonce": "0x9", - "accessList": [] + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x13", + "chainId": "0x27bc86aa" }, "additionalContracts": [], "isFixedGasLimit": false @@ -45,71 +24,28 @@ ], "receipts": [ { - "transactionHash": "0x4575e186c7c7b7a613c85990c585dab1188b263cb41ead0a45861338ba616d3e", - "transactionIndex": "0x3", - "blockHash": "0xda81f4e916afe007406fb1f261e0086d2a736594cedd5d549ee56b58a34bda30", - "blockNumber": "0xedfda2", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x434d85", - "gasUsed": "0x3a262f", - "contractAddress": "0xaeA1151CedEf5A728d10dEBAeD2fE77d867964Cf", - "logs": [ - { - "address": "0xaeA1151CedEf5A728d10dEBAeD2fE77d867964Cf", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0xda81f4e916afe007406fb1f261e0086d2a736594cedd5d549ee56b58a34bda30", - "blockNumber": "0xedfda2", - "transactionHash": "0x4575e186c7c7b7a613c85990c585dab1188b263cb41ead0a45861338ba616d3e", - "transactionIndex": "0x3", - "logIndex": "0x2", - "removed": false - } - ], "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000", + "cumulativeGasUsed": "0x8fa3", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0x989680" - }, - { - "transactionHash": "0x2deb3e8bf8d14b4744aed292d1121a505d290166f2c445bce143eef251f88540", - "transactionIndex": "0x4", - "blockHash": "0xda81f4e916afe007406fb1f261e0086d2a736594cedd5d549ee56b58a34bda30", - "blockNumber": "0xedfda2", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "cumulativeGasUsed": "0x43e509", - "gasUsed": "0x9784", + "transactionHash": "0x63d61506389865f872d1323eea3004295a5dfc10c8924a31069236b8fe2d735c", + "transactionIndex": "0x1", + "blockHash": "0xe871a6bdd456cff16d935a34cc3925a8511e7a2383814608232342f25bcf171d", + "blockNumber": "0x1635d9b", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x174876e800", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "contractAddress": null, - "logs": [ - { - "address": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000aea1151cedef5a728d10debaed2fe77d867964cf" - ], - "data": "0x", - "blockHash": "0xda81f4e916afe007406fb1f261e0086d2a736594cedd5d549ee56b58a34bda30", - "blockNumber": "0xedfda2", - "transactionHash": "0x2deb3e8bf8d14b4744aed292d1121a505d290166f2c445bce143eef251f88540", - "transactionIndex": "0x4", - "logIndex": "0x3", - "removed": false - } - ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000002000000000000000000000000000000000000010000000000000000000000000000000000002000000000000000000000400000000000000000010000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "effectiveGasPrice": "0x989680" + "gasUsedForL1": "0x0", + "l1BlockNumber": "0xf8ff30" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715883067, + "timestamp": 1719425865, "chain": 666666666, - "commit": "a35a3c3" + "commit": "6cb07c2" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/7560/run-1719427263.json b/broadcast/QuestFactory.s.sol/7560/run-1719427263.json new file mode 100644 index 00000000..c172ba07 --- /dev/null +++ b/broadcast/QuestFactory.s.sol/7560/run-1719427263.json @@ -0,0 +1,51 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CREATE", + "contractName": "QuestFactory", + "contractAddress": "0x86ee25f6f0b4a568dd134b78207c6c7b196c5eea", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x4bf164", + "value": "0x0", + "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b6040516143f890816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611ed6575080630b6fc16314611eaf57806311f4b35b14611e9157806313966db514611e7357806313a4057014611df7578063183a4f6e14611dde5780631c10893f14611d7c5780631cd64df414611d4257806323e2c1ba14611d1f5780632569296214611cd457806327b0655f14611c6f5780632de9480714611c3c57806332f58eb514611bf757806343ff27d114611ba95780634a4ee7b114611b80578063514e62fc14611b4757806354d1f13d14611b015780635caf9de114611ac357806364df049e14611a9c57806367dfa3e714611a7a57806370dfd40a1461198c578063715018a6146119465780637c93f9ee146119075780637e4176e3146117d65780637f7c0ef71461122c57806381589b1f1461112357806384ae2bc6146111015780638da5cb5b146110d657806397aba7f91461103f578063a1db1ba414611018578063a2e4459314610fde578063a5454dbd14610f72578063abab135a14610e50578063b4cbdd8b14610e11578063c42fe71814610d7d578063c6eba76614610c78578063cc923e0c14610c51578063ce53b15214610bdd578063d4faaa1714610bb6578063de0580dc14610abe578063e05d39ac146109fc578063e15cfcf514610832578063e1bc3aba146107ca578063e521cb921461075b578063ea22e4ab146106e2578063ec461ac414610660578063ed21bb8314610553578063eddd0d9c14610505578063f01a5934146103cd578063f04e283e1461034c578063f2fde38b146102de578063f8565efd1461029f5763fee81cf40361000f573461029c57602036600319011261029c576102836120d1565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b503461029c57602036600319011261029c576001600160a01b036102c16120d1565b6102c961435e565b166001600160a01b031960cc54161760cc5580f35b50602036600319011261029c576102f36120d1565b6102fb61435e565b8060601b1561033f576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029c576103616120d1565b61036961435e565b63389a75e1600c528082526020600c20805442116103c05790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b50610120908160031936011261029c576103e56120d1565b9067ffffffffffffffff9060a43582811161050157610408903690600401612257565b9160c4358181116104fd57610421903690600401612257565b9460e4358281116104f95761043a903690600401612257565b91610104359081116104f957610454903690600401612257565b91600160d454036104cf576020966104c195600260d455604051956104788761210e565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e08501526101008401528201526132cf565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b503461029c57602036600319011261029c577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561054561435e565b8060d255604051908152a180f35b503461029c576020806003193601126105015760043567ffffffffffffffff81116104fd578160609361058d6105b8933690600401612257565b906040805161059b81612172565b87815287858201520152816040519382858094519384920161234f565b810160cd8152030190209063ffffffff6106546008610641836009870154169461061c604051976105e889612172565b604051610603816105fc81600786016123d2565b03826121e2565b895261061560405180968193016123d2565b03846121e2565b8087019283526040870195865260405197889782895251918801526080870190612468565b9051858203601f19016040870152612468565b91511660608301520390f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760606106ac60206106993660048701612257565b816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c576107576105fc610743600860206107213660048901612321565b9190826040519384928337810160cd81520301902001604051928380926123d2565b604051918291602083526020830190612468565b0390f35b503461029c57602036600319011261029c576001600160a01b0361077d6120d1565b61078561435e565b1680156107a0576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff6107e76120fd565b6107ef61435e565b1661271081116108085761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029c576020908160031936011261029c5760043567ffffffffffffffff811161050157610866903690600401612321565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109d257600101948386541693843b156109ce576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109c3576109ab575b5081906004959697541695604051958680926318cbe5db60e11b82525afa80156109a057869061094e575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c49450610944604051948594604086526040860191612532565b918301520390a280f35b508084813d8311610999575b61096481836121e2565b81010312610994577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c4935161090a565b600080fd5b503d61095a565b6040513d88823e3d90fd5b90600495966109ba849361215e565b969550906108df565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029c57610a0b36612275565b9560409997989995919594929451988451610a2a818c6020890161234f565b8a0160cd815260018b60206001600160a01b039d8e9403019020015416610a94578960cb541615610a6a5760209a610a61996124c6565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029c5761016036600319011261029c576004359063ffffffff8216820361029c57610aea6120e7565b9167ffffffffffffffff60c4358181116104f957610b0c903690600401612257565b9260e43582811161050157610b25903690600401612257565b91610104358181116104fd57610b3f903690600401612257565b916101243591821161029c5750610b5a903690600401612257565b91604051948051610b6f81886020850161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a619560a435916084359160643591604435916124c6565b503461029c578060031936011261029c5760206001600160a01b0360cc5416604051908152f35b50604036600319011261029c5767ffffffffffffffff6004358181116104fd57610c0b903690600401612321565b505060243590811161050157610c25903690600401612321565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029c578060031936011261029c5760206001600160a01b0360d35416604051908152f35b503461029c5760a036600319011261029c5760043567ffffffffffffffff811161050157610caa903690600401612321565b90610cb36120e7565b91606435926001600160a01b03938481168091036109ce578460016040518587823760208187810160cd8152030190200154163303610d53577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d2560405195869560e0875260e0870191612532565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff610d9a6120fd565b610da261435e565b166127108111610de7576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c576001600160a01b03610e336120d1565b610e3b61435e565b166001600160a01b031960c954161760c95580f35b503461029c576101008060031936011261050157610e6c6120d1565b67ffffffffffffffff929060a4358481116104fd57610e8f903690600401612257565b9160c43585811161050157610ea8903690600401612257565b9460e43590811161050157610ec1903690600401612257565b604051948451610ed581886020890161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a61958760405196610f1588612141565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f5261248d565b61012083015260405190610f658261218e565b8152610140820152613901565b503461029c57608036600319011261029c5760243563ffffffff811681036105015767ffffffffffffffff6044358181116104f957610fb5903690600401612257565b9260643591821161029c576107576107438585610fd53660048801612257565b50600435613f8a565b50602036600319011261029c5760043567ffffffffffffffff81116105015761100e611015913690600401612321565b3391612567565b80f35b503461029c578060031936011261029c5760206001600160a01b0360cb5416604051908152f35b503461029c57604036600319011261029c5760243567ffffffffffffffff81116105015736602382011215610501576110bd602092603c61108d6110c5943690602481600401359101612220565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c52206142a4565b919091614172565b6001600160a01b0360405191168152f35b503461029c578060031936011261029c576020638b78c6d819546001600160a01b0360405191168152f35b503461029c578060031936011261029c57602061ffff60da5416604051908152f35b503461029c57610100908160031936011261029c576111406120d1565b67ffffffffffffffff9060a4358281116104f957611162903690600401612257565b9160c4359081116104f95761117b903690600401612257565b5060405192825161119081866020870161234f565b840160cd815260018560206001600160a01b0397889403019020015416610a94578360cb541615610a6a57602094610a619385604051946111d086612141565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516112098161218e565b82815260e08401526040519061121e8261218e565b828252830152610f5261248d565b503461029c57602036600319011261029c5760043567ffffffffffffffff81116105015760206112636112c2923690600401612257565b8361014060405161127381612141565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690829061130f6040516112f4816105fc81600487016123d2565b6112fc613161565b6020815191012090602081519101201490565b156116f0576040516305f5c3df60e21b8152602081600481875afa9081156116e55785916116af575b505b6040519263f7c618c160e01b8452602084600481885afa9384156109a057869461167e575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109c357879461165d575b506040516378e9792560e01b81526020816004818a5afa90811561165257889161161c575b50604051906318cbe5db60e11b82526020826004818b5afa9182156116115789926115d9575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115ce578a94611595575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561158a57906101409998979695949392916101609c98611553575b509061ffff916001600160a01b036040519a6114978c612141565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff9291985061157b9060203d602011611583575b61157381836121e2565b8101906131c5565b97909161147c565b503d611569565b6040513d8d823e3d90fd5b9093506020813d6020116115c6575b816115b1602093836121e2565b810103126115c25751926003611428565b8980fd5b3d91506115a4565b6040513d8c823e3d90fd5b9091506020813d602011611609575b816115f5602093836121e2565b81010312611605575190386113e9565b8880fd5b3d91506115e8565b6040513d8b823e3d90fd5b90506020813d60201161164a575b81611637602093836121e2565b810103126116465751386113c3565b8780fd5b3d915061162a565b6040513d8a823e3d90fd5b61167791945060203d6020116115835761157381836121e2565b923861139e565b6116a191945060203d6020116116a8575b61169981836121e2565b810190613142565b923861135f565b503d61168f565b90506020813d6020116116dd575b816116ca602093836121e2565b810103126116d9575138611338565b8480fd5b3d91506116bd565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117cb578491611799575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116e557859161175c575b509161133a565b90506020813d602011611791575b81611777602093836121e2565b810103126116d9575161ffff811681036116d95738611755565b3d915061176a565b90506020813d6020116117c3575b816117b4602093836121e2565b810103126104f9575138611716565b3d91506117a7565b6040513d86823e3d90fd5b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5761180d60206106993660048601612257565b810160cd8152030190206001600160a01b0380600183015416906118fc6002840154936118ed60038201549360405161184d816105fc81600488016123d2565b60058401549180600686015416906118c46040519361187a856118738160078c016123d2565b03866121e2565b63ffffffff60096040519961189d8b61189681600885016123d2565b038c6121e2565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b0190612468565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e0880152612468565b90848203610100860152612468565b906101208301520390f35b503461029c57602036600319011261029c576001600160a01b036119296120d1565b61193161435e565b166001600160a01b031960cb54161760cb5580f35b508060031936011261029c5761195a61435e565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029c576119a16120d1565b67ffffffffffffffff9160a435838111610501576119c3903690600401612257565b9260c435908111610501576119dc903690600401612257565b50600160d454036104cf576020926104c191600260d45560405191611a008361210e565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a438161218e565b81815260e0830152604051611a578161218e565b81815261010083015260405190611a6d8261218e565b81526101208201526132cf565b503461029c578060031936011261029c57602061ffff60d15416604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360ca5416604051908152f35b50604036600319011261029c5760043567ffffffffffffffff811161050157611af3611015913690600401612321565b611afb6120e7565b91612567565b508060031936011261029c5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029c57604036600319011261029c57611b616120d1565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029c57611015611b986120d1565b611ba061435e565b6024359061437b565b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760206003611be3826106993660048801612257565b810160cd8152030190200154604051908152f35b503461029c57602036600319011261029c576001600160a01b03611c196120d1565b611c2161435e565b1680156107a0576001600160a01b031960d354161760d35580f35b503461029c57602036600319011261029c57611c566120d1565b90638b78c6d8600c5252602080600c2054604051908152f35b503461029c57604036600319011261029c5760043567ffffffffffffffff8111610501576040602092611ca860ff933690600401612257565b6001600160a01b03611cc1611cbb6120e7565b92612372565b9116825284522054166040519015158152f35b508060031936011261029c5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029c57602036600319011261029c57611d3961435e565b60043560dc5580f35b503461029c57604036600319011261029c57602090611d5f6120d1565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029c57611d916120d1565b611d9961435e565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029c576110156004353361437b565b611e0036612275565b94600160d49a979a95929594939454036104cf576020996104c198600260d45563ffffffff60405199611e328b61210e565b1689526001600160a01b03809b168c8a015260408901526060880152608087015260a086015260c085015260e08401526101008301526101208201526132cf565b503461029c578060031936011261029c57602060d254604051908152f35b503461029c578060031936011261029c57602060dc54604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360c95416604051908152f35b9050346105015761010036600319011261050157611ef26120d1565b611efa6120e7565b6044356001600160a01b03928382168092036109ce57606435918483168093036120cd57608435948086168096036116465760c4359561ffff871680970361160557885460ff8160081c16159889809a6120c0575b80156120a9575b15612041575060ff1981166001178a5588612030575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc55611ff95780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611f6c565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611f565750600160ff831614611f56565b50600160ff831610611f4f565b8680fd5b600435906001600160a01b038216820361099457565b602435906001600160a01b038216820361099457565b6004359061ffff8216820361099457565b610140810190811067ffffffffffffffff82111761212b57604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57604052565b6060810190811067ffffffffffffffff82111761212b57604052565b6020810190811067ffffffffffffffff82111761212b57604052565b6040810190811067ffffffffffffffff82111761212b57604052565b6080810190811067ffffffffffffffff82111761212b57604052565b90601f8019910116810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57601f01601f191660200190565b92919261222c82612204565b9161223a60405193846121e2565b829481845281830111610994578281602093846000960137010152565b9080601f830112156109945781602061227293359101612220565b90565b6101406003198201126109945760043563ffffffff8116810361099457916024356001600160a01b0381168103610994579160443591606435916084359160a4359167ffffffffffffffff9060c43582811161099457816122d891600401612257565b9260e43583811161099457826122f091600401612257565b9261010435818111610994578361230991600401612257565b92610124359182116109945761227291600401612257565b9181601f840112156109945782359167ffffffffffffffff8311610994576020838186019501011161099457565b60005b8381106123625750506000910152565b8181015183820152602001612352565b602061238b91816040519382858094519384920161234f565b810160cd81520301902090565b90600182811c921680156123c8575b60208310146123b257565b634e487b7160e01b600052602260045260246000fd5b91607f16916123a7565b90600092918054916123e383612398565b9182825260019384811690816000146124455750600114612405575b50505050565b90919394506000526020928360002092846000945b8386106124315750505050010190388080806123ff565b80548587018301529401938590820161241a565b9294505050602093945060ff191683830152151560051b010190388080806123ff565b906020916124818151809281855285808601910161234f565b601f01601f1916010190565b6040519061249a826121aa565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b979593916001600160a01b036122729a9896949263ffffffff6040519b6124ec8d612141565b168b521660208a015260408901526060880152608087015260a086015260c085015260e084015261010083015261252161248d565b610120830152610140820152613901565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361099457565b612575919392933691612220565b9160609280518061305f575b505060c083805181010312610994576020830151926040810151916060820151916125ae60808201612553565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109945760c001519063ffffffff82168203610994576040516125fc816121aa565b60108082527f303132333435363738396162636465660000000000000000000000000000000060208301526040519461263486612172565b6024865260208601926040368537600091825b848110612f665750505050506001600160a01b03979893886126a96106156126ec98966126e0966126a4600761268d60206126cd9a604051809381928d5192839161234f565b810160cd81520301902001604051948580926123d2565b613f8a565b956040519a8b961660208701521660408501526080606085015260a0840190612468565b601f199384848303016080850152612468565b039081018552846121e2565b8060ff1c601b8110612f54575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b16606082015260418152612761816121c6565b8151820191608081602085019403126109945761278060208201612553565b9161278d60408301612553565b92606083015167ffffffffffffffff90818111610994578660206127b392870101613100565b9560808501519182116109945760206127ce92860101613100565b9260405160208188516127e48183858d0161234f565b810160cd8152030190206003810154600181018111612f3e5760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612c5457600096612f15575b506110bd61287391600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c86206142a4565b6001600160a01b038060c95416911603612eeb5760d2543410612ec1576001600160a01b03841683528160205260ff604084205416612e975760028201546001820111612e6d576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a16604483015260448252612946826121c6565b6020825192019034905af13d15612e68573d61296181612204565b9061296f60405192836121e2565b81528360203d92013e5b15612e3e5760046112f4826001600160a01b0360016129eb9501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129d86001600160a01b038c16946020830190612468565b0390a36105fc60405180948193016123d2565b15612d9257506040516305f5c3df60e21b8152602081600481875afa908115612c5457600091612d60575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d823433160405180612a546001600160a01b03881694898d8461319a565b0390a35b6001600160a01b038516612a6f575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612c5457600091612d2e575b5060dc541015612c945760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612c5457600092612c60575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612c5457600094612c19575b50976001600160a01b03819795612be39997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b90957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a0190612468565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e0860190612468565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a1388080808080612a67565b90936020823d602011612c4c575b81612c34602093836121e2565b8101031261029c575051926001600160a01b03612b20565b3d9150612c27565b6040513d6000823e3d90fd5b90916020823d602011612c8c575b81612c7b602093836121e2565b8101031261029c5750519038612ae0565b3d9150612c6e565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612be396946001600160a01b0360d2549260405193849360c0855283612d0360c087018d612468565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612bc1565b906020823d602011612d58575b81612d48602093836121e2565b8101031261029c57505138612a94565b3d9150612d3b565b906020823d602011612d8a575b81612d7a602093836121e2565b8101031261029c57505138612a16565b3d9150612d6d565b6040516369d2dc0560e01b8152602081600481885afa918215612e32578092612dfd575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612df56001600160a01b03881694898d8461319a565b0390a3612a58565b9091506020823d602011612e2a575b81612e19602093836121e2565b8101031261029c5750513880612db6565b3d9150612e0c565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612979565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b612873919650612f366110bd9160203d6020116116a85761169981836121e2565b969150612832565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612f3e57906126f9565b6004898183148015613055575b801561304b575b8015613041575b61300f575b612fea612fe28493612fcc938761300a971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c61414b565b51169a612fd88161413c565b9b60001a9261414b565b53168661414b565b511694613004612ff98261413c565b9660001a918c61414b565b5361413c565b612647565b94612fea612fe261300a9493602d6130348561302e612fcc979161413c565b9b61414b565b5393945050505089612f86565b50600a8314612f81565b5060088314612f7a565b5060068314612f73565b6040516004830180518019825260208301975090959284019491935b8097868210156130db5760018092019860ff808b51169182156130a6575050815301955b959661307b565b60020180516000198552909b50607f92509084908216838111156130d0575b50501601019561309f565b0138843983386130c5565b91909652838103601f1901845260008152602001604052919450925090503880612581565b81601f8201121561099457805161311681612204565b9261312460405194856121e2565b8184526020828401011161099457612272916020808501910161234f565b9081602091031261099457516001600160a01b03811681036109945790565b6040519061316e826121aa565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131ba60409396959496606084526060840190612468565b951660208201520152565b90816020910312610994575180151581036109945790565b8181106131e8575050565b600081556001016131dd565b9190601f811161320357505050565b61322f926000526020600020906020601f840160051c83019310613231575b601f0160051c01906131dd565b565b9091508190613222565b979461329f6001600160a01b03956132916101409c999f9e9d9a966132838d63ffffffff986132756132ad99610160808552840190612468565b916020818403910152612468565b8d810360408f015290612468565b908b820360608d01526123d2565b9089820360808b0152612468565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c0820151916132e1600093612372565b60018101916001600160a01b03835416610a945760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b03909216919061334581607481015b03601f1981018352826121e2565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f580156138f4576001600160a01b0390866021521692836001600160a01b0319825416179055608081015160028301556133b66004830154612398565b601f81116138d2575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116138445781906134638261345a6007880154612398565b600788016131f4565b602090601f8311600114613863578892613858575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116138445781906134c4826134bb6008880154612398565b600888016131f4565b602090601f83116001146137d55788926137ca575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b156120cd576135a59360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e4830190612468565b038183885af180156109a0576137b7575b50846001600160a01b0360208301511660a08301516080840151823b156104f95760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af18015613798576137a3575b5050823b156116d957846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af1801561379857613784575b5050823b156116d9576040519463f2fde38b60e01b8652336004870152808660248183885af19586156137775784959661375b575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516137556101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c61323b565b0390a390565b81929394506137699061215e565b61029c5790818493926136d7565b50604051903d90823e3d90fd5b61378d9061215e565b6116d95784386136a2565b6040513d84823e3d90fd5b6137ac9061215e565b6116d957843861365e565b6137c39095919561215e565b93386135b6565b0151905038806134d9565b9250600885018852602088209088935b601f1984168510613829576001945083601f19811610613810575b505050811b0160088301556134f1565b015160001960f88460031b161c19169055388080613800565b818101518355602094850194600190930192909101906137e5565b602487634e487b7160e01b81526041600452fd5b015190503880613478565b9250600785018852602088209088935b601f19841685106138b7576001945083601f1981161061389e575b505050811b016007830155613490565b015160001960f88460031b161c1916905538808061388e565b81810151835560209485019460019093019290910190613873565b600483018652602086206138ee91601f0160051c8101906131dd565b386133bf565b633011642586526004601cfd5b60c0810151613911600091612372565b916001600160a01b0360cb54166040516020810190613959816133374246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f7d5760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e75578190613a3f82613a366004870154612398565b600487016131f4565b602090601f8311600114613f0e578692613f03575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e75578190613a9f82613a966007870154612398565b600787016131f4565b602090601f8311600114613e94578692613e89575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e75578190613b0082613af76008870154612398565b600887016131f4565b602090601f8311600114613e06578692613dfb575b50508160011b916000199060031b1c19161760088201555b815163ffffffff1690600981018263ffffffff19825416179055610140830151906101008401519060c08501519060e0860151928860208801516001600160a01b03169560408901958987519860608201998a519160808401519360a0019c8d5195604051996001600160a01b038b9a169c339c60040191613baf9a8c61323b565b037fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd91a360208401516001600160a01b03169051915192608085015190519060c086015160d15461ffff169260ca546001600160a01b0316926001600160a01b038b163b156115c25791613c7a918a9796959493604051998a9889987ffb96aa2e000000000000000000000000000000000000000000000000000000008a5260048a0152602489015260448801526064870152608486015261010060a4860152610104850190612468565b9160c484015260e48301520381836001600160a01b0389165af18015613dd357613dde575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613dd35783908192613d9e575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d915781606052806040526001600160a01b0383163b156105015763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561379857613d7f57505090565b613d89829161215e565b61029c575090565b637939f42482526004601cfd5b9150506020813d602011613dcb575b81613dba602093836121e2565b810103126109945751826064613cf6565b3d9150613dad565b6040513d85823e3d90fd5b6001600160a01b039192613df360209261215e565b929150613c9f565b015190503880613b15565b9250600884018652602086209086935b601f1984168510613e5a576001945083601f19811610613e41575b505050811b016008820155613b2d565b015160001960f88460031b161c19169055388080613e31565b81810151835560209485019460019093019290910190613e16565b602485634e487b7160e01b81526041600452fd5b015190503880613ab4565b9250600784018652602086209086935b601f1984168510613ee8576001945083601f19811610613ecf575b505050811b016007820155613acc565b015160001960f88460031b161c19169055388080613ebf565b81810151835560209485019460019093019290910190613ea4565b015190503880613a54565b9250600484018652602086209086935b601f1984168510613f62576001945083601f19811610613f49575b505050811b016004820155613a6c565b015160001960f88460031b161c19169055388080613f39565b81810151835560209485019460019093019290910190613f1e565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613fe45790613fbb565b50905061412e57601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a90603082820601845304918261401c5791506140be612272966062966080856140889b81019503018452519889967f7b22616374696f6e5478486173686573223a5b22000000000000000000000000602089015251809260348901906001190161234f565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b000000006034840152518093605084019061234f565b017f5d2c22616374696f6e54797065223a220000000000000000000000000000000060508201526140f982518093602060608501910161234f565b017f227d00000000000000000000000000000000000000000000000000000000000060608201520360428101845201826121e2565b632194895a6000526004601cfd5b6000198114612f3e5760010190565b90815181101561415c570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561428e57806141835750565b600181036141cf57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b6002810361421b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b60031461422457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b9060418151146000146142d2576142ce916020820151906060604084015193015160001a906142dc565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143525791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137775781516001600160a01b0381161561434c579190565b50600190565b50505050600090600390565b638b78c6d81954330361436d57565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212203e7fc49d11f35efc0ae6db80e30dee7264fabb42e7ad8ab7ee6080091a8cda0064736f6c63430008130033", + "nonce": "0x9", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "function": "upgrade(address,address)", + "arguments": [ + "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", + "0x86Ee25F6F0b4A568Dd134B78207C6c7B196c5eea" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "gas": "0xd0bd", + "value": "0x0", + "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e00000000000000000000000086ee25f6f0b4a568dd134b78207c6c7b196c5eea", + "nonce": "0xa", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719427263, + "chain": 7560, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/7560/run-1719427429.json b/broadcast/QuestFactory.s.sol/7560/run-1719427429.json new file mode 100644 index 00000000..d0899b2e --- /dev/null +++ b/broadcast/QuestFactory.s.sol/7560/run-1719427429.json @@ -0,0 +1,119 @@ +{ + "transactions": [ + { + "hash": "0x79d4bfe66e5af4f37c1a9d0e5e6618d6b443c2f2e7f57c1f4ad3858a6296cd93", + "transactionType": "CREATE", + "contractName": "QuestFactory", + "contractAddress": "0x86ee25f6f0b4a568dd134b78207c6c7b196c5eea", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x4bf164", + "value": "0x0", + "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b6040516143f890816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611ed6575080630b6fc16314611eaf57806311f4b35b14611e9157806313966db514611e7357806313a4057014611df7578063183a4f6e14611dde5780631c10893f14611d7c5780631cd64df414611d4257806323e2c1ba14611d1f5780632569296214611cd457806327b0655f14611c6f5780632de9480714611c3c57806332f58eb514611bf757806343ff27d114611ba95780634a4ee7b114611b80578063514e62fc14611b4757806354d1f13d14611b015780635caf9de114611ac357806364df049e14611a9c57806367dfa3e714611a7a57806370dfd40a1461198c578063715018a6146119465780637c93f9ee146119075780637e4176e3146117d65780637f7c0ef71461122c57806381589b1f1461112357806384ae2bc6146111015780638da5cb5b146110d657806397aba7f91461103f578063a1db1ba414611018578063a2e4459314610fde578063a5454dbd14610f72578063abab135a14610e50578063b4cbdd8b14610e11578063c42fe71814610d7d578063c6eba76614610c78578063cc923e0c14610c51578063ce53b15214610bdd578063d4faaa1714610bb6578063de0580dc14610abe578063e05d39ac146109fc578063e15cfcf514610832578063e1bc3aba146107ca578063e521cb921461075b578063ea22e4ab146106e2578063ec461ac414610660578063ed21bb8314610553578063eddd0d9c14610505578063f01a5934146103cd578063f04e283e1461034c578063f2fde38b146102de578063f8565efd1461029f5763fee81cf40361000f573461029c57602036600319011261029c576102836120d1565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b503461029c57602036600319011261029c576001600160a01b036102c16120d1565b6102c961435e565b166001600160a01b031960cc54161760cc5580f35b50602036600319011261029c576102f36120d1565b6102fb61435e565b8060601b1561033f576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029c576103616120d1565b61036961435e565b63389a75e1600c528082526020600c20805442116103c05790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b50610120908160031936011261029c576103e56120d1565b9067ffffffffffffffff9060a43582811161050157610408903690600401612257565b9160c4358181116104fd57610421903690600401612257565b9460e4358281116104f95761043a903690600401612257565b91610104359081116104f957610454903690600401612257565b91600160d454036104cf576020966104c195600260d455604051956104788761210e565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e08501526101008401528201526132cf565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b503461029c57602036600319011261029c577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561054561435e565b8060d255604051908152a180f35b503461029c576020806003193601126105015760043567ffffffffffffffff81116104fd578160609361058d6105b8933690600401612257565b906040805161059b81612172565b87815287858201520152816040519382858094519384920161234f565b810160cd8152030190209063ffffffff6106546008610641836009870154169461061c604051976105e889612172565b604051610603816105fc81600786016123d2565b03826121e2565b895261061560405180968193016123d2565b03846121e2565b8087019283526040870195865260405197889782895251918801526080870190612468565b9051858203601f19016040870152612468565b91511660608301520390f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760606106ac60206106993660048701612257565b816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c576107576105fc610743600860206107213660048901612321565b9190826040519384928337810160cd81520301902001604051928380926123d2565b604051918291602083526020830190612468565b0390f35b503461029c57602036600319011261029c576001600160a01b0361077d6120d1565b61078561435e565b1680156107a0576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff6107e76120fd565b6107ef61435e565b1661271081116108085761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029c576020908160031936011261029c5760043567ffffffffffffffff811161050157610866903690600401612321565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109d257600101948386541693843b156109ce576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109c3576109ab575b5081906004959697541695604051958680926318cbe5db60e11b82525afa80156109a057869061094e575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c49450610944604051948594604086526040860191612532565b918301520390a280f35b508084813d8311610999575b61096481836121e2565b81010312610994577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c4935161090a565b600080fd5b503d61095a565b6040513d88823e3d90fd5b90600495966109ba849361215e565b969550906108df565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029c57610a0b36612275565b9560409997989995919594929451988451610a2a818c6020890161234f565b8a0160cd815260018b60206001600160a01b039d8e9403019020015416610a94578960cb541615610a6a5760209a610a61996124c6565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029c5761016036600319011261029c576004359063ffffffff8216820361029c57610aea6120e7565b9167ffffffffffffffff60c4358181116104f957610b0c903690600401612257565b9260e43582811161050157610b25903690600401612257565b91610104358181116104fd57610b3f903690600401612257565b916101243591821161029c5750610b5a903690600401612257565b91604051948051610b6f81886020850161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a619560a435916084359160643591604435916124c6565b503461029c578060031936011261029c5760206001600160a01b0360cc5416604051908152f35b50604036600319011261029c5767ffffffffffffffff6004358181116104fd57610c0b903690600401612321565b505060243590811161050157610c25903690600401612321565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029c578060031936011261029c5760206001600160a01b0360d35416604051908152f35b503461029c5760a036600319011261029c5760043567ffffffffffffffff811161050157610caa903690600401612321565b90610cb36120e7565b91606435926001600160a01b03938481168091036109ce578460016040518587823760208187810160cd8152030190200154163303610d53577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d2560405195869560e0875260e0870191612532565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff610d9a6120fd565b610da261435e565b166127108111610de7576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c576001600160a01b03610e336120d1565b610e3b61435e565b166001600160a01b031960c954161760c95580f35b503461029c576101008060031936011261050157610e6c6120d1565b67ffffffffffffffff929060a4358481116104fd57610e8f903690600401612257565b9160c43585811161050157610ea8903690600401612257565b9460e43590811161050157610ec1903690600401612257565b604051948451610ed581886020890161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a61958760405196610f1588612141565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f5261248d565b61012083015260405190610f658261218e565b8152610140820152613901565b503461029c57608036600319011261029c5760243563ffffffff811681036105015767ffffffffffffffff6044358181116104f957610fb5903690600401612257565b9260643591821161029c576107576107438585610fd53660048801612257565b50600435613f8a565b50602036600319011261029c5760043567ffffffffffffffff81116105015761100e611015913690600401612321565b3391612567565b80f35b503461029c578060031936011261029c5760206001600160a01b0360cb5416604051908152f35b503461029c57604036600319011261029c5760243567ffffffffffffffff81116105015736602382011215610501576110bd602092603c61108d6110c5943690602481600401359101612220565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c52206142a4565b919091614172565b6001600160a01b0360405191168152f35b503461029c578060031936011261029c576020638b78c6d819546001600160a01b0360405191168152f35b503461029c578060031936011261029c57602061ffff60da5416604051908152f35b503461029c57610100908160031936011261029c576111406120d1565b67ffffffffffffffff9060a4358281116104f957611162903690600401612257565b9160c4359081116104f95761117b903690600401612257565b5060405192825161119081866020870161234f565b840160cd815260018560206001600160a01b0397889403019020015416610a94578360cb541615610a6a57602094610a619385604051946111d086612141565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516112098161218e565b82815260e08401526040519061121e8261218e565b828252830152610f5261248d565b503461029c57602036600319011261029c5760043567ffffffffffffffff81116105015760206112636112c2923690600401612257565b8361014060405161127381612141565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690829061130f6040516112f4816105fc81600487016123d2565b6112fc613161565b6020815191012090602081519101201490565b156116f0576040516305f5c3df60e21b8152602081600481875afa9081156116e55785916116af575b505b6040519263f7c618c160e01b8452602084600481885afa9384156109a057869461167e575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109c357879461165d575b506040516378e9792560e01b81526020816004818a5afa90811561165257889161161c575b50604051906318cbe5db60e11b82526020826004818b5afa9182156116115789926115d9575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115ce578a94611595575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561158a57906101409998979695949392916101609c98611553575b509061ffff916001600160a01b036040519a6114978c612141565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff9291985061157b9060203d602011611583575b61157381836121e2565b8101906131c5565b97909161147c565b503d611569565b6040513d8d823e3d90fd5b9093506020813d6020116115c6575b816115b1602093836121e2565b810103126115c25751926003611428565b8980fd5b3d91506115a4565b6040513d8c823e3d90fd5b9091506020813d602011611609575b816115f5602093836121e2565b81010312611605575190386113e9565b8880fd5b3d91506115e8565b6040513d8b823e3d90fd5b90506020813d60201161164a575b81611637602093836121e2565b810103126116465751386113c3565b8780fd5b3d915061162a565b6040513d8a823e3d90fd5b61167791945060203d6020116115835761157381836121e2565b923861139e565b6116a191945060203d6020116116a8575b61169981836121e2565b810190613142565b923861135f565b503d61168f565b90506020813d6020116116dd575b816116ca602093836121e2565b810103126116d9575138611338565b8480fd5b3d91506116bd565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117cb578491611799575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116e557859161175c575b509161133a565b90506020813d602011611791575b81611777602093836121e2565b810103126116d9575161ffff811681036116d95738611755565b3d915061176a565b90506020813d6020116117c3575b816117b4602093836121e2565b810103126104f9575138611716565b3d91506117a7565b6040513d86823e3d90fd5b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5761180d60206106993660048601612257565b810160cd8152030190206001600160a01b0380600183015416906118fc6002840154936118ed60038201549360405161184d816105fc81600488016123d2565b60058401549180600686015416906118c46040519361187a856118738160078c016123d2565b03866121e2565b63ffffffff60096040519961189d8b61189681600885016123d2565b038c6121e2565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b0190612468565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e0880152612468565b90848203610100860152612468565b906101208301520390f35b503461029c57602036600319011261029c576001600160a01b036119296120d1565b61193161435e565b166001600160a01b031960cb54161760cb5580f35b508060031936011261029c5761195a61435e565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029c576119a16120d1565b67ffffffffffffffff9160a435838111610501576119c3903690600401612257565b9260c435908111610501576119dc903690600401612257565b50600160d454036104cf576020926104c191600260d45560405191611a008361210e565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a438161218e565b81815260e0830152604051611a578161218e565b81815261010083015260405190611a6d8261218e565b81526101208201526132cf565b503461029c578060031936011261029c57602061ffff60d15416604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360ca5416604051908152f35b50604036600319011261029c5760043567ffffffffffffffff811161050157611af3611015913690600401612321565b611afb6120e7565b91612567565b508060031936011261029c5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029c57604036600319011261029c57611b616120d1565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029c57611015611b986120d1565b611ba061435e565b6024359061437b565b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760206003611be3826106993660048801612257565b810160cd8152030190200154604051908152f35b503461029c57602036600319011261029c576001600160a01b03611c196120d1565b611c2161435e565b1680156107a0576001600160a01b031960d354161760d35580f35b503461029c57602036600319011261029c57611c566120d1565b90638b78c6d8600c5252602080600c2054604051908152f35b503461029c57604036600319011261029c5760043567ffffffffffffffff8111610501576040602092611ca860ff933690600401612257565b6001600160a01b03611cc1611cbb6120e7565b92612372565b9116825284522054166040519015158152f35b508060031936011261029c5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029c57602036600319011261029c57611d3961435e565b60043560dc5580f35b503461029c57604036600319011261029c57602090611d5f6120d1565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029c57611d916120d1565b611d9961435e565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029c576110156004353361437b565b611e0036612275565b94600160d49a979a95929594939454036104cf576020996104c198600260d45563ffffffff60405199611e328b61210e565b1689526001600160a01b03809b168c8a015260408901526060880152608087015260a086015260c085015260e08401526101008301526101208201526132cf565b503461029c578060031936011261029c57602060d254604051908152f35b503461029c578060031936011261029c57602060dc54604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360c95416604051908152f35b9050346105015761010036600319011261050157611ef26120d1565b611efa6120e7565b6044356001600160a01b03928382168092036109ce57606435918483168093036120cd57608435948086168096036116465760c4359561ffff871680970361160557885460ff8160081c16159889809a6120c0575b80156120a9575b15612041575060ff1981166001178a5588612030575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc55611ff95780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611f6c565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611f565750600160ff831614611f56565b50600160ff831610611f4f565b8680fd5b600435906001600160a01b038216820361099457565b602435906001600160a01b038216820361099457565b6004359061ffff8216820361099457565b610140810190811067ffffffffffffffff82111761212b57604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57604052565b6060810190811067ffffffffffffffff82111761212b57604052565b6020810190811067ffffffffffffffff82111761212b57604052565b6040810190811067ffffffffffffffff82111761212b57604052565b6080810190811067ffffffffffffffff82111761212b57604052565b90601f8019910116810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57601f01601f191660200190565b92919261222c82612204565b9161223a60405193846121e2565b829481845281830111610994578281602093846000960137010152565b9080601f830112156109945781602061227293359101612220565b90565b6101406003198201126109945760043563ffffffff8116810361099457916024356001600160a01b0381168103610994579160443591606435916084359160a4359167ffffffffffffffff9060c43582811161099457816122d891600401612257565b9260e43583811161099457826122f091600401612257565b9261010435818111610994578361230991600401612257565b92610124359182116109945761227291600401612257565b9181601f840112156109945782359167ffffffffffffffff8311610994576020838186019501011161099457565b60005b8381106123625750506000910152565b8181015183820152602001612352565b602061238b91816040519382858094519384920161234f565b810160cd81520301902090565b90600182811c921680156123c8575b60208310146123b257565b634e487b7160e01b600052602260045260246000fd5b91607f16916123a7565b90600092918054916123e383612398565b9182825260019384811690816000146124455750600114612405575b50505050565b90919394506000526020928360002092846000945b8386106124315750505050010190388080806123ff565b80548587018301529401938590820161241a565b9294505050602093945060ff191683830152151560051b010190388080806123ff565b906020916124818151809281855285808601910161234f565b601f01601f1916010190565b6040519061249a826121aa565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b979593916001600160a01b036122729a9896949263ffffffff6040519b6124ec8d612141565b168b521660208a015260408901526060880152608087015260a086015260c085015260e084015261010083015261252161248d565b610120830152610140820152613901565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361099457565b612575919392933691612220565b9160609280518061305f575b505060c083805181010312610994576020830151926040810151916060820151916125ae60808201612553565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109945760c001519063ffffffff82168203610994576040516125fc816121aa565b60108082527f303132333435363738396162636465660000000000000000000000000000000060208301526040519461263486612172565b6024865260208601926040368537600091825b848110612f665750505050506001600160a01b03979893886126a96106156126ec98966126e0966126a4600761268d60206126cd9a604051809381928d5192839161234f565b810160cd81520301902001604051948580926123d2565b613f8a565b956040519a8b961660208701521660408501526080606085015260a0840190612468565b601f199384848303016080850152612468565b039081018552846121e2565b8060ff1c601b8110612f54575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b16606082015260418152612761816121c6565b8151820191608081602085019403126109945761278060208201612553565b9161278d60408301612553565b92606083015167ffffffffffffffff90818111610994578660206127b392870101613100565b9560808501519182116109945760206127ce92860101613100565b9260405160208188516127e48183858d0161234f565b810160cd8152030190206003810154600181018111612f3e5760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612c5457600096612f15575b506110bd61287391600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c86206142a4565b6001600160a01b038060c95416911603612eeb5760d2543410612ec1576001600160a01b03841683528160205260ff604084205416612e975760028201546001820111612e6d576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a16604483015260448252612946826121c6565b6020825192019034905af13d15612e68573d61296181612204565b9061296f60405192836121e2565b81528360203d92013e5b15612e3e5760046112f4826001600160a01b0360016129eb9501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129d86001600160a01b038c16946020830190612468565b0390a36105fc60405180948193016123d2565b15612d9257506040516305f5c3df60e21b8152602081600481875afa908115612c5457600091612d60575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d823433160405180612a546001600160a01b03881694898d8461319a565b0390a35b6001600160a01b038516612a6f575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612c5457600091612d2e575b5060dc541015612c945760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612c5457600092612c60575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612c5457600094612c19575b50976001600160a01b03819795612be39997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b90957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a0190612468565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e0860190612468565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a1388080808080612a67565b90936020823d602011612c4c575b81612c34602093836121e2565b8101031261029c575051926001600160a01b03612b20565b3d9150612c27565b6040513d6000823e3d90fd5b90916020823d602011612c8c575b81612c7b602093836121e2565b8101031261029c5750519038612ae0565b3d9150612c6e565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612be396946001600160a01b0360d2549260405193849360c0855283612d0360c087018d612468565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612bc1565b906020823d602011612d58575b81612d48602093836121e2565b8101031261029c57505138612a94565b3d9150612d3b565b906020823d602011612d8a575b81612d7a602093836121e2565b8101031261029c57505138612a16565b3d9150612d6d565b6040516369d2dc0560e01b8152602081600481885afa918215612e32578092612dfd575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612df56001600160a01b03881694898d8461319a565b0390a3612a58565b9091506020823d602011612e2a575b81612e19602093836121e2565b8101031261029c5750513880612db6565b3d9150612e0c565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612979565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b612873919650612f366110bd9160203d6020116116a85761169981836121e2565b969150612832565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612f3e57906126f9565b6004898183148015613055575b801561304b575b8015613041575b61300f575b612fea612fe28493612fcc938761300a971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c61414b565b51169a612fd88161413c565b9b60001a9261414b565b53168661414b565b511694613004612ff98261413c565b9660001a918c61414b565b5361413c565b612647565b94612fea612fe261300a9493602d6130348561302e612fcc979161413c565b9b61414b565b5393945050505089612f86565b50600a8314612f81565b5060088314612f7a565b5060068314612f73565b6040516004830180518019825260208301975090959284019491935b8097868210156130db5760018092019860ff808b51169182156130a6575050815301955b959661307b565b60020180516000198552909b50607f92509084908216838111156130d0575b50501601019561309f565b0138843983386130c5565b91909652838103601f1901845260008152602001604052919450925090503880612581565b81601f8201121561099457805161311681612204565b9261312460405194856121e2565b8184526020828401011161099457612272916020808501910161234f565b9081602091031261099457516001600160a01b03811681036109945790565b6040519061316e826121aa565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131ba60409396959496606084526060840190612468565b951660208201520152565b90816020910312610994575180151581036109945790565b8181106131e8575050565b600081556001016131dd565b9190601f811161320357505050565b61322f926000526020600020906020601f840160051c83019310613231575b601f0160051c01906131dd565b565b9091508190613222565b979461329f6001600160a01b03956132916101409c999f9e9d9a966132838d63ffffffff986132756132ad99610160808552840190612468565b916020818403910152612468565b8d810360408f015290612468565b908b820360608d01526123d2565b9089820360808b0152612468565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c0820151916132e1600093612372565b60018101916001600160a01b03835416610a945760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b03909216919061334581607481015b03601f1981018352826121e2565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f580156138f4576001600160a01b0390866021521692836001600160a01b0319825416179055608081015160028301556133b66004830154612398565b601f81116138d2575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116138445781906134638261345a6007880154612398565b600788016131f4565b602090601f8311600114613863578892613858575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116138445781906134c4826134bb6008880154612398565b600888016131f4565b602090601f83116001146137d55788926137ca575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b156120cd576135a59360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e4830190612468565b038183885af180156109a0576137b7575b50846001600160a01b0360208301511660a08301516080840151823b156104f95760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af18015613798576137a3575b5050823b156116d957846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af1801561379857613784575b5050823b156116d9576040519463f2fde38b60e01b8652336004870152808660248183885af19586156137775784959661375b575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516137556101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c61323b565b0390a390565b81929394506137699061215e565b61029c5790818493926136d7565b50604051903d90823e3d90fd5b61378d9061215e565b6116d95784386136a2565b6040513d84823e3d90fd5b6137ac9061215e565b6116d957843861365e565b6137c39095919561215e565b93386135b6565b0151905038806134d9565b9250600885018852602088209088935b601f1984168510613829576001945083601f19811610613810575b505050811b0160088301556134f1565b015160001960f88460031b161c19169055388080613800565b818101518355602094850194600190930192909101906137e5565b602487634e487b7160e01b81526041600452fd5b015190503880613478565b9250600785018852602088209088935b601f19841685106138b7576001945083601f1981161061389e575b505050811b016007830155613490565b015160001960f88460031b161c1916905538808061388e565b81810151835560209485019460019093019290910190613873565b600483018652602086206138ee91601f0160051c8101906131dd565b386133bf565b633011642586526004601cfd5b60c0810151613911600091612372565b916001600160a01b0360cb54166040516020810190613959816133374246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f7d5760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e75578190613a3f82613a366004870154612398565b600487016131f4565b602090601f8311600114613f0e578692613f03575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e75578190613a9f82613a966007870154612398565b600787016131f4565b602090601f8311600114613e94578692613e89575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e75578190613b0082613af76008870154612398565b600887016131f4565b602090601f8311600114613e06578692613dfb575b50508160011b916000199060031b1c19161760088201555b815163ffffffff1690600981018263ffffffff19825416179055610140830151906101008401519060c08501519060e0860151928860208801516001600160a01b03169560408901958987519860608201998a519160808401519360a0019c8d5195604051996001600160a01b038b9a169c339c60040191613baf9a8c61323b565b037fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd91a360208401516001600160a01b03169051915192608085015190519060c086015160d15461ffff169260ca546001600160a01b0316926001600160a01b038b163b156115c25791613c7a918a9796959493604051998a9889987ffb96aa2e000000000000000000000000000000000000000000000000000000008a5260048a0152602489015260448801526064870152608486015261010060a4860152610104850190612468565b9160c484015260e48301520381836001600160a01b0389165af18015613dd357613dde575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613dd35783908192613d9e575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d915781606052806040526001600160a01b0383163b156105015763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561379857613d7f57505090565b613d89829161215e565b61029c575090565b637939f42482526004601cfd5b9150506020813d602011613dcb575b81613dba602093836121e2565b810103126109945751826064613cf6565b3d9150613dad565b6040513d85823e3d90fd5b6001600160a01b039192613df360209261215e565b929150613c9f565b015190503880613b15565b9250600884018652602086209086935b601f1984168510613e5a576001945083601f19811610613e41575b505050811b016008820155613b2d565b015160001960f88460031b161c19169055388080613e31565b81810151835560209485019460019093019290910190613e16565b602485634e487b7160e01b81526041600452fd5b015190503880613ab4565b9250600784018652602086209086935b601f1984168510613ee8576001945083601f19811610613ecf575b505050811b016007820155613acc565b015160001960f88460031b161c19169055388080613ebf565b81810151835560209485019460019093019290910190613ea4565b015190503880613a54565b9250600484018652602086209086935b601f1984168510613f62576001945083601f19811610613f49575b505050811b016004820155613a6c565b015160001960f88460031b161c19169055388080613f39565b81810151835560209485019460019093019290910190613f1e565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613fe45790613fbb565b50905061412e57601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a90603082820601845304918261401c5791506140be612272966062966080856140889b81019503018452519889967f7b22616374696f6e5478486173686573223a5b22000000000000000000000000602089015251809260348901906001190161234f565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b000000006034840152518093605084019061234f565b017f5d2c22616374696f6e54797065223a220000000000000000000000000000000060508201526140f982518093602060608501910161234f565b017f227d00000000000000000000000000000000000000000000000000000000000060608201520360428101845201826121e2565b632194895a6000526004601cfd5b6000198114612f3e5760010190565b90815181101561415c570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561428e57806141835750565b600181036141cf57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b6002810361421b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b60031461422457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b9060418151146000146142d2576142ce916020820151906060604084015193015160001a906142dc565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143525791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137775781516001600160a01b0381161561434c579190565b50600190565b50505050600090600390565b638b78c6d81954330361436d57565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212203e7fc49d11f35efc0ae6db80e30dee7264fabb42e7ad8ab7ee6080091a8cda0064736f6c63430008130033", + "nonce": "0x9", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x531becba60eb8b578f7aed7c8e3b0e9948b964c109260a0da4a039fa8df53fb1", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "function": "upgrade(address,address)", + "arguments": [ + "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", + "0x86Ee25F6F0b4A568Dd134B78207C6c7B196c5eea" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "gas": "0xd0bd", + "value": "0x0", + "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e00000000000000000000000086ee25f6f0b4a568dd134b78207c6c7b196c5eea", + "nonce": "0xa", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x3b1a8a", + "logs": [ + { + "address": "0x86ee25f6f0b4a568dd134b78207c6c7b196c5eea", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000001", + "blockHash": "0xfc9b5ed87f02eec70b1df3c5756fd185b52847e117c63d611089289e69e7b231", + "blockNumber": "0x2dc485", + "transactionHash": "0x79d4bfe66e5af4f37c1a9d0e5e6618d6b443c2f2e7f57c1f4ad3858a6296cd93", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000400000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x79d4bfe66e5af4f37c1a9d0e5e6618d6b443c2f2e7f57c1f4ad3858a6296cd93", + "transactionIndex": "0x1", + "blockHash": "0xfc9b5ed87f02eec70b1df3c5756fd185b52847e117c63d611089289e69e7b231", + "blockNumber": "0x2dc485", + "gasUsed": "0x3a6f3f", + "effectiveGasPrice": "0xf4a10", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x86ee25f6f0b4a568dd134b78207c6c7b196c5eea", + "l1Fee": "0x73c7fe0fef1b", + "l1GasPrice": "0x16018e9e5", + "l1GasUsed": "0x41c44" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x3bb1aa", + "logs": [ + { + "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x00000000000000000000000086ee25f6f0b4a568dd134b78207c6c7b196c5eea" + ], + "data": "0x", + "blockHash": "0xfc9b5ed87f02eec70b1df3c5756fd185b52847e117c63d611089289e69e7b231", + "blockNumber": "0x2dc485", + "transactionHash": "0x531becba60eb8b578f7aed7c8e3b0e9948b964c109260a0da4a039fa8df53fb1", + "transactionIndex": "0x2", + "logIndex": "0x1", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x531becba60eb8b578f7aed7c8e3b0e9948b964c109260a0da4a039fa8df53fb1", + "transactionIndex": "0x2", + "blockHash": "0xfc9b5ed87f02eec70b1df3c5756fd185b52847e117c63d611089289e69e7b231", + "blockNumber": "0x2dc485", + "gasUsed": "0x9720", + "effectiveGasPrice": "0xf4a10", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "contractAddress": null, + "l1Fee": "0x1185b847a80", + "l1GasPrice": "0x16018e9e5", + "l1GasUsed": "0x9f4" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719427429, + "chain": 7560, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/7560/run-1719427835.json b/broadcast/QuestFactory.s.sol/7560/run-1719427835.json new file mode 100644 index 00000000..ede2c6d0 --- /dev/null +++ b/broadcast/QuestFactory.s.sol/7560/run-1719427835.json @@ -0,0 +1,52 @@ +{ + "transactions": [ + { + "hash": "0xd74e4a9c486f179f2febf110d56cb7e530d4158c01acdf7eebec1713ac6ea9f3", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": "setQuestFee(uint16)", + "arguments": [ + "250" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0xd", + "chainId": "0x1d88" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x13aee", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xd74e4a9c486f179f2febf110d56cb7e530d4158c01acdf7eebec1713ac6ea9f3", + "transactionIndex": "0x1", + "blockHash": "0x949cb217e4b19b3c633b69346066b6e4f0deb08232953749b7f6b202c1217051", + "blockNumber": "0x2dc550", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0xf433c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1Fee": "0xe97e9a8d6c", + "l1GasPrice": "0x17f905e15", + "l1GasUsed": "0x79c" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719427835, + "chain": 7560, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/7560/run-latest.json b/broadcast/QuestFactory.s.sol/7560/run-latest.json index 3265185d..ede2c6d0 100644 --- a/broadcast/QuestFactory.s.sol/7560/run-latest.json +++ b/broadcast/QuestFactory.s.sol/7560/run-latest.json @@ -1,142 +1,21 @@ { "transactions": [ { - "hash": "0xed71d681cf8882cf80098bda83f3b5673b16269d9f7ba1f6f9261dfff429154e", - "transactionType": "CREATE2", - "contractName": null, - "contractAddress": "0xfe9af934a9d1bd4109d0d698635c19385389e85f", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", - "gas": "0x33b58e", - "value": "0x0", - "input": "0x000000000000000000000000000000000000000000000000000000000000002060806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b620019721760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b612b0e806200015c6000396000f3fe608060405234801561001057600080fd5b50600436106102775760003560e01c80637c93f9ee11610160578063cc4aa204116100d8578063e521cb921161008c578063f2fde38b11610071578063f2fde38b146105be578063f8565efd146105d1578063fb41808a146105e457600080fd5b8063e521cb9214610598578063ec461ac4146105ab57600080fd5b8063d547741f116100bd578063d547741f1461055f578063d693e8d314610572578063e1bc3aba1461058557600080fd5b8063cc4aa20414610544578063d4faaa171461054c57600080fd5b806397aba7f91161012f578063a217fddf11610114578063a217fddf14610516578063a96a1cb01461051e578063b4cbdd8b1461053157600080fd5b806397aba7f9146104f0578063a1db1ba41461050357600080fd5b80637c93f9ee146104275780637e4176e31461043a5780638da5cb5b146104a657806391d14854146104b757600080fd5b806343f8bc6f116101f357806367dfa3e7116101c2578063715018a6116101a7578063715018a6146103f957806376319ee01461040157806378077f8d1461041457600080fd5b806367dfa3e7146103b5578063695ef19f146103d657600080fd5b806343f8bc6f1461036957806343ff27d11461037c57806361ab146b1461038f57806364df049e146103a257600080fd5b80632d2554711161024a578063358764761161022f578063358764761461033057806336568abe146103435780633ef17b171461035657600080fd5b80632d255471146103135780632f2ff15d1461031b57600080fd5b806301ffc9a71461027c5780630b6fc163146102a4578063248a9ca3146102cf57806327b0655f14610300575b600080fd5b61028f61028a366004612308565b61060b565b60405190151581526020015b60405180910390f35b60c9546102b7906001600160a01b031681565b6040516001600160a01b03909116815260200161029b565b6102f26102dd36600461234a565b60009081526097602052604090206001015490565b60405190815260200161029b565b61028f61030e366004612436565b6106a4565b6102f26106e6565b61032e610329366004612484565b61072c565b005b61032e61033e3660046124a7565b610756565b61032e610351366004612484565b61096b565b60ce546102b7906001600160a01b031681565b6102b761037736600461252d565b6109f7565b6102f261038a3660046125c8565b61104c565b61032e61039d3660046125fd565b611077565b60ca546102b7906001600160a01b031681565b60d1546103c39061ffff1681565b60405161ffff909116815260200161029b565b61028f6103e43660046125fd565b60d06020526000908152604090205460ff1681565b61032e6110ae565b61032e61040f366004612618565b6110c2565b60cf546102b7906001600160a01b031681565b61032e6104353660046125fd565b6115d8565b6104816104483660046125c8565b805160208183018101805160cd825292820191909301209152600181015460028201546003909201546001600160a01b03909116919083565b604080516001600160a01b03909416845260208401929092529082015260600161029b565b6033546001600160a01b03166102b7565b61028f6104c5366004612484565b60009182526097602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6102b76104fe366004612685565b61160f565b60cb546102b7906001600160a01b031681565b6102f2600081565b61032e61052c3660046125fd565b611671565b61032e61053f3660046125fd565b6116a8565b6102f26116df565b60cc546102b7906001600160a01b031681565b61032e61056d366004612484565b611710565b61032e6105803660046126da565b611735565b61032e610593366004612711565b611768565b61032e6105a63660046125fd565b6117e5565b6104816105b93660046125c8565b61185c565b61032e6105cc3660046125fd565b6118ab565b61032e6105df3660046125fd565b61193b565b6102f27ff9ca453be4e83785e69957dffc5e557020ebe7df32422c6d32ccad977982cadd81565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061069e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600060cd836040516106b69190612759565b90815260408051602092819003830190206001600160a01b0385166000908152925290205460ff16905092915050565b6040517f657263313135350000000000000000000000000000000000000000000000000060208201526027015b6040516020818303038152906040528051906020012081565b60008281526097602052604090206001015461074781611981565b610751838361198b565b505050565b600054610100900460ff16158080156107765750600054600160ff909116105b806107905750303b158015610790575060005460ff166001145b6108075760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b6000805460ff19166001179055801561084757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b61085082611a2d565b610858611ab3565b61086182611b30565b60c980546001600160a01b03808b1673ffffffffffffffffffffffffffffffffffffffff199283161790925560ce80548a841690831617905560cf805489841690831617905560ca805488841690831617905560d180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166107d017905560cb805487841690831617905560cc805492861692909116919091179055801561096157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b6001600160a01b03811633146109e95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016107fe565b6109f38282611b65565b5050565b60007ff9ca453be4e83785e69957dffc5e557020ebe7df32422c6d32ccad977982cadd610a2381611981565b600060cd84604051610a359190612759565b90815260405190819003602001902060018101549091506001600160a01b031615610a8c576040517fb2431b6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f657263323000000000000000000000000000000000000000000000000000000060208201526025016040516020818303038152906040528051906020012085604051602001610adf9190612759565b6040516020818303038152906040528051906020012003610d18576001600160a01b038a16600090815260d0602052604081205460ff1615159003610b50576040517f9f7fdf3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cb54600090610b68906001600160a01b0316611be8565b9050806001600160a01b0316336001600160a01b03167f7ffd904b9426b92270b251e237818b61230a9c7dc857d7e6130dddc21b76193787898f8f8f8f8f604051610bb997969594939291906127a1565b60405180910390a3808260010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550878260020181905550806001600160a01b031663938299b68c8c8c8c8c8b60ce60009054906101000a90046001600160a01b031660d160009054906101000a900461ffff1660ca60009054906101000a90046001600160a01b03166040518a63ffffffff1660e01b8152600401610c69999897969594939291906127fa565b600060405180830381600087803b158015610c8357600080fd5b505af1158015610c97573d6000803e3d6000fd5b50506040517ff2fde38b0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038416925063f2fde38b91506024015b600060405180830381600087803b158015610cf657600080fd5b505af1158015610d0a573d6000803e3d6000fd5b505050508093505050611040565b6040517f657263313135350000000000000000000000000000000000000000000000000060208201526027016040516020818303038152906040528051906020012085604051602001610d6b9190612759565b604051602081830303815290604052805190602001200361100e576033546001600160a01b03163314610dca576040517f764a7c5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cc54600090610de2906001600160a01b0316611be8565b9050806001600160a01b0316336001600160a01b03167f7ffd904b9426b92270b251e237818b61230a9c7dc857d7e6130dddc21b76193787898f8f8f8f8f604051610e3397969594939291906127a1565b60405180910390a3808260010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550878260020181905550806001600160a01b031663b7af306e8c8c8c8c8c8b60ce60009054906101000a90046001600160a01b03166040518863ffffffff1660e01b8152600401610eba979695949392919061285f565b600060405180830381600087803b158015610ed457600080fd5b505af1158015610ee8573d6000803e3d6000fd5b50506040517ff2fde38b0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038416925063f2fde38b9150602401600060405180830381600087803b158015610f4657600080fd5b505af1158015610f5a573d6000803e3d6000fd5b505060cf546001600160a01b03908116908e1603915061100590505760cf546040517f731133e90000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600480840191909152602483018b9052604483018c90526080606484015260848301527f307830300000000000000000000000000000000000000000000000000000000060a48301529091169063731133e99060c401610cdc565b92506110409050565b6040517fd5fde11d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50979650505050505050565b600060cd8260405161105e9190612759565b9081526020016040518091039020600301549050919050565b61107f611c89565b60ce805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6110b6611c89565b6110c06000611ce3565b565b600060cd846040516110d49190612759565b908152602001604051809103902090508060020154816003015460016110fa91906128e0565b1115611132576040517f571e5b1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526020829052604090205460ff161515600103611180576040517ff5f915f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010160009054906101000a90046001600160a01b03166001600160a01b03166316049ddf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f991906128f3565b61122f576040517fe5ec6b0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010160009054906101000a90046001600160a01b03166001600160a01b03166378e979256040518163ffffffff1660e01b8152600401602060405180830381865afa158015611284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a89190612910565b4210156112e1576040517f5971011300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010160009054906101000a90046001600160a01b03166001600160a01b0316633197cbb66040518163ffffffff1660e01b8152600401602060405180830381865afa158015611336573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135a9190612910565b421115611393576040517f8b602a4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8233856040516020016113a7929190612929565b60405160208183030381529060405280519060200120146113f4576040517f0af806e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60c9546001600160a01b031661140a848461160f565b6001600160a01b03161461144a576040517f05d0fdda00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152602082905260408120805460ff1916600117905560038201805490919061147690612974565b9091555060ce546040517fd0def5210000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d0def521906114c5903390889060040161298e565b600060405180830381600087803b1580156114df57600080fd5b505af11580156114f3573d6000803e3d6000fd5b5050505060ce60009054906101000a90046001600160a01b03166001600160a01b031663010a38f56040518163ffffffff1660e01b8152600401602060405180830381865afa15801561154a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156e9190612910565b60cd8560405161157e9190612759565b908152604051908190036020018120600101546001600160a01b03169033907fa9e09a39b54248cb5161a8bad4e544f88b8aa2da99e7c425846bece6703cc1fc906115ca9089906129b0565b60405180910390a450505050565b6115e0611c89565b60cb805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c016040516020818303038152906040528051906020012090506116698184611d42565b949350505050565b611679611c89565b60cf805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6116b0611c89565b60c9805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6040517f65726332300000000000000000000000000000000000000000000000000000006020820152602501610713565b60008281526097602052604090206001015461172b81611981565b6107518383611b65565b61173d611c89565b6001600160a01b0391909116600090815260d060205260409020805460ff1916911515919091179055565b611770611c89565b6127108161ffff1611156117b0576040517f4ae19ab600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60d180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b6117ed611c89565b6001600160a01b03811661182d576040517f0855380c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60ca805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60008060008060cd856040516118729190612759565b908152604051908190036020019020600181015460028201546003909201546001600160a01b0390911695509093509150509193909250565b6118b3611c89565b6001600160a01b03811661192f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fe565b61193881611ce3565b50565b611943611c89565b60cc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b03163b151590565b6119388133611d66565b60008281526097602090815260408083206001600160a01b038516845290915290205460ff166109f35760008281526097602090815260408083206001600160a01b03851684529091529020805460ff191660011790556119e93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600054610100900460ff16611aaa5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b61193881611ddb565b600054610100900460ff166110c05760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b611b3b60008261198b565b6119387ff9ca453be4e83785e69957dffc5e557020ebe7df32422c6d32ccad977982cadd8261198b565b60008281526097602090815260408083206001600160a01b038516845290915290205460ff16156109f35760008281526097602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b038116611c845760405162461bcd60e51b815260206004820152601660248201527f455243313136373a20637265617465206661696c65640000000000000000000060448201526064016107fe565b919050565b6033546001600160a01b031633146110c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b603380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000611d518585611e58565b91509150611d5e81611e9d565b509392505050565b60008281526097602090815260408083206001600160a01b038516845290915290205460ff166109f357611d9981612002565b611da4836020612014565b604051602001611db59291906129c3565b60408051601f198184030181529082905262461bcd60e51b82526107fe916004016129b0565b600054610100900460ff1661192f5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b6000808251604103611e8e5760208301516040840151606085015160001a611e8287828585612244565b94509450505050611e96565b506000905060025b9250929050565b6000816004811115611eb157611eb1612a44565b03611eb95750565b6001816004811115611ecd57611ecd612a44565b03611f1a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107fe565b6002816004811115611f2e57611f2e612a44565b03611f7b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107fe565b6003816004811115611f8f57611f8f612a44565b036119385760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b606061069e6001600160a01b03831660145b60606000612023836002612a73565b61202e9060026128e0565b67ffffffffffffffff81111561204657612046612363565b6040519080825280601f01601f191660200182016040528015612070576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106120a7576120a7612a92565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061210a5761210a612a92565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612146846002612a73565b6121519060016128e0565b90505b60018111156121ee577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061219257612192612a92565b1a60f81b8282815181106121a8576121a8612a92565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936121e781612ac1565b9050612154565b50831561223d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107fe565b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561227b57506000905060036122ff565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156122cf573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166122f8576000600192509250506122ff565b9150600090505b94509492505050565b60006020828403121561231a57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461223d57600080fd5b60006020828403121561235c57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126123a357600080fd5b813567ffffffffffffffff808211156123be576123be612363565b604051601f8301601f19908116603f011681019082821181831017156123e6576123e6612363565b816040528381528660208588010111156123ff57600080fd5b836020870160208301376000602085830101528094505050505092915050565b80356001600160a01b0381168114611c8457600080fd5b6000806040838503121561244957600080fd5b823567ffffffffffffffff81111561246057600080fd5b61246c85828601612392565b92505061247b6020840161241f565b90509250929050565b6000806040838503121561249757600080fd5b8235915061247b6020840161241f565b600080600080600080600060e0888a0312156124c257600080fd5b6124cb8861241f565b96506124d96020890161241f565b95506124e76040890161241f565b94506124f56060890161241f565b93506125036080890161241f565b925061251160a0890161241f565b915061251f60c0890161241f565b905092959891949750929550565b600080600080600080600060e0888a03121561254857600080fd5b6125518861241f565b96506020880135955060408801359450606088013593506080880135925060a088013567ffffffffffffffff8082111561258a57600080fd5b6125968b838c01612392565b935060c08a01359150808211156125ac57600080fd5b506125b98a828b01612392565b91505092959891949750929550565b6000602082840312156125da57600080fd5b813567ffffffffffffffff8111156125f157600080fd5b61166984828501612392565b60006020828403121561260f57600080fd5b61223d8261241f565b60008060006060848603121561262d57600080fd5b833567ffffffffffffffff8082111561264557600080fd5b61265187838801612392565b945060208601359350604086013591508082111561266e57600080fd5b5061267b86828701612392565b9150509250925092565b6000806040838503121561269857600080fd5b82359150602083013567ffffffffffffffff8111156126b657600080fd5b6126c285828601612392565b9150509250929050565b801515811461193857600080fd5b600080604083850312156126ed57600080fd5b6126f68361241f565b91506020830135612706816126cc565b809150509250929050565b60006020828403121561272357600080fd5b813561ffff8116811461223d57600080fd5b60005b83811015612750578181015183820152602001612738565b50506000910152565b6000825161276b818460208701612735565b9190910192915050565b6000815180845261278d816020860160208601612735565b601f01601f19169290920160200192915050565b60e0815260006127b460e083018a612775565b82810360208401526127c6818a612775565b6001600160a01b0398909816604084015250506060810194909452608084019290925260a083015260c09091015292915050565b60006101206001600160a01b03808d1684528b60208501528a60408501528960608501528860808501528160a085015261283682850189612775565b96811660c085015261ffff9590951660e084015250509116610100909101529695505050505050565b60006001600160a01b03808a16835288602084015287604084015286606084015285608084015260e060a084015261289a60e0840186612775565b915080841660c08401525098975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561069e5761069e6128b1565b60006020828403121561290557600080fd5b815161223d816126cc565b60006020828403121561292257600080fd5b5051919050565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008360601b16815260008251612966816014850160208701612735565b919091016014019392505050565b60006000198203612987576129876128b1565b5060010190565b6001600160a01b03831681526040602082015260006116696040830184612775565b60208152600061223d6020830184612775565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516129fb816017850160208801612735565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612a38816028840160208801612735565b01602801949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000816000190483118215151615612a8d57612a8d6128b1565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081612ad057612ad06128b1565b50600019019056fea2646970667358221220c3bb00e7280dbac1936435a41cd209f2c124aded7885147018c2354f87807a5c64736f6c63430008100033", - "nonce": "0x1", - "chainId": "0x1d88" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x5a1929cd7a28967133cf0f86a16ceec4a76efeb49a67ba022f30fc366d453a6a", - "transactionType": "CREATE2", - "contractName": null, - "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", - "gas": "0xf39f2", - "value": "0x0", - "input": "0x00000000000000000000000000000000000000000000000000000000000000206080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000fe9af934a9d1bd4109d0d698635c19385389e85f000000000000000000000000d28fbf7569f31877922cdc31a1a5b3c504e8faa100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x2", - "chainId": "0x1d88" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x2fe3c22b1c8f3d1132db73dce19dad5b83326403df5ca89521c18c4cc327cd89", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0xf7f2b3bed0dabea90d7c431d5bde71dac4e919e6", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", - "value": "0x0", - "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea2646970667358221220096e88526d293ee1bcd0c29b9a83a4c4eaecf61872e6c022897ca22e2dfd1b4064736f6c63430008130033", - "nonce": "0x3", - "chainId": "0x1d88" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x0aa2b1cd8a6d0da293bec749cb7a870bd78dcd6779d98e015acd6984de9c1088", - "transactionType": "CALL", - "contractName": null, - "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "function": "upgrade(address,address)", - "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0xF7f2b3Bed0DaBEA90D7c431d5bDE71DaC4e919E6" - ], - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0bd", - "value": "0x0", - "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000f7f2b3bed0dabea90d7c431d5bde71dac4e919e6", - "nonce": "0x4", - "chainId": "0x1d88" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x9b3ef6a8053600ff8833095da85594671456376d964374aec8a728b96038d180", - "transactionType": "CREATE", - "contractName": "Quest", - "contractAddress": "0x6218cfec353b0b0680b7d59fa77b8b9ade593747", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x207bf5", - "value": "0x0", - "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611c4590816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d2146116d157816309a69f571461107457816316049ddf146116ad57816317a7e45e1461168e57816325692962146116435781633197cbb6146116245781633dd4d94f146115315781633ef17b171461150957816344a22c3614610ca35781634719b0d4146114ea5781634e71d92d1461119e5781634f51407c1461117357816354d1f13d1461112d5781635c975abb1461110957816364df049e146110de57816367dfa3e7146110bb57816369940d791461109357816369d2dc05146110745781636cb4e6111461104d578163715018a6146110065781637282a4aa14610f2357816378e9792514610f045781637969256414610ddf5781637b16e429146109b8578163842acd6814610d0f57816385f036ce14610cd85781638a2229ce14610ca35781638afbf66914610a675781638da5cb5b14610a3b578163a26dbf2614610a1c578163b0e21e8a146109e0578163cb664436146109b8578163e9870ee514610999578163ea8a1af0146108d0578163ef89c4e614610899578163f04e283e14610815578163f2fde38b146107a6578163f38be19d146102e1578163f4c17a6b1461024657508063f7c618c11461021f5763fee81cf403610011573461021b57602036600319011261021b57602091610205611884565b9063389a75e1600c525281600c20549051908152f35b5080fd5b503461021b578160031936011261021b576020906001600160a01b03609954169051908152f35b9050346102dd57826003193601126102dd576020825180926313d4501f60e21b825281305afa9283156102d25792610298575b5061271061029060209361ffff60a05416906118d9565b049051908152f35b91506020823d82116102ca575b816102b26020938361175c565b810103126102c557905190612710610279565b600080fd5b3d91506102a5565b8251903d90823e3d90fd5b8280fd5b919050346102dd576101203660031901126102dd576102fe611884565b67ffffffffffffffff919060a4358381116107a257366023820112156107a25780850135938661032d8661189a565b9261033a8651948561175c565b868452366024888301011161021b5786602497602098899301838701378401015260c43561ffff811680910361079e5760e435916001600160a01b039384841684036102c55789549860ff8a60081c1615998a809b610791575b801561077a575b1561071257918b98979593918b97959360019c8d9b60ff199e8f8416179055610701575b50602435428111156106d95760443590818111156106b15761010435976101f48911610689577fffffffffffffffffffffffff00000000000000000000000000000000000000009916896099541617609955609a55609b55606435609c55608435609d5581519283116106765750819061043a609f546116f8565b601f8111610604575b508a908d601f84116001146105835792610578575b5050600019600383901b1c191690881b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a05560a355339060985416176098558285609e541617609e558560a4558560a75533638b78c6d8195533867f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053786549560ff8760081c169061051982611aca565b61052282611aca565b6065541660655561053281611aca565b611aca565b828055610542578480f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989361ff001916855551908152a1388080808480f35b015190503880610458565b609f81528b94507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929190601f198516908e5b8282106105ed57505084116105d4575b505050811b01609f5561046d565b015160001960f88460031b161c191690553880806105c6565b8385015186558e979095019493840193018e6105b6565b909150609f8d527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c8101918c851061066c575b8e85949392601f8e930160051c0192905b83821061065e57505050610443565b81558594508c91018f61064f565b909150819061063e565b8c6041602492634e487b7160e01b835252fd5b838c517fc547179a000000000000000000000000000000000000000000000000000000008152fd5b828b517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b5088517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d55386103bf565b6084828b8b519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561039b5750600160ff82161461039b565b50600160ff821610610394565b8780fd5b8580fd5b8390602036600319011261021b576107bc611884565b906107c5611b8b565b8160601b1561080a57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8360203660031901126108965761082a611884565b610832611b8b565b63389a75e1600c528082526020600c20928354421161088b5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461021b57602036600319011261021b57806020926001600160a01b036108c0611884565b16815260a2845220549051908152f35b919050346102dd57826003193601126102dd576001600160a01b0360985416330361098c576108fd611b3b565b609a54421161097f5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610932611b3b565b600160ff19606554161760655551338152a142609b54116000146109595750425b609a5580f35b61038442019081421161096c5750610953565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461021b578160031936011261021b5760209060a7549051908152f35b50503461021b578160031936011261021b576020906001600160a01b03609854169051908152f35b50503461021b578160031936011261021b57602090612710610290610a0f610a0661199d565b609d54906118d9565b61ffff60a05416906118d9565b50503461021b578160031936011261021b57602090609c549051908152f35b50503461021b578160031936011261021b576020906001600160a01b03638b78c6d81954915191168152f35b83833461021b578160031936011261021b57609a544210610c945760a090815460ff8160101c16610c85579362010000849562ff000019161783556003610abd610aaf611a37565b610ab761199d565b906118d9565b0490610ac982476118ec565b90638b78c6d81994610adc848754611ba8565b6001600160a01b03610af48482845460181c16611ba8565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c7b578a91610c46575b5090610b5b610b49610baa9360a4549060011c6118ec565b846099541685875460181c1690611bc6565b610ba1836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b9b60a45460a754906118ec565b906118ec565b90895490611bc6565b80609854169281835460181c16975497843b15610c42578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610c0060a487016118f9565b9460248701526044860152166064840152608483015203925af1908115610c395750610c295750f35b610c3290611732565b6108965780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c74575b610c60818361175c565b810103126102c55751899890610b5b610b31565b503d610c56565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b50503461021b578160031936011261021b57610cd490610cc161177e565b905191829160208352602083019061185f565b0390f35b50503461021b57602036600319011261021b57806020926001600160a01b03610cff611884565b16815260a5845220549051908152f35b918091506003193601126102dd57610d25611884565b90602435916001600160a01b0390818416948585036102c557609a544211610dd15782609854163303610dc3575090610d6591609d549160995416611bc6565b82610d6e578380f35b610d86610dba926003610d7f611a37565b0490611ba8565b612710610d9860a354609d54906118d9565b0492610da68460a4546118b6565b60a455845260a560205283209182546118b6565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461021b57602036600319011261021b57610dfb611884565b92609a544210610ef7576001600160a01b038085169081855260a6602052600160ff8487205416151514610ee85781855260a560205282852054938415610ec15750610e6e847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611bc6565b81865260a6602052828620600160ff19825416179055610e908460a7546118b6565b60a7556099541692825193849360808552610ead608086016118f9565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b50503461021b578160031936011261021b57602090609b549051908152f35b83833461021b57602036600319011261021b57610f3e611884565b600260015414610fc3576002600155609b544210610f9b57610f5e611b3b565b6001600160a01b039182609854163303610f8c575090610f8591609d549160995416611bc6565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126108965761101a611b8b565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461021b578160031936011261021b5760209060ff60a05460101c1690519015158152f35b50503461021b578160031936011261021b57602090609d549051908152f35b50503461021b578160031936011261021b576020906001600160a01b03609954169051908152f35b50503461021b578160031936011261021b5760209061ffff60a054169051908152f35b50503461021b578160031936011261021b576020906001600160a01b0360a05460181c169051908152f35b50503461021b578160031936011261021b5760209060ff6065541690519015158152f35b83806003193601126108965763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b50503461021b578160031936011261021b57602090611197609c54609d54906118d9565b9051908152f35b83600319843682018381126113aa57836001600160a01b03918260985416916111c561177e565b9036891161079e57606080931261079e57606436116114df575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061121d602482018861185f565b0381895afa928315610c7b57908a91829461141f575b508b6112a163ffffffff8b87015116928c87519701516112928d5198899687967fa5454dbd000000000000000000000000000000000000000000000000000000008852803590880152602487015260806044870152608486019061185f565b9184830301606485015261185f565b0381885afa9182156114155789926113c1575b506112f16112de6112fd948951988994338d870152168a85015260808785015260a084019061185f565b601f19938484830301608085015261185f565b0390810185528461175c565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113ae5790859291858552813b156113aa57859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261138761137260a483018361185f565b828103606319016084840152605f199361185f565b03019134905af1908115610c39575061139e575080f35b6113a790611732565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e6113d3818361175c565b8101908881830312610c425780519067ffffffffffffffff8211611411576114086112fd9594936112f1936112de9301611a85565b939450506112b4565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e611432818361175c565b8101898282031261141157815167ffffffffffffffff928382116114be57019086828203126114db57895192878401848110828211176114c6578b5282518181116114c25782611483918501611a85565b84528b8301519081116114be57829161149e918c9401611a85565b8b840152015163ffffffff8116810361141157888201529189908c611233565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c6111df565b50503461021b578160031936011261021b5760209060a4549051908152f35b50503461021b578160031936011261021b576020906001600160a01b03609754169051908152f35b8284346108965780600319360112610896578151906313d4501f60e21b825260209384838281305afa92831561161a5782936115eb575b5084845180927ff4c17a6b00000000000000000000000000000000000000000000000000000000825281305afa9182156115e05780926115ae575b5050611197916118b6565b9091508482813d83116115d9575b6115c6818361175c565b81010312610896575051611197856115a3565b503d6115bc565b8451903d90823e3d90fd5b9092508481813d8311611613575b611603818361175c565b8101031261021b57519185611568565b503d6115f9565b84513d84823e3d90fd5b50503461021b578160031936011261021b57602090609a549051908152f35b83806003193601126108965763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461021b578160031936011261021b5760209060a3549051908152f35b50503461021b578160031936011261021b5760209060ff609e541690519015158152f35b50503461021b578160031936011261021b5760209061271061029060a354609d54906118d9565b90600182811c92168015611728575b602083101461171257565b634e487b7160e01b600052602260045260246000fd5b91607f1691611707565b67ffffffffffffffff811161174657604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761174657604052565b60405190600082609f5491611792836116f8565b8083529260019081811690811561181a57506001146117bb575b506117b99250038361175c565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106117ff57506117b99350508101602001386117ac565b81935090816020925483858a010152019101909185926117e6565b9050602092506117b994915060ff191682840152151560051b820101386117ac565b60005b83811061184f5750506000910152565b818101518382015260200161183f565b906020916118788151809281855285808601910161183c565b601f01601f1916010190565b600435906001600160a01b03821682036102c557565b67ffffffffffffffff811161174657601f01601f191660200190565b919082018092116118c357565b634e487b7160e01b600052601160045260246000fd5b818102929181159184041417156118c357565b919082039182116118c357565b609f5460009291611909826116f8565b80825291600190818116908115611980575060011461192757505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b84841061196857505060209250010190565b80546020858501810191909152909301928101611956565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d100000000000000000000000000000000000000000000000000000000825282600483015281806119e7602482016118f9565b03915afa908115611a2b576000916119fd575090565b906020823d8211611a23575b81611a166020938361175c565b8101031261089657505190565b3d9150611a09565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611a2b576000916119fd575090565b81601f820112156102c5578051611a9b8161189a565b92611aa9604051948561175c565b818452602082840101116102c557611ac7916020808501910161183c565b90565b15611ad157565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611b4757565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b9a57565b6382b429006000526004601cfd5b600080809338935af115611bb857565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c0257603452565b6390b8ec1890526004601cfdfea2646970667358221220effae14c1c3189e8bf542fc32efd5ca81ce5a2d9a564a2cbb1af82f8f86d973264736f6c63430008130033", - "nonce": "0x5", - "chainId": "0x1d88" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0xc2b8ab5f1101212955d717d55374a4fd24f3db0e389ea4206d3daae92bc3ad52", - "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0xad34f39893896fb4925e1364178805aece2d43e5", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", - "value": "0x0", - "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea2646970667358221220c912acbe25d4f3aaed6efb5de84b71595949988e617f52bf8d5e6820e616fb5564736f6c63430008130033", - "nonce": "0x6", - "chainId": "0x1d88" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x34fc14c0ac67f65c941463e68ed5230ef0312590a54a7abc4e21459cb8aa5969", + "hash": "0xd74e4a9c486f179f2febf110d56cb7e530d4158c01acdf7eebec1713ac6ea9f3", "transactionType": "CALL", "contractName": null, "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "function": "initialize(address,address,address,address,address,uint256,uint16,uint256)", + "function": "setQuestFee(uint16)", "arguments": [ - "0x94c3e5e801830dD65CD786F2fe37e79c65DF4148", - "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "0x6218CfEC353B0B0680B7D59FA77b8B9ade593747", - "0xAD34F39893896Fb4925E1364178805AeCe2D43e5", - "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "500000000000000", - "5000", - "75000000000000" + "250" ], "transaction": { "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0x5d92d", + "gas": "0xd211", "value": "0x0", - "input": "0x02a8a06600000000000000000000000094c3e5e801830dd65cd786f2fe37e79c65df4148000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c0000000000000000000000006218cfec353b0b0680b7d59fa77b8b9ade593747000000000000000000000000ad34f39893896fb4925e1364178805aece2d43e5000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c0000000000000000000000000000000000000000000000000001c6bf526340000000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000044364c5bb000", - "nonce": "0x7", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0xd", "chainId": "0x1d88" }, "additionalContracts": [], @@ -146,270 +25,28 @@ "receipts": [ { "status": "0x1", - "cumulativeGasUsed": "0x261da3", - "logs": [ - { - "address": "0xfe9af934a9d1bd4109d0d698635c19385389e85f", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0xed71d681cf8882cf80098bda83f3b5673b16269d9f7ba1f6f9261dfff429154e", - "transactionIndex": "0x1", - "logIndex": "0x0", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001040000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000", + "cumulativeGasUsed": "0x13aee", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "transactionHash": "0xed71d681cf8882cf80098bda83f3b5673b16269d9f7ba1f6f9261dfff429154e", + "transactionHash": "0xd74e4a9c486f179f2febf110d56cb7e530d4158c01acdf7eebec1713ac6ea9f3", "transactionIndex": "0x1", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "gasUsed": "0x257288", - "effectiveGasPrice": "0x15f038", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", - "contractAddress": null, - "l1Fee": "0x237832da4f91", - "l1GasPrice": "0xae123038", - "l1GasUsed": "0x28c0c" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x3124d3", - "logs": [ - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000fe9af934a9d1bd4109d0d698635c19385389e85f" - ], - "data": "0x", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0x5a1929cd7a28967133cf0f86a16ceec4a76efeb49a67ba022f30fc366d453a6a", - "transactionIndex": "0x2", - "logIndex": "0x1", - "removed": false - }, - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0x5a1929cd7a28967133cf0f86a16ceec4a76efeb49a67ba022f30fc366d453a6a", - "transactionIndex": "0x2", - "logIndex": "0x2", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000000000000000000000000000000000000000800000000080000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000020000000400000000000000000002000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000001", - "type": "0x2", - "transactionHash": "0x5a1929cd7a28967133cf0f86a16ceec4a76efeb49a67ba022f30fc366d453a6a", - "transactionIndex": "0x2", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "gasUsed": "0xb0730", - "effectiveGasPrice": "0x15f038", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", - "contractAddress": null, - "l1Fee": "0xed719c2c633", - "l1GasPrice": "0xae123038", - "l1GasUsed": "0x110d0" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x6b3a82", - "logs": [ - { - "address": "0xf7f2b3bed0dabea90d7c431d5bde71dac4e919e6", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0x2fe3c22b1c8f3d1132db73dce19dad5b83326403df5ca89521c18c4cc327cd89", - "transactionIndex": "0x3", - "logIndex": "0x3", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080004000000000000000000000000000000000000000000400100000000200000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0x2fe3c22b1c8f3d1132db73dce19dad5b83326403df5ca89521c18c4cc327cd89", - "transactionIndex": "0x3", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "gasUsed": "0x3a15af", - "effectiveGasPrice": "0x15f038", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": null, - "contractAddress": "0xf7f2b3bed0dabea90d7c431d5bde71dac4e919e6", - "l1Fee": "0x38dff48acc0c", - "l1GasPrice": "0xae123038", - "l1GasUsed": "0x4158c" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x6bd1a2", - "logs": [ - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000f7f2b3bed0dabea90d7c431d5bde71dac4e919e6" - ], - "data": "0x", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0x0aa2b1cd8a6d0da293bec749cb7a870bd78dcd6779d98e015acd6984de9c1088", - "transactionIndex": "0x4", - "logIndex": "0x4", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000080000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000020000000040000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0x0aa2b1cd8a6d0da293bec749cb7a870bd78dcd6779d98e015acd6984de9c1088", - "transactionIndex": "0x4", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "gasUsed": "0x9720", - "effectiveGasPrice": "0x15f038", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "contractAddress": null, - "l1Fee": "0x8b41c02ccc", - "l1GasPrice": "0xae123038", - "l1GasUsed": "0xa00" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x84d058", - "logs": [ - { - "address": "0x6218cfec353b0b0680b7d59fa77b8b9ade593747", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0x9b3ef6a8053600ff8833095da85594671456376d964374aec8a728b96038d180", - "transactionIndex": "0x5", - "logIndex": "0x5", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000", - "type": "0x2", - "transactionHash": "0x9b3ef6a8053600ff8833095da85594671456376d964374aec8a728b96038d180", - "transactionIndex": "0x5", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "gasUsed": "0x18feb6", - "effectiveGasPrice": "0x15f038", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": null, - "contractAddress": "0x6218cfec353b0b0680b7d59fa77b8b9ade593747", - "l1Fee": "0x1835259bb011", - "l1GasPrice": "0xae123038", - "l1GasUsed": "0x1bd04" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x9d39d6", - "logs": [ - { - "address": "0xad34f39893896fb4925e1364178805aece2d43e5", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0xc2b8ab5f1101212955d717d55374a4fd24f3db0e389ea4206d3daae92bc3ad52", - "transactionIndex": "0x6", - "logIndex": "0x6", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000100000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000", - "type": "0x2", - "transactionHash": "0xc2b8ab5f1101212955d717d55374a4fd24f3db0e389ea4206d3daae92bc3ad52", - "transactionIndex": "0x6", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "gasUsed": "0x18697e", - "effectiveGasPrice": "0x15f038", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": null, - "contractAddress": "0xad34f39893896fb4925e1364178805aece2d43e5", - "l1Fee": "0x173e66b4c717", - "l1GasPrice": "0xae123038", - "l1GasUsed": "0x1ab4c" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0xa175c5", - "logs": [ - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c" - ], - "data": "0x", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0x34fc14c0ac67f65c941463e68ed5230ef0312590a54a7abc4e21459cb8aa5969", - "transactionIndex": "0x7", - "logIndex": "0x7", - "removed": false - }, - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "transactionHash": "0x34fc14c0ac67f65c941463e68ed5230ef0312590a54a7abc4e21459cb8aa5969", - "transactionIndex": "0x7", - "logIndex": "0x8", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000001000000000000000400000000000000000000020000000000000000000800000000000000000080000000000000400000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000200000000000000000000000000000000000000040000002100000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0x34fc14c0ac67f65c941463e68ed5230ef0312590a54a7abc4e21459cb8aa5969", - "transactionIndex": "0x7", - "blockHash": "0x761a1c0db21c5ffb868ccf72c7236b6a4069228e4cbf15e56afada5e98495b4c", - "blockNumber": "0x2a1daf", - "gasUsed": "0x43bef", - "effectiveGasPrice": "0x15f038", + "blockHash": "0x949cb217e4b19b3c633b69346066b6e4f0deb08232953749b7f6b202c1217051", + "blockNumber": "0x2dc550", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0xf433c", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "contractAddress": null, - "l1Fee": "0xe74c01fd9c", - "l1GasPrice": "0xae123038", - "l1GasUsed": "0x109c" + "l1Fee": "0xe97e9a8d6c", + "l1GasPrice": "0x17f905e15", + "l1GasUsed": "0x79c" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1718948792, + "timestamp": 1719427835, "chain": 7560, - "commit": "a30f202" + "commit": "9f10ed7" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/7777777/run-1719429808.json b/broadcast/QuestFactory.s.sol/7777777/run-1719429808.json new file mode 100644 index 00000000..9c9ca971 --- /dev/null +++ b/broadcast/QuestFactory.s.sol/7777777/run-1719429808.json @@ -0,0 +1,125 @@ +{ + "transactions": [ + { + "hash": "0xd1b442d0d0c70cb71923e9df8129b3daea7c2a51c58c0fae53bf3cdf660592a3", + "transactionType": "CREATE", + "contractName": "QuestFactory", + "contractAddress": "0x2a4a4f6330b30f257146bb0bc6e57019b8ddbe78", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x4bf164", + "value": "0x0", + "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b6040516143f890816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611ed6575080630b6fc16314611eaf57806311f4b35b14611e9157806313966db514611e7357806313a4057014611df7578063183a4f6e14611dde5780631c10893f14611d7c5780631cd64df414611d4257806323e2c1ba14611d1f5780632569296214611cd457806327b0655f14611c6f5780632de9480714611c3c57806332f58eb514611bf757806343ff27d114611ba95780634a4ee7b114611b80578063514e62fc14611b4757806354d1f13d14611b015780635caf9de114611ac357806364df049e14611a9c57806367dfa3e714611a7a57806370dfd40a1461198c578063715018a6146119465780637c93f9ee146119075780637e4176e3146117d65780637f7c0ef71461122c57806381589b1f1461112357806384ae2bc6146111015780638da5cb5b146110d657806397aba7f91461103f578063a1db1ba414611018578063a2e4459314610fde578063a5454dbd14610f72578063abab135a14610e50578063b4cbdd8b14610e11578063c42fe71814610d7d578063c6eba76614610c78578063cc923e0c14610c51578063ce53b15214610bdd578063d4faaa1714610bb6578063de0580dc14610abe578063e05d39ac146109fc578063e15cfcf514610832578063e1bc3aba146107ca578063e521cb921461075b578063ea22e4ab146106e2578063ec461ac414610660578063ed21bb8314610553578063eddd0d9c14610505578063f01a5934146103cd578063f04e283e1461034c578063f2fde38b146102de578063f8565efd1461029f5763fee81cf40361000f573461029c57602036600319011261029c576102836120d1565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b503461029c57602036600319011261029c576001600160a01b036102c16120d1565b6102c961435e565b166001600160a01b031960cc54161760cc5580f35b50602036600319011261029c576102f36120d1565b6102fb61435e565b8060601b1561033f576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029c576103616120d1565b61036961435e565b63389a75e1600c528082526020600c20805442116103c05790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b50610120908160031936011261029c576103e56120d1565b9067ffffffffffffffff9060a43582811161050157610408903690600401612257565b9160c4358181116104fd57610421903690600401612257565b9460e4358281116104f95761043a903690600401612257565b91610104359081116104f957610454903690600401612257565b91600160d454036104cf576020966104c195600260d455604051956104788761210e565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e08501526101008401528201526132cf565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b503461029c57602036600319011261029c577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561054561435e565b8060d255604051908152a180f35b503461029c576020806003193601126105015760043567ffffffffffffffff81116104fd578160609361058d6105b8933690600401612257565b906040805161059b81612172565b87815287858201520152816040519382858094519384920161234f565b810160cd8152030190209063ffffffff6106546008610641836009870154169461061c604051976105e889612172565b604051610603816105fc81600786016123d2565b03826121e2565b895261061560405180968193016123d2565b03846121e2565b8087019283526040870195865260405197889782895251918801526080870190612468565b9051858203601f19016040870152612468565b91511660608301520390f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760606106ac60206106993660048701612257565b816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c576107576105fc610743600860206107213660048901612321565b9190826040519384928337810160cd81520301902001604051928380926123d2565b604051918291602083526020830190612468565b0390f35b503461029c57602036600319011261029c576001600160a01b0361077d6120d1565b61078561435e565b1680156107a0576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff6107e76120fd565b6107ef61435e565b1661271081116108085761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029c576020908160031936011261029c5760043567ffffffffffffffff811161050157610866903690600401612321565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109d257600101948386541693843b156109ce576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109c3576109ab575b5081906004959697541695604051958680926318cbe5db60e11b82525afa80156109a057869061094e575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c49450610944604051948594604086526040860191612532565b918301520390a280f35b508084813d8311610999575b61096481836121e2565b81010312610994577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c4935161090a565b600080fd5b503d61095a565b6040513d88823e3d90fd5b90600495966109ba849361215e565b969550906108df565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029c57610a0b36612275565b9560409997989995919594929451988451610a2a818c6020890161234f565b8a0160cd815260018b60206001600160a01b039d8e9403019020015416610a94578960cb541615610a6a5760209a610a61996124c6565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029c5761016036600319011261029c576004359063ffffffff8216820361029c57610aea6120e7565b9167ffffffffffffffff60c4358181116104f957610b0c903690600401612257565b9260e43582811161050157610b25903690600401612257565b91610104358181116104fd57610b3f903690600401612257565b916101243591821161029c5750610b5a903690600401612257565b91604051948051610b6f81886020850161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a619560a435916084359160643591604435916124c6565b503461029c578060031936011261029c5760206001600160a01b0360cc5416604051908152f35b50604036600319011261029c5767ffffffffffffffff6004358181116104fd57610c0b903690600401612321565b505060243590811161050157610c25903690600401612321565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029c578060031936011261029c5760206001600160a01b0360d35416604051908152f35b503461029c5760a036600319011261029c5760043567ffffffffffffffff811161050157610caa903690600401612321565b90610cb36120e7565b91606435926001600160a01b03938481168091036109ce578460016040518587823760208187810160cd8152030190200154163303610d53577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d2560405195869560e0875260e0870191612532565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff610d9a6120fd565b610da261435e565b166127108111610de7576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c576001600160a01b03610e336120d1565b610e3b61435e565b166001600160a01b031960c954161760c95580f35b503461029c576101008060031936011261050157610e6c6120d1565b67ffffffffffffffff929060a4358481116104fd57610e8f903690600401612257565b9160c43585811161050157610ea8903690600401612257565b9460e43590811161050157610ec1903690600401612257565b604051948451610ed581886020890161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a61958760405196610f1588612141565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f5261248d565b61012083015260405190610f658261218e565b8152610140820152613901565b503461029c57608036600319011261029c5760243563ffffffff811681036105015767ffffffffffffffff6044358181116104f957610fb5903690600401612257565b9260643591821161029c576107576107438585610fd53660048801612257565b50600435613f8a565b50602036600319011261029c5760043567ffffffffffffffff81116105015761100e611015913690600401612321565b3391612567565b80f35b503461029c578060031936011261029c5760206001600160a01b0360cb5416604051908152f35b503461029c57604036600319011261029c5760243567ffffffffffffffff81116105015736602382011215610501576110bd602092603c61108d6110c5943690602481600401359101612220565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c52206142a4565b919091614172565b6001600160a01b0360405191168152f35b503461029c578060031936011261029c576020638b78c6d819546001600160a01b0360405191168152f35b503461029c578060031936011261029c57602061ffff60da5416604051908152f35b503461029c57610100908160031936011261029c576111406120d1565b67ffffffffffffffff9060a4358281116104f957611162903690600401612257565b9160c4359081116104f95761117b903690600401612257565b5060405192825161119081866020870161234f565b840160cd815260018560206001600160a01b0397889403019020015416610a94578360cb541615610a6a57602094610a619385604051946111d086612141565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516112098161218e565b82815260e08401526040519061121e8261218e565b828252830152610f5261248d565b503461029c57602036600319011261029c5760043567ffffffffffffffff81116105015760206112636112c2923690600401612257565b8361014060405161127381612141565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690829061130f6040516112f4816105fc81600487016123d2565b6112fc613161565b6020815191012090602081519101201490565b156116f0576040516305f5c3df60e21b8152602081600481875afa9081156116e55785916116af575b505b6040519263f7c618c160e01b8452602084600481885afa9384156109a057869461167e575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109c357879461165d575b506040516378e9792560e01b81526020816004818a5afa90811561165257889161161c575b50604051906318cbe5db60e11b82526020826004818b5afa9182156116115789926115d9575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115ce578a94611595575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561158a57906101409998979695949392916101609c98611553575b509061ffff916001600160a01b036040519a6114978c612141565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff9291985061157b9060203d602011611583575b61157381836121e2565b8101906131c5565b97909161147c565b503d611569565b6040513d8d823e3d90fd5b9093506020813d6020116115c6575b816115b1602093836121e2565b810103126115c25751926003611428565b8980fd5b3d91506115a4565b6040513d8c823e3d90fd5b9091506020813d602011611609575b816115f5602093836121e2565b81010312611605575190386113e9565b8880fd5b3d91506115e8565b6040513d8b823e3d90fd5b90506020813d60201161164a575b81611637602093836121e2565b810103126116465751386113c3565b8780fd5b3d915061162a565b6040513d8a823e3d90fd5b61167791945060203d6020116115835761157381836121e2565b923861139e565b6116a191945060203d6020116116a8575b61169981836121e2565b810190613142565b923861135f565b503d61168f565b90506020813d6020116116dd575b816116ca602093836121e2565b810103126116d9575138611338565b8480fd5b3d91506116bd565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117cb578491611799575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116e557859161175c575b509161133a565b90506020813d602011611791575b81611777602093836121e2565b810103126116d9575161ffff811681036116d95738611755565b3d915061176a565b90506020813d6020116117c3575b816117b4602093836121e2565b810103126104f9575138611716565b3d91506117a7565b6040513d86823e3d90fd5b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5761180d60206106993660048601612257565b810160cd8152030190206001600160a01b0380600183015416906118fc6002840154936118ed60038201549360405161184d816105fc81600488016123d2565b60058401549180600686015416906118c46040519361187a856118738160078c016123d2565b03866121e2565b63ffffffff60096040519961189d8b61189681600885016123d2565b038c6121e2565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b0190612468565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e0880152612468565b90848203610100860152612468565b906101208301520390f35b503461029c57602036600319011261029c576001600160a01b036119296120d1565b61193161435e565b166001600160a01b031960cb54161760cb5580f35b508060031936011261029c5761195a61435e565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029c576119a16120d1565b67ffffffffffffffff9160a435838111610501576119c3903690600401612257565b9260c435908111610501576119dc903690600401612257565b50600160d454036104cf576020926104c191600260d45560405191611a008361210e565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a438161218e565b81815260e0830152604051611a578161218e565b81815261010083015260405190611a6d8261218e565b81526101208201526132cf565b503461029c578060031936011261029c57602061ffff60d15416604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360ca5416604051908152f35b50604036600319011261029c5760043567ffffffffffffffff811161050157611af3611015913690600401612321565b611afb6120e7565b91612567565b508060031936011261029c5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029c57604036600319011261029c57611b616120d1565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029c57611015611b986120d1565b611ba061435e565b6024359061437b565b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760206003611be3826106993660048801612257565b810160cd8152030190200154604051908152f35b503461029c57602036600319011261029c576001600160a01b03611c196120d1565b611c2161435e565b1680156107a0576001600160a01b031960d354161760d35580f35b503461029c57602036600319011261029c57611c566120d1565b90638b78c6d8600c5252602080600c2054604051908152f35b503461029c57604036600319011261029c5760043567ffffffffffffffff8111610501576040602092611ca860ff933690600401612257565b6001600160a01b03611cc1611cbb6120e7565b92612372565b9116825284522054166040519015158152f35b508060031936011261029c5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029c57602036600319011261029c57611d3961435e565b60043560dc5580f35b503461029c57604036600319011261029c57602090611d5f6120d1565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029c57611d916120d1565b611d9961435e565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029c576110156004353361437b565b611e0036612275565b94600160d49a979a95929594939454036104cf576020996104c198600260d45563ffffffff60405199611e328b61210e565b1689526001600160a01b03809b168c8a015260408901526060880152608087015260a086015260c085015260e08401526101008301526101208201526132cf565b503461029c578060031936011261029c57602060d254604051908152f35b503461029c578060031936011261029c57602060dc54604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360c95416604051908152f35b9050346105015761010036600319011261050157611ef26120d1565b611efa6120e7565b6044356001600160a01b03928382168092036109ce57606435918483168093036120cd57608435948086168096036116465760c4359561ffff871680970361160557885460ff8160081c16159889809a6120c0575b80156120a9575b15612041575060ff1981166001178a5588612030575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc55611ff95780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611f6c565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611f565750600160ff831614611f56565b50600160ff831610611f4f565b8680fd5b600435906001600160a01b038216820361099457565b602435906001600160a01b038216820361099457565b6004359061ffff8216820361099457565b610140810190811067ffffffffffffffff82111761212b57604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57604052565b6060810190811067ffffffffffffffff82111761212b57604052565b6020810190811067ffffffffffffffff82111761212b57604052565b6040810190811067ffffffffffffffff82111761212b57604052565b6080810190811067ffffffffffffffff82111761212b57604052565b90601f8019910116810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57601f01601f191660200190565b92919261222c82612204565b9161223a60405193846121e2565b829481845281830111610994578281602093846000960137010152565b9080601f830112156109945781602061227293359101612220565b90565b6101406003198201126109945760043563ffffffff8116810361099457916024356001600160a01b0381168103610994579160443591606435916084359160a4359167ffffffffffffffff9060c43582811161099457816122d891600401612257565b9260e43583811161099457826122f091600401612257565b9261010435818111610994578361230991600401612257565b92610124359182116109945761227291600401612257565b9181601f840112156109945782359167ffffffffffffffff8311610994576020838186019501011161099457565b60005b8381106123625750506000910152565b8181015183820152602001612352565b602061238b91816040519382858094519384920161234f565b810160cd81520301902090565b90600182811c921680156123c8575b60208310146123b257565b634e487b7160e01b600052602260045260246000fd5b91607f16916123a7565b90600092918054916123e383612398565b9182825260019384811690816000146124455750600114612405575b50505050565b90919394506000526020928360002092846000945b8386106124315750505050010190388080806123ff565b80548587018301529401938590820161241a565b9294505050602093945060ff191683830152151560051b010190388080806123ff565b906020916124818151809281855285808601910161234f565b601f01601f1916010190565b6040519061249a826121aa565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b979593916001600160a01b036122729a9896949263ffffffff6040519b6124ec8d612141565b168b521660208a015260408901526060880152608087015260a086015260c085015260e084015261010083015261252161248d565b610120830152610140820152613901565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361099457565b612575919392933691612220565b9160609280518061305f575b505060c083805181010312610994576020830151926040810151916060820151916125ae60808201612553565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109945760c001519063ffffffff82168203610994576040516125fc816121aa565b60108082527f303132333435363738396162636465660000000000000000000000000000000060208301526040519461263486612172565b6024865260208601926040368537600091825b848110612f665750505050506001600160a01b03979893886126a96106156126ec98966126e0966126a4600761268d60206126cd9a604051809381928d5192839161234f565b810160cd81520301902001604051948580926123d2565b613f8a565b956040519a8b961660208701521660408501526080606085015260a0840190612468565b601f199384848303016080850152612468565b039081018552846121e2565b8060ff1c601b8110612f54575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b16606082015260418152612761816121c6565b8151820191608081602085019403126109945761278060208201612553565b9161278d60408301612553565b92606083015167ffffffffffffffff90818111610994578660206127b392870101613100565b9560808501519182116109945760206127ce92860101613100565b9260405160208188516127e48183858d0161234f565b810160cd8152030190206003810154600181018111612f3e5760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612c5457600096612f15575b506110bd61287391600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c86206142a4565b6001600160a01b038060c95416911603612eeb5760d2543410612ec1576001600160a01b03841683528160205260ff604084205416612e975760028201546001820111612e6d576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a16604483015260448252612946826121c6565b6020825192019034905af13d15612e68573d61296181612204565b9061296f60405192836121e2565b81528360203d92013e5b15612e3e5760046112f4826001600160a01b0360016129eb9501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129d86001600160a01b038c16946020830190612468565b0390a36105fc60405180948193016123d2565b15612d9257506040516305f5c3df60e21b8152602081600481875afa908115612c5457600091612d60575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d823433160405180612a546001600160a01b03881694898d8461319a565b0390a35b6001600160a01b038516612a6f575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612c5457600091612d2e575b5060dc541015612c945760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612c5457600092612c60575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612c5457600094612c19575b50976001600160a01b03819795612be39997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b90957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a0190612468565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e0860190612468565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a1388080808080612a67565b90936020823d602011612c4c575b81612c34602093836121e2565b8101031261029c575051926001600160a01b03612b20565b3d9150612c27565b6040513d6000823e3d90fd5b90916020823d602011612c8c575b81612c7b602093836121e2565b8101031261029c5750519038612ae0565b3d9150612c6e565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612be396946001600160a01b0360d2549260405193849360c0855283612d0360c087018d612468565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612bc1565b906020823d602011612d58575b81612d48602093836121e2565b8101031261029c57505138612a94565b3d9150612d3b565b906020823d602011612d8a575b81612d7a602093836121e2565b8101031261029c57505138612a16565b3d9150612d6d565b6040516369d2dc0560e01b8152602081600481885afa918215612e32578092612dfd575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612df56001600160a01b03881694898d8461319a565b0390a3612a58565b9091506020823d602011612e2a575b81612e19602093836121e2565b8101031261029c5750513880612db6565b3d9150612e0c565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612979565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b612873919650612f366110bd9160203d6020116116a85761169981836121e2565b969150612832565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612f3e57906126f9565b6004898183148015613055575b801561304b575b8015613041575b61300f575b612fea612fe28493612fcc938761300a971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c61414b565b51169a612fd88161413c565b9b60001a9261414b565b53168661414b565b511694613004612ff98261413c565b9660001a918c61414b565b5361413c565b612647565b94612fea612fe261300a9493602d6130348561302e612fcc979161413c565b9b61414b565b5393945050505089612f86565b50600a8314612f81565b5060088314612f7a565b5060068314612f73565b6040516004830180518019825260208301975090959284019491935b8097868210156130db5760018092019860ff808b51169182156130a6575050815301955b959661307b565b60020180516000198552909b50607f92509084908216838111156130d0575b50501601019561309f565b0138843983386130c5565b91909652838103601f1901845260008152602001604052919450925090503880612581565b81601f8201121561099457805161311681612204565b9261312460405194856121e2565b8184526020828401011161099457612272916020808501910161234f565b9081602091031261099457516001600160a01b03811681036109945790565b6040519061316e826121aa565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131ba60409396959496606084526060840190612468565b951660208201520152565b90816020910312610994575180151581036109945790565b8181106131e8575050565b600081556001016131dd565b9190601f811161320357505050565b61322f926000526020600020906020601f840160051c83019310613231575b601f0160051c01906131dd565b565b9091508190613222565b979461329f6001600160a01b03956132916101409c999f9e9d9a966132838d63ffffffff986132756132ad99610160808552840190612468565b916020818403910152612468565b8d810360408f015290612468565b908b820360608d01526123d2565b9089820360808b0152612468565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c0820151916132e1600093612372565b60018101916001600160a01b03835416610a945760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b03909216919061334581607481015b03601f1981018352826121e2565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f580156138f4576001600160a01b0390866021521692836001600160a01b0319825416179055608081015160028301556133b66004830154612398565b601f81116138d2575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116138445781906134638261345a6007880154612398565b600788016131f4565b602090601f8311600114613863578892613858575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116138445781906134c4826134bb6008880154612398565b600888016131f4565b602090601f83116001146137d55788926137ca575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b156120cd576135a59360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e4830190612468565b038183885af180156109a0576137b7575b50846001600160a01b0360208301511660a08301516080840151823b156104f95760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af18015613798576137a3575b5050823b156116d957846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af1801561379857613784575b5050823b156116d9576040519463f2fde38b60e01b8652336004870152808660248183885af19586156137775784959661375b575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516137556101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c61323b565b0390a390565b81929394506137699061215e565b61029c5790818493926136d7565b50604051903d90823e3d90fd5b61378d9061215e565b6116d95784386136a2565b6040513d84823e3d90fd5b6137ac9061215e565b6116d957843861365e565b6137c39095919561215e565b93386135b6565b0151905038806134d9565b9250600885018852602088209088935b601f1984168510613829576001945083601f19811610613810575b505050811b0160088301556134f1565b015160001960f88460031b161c19169055388080613800565b818101518355602094850194600190930192909101906137e5565b602487634e487b7160e01b81526041600452fd5b015190503880613478565b9250600785018852602088209088935b601f19841685106138b7576001945083601f1981161061389e575b505050811b016007830155613490565b015160001960f88460031b161c1916905538808061388e565b81810151835560209485019460019093019290910190613873565b600483018652602086206138ee91601f0160051c8101906131dd565b386133bf565b633011642586526004601cfd5b60c0810151613911600091612372565b916001600160a01b0360cb54166040516020810190613959816133374246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f7d5760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e75578190613a3f82613a366004870154612398565b600487016131f4565b602090601f8311600114613f0e578692613f03575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e75578190613a9f82613a966007870154612398565b600787016131f4565b602090601f8311600114613e94578692613e89575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e75578190613b0082613af76008870154612398565b600887016131f4565b602090601f8311600114613e06578692613dfb575b50508160011b916000199060031b1c19161760088201555b815163ffffffff1690600981018263ffffffff19825416179055610140830151906101008401519060c08501519060e0860151928860208801516001600160a01b03169560408901958987519860608201998a519160808401519360a0019c8d5195604051996001600160a01b038b9a169c339c60040191613baf9a8c61323b565b037fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd91a360208401516001600160a01b03169051915192608085015190519060c086015160d15461ffff169260ca546001600160a01b0316926001600160a01b038b163b156115c25791613c7a918a9796959493604051998a9889987ffb96aa2e000000000000000000000000000000000000000000000000000000008a5260048a0152602489015260448801526064870152608486015261010060a4860152610104850190612468565b9160c484015260e48301520381836001600160a01b0389165af18015613dd357613dde575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613dd35783908192613d9e575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d915781606052806040526001600160a01b0383163b156105015763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561379857613d7f57505090565b613d89829161215e565b61029c575090565b637939f42482526004601cfd5b9150506020813d602011613dcb575b81613dba602093836121e2565b810103126109945751826064613cf6565b3d9150613dad565b6040513d85823e3d90fd5b6001600160a01b039192613df360209261215e565b929150613c9f565b015190503880613b15565b9250600884018652602086209086935b601f1984168510613e5a576001945083601f19811610613e41575b505050811b016008820155613b2d565b015160001960f88460031b161c19169055388080613e31565b81810151835560209485019460019093019290910190613e16565b602485634e487b7160e01b81526041600452fd5b015190503880613ab4565b9250600784018652602086209086935b601f1984168510613ee8576001945083601f19811610613ecf575b505050811b016007820155613acc565b015160001960f88460031b161c19169055388080613ebf565b81810151835560209485019460019093019290910190613ea4565b015190503880613a54565b9250600484018652602086209086935b601f1984168510613f62576001945083601f19811610613f49575b505050811b016004820155613a6c565b015160001960f88460031b161c19169055388080613f39565b81810151835560209485019460019093019290910190613f1e565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613fe45790613fbb565b50905061412e57601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a90603082820601845304918261401c5791506140be612272966062966080856140889b81019503018452519889967f7b22616374696f6e5478486173686573223a5b22000000000000000000000000602089015251809260348901906001190161234f565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b000000006034840152518093605084019061234f565b017f5d2c22616374696f6e54797065223a220000000000000000000000000000000060508201526140f982518093602060608501910161234f565b017f227d00000000000000000000000000000000000000000000000000000000000060608201520360428101845201826121e2565b632194895a6000526004601cfd5b6000198114612f3e5760010190565b90815181101561415c570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561428e57806141835750565b600181036141cf57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b6002810361421b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b60031461422457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b9060418151146000146142d2576142ce916020820151906060604084015193015160001a906142dc565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143525791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137775781516001600160a01b0381161561434c579190565b50600190565b50505050600090600390565b638b78c6d81954330361436d57565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212203e7fc49d11f35efc0ae6db80e30dee7264fabb42e7ad8ab7ee6080091a8cda0064736f6c63430008130033", + "nonce": "0x25", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x252c2c301dd1cccdfdfc1c62476ea7348c847b6d0b59c36165663dc9711c4f5a", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "function": "upgrade(address,address)", + "arguments": [ + "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", + "0x2a4A4f6330b30f257146bb0bc6e57019b8ddbE78" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "gas": "0xd0bd", + "value": "0x0", + "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e0000000000000000000000002a4a4f6330b30f257146bb0bc6e57019b8ddbe78", + "nonce": "0x26", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x3c49f4", + "logs": [ + { + "address": "0x2a4a4f6330b30f257146bb0bc6e57019b8ddbe78", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000001", + "blockHash": "0xe6d777574a6f7c91fd6a0e7fba0eb2badb9ec992dca800a701c49e2c79df0d44", + "blockNumber": "0xf9c166", + "transactionHash": "0xd1b442d0d0c70cb71923e9df8129b3daea7c2a51c58c0fae53bf3cdf660592a3", + "transactionIndex": "0x2", + "logIndex": "0x7", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000200000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xd1b442d0d0c70cb71923e9df8129b3daea7c2a51c58c0fae53bf3cdf660592a3", + "transactionIndex": "0x2", + "blockHash": "0xe6d777574a6f7c91fd6a0e7fba0eb2badb9ec992dca800a701c49e2c79df0d44", + "blockNumber": "0xf9c166", + "gasUsed": "0x3a6f3f", + "effectiveGasPrice": "0x1879c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0x2a4a4f6330b30f257146bb0bc6e57019b8ddbe78", + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x6b83d", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x26dfc0b94249", + "l1GasPrice": "0x1d8cae76c", + "l1GasUsed": "0x41c54" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x3ce114", + "logs": [ + { + "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x0000000000000000000000002a4a4f6330b30f257146bb0bc6e57019b8ddbe78" + ], + "data": "0x", + "blockHash": "0xe6d777574a6f7c91fd6a0e7fba0eb2badb9ec992dca800a701c49e2c79df0d44", + "blockNumber": "0xf9c166", + "transactionHash": "0x252c2c301dd1cccdfdfc1c62476ea7348c847b6d0b59c36165663dc9711c4f5a", + "transactionIndex": "0x3", + "logIndex": "0x8", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000002000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x252c2c301dd1cccdfdfc1c62476ea7348c847b6d0b59c36165663dc9711c4f5a", + "transactionIndex": "0x3", + "blockHash": "0xe6d777574a6f7c91fd6a0e7fba0eb2badb9ec992dca800a701c49e2c79df0d44", + "blockNumber": "0xf9c166", + "gasUsed": "0x9720", + "effectiveGasPrice": "0x1879c", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "contractAddress": null, + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x6b83d", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x5f28f3cb7a", + "l1GasPrice": "0x1d8cae76c", + "l1GasUsed": "0xa10" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719429808, + "chain": 7777777, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/7777777/run-1719429881.json b/broadcast/QuestFactory.s.sol/7777777/run-1719429881.json new file mode 100644 index 00000000..cdb9f6eb --- /dev/null +++ b/broadcast/QuestFactory.s.sol/7777777/run-1719429881.json @@ -0,0 +1,53 @@ +{ + "transactions": [ + { + "hash": "0xe1dfe083d0173fab827e249186fb5d24802238a48c5f6d7c2b587854fa345bd7", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x29", + "chainId": "0x76adf1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x7c748", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xe1dfe083d0173fab827e249186fb5d24802238a48c5f6d7c2b587854fa345bd7", + "transactionIndex": "0x5", + "blockHash": "0x5eaa9f3c73ab387e6935c2d486e7ee81660adeacda4dc198474be4e003bbcd0d", + "blockNumber": "0xf9c193", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x1879d", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x4e88e", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x4ff1d1da3c", + "l1GasPrice": "0x208fc67a8", + "l1GasUsed": "0x7ac" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719429881, + "chain": 7777777, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/7777777/run-latest.json b/broadcast/QuestFactory.s.sol/7777777/run-latest.json index 15f39d9e..cdb9f6eb 100644 --- a/broadcast/QuestFactory.s.sol/7777777/run-latest.json +++ b/broadcast/QuestFactory.s.sol/7777777/run-latest.json @@ -1,43 +1,20 @@ { "transactions": [ { - "hash": "0xc8210aba48f9b5119b3f93c214dea6525acdbe04145407ad256c9f6258bd96b3", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0xb8830f6f23DfcA3A3B2f29f5A1E5449abd3dDE80", + "hash": "0xe1dfe083d0173fab827e249186fb5d24802238a48c5f6d7c2b587854fa345bd7", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "function": null, "arguments": null, "transaction": { - "type": "0x02", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", - "value": "0x0", - "data": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212207957da406aebba03d6ca779a30b78b85fcc281c0902f0aa064e0027a03da7df964736f6c63430008130033", - "nonce": "0x18", - "accessList": [] - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x30a307ef4c92a85406ab772a449790d2ee2a7c131e883cbc2835384ad7c902e4", - "transactionType": "CALL", - "contractName": null, - "contractAddress": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "function": "upgrade(address,address)", - "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0xb8830f6f23DfcA3A3B2f29f5A1E5449abd3dDE80" - ], - "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0bd", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", "value": "0x0", - "data": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000b8830f6f23dfca3a3b2f29f5a1e5449abd3dde80", - "nonce": "0x19", - "accessList": [] + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x29", + "chainId": "0x76adf1" }, "additionalContracts": [], "isFixedGasLimit": false @@ -45,71 +22,32 @@ ], "receipts": [ { - "transactionHash": "0xc8210aba48f9b5119b3f93c214dea6525acdbe04145407ad256c9f6258bd96b3", - "transactionIndex": "0x1", - "blockHash": "0xeae535a02534a9b87f1e822eededb686a72c27bb4d609bfcc636f1eced1f0717", - "blockNumber": "0xdeaf15", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x3ae1be", - "gasUsed": "0x3a15af", - "contractAddress": "0xb8830f6f23DfcA3A3B2f29f5A1E5449abd3dDE80", - "logs": [ - { - "address": "0xb8830f6f23DfcA3A3B2f29f5A1E5449abd3dDE80", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0xeae535a02534a9b87f1e822eededb686a72c27bb4d609bfcc636f1eced1f0717", - "blockNumber": "0xdeaf15", - "transactionHash": "0xc8210aba48f9b5119b3f93c214dea6525acdbe04145407ad256c9f6258bd96b3", - "transactionIndex": "0x1", - "logIndex": "0x0", - "removed": false - } - ], "status": "0x1", - "logsBloom": "0x00000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "cumulativeGasUsed": "0x7c748", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb2d05efc" - }, - { - "transactionHash": "0x30a307ef4c92a85406ab772a449790d2ee2a7c131e883cbc2835384ad7c902e4", - "transactionIndex": "0x2", - "blockHash": "0xeae535a02534a9b87f1e822eededb686a72c27bb4d609bfcc636f1eced1f0717", - "blockNumber": "0xdeaf15", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "cumulativeGasUsed": "0x3b78de", - "gasUsed": "0x9720", + "transactionHash": "0xe1dfe083d0173fab827e249186fb5d24802238a48c5f6d7c2b587854fa345bd7", + "transactionIndex": "0x5", + "blockHash": "0x5eaa9f3c73ab387e6935c2d486e7ee81660adeacda4dc198474be4e003bbcd0d", + "blockNumber": "0xf9c193", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x1879d", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "contractAddress": null, - "logs": [ - { - "address": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000b8830f6f23dfca3a3b2f29f5a1e5449abd3dde80" - ], - "data": "0x", - "blockHash": "0xeae535a02534a9b87f1e822eededb686a72c27bb4d609bfcc636f1eced1f0717", - "blockNumber": "0xdeaf15", - "transactionHash": "0x30a307ef4c92a85406ab772a449790d2ee2a7c131e883cbc2835384ad7c902e4", - "transactionIndex": "0x2", - "logIndex": "0x1", - "removed": false - } - ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000010000000000000008000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000", - "type": "0x2", - "effectiveGasPrice": "0xb2d05efc" + "l1BaseFeeScalar": "0x4e20", + "l1BlobBaseFee": "0x4e88e", + "l1BlobBaseFeeScalar": "0x9ab40", + "l1Fee": "0x4ff1d1da3c", + "l1GasPrice": "0x208fc67a8", + "l1GasUsed": "0x7ac" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715881467, + "timestamp": 1719429881, "chain": 7777777, - "commit": "a35a3c3" + "commit": "9f10ed7" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/81457/run-1719428711.json b/broadcast/QuestFactory.s.sol/81457/run-1719428711.json new file mode 100644 index 00000000..b1f21b16 --- /dev/null +++ b/broadcast/QuestFactory.s.sol/81457/run-1719428711.json @@ -0,0 +1,119 @@ +{ + "transactions": [ + { + "hash": "0x5fe9ea2e35fff7e5c6c02f9e5baf0f3487a46fe4e966a256218efa58ae0fc244", + "transactionType": "CREATE", + "contractName": "QuestFactory", + "contractAddress": "0xd730aef2379e8e0e5ad44a1d2e836bf7ec5e33b9", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "gas": "0x4bf164", + "value": "0x0", + "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b6040516143f890816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611ed6575080630b6fc16314611eaf57806311f4b35b14611e9157806313966db514611e7357806313a4057014611df7578063183a4f6e14611dde5780631c10893f14611d7c5780631cd64df414611d4257806323e2c1ba14611d1f5780632569296214611cd457806327b0655f14611c6f5780632de9480714611c3c57806332f58eb514611bf757806343ff27d114611ba95780634a4ee7b114611b80578063514e62fc14611b4757806354d1f13d14611b015780635caf9de114611ac357806364df049e14611a9c57806367dfa3e714611a7a57806370dfd40a1461198c578063715018a6146119465780637c93f9ee146119075780637e4176e3146117d65780637f7c0ef71461122c57806381589b1f1461112357806384ae2bc6146111015780638da5cb5b146110d657806397aba7f91461103f578063a1db1ba414611018578063a2e4459314610fde578063a5454dbd14610f72578063abab135a14610e50578063b4cbdd8b14610e11578063c42fe71814610d7d578063c6eba76614610c78578063cc923e0c14610c51578063ce53b15214610bdd578063d4faaa1714610bb6578063de0580dc14610abe578063e05d39ac146109fc578063e15cfcf514610832578063e1bc3aba146107ca578063e521cb921461075b578063ea22e4ab146106e2578063ec461ac414610660578063ed21bb8314610553578063eddd0d9c14610505578063f01a5934146103cd578063f04e283e1461034c578063f2fde38b146102de578063f8565efd1461029f5763fee81cf40361000f573461029c57602036600319011261029c576102836120d1565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b503461029c57602036600319011261029c576001600160a01b036102c16120d1565b6102c961435e565b166001600160a01b031960cc54161760cc5580f35b50602036600319011261029c576102f36120d1565b6102fb61435e565b8060601b1561033f576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029c576103616120d1565b61036961435e565b63389a75e1600c528082526020600c20805442116103c05790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b50610120908160031936011261029c576103e56120d1565b9067ffffffffffffffff9060a43582811161050157610408903690600401612257565b9160c4358181116104fd57610421903690600401612257565b9460e4358281116104f95761043a903690600401612257565b91610104359081116104f957610454903690600401612257565b91600160d454036104cf576020966104c195600260d455604051956104788761210e565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e08501526101008401528201526132cf565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b503461029c57602036600319011261029c577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561054561435e565b8060d255604051908152a180f35b503461029c576020806003193601126105015760043567ffffffffffffffff81116104fd578160609361058d6105b8933690600401612257565b906040805161059b81612172565b87815287858201520152816040519382858094519384920161234f565b810160cd8152030190209063ffffffff6106546008610641836009870154169461061c604051976105e889612172565b604051610603816105fc81600786016123d2565b03826121e2565b895261061560405180968193016123d2565b03846121e2565b8087019283526040870195865260405197889782895251918801526080870190612468565b9051858203601f19016040870152612468565b91511660608301520390f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760606106ac60206106993660048701612257565b816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c576107576105fc610743600860206107213660048901612321565b9190826040519384928337810160cd81520301902001604051928380926123d2565b604051918291602083526020830190612468565b0390f35b503461029c57602036600319011261029c576001600160a01b0361077d6120d1565b61078561435e565b1680156107a0576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff6107e76120fd565b6107ef61435e565b1661271081116108085761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029c576020908160031936011261029c5760043567ffffffffffffffff811161050157610866903690600401612321565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109d257600101948386541693843b156109ce576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109c3576109ab575b5081906004959697541695604051958680926318cbe5db60e11b82525afa80156109a057869061094e575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c49450610944604051948594604086526040860191612532565b918301520390a280f35b508084813d8311610999575b61096481836121e2565b81010312610994577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c4935161090a565b600080fd5b503d61095a565b6040513d88823e3d90fd5b90600495966109ba849361215e565b969550906108df565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029c57610a0b36612275565b9560409997989995919594929451988451610a2a818c6020890161234f565b8a0160cd815260018b60206001600160a01b039d8e9403019020015416610a94578960cb541615610a6a5760209a610a61996124c6565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029c5761016036600319011261029c576004359063ffffffff8216820361029c57610aea6120e7565b9167ffffffffffffffff60c4358181116104f957610b0c903690600401612257565b9260e43582811161050157610b25903690600401612257565b91610104358181116104fd57610b3f903690600401612257565b916101243591821161029c5750610b5a903690600401612257565b91604051948051610b6f81886020850161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a619560a435916084359160643591604435916124c6565b503461029c578060031936011261029c5760206001600160a01b0360cc5416604051908152f35b50604036600319011261029c5767ffffffffffffffff6004358181116104fd57610c0b903690600401612321565b505060243590811161050157610c25903690600401612321565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029c578060031936011261029c5760206001600160a01b0360d35416604051908152f35b503461029c5760a036600319011261029c5760043567ffffffffffffffff811161050157610caa903690600401612321565b90610cb36120e7565b91606435926001600160a01b03938481168091036109ce578460016040518587823760208187810160cd8152030190200154163303610d53577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d2560405195869560e0875260e0870191612532565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff610d9a6120fd565b610da261435e565b166127108111610de7576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c576001600160a01b03610e336120d1565b610e3b61435e565b166001600160a01b031960c954161760c95580f35b503461029c576101008060031936011261050157610e6c6120d1565b67ffffffffffffffff929060a4358481116104fd57610e8f903690600401612257565b9160c43585811161050157610ea8903690600401612257565b9460e43590811161050157610ec1903690600401612257565b604051948451610ed581886020890161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a61958760405196610f1588612141565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f5261248d565b61012083015260405190610f658261218e565b8152610140820152613901565b503461029c57608036600319011261029c5760243563ffffffff811681036105015767ffffffffffffffff6044358181116104f957610fb5903690600401612257565b9260643591821161029c576107576107438585610fd53660048801612257565b50600435613f8a565b50602036600319011261029c5760043567ffffffffffffffff81116105015761100e611015913690600401612321565b3391612567565b80f35b503461029c578060031936011261029c5760206001600160a01b0360cb5416604051908152f35b503461029c57604036600319011261029c5760243567ffffffffffffffff81116105015736602382011215610501576110bd602092603c61108d6110c5943690602481600401359101612220565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c52206142a4565b919091614172565b6001600160a01b0360405191168152f35b503461029c578060031936011261029c576020638b78c6d819546001600160a01b0360405191168152f35b503461029c578060031936011261029c57602061ffff60da5416604051908152f35b503461029c57610100908160031936011261029c576111406120d1565b67ffffffffffffffff9060a4358281116104f957611162903690600401612257565b9160c4359081116104f95761117b903690600401612257565b5060405192825161119081866020870161234f565b840160cd815260018560206001600160a01b0397889403019020015416610a94578360cb541615610a6a57602094610a619385604051946111d086612141565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516112098161218e565b82815260e08401526040519061121e8261218e565b828252830152610f5261248d565b503461029c57602036600319011261029c5760043567ffffffffffffffff81116105015760206112636112c2923690600401612257565b8361014060405161127381612141565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690829061130f6040516112f4816105fc81600487016123d2565b6112fc613161565b6020815191012090602081519101201490565b156116f0576040516305f5c3df60e21b8152602081600481875afa9081156116e55785916116af575b505b6040519263f7c618c160e01b8452602084600481885afa9384156109a057869461167e575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109c357879461165d575b506040516378e9792560e01b81526020816004818a5afa90811561165257889161161c575b50604051906318cbe5db60e11b82526020826004818b5afa9182156116115789926115d9575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115ce578a94611595575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561158a57906101409998979695949392916101609c98611553575b509061ffff916001600160a01b036040519a6114978c612141565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff9291985061157b9060203d602011611583575b61157381836121e2565b8101906131c5565b97909161147c565b503d611569565b6040513d8d823e3d90fd5b9093506020813d6020116115c6575b816115b1602093836121e2565b810103126115c25751926003611428565b8980fd5b3d91506115a4565b6040513d8c823e3d90fd5b9091506020813d602011611609575b816115f5602093836121e2565b81010312611605575190386113e9565b8880fd5b3d91506115e8565b6040513d8b823e3d90fd5b90506020813d60201161164a575b81611637602093836121e2565b810103126116465751386113c3565b8780fd5b3d915061162a565b6040513d8a823e3d90fd5b61167791945060203d6020116115835761157381836121e2565b923861139e565b6116a191945060203d6020116116a8575b61169981836121e2565b810190613142565b923861135f565b503d61168f565b90506020813d6020116116dd575b816116ca602093836121e2565b810103126116d9575138611338565b8480fd5b3d91506116bd565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117cb578491611799575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116e557859161175c575b509161133a565b90506020813d602011611791575b81611777602093836121e2565b810103126116d9575161ffff811681036116d95738611755565b3d915061176a565b90506020813d6020116117c3575b816117b4602093836121e2565b810103126104f9575138611716565b3d91506117a7565b6040513d86823e3d90fd5b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5761180d60206106993660048601612257565b810160cd8152030190206001600160a01b0380600183015416906118fc6002840154936118ed60038201549360405161184d816105fc81600488016123d2565b60058401549180600686015416906118c46040519361187a856118738160078c016123d2565b03866121e2565b63ffffffff60096040519961189d8b61189681600885016123d2565b038c6121e2565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b0190612468565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e0880152612468565b90848203610100860152612468565b906101208301520390f35b503461029c57602036600319011261029c576001600160a01b036119296120d1565b61193161435e565b166001600160a01b031960cb54161760cb5580f35b508060031936011261029c5761195a61435e565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029c576119a16120d1565b67ffffffffffffffff9160a435838111610501576119c3903690600401612257565b9260c435908111610501576119dc903690600401612257565b50600160d454036104cf576020926104c191600260d45560405191611a008361210e565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a438161218e565b81815260e0830152604051611a578161218e565b81815261010083015260405190611a6d8261218e565b81526101208201526132cf565b503461029c578060031936011261029c57602061ffff60d15416604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360ca5416604051908152f35b50604036600319011261029c5760043567ffffffffffffffff811161050157611af3611015913690600401612321565b611afb6120e7565b91612567565b508060031936011261029c5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029c57604036600319011261029c57611b616120d1565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029c57611015611b986120d1565b611ba061435e565b6024359061437b565b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760206003611be3826106993660048801612257565b810160cd8152030190200154604051908152f35b503461029c57602036600319011261029c576001600160a01b03611c196120d1565b611c2161435e565b1680156107a0576001600160a01b031960d354161760d35580f35b503461029c57602036600319011261029c57611c566120d1565b90638b78c6d8600c5252602080600c2054604051908152f35b503461029c57604036600319011261029c5760043567ffffffffffffffff8111610501576040602092611ca860ff933690600401612257565b6001600160a01b03611cc1611cbb6120e7565b92612372565b9116825284522054166040519015158152f35b508060031936011261029c5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029c57602036600319011261029c57611d3961435e565b60043560dc5580f35b503461029c57604036600319011261029c57602090611d5f6120d1565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029c57611d916120d1565b611d9961435e565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029c576110156004353361437b565b611e0036612275565b94600160d49a979a95929594939454036104cf576020996104c198600260d45563ffffffff60405199611e328b61210e565b1689526001600160a01b03809b168c8a015260408901526060880152608087015260a086015260c085015260e08401526101008301526101208201526132cf565b503461029c578060031936011261029c57602060d254604051908152f35b503461029c578060031936011261029c57602060dc54604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360c95416604051908152f35b9050346105015761010036600319011261050157611ef26120d1565b611efa6120e7565b6044356001600160a01b03928382168092036109ce57606435918483168093036120cd57608435948086168096036116465760c4359561ffff871680970361160557885460ff8160081c16159889809a6120c0575b80156120a9575b15612041575060ff1981166001178a5588612030575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc55611ff95780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611f6c565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611f565750600160ff831614611f56565b50600160ff831610611f4f565b8680fd5b600435906001600160a01b038216820361099457565b602435906001600160a01b038216820361099457565b6004359061ffff8216820361099457565b610140810190811067ffffffffffffffff82111761212b57604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57604052565b6060810190811067ffffffffffffffff82111761212b57604052565b6020810190811067ffffffffffffffff82111761212b57604052565b6040810190811067ffffffffffffffff82111761212b57604052565b6080810190811067ffffffffffffffff82111761212b57604052565b90601f8019910116810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57601f01601f191660200190565b92919261222c82612204565b9161223a60405193846121e2565b829481845281830111610994578281602093846000960137010152565b9080601f830112156109945781602061227293359101612220565b90565b6101406003198201126109945760043563ffffffff8116810361099457916024356001600160a01b0381168103610994579160443591606435916084359160a4359167ffffffffffffffff9060c43582811161099457816122d891600401612257565b9260e43583811161099457826122f091600401612257565b9261010435818111610994578361230991600401612257565b92610124359182116109945761227291600401612257565b9181601f840112156109945782359167ffffffffffffffff8311610994576020838186019501011161099457565b60005b8381106123625750506000910152565b8181015183820152602001612352565b602061238b91816040519382858094519384920161234f565b810160cd81520301902090565b90600182811c921680156123c8575b60208310146123b257565b634e487b7160e01b600052602260045260246000fd5b91607f16916123a7565b90600092918054916123e383612398565b9182825260019384811690816000146124455750600114612405575b50505050565b90919394506000526020928360002092846000945b8386106124315750505050010190388080806123ff565b80548587018301529401938590820161241a565b9294505050602093945060ff191683830152151560051b010190388080806123ff565b906020916124818151809281855285808601910161234f565b601f01601f1916010190565b6040519061249a826121aa565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b979593916001600160a01b036122729a9896949263ffffffff6040519b6124ec8d612141565b168b521660208a015260408901526060880152608087015260a086015260c085015260e084015261010083015261252161248d565b610120830152610140820152613901565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361099457565b612575919392933691612220565b9160609280518061305f575b505060c083805181010312610994576020830151926040810151916060820151916125ae60808201612553565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109945760c001519063ffffffff82168203610994576040516125fc816121aa565b60108082527f303132333435363738396162636465660000000000000000000000000000000060208301526040519461263486612172565b6024865260208601926040368537600091825b848110612f665750505050506001600160a01b03979893886126a96106156126ec98966126e0966126a4600761268d60206126cd9a604051809381928d5192839161234f565b810160cd81520301902001604051948580926123d2565b613f8a565b956040519a8b961660208701521660408501526080606085015260a0840190612468565b601f199384848303016080850152612468565b039081018552846121e2565b8060ff1c601b8110612f54575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b16606082015260418152612761816121c6565b8151820191608081602085019403126109945761278060208201612553565b9161278d60408301612553565b92606083015167ffffffffffffffff90818111610994578660206127b392870101613100565b9560808501519182116109945760206127ce92860101613100565b9260405160208188516127e48183858d0161234f565b810160cd8152030190206003810154600181018111612f3e5760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612c5457600096612f15575b506110bd61287391600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c86206142a4565b6001600160a01b038060c95416911603612eeb5760d2543410612ec1576001600160a01b03841683528160205260ff604084205416612e975760028201546001820111612e6d576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a16604483015260448252612946826121c6565b6020825192019034905af13d15612e68573d61296181612204565b9061296f60405192836121e2565b81528360203d92013e5b15612e3e5760046112f4826001600160a01b0360016129eb9501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129d86001600160a01b038c16946020830190612468565b0390a36105fc60405180948193016123d2565b15612d9257506040516305f5c3df60e21b8152602081600481875afa908115612c5457600091612d60575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d823433160405180612a546001600160a01b03881694898d8461319a565b0390a35b6001600160a01b038516612a6f575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612c5457600091612d2e575b5060dc541015612c945760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612c5457600092612c60575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612c5457600094612c19575b50976001600160a01b03819795612be39997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b90957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a0190612468565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e0860190612468565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a1388080808080612a67565b90936020823d602011612c4c575b81612c34602093836121e2565b8101031261029c575051926001600160a01b03612b20565b3d9150612c27565b6040513d6000823e3d90fd5b90916020823d602011612c8c575b81612c7b602093836121e2565b8101031261029c5750519038612ae0565b3d9150612c6e565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612be396946001600160a01b0360d2549260405193849360c0855283612d0360c087018d612468565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612bc1565b906020823d602011612d58575b81612d48602093836121e2565b8101031261029c57505138612a94565b3d9150612d3b565b906020823d602011612d8a575b81612d7a602093836121e2565b8101031261029c57505138612a16565b3d9150612d6d565b6040516369d2dc0560e01b8152602081600481885afa918215612e32578092612dfd575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612df56001600160a01b03881694898d8461319a565b0390a3612a58565b9091506020823d602011612e2a575b81612e19602093836121e2565b8101031261029c5750513880612db6565b3d9150612e0c565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612979565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b612873919650612f366110bd9160203d6020116116a85761169981836121e2565b969150612832565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612f3e57906126f9565b6004898183148015613055575b801561304b575b8015613041575b61300f575b612fea612fe28493612fcc938761300a971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c61414b565b51169a612fd88161413c565b9b60001a9261414b565b53168661414b565b511694613004612ff98261413c565b9660001a918c61414b565b5361413c565b612647565b94612fea612fe261300a9493602d6130348561302e612fcc979161413c565b9b61414b565b5393945050505089612f86565b50600a8314612f81565b5060088314612f7a565b5060068314612f73565b6040516004830180518019825260208301975090959284019491935b8097868210156130db5760018092019860ff808b51169182156130a6575050815301955b959661307b565b60020180516000198552909b50607f92509084908216838111156130d0575b50501601019561309f565b0138843983386130c5565b91909652838103601f1901845260008152602001604052919450925090503880612581565b81601f8201121561099457805161311681612204565b9261312460405194856121e2565b8184526020828401011161099457612272916020808501910161234f565b9081602091031261099457516001600160a01b03811681036109945790565b6040519061316e826121aa565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131ba60409396959496606084526060840190612468565b951660208201520152565b90816020910312610994575180151581036109945790565b8181106131e8575050565b600081556001016131dd565b9190601f811161320357505050565b61322f926000526020600020906020601f840160051c83019310613231575b601f0160051c01906131dd565b565b9091508190613222565b979461329f6001600160a01b03956132916101409c999f9e9d9a966132838d63ffffffff986132756132ad99610160808552840190612468565b916020818403910152612468565b8d810360408f015290612468565b908b820360608d01526123d2565b9089820360808b0152612468565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c0820151916132e1600093612372565b60018101916001600160a01b03835416610a945760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b03909216919061334581607481015b03601f1981018352826121e2565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f580156138f4576001600160a01b0390866021521692836001600160a01b0319825416179055608081015160028301556133b66004830154612398565b601f81116138d2575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116138445781906134638261345a6007880154612398565b600788016131f4565b602090601f8311600114613863578892613858575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116138445781906134c4826134bb6008880154612398565b600888016131f4565b602090601f83116001146137d55788926137ca575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b156120cd576135a59360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e4830190612468565b038183885af180156109a0576137b7575b50846001600160a01b0360208301511660a08301516080840151823b156104f95760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af18015613798576137a3575b5050823b156116d957846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af1801561379857613784575b5050823b156116d9576040519463f2fde38b60e01b8652336004870152808660248183885af19586156137775784959661375b575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516137556101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c61323b565b0390a390565b81929394506137699061215e565b61029c5790818493926136d7565b50604051903d90823e3d90fd5b61378d9061215e565b6116d95784386136a2565b6040513d84823e3d90fd5b6137ac9061215e565b6116d957843861365e565b6137c39095919561215e565b93386135b6565b0151905038806134d9565b9250600885018852602088209088935b601f1984168510613829576001945083601f19811610613810575b505050811b0160088301556134f1565b015160001960f88460031b161c19169055388080613800565b818101518355602094850194600190930192909101906137e5565b602487634e487b7160e01b81526041600452fd5b015190503880613478565b9250600785018852602088209088935b601f19841685106138b7576001945083601f1981161061389e575b505050811b016007830155613490565b015160001960f88460031b161c1916905538808061388e565b81810151835560209485019460019093019290910190613873565b600483018652602086206138ee91601f0160051c8101906131dd565b386133bf565b633011642586526004601cfd5b60c0810151613911600091612372565b916001600160a01b0360cb54166040516020810190613959816133374246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f7d5760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e75578190613a3f82613a366004870154612398565b600487016131f4565b602090601f8311600114613f0e578692613f03575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e75578190613a9f82613a966007870154612398565b600787016131f4565b602090601f8311600114613e94578692613e89575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e75578190613b0082613af76008870154612398565b600887016131f4565b602090601f8311600114613e06578692613dfb575b50508160011b916000199060031b1c19161760088201555b815163ffffffff1690600981018263ffffffff19825416179055610140830151906101008401519060c08501519060e0860151928860208801516001600160a01b03169560408901958987519860608201998a519160808401519360a0019c8d5195604051996001600160a01b038b9a169c339c60040191613baf9a8c61323b565b037fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd91a360208401516001600160a01b03169051915192608085015190519060c086015160d15461ffff169260ca546001600160a01b0316926001600160a01b038b163b156115c25791613c7a918a9796959493604051998a9889987ffb96aa2e000000000000000000000000000000000000000000000000000000008a5260048a0152602489015260448801526064870152608486015261010060a4860152610104850190612468565b9160c484015260e48301520381836001600160a01b0389165af18015613dd357613dde575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613dd35783908192613d9e575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d915781606052806040526001600160a01b0383163b156105015763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561379857613d7f57505090565b613d89829161215e565b61029c575090565b637939f42482526004601cfd5b9150506020813d602011613dcb575b81613dba602093836121e2565b810103126109945751826064613cf6565b3d9150613dad565b6040513d85823e3d90fd5b6001600160a01b039192613df360209261215e565b929150613c9f565b015190503880613b15565b9250600884018652602086209086935b601f1984168510613e5a576001945083601f19811610613e41575b505050811b016008820155613b2d565b015160001960f88460031b161c19169055388080613e31565b81810151835560209485019460019093019290910190613e16565b602485634e487b7160e01b81526041600452fd5b015190503880613ab4565b9250600784018652602086209086935b601f1984168510613ee8576001945083601f19811610613ecf575b505050811b016007820155613acc565b015160001960f88460031b161c19169055388080613ebf565b81810151835560209485019460019093019290910190613ea4565b015190503880613a54565b9250600484018652602086209086935b601f1984168510613f62576001945083601f19811610613f49575b505050811b016004820155613a6c565b015160001960f88460031b161c19169055388080613f39565b81810151835560209485019460019093019290910190613f1e565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613fe45790613fbb565b50905061412e57601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a90603082820601845304918261401c5791506140be612272966062966080856140889b81019503018452519889967f7b22616374696f6e5478486173686573223a5b22000000000000000000000000602089015251809260348901906001190161234f565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b000000006034840152518093605084019061234f565b017f5d2c22616374696f6e54797065223a220000000000000000000000000000000060508201526140f982518093602060608501910161234f565b017f227d00000000000000000000000000000000000000000000000000000000000060608201520360428101845201826121e2565b632194895a6000526004601cfd5b6000198114612f3e5760010190565b90815181101561415c570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561428e57806141835750565b600181036141cf57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b6002810361421b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b60031461422457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b9060418151146000146142d2576142ce916020820151906060604084015193015160001a906142dc565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143525791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137775781516001600160a01b0381161561434c579190565b50600190565b50505050600090600390565b638b78c6d81954330361436d57565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212203e7fc49d11f35efc0ae6db80e30dee7264fabb42e7ad8ab7ee6080091a8cda0064736f6c63430008130033", + "nonce": "0x23", + "chainId": "0x13e31" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x6320cbd70fc875d4227960f6aa7f27750e0e08b90e173efcd9af5f74c86faaf2", + "transactionType": "CALL", + "contractName": "ProxyAdmin", + "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "function": "upgrade(address,address)", + "arguments": [ + "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", + "0xD730Aef2379E8E0E5aD44A1D2e836bF7eC5e33b9" + ], + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "gas": "0xd0bd", + "value": "0x0", + "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000d730aef2379e8e0e5ad44a1d2e836bf7ec5e33b9", + "nonce": "0x24", + "chainId": "0x13e31" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x53eacb", + "logs": [ + { + "address": "0xd730aef2379e8e0e5ad44a1d2e836bf7ec5e33b9", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000001", + "blockHash": "0x2adbcbffe702d79d67979670cb1bc5411ac93994a63366305ece9489a98d75dd", + "blockNumber": "0x510405", + "transactionHash": "0x5fe9ea2e35fff7e5c6c02f9e5baf0f3487a46fe4e966a256218efa58ae0fc244", + "transactionIndex": "0x11", + "logIndex": "0x1f", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x5fe9ea2e35fff7e5c6c02f9e5baf0f3487a46fe4e966a256218efa58ae0fc244", + "transactionIndex": "0x11", + "blockHash": "0x2adbcbffe702d79d67979670cb1bc5411ac93994a63366305ece9489a98d75dd", + "blockNumber": "0x510405", + "gasUsed": "0x3a6f3f", + "effectiveGasPrice": "0x114f9242", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": null, + "contractAddress": "0xd730aef2379e8e0e5ad44a1d2e836bf7ec5e33b9", + "l1Fee": "0x1ef38c8e889", + "l1GasPrice": "0x1a07414db", + "l1GasUsed": "0x41c64" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x5481eb", + "logs": [ + { + "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x000000000000000000000000d730aef2379e8e0e5ad44a1d2e836bf7ec5e33b9" + ], + "data": "0x", + "blockHash": "0x2adbcbffe702d79d67979670cb1bc5411ac93994a63366305ece9489a98d75dd", + "blockNumber": "0x510405", + "transactionHash": "0x6320cbd70fc875d4227960f6aa7f27750e0e08b90e173efcd9af5f74c86faaf2", + "transactionIndex": "0x12", + "logIndex": "0x20", + "removed": false + } + ], + "logsBloom": "0x00000000000000800000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000002000000000000400000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x6320cbd70fc875d4227960f6aa7f27750e0e08b90e173efcd9af5f74c86faaf2", + "transactionIndex": "0x12", + "blockHash": "0x2adbcbffe702d79d67979670cb1bc5411ac93994a63366305ece9489a98d75dd", + "blockNumber": "0x510405", + "gasUsed": "0x9720", + "effectiveGasPrice": "0x114f9242", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", + "contractAddress": null, + "l1Fee": "0x4c3b6a14d", + "l1GasPrice": "0x1a07414db", + "l1GasUsed": "0xa20" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719428711, + "chain": 81457, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/81457/run-1719428862.json b/broadcast/QuestFactory.s.sol/81457/run-1719428862.json new file mode 100644 index 00000000..81c2588c --- /dev/null +++ b/broadcast/QuestFactory.s.sol/81457/run-1719428862.json @@ -0,0 +1,50 @@ +{ + "transactions": [ + { + "hash": "0xd42d191f394a354151aca949e14064bb78dff042637b8b7cd74ffa691abb8f18", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x27", + "chainId": "0x13e31" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x20aba1", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xd42d191f394a354151aca949e14064bb78dff042637b8b7cd74ffa691abb8f18", + "transactionIndex": "0xc", + "blockHash": "0xbc2d1cb3f1b8b6acf1c9a7066c78491cbddca05f63ef894f79c96ce16bc29ce9", + "blockNumber": "0x510451", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0xfea3cbb", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1Fee": "0x3c2b93585", + "l1GasPrice": "0x1b168e61c", + "l1GasUsed": "0x7bc" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719428862, + "chain": 81457, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/81457/run-latest.json b/broadcast/QuestFactory.s.sol/81457/run-latest.json index f4d7b9fa..81c2588c 100644 --- a/broadcast/QuestFactory.s.sol/81457/run-latest.json +++ b/broadcast/QuestFactory.s.sol/81457/run-latest.json @@ -1,43 +1,20 @@ { "transactions": [ { - "hash": "0xfe44ec1a6cd05b3e8f5f0542fa6e3042fe1ff0c49c10af4fa4ec4c2b5df41c03", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0x54e986CbE464e243700083bA4F2da64F6648343F", + "hash": "0xd42d191f394a354151aca949e14064bb78dff042637b8b7cd74ffa691abb8f18", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "function": null, "arguments": null, "transaction": { - "type": "0x02", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", - "value": "0x0", - "data": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212207957da406aebba03d6ca779a30b78b85fcc281c0902f0aa064e0027a03da7df964736f6c63430008130033", - "nonce": "0x1c", - "accessList": [] - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x59feeb3548cc8ed4cd5511d0d729e7201b6ee1275f5b06e4b4d492bd254a0516", - "transactionType": "CALL", - "contractName": "ProxyAdmin", - "contractAddress": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "function": "upgrade(address,address)", - "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0x54e986CbE464e243700083bA4F2da64F6648343F" - ], - "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0ac", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", "value": "0x0", - "data": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e00000000000000000000000054e986cbe464e243700083ba4f2da64f6648343f", - "nonce": "0x1d", - "accessList": [] + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0x27", + "chainId": "0x13e31" }, "additionalContracts": [], "isFixedGasLimit": false @@ -45,71 +22,29 @@ ], "receipts": [ { - "transactionHash": "0xfe44ec1a6cd05b3e8f5f0542fa6e3042fe1ff0c49c10af4fa4ec4c2b5df41c03", - "transactionIndex": "0x2", - "blockHash": "0x20fc874e2f200f6205b9854f7805b12aa7a0031532fd436792bc67135d21678f", - "blockNumber": "0x35f04a", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x3b34f8", - "gasUsed": "0x3a15af", - "contractAddress": "0x54e986CbE464e243700083bA4F2da64F6648343F", - "logs": [ - { - "address": "0x54e986CbE464e243700083bA4F2da64F6648343F", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0x20fc874e2f200f6205b9854f7805b12aa7a0031532fd436792bc67135d21678f", - "blockNumber": "0x35f04a", - "transactionHash": "0xfe44ec1a6cd05b3e8f5f0542fa6e3042fe1ff0c49c10af4fa4ec4c2b5df41c03", - "transactionIndex": "0x2", - "logIndex": "0x0", - "removed": false - } - ], "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000800000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "cumulativeGasUsed": "0x20aba1", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb3ae7d80" - }, - { - "transactionHash": "0x59feeb3548cc8ed4cd5511d0d729e7201b6ee1275f5b06e4b4d492bd254a0516", - "transactionIndex": "0x3", - "blockHash": "0x20fc874e2f200f6205b9854f7805b12aa7a0031532fd436792bc67135d21678f", - "blockNumber": "0x35f04a", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "cumulativeGasUsed": "0x3bcc0c", - "gasUsed": "0x9714", + "transactionHash": "0xd42d191f394a354151aca949e14064bb78dff042637b8b7cd74ffa691abb8f18", + "transactionIndex": "0xc", + "blockHash": "0xbc2d1cb3f1b8b6acf1c9a7066c78491cbddca05f63ef894f79c96ce16bc29ce9", + "blockNumber": "0x510451", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0xfea3cbb", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "contractAddress": null, - "logs": [ - { - "address": "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x00000000000000000000000054e986cbe464e243700083ba4f2da64f6648343f" - ], - "data": "0x", - "blockHash": "0x20fc874e2f200f6205b9854f7805b12aa7a0031532fd436792bc67135d21678f", - "blockNumber": "0x35f04a", - "transactionHash": "0x59feeb3548cc8ed4cd5511d0d729e7201b6ee1275f5b06e4b4d492bd254a0516", - "transactionIndex": "0x3", - "logIndex": "0x1", - "removed": false - } - ], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000080000000000000000000000000000000000000000000000004000000000000000000000000000", - "type": "0x2", - "effectiveGasPrice": "0xb3ae7d80" + "l1Fee": "0x3c2b93585", + "l1GasPrice": "0x1b168e61c", + "l1GasUsed": "0x7bc" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715879663, + "timestamp": 1719428862, "chain": 81457, - "commit": "a35a3c3" + "commit": "9f10ed7" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/8453/run-1719429278.json b/broadcast/QuestFactory.s.sol/8453/run-1719429278.json new file mode 100644 index 00000000..d650582b --- /dev/null +++ b/broadcast/QuestFactory.s.sol/8453/run-1719429278.json @@ -0,0 +1,53 @@ +{ + "transactions": [ + { + "hash": "0x35ad49b16668223b35a8fdeba1c4dd96c1231973925bbea8959212c7fb94a7e4", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "function": null, + "arguments": null, + "transaction": { + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", + "value": "0x0", + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0xbe", + "chainId": "0x2105" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0xbf4e11", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x35ad49b16668223b35a8fdeba1c4dd96c1231973925bbea8959212c7fb94a7e4", + "transactionIndex": "0x3b", + "blockHash": "0xdfa8f8eed08bd9b7c2cce5b9ebaaebdface4a0a266e84708c4812612160f0d5a", + "blockNumber": "0xf905db", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x65e788", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x44d", + "l1BlobBaseFee": "0x11ee80", + "l1BlobBaseFeeScalar": "0xa118b", + "l1Fee": "0x3103044d5", + "l1GasPrice": "0x16807956e", + "l1GasUsed": "0x7ac" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1719429278, + "chain": 8453, + "commit": "9f10ed7" +} \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/8453/run-latest.json b/broadcast/QuestFactory.s.sol/8453/run-latest.json index 07264836..d650582b 100644 --- a/broadcast/QuestFactory.s.sol/8453/run-latest.json +++ b/broadcast/QuestFactory.s.sol/8453/run-latest.json @@ -1,43 +1,20 @@ { "transactions": [ { - "hash": "0xf2f71a563946d6b58700e25f421da9e53d8b8646c883e80342ccbcdd25219f75", - "transactionType": "CREATE", - "contractName": "QuestFactory", - "contractAddress": "0xf14bBA71B75276D611F9Abfd8CA373866B27f933", + "hash": "0x35ad49b16668223b35a8fdeba1c4dd96c1231973925bbea8959212c7fb94a7e4", + "transactionType": "CALL", + "contractName": "TransparentUpgradeableProxy", + "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "function": null, "arguments": null, "transaction": { - "type": "0x02", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", - "value": "0x0", - "data": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212207957da406aebba03d6ca779a30b78b85fcc281c0902f0aa064e0027a03da7df964736f6c63430008130033", - "nonce": "0xa4", - "accessList": [] - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x08ff56b154c84187293c94c01f613e9c4bf0d9de9f4382279a81761e379080af", - "transactionType": "CALL", - "contractName": "ProxyAdmin", - "contractAddress": "0xD28fbF7569f31877922cDc31a1A5B3C504E8faa1", - "function": "upgrade(address,address)", - "arguments": [ - "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0xf14bBA71B75276D611F9Abfd8CA373866B27f933" - ], - "transaction": { - "type": "0x02", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "gas": "0xd0bd", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "gas": "0xd211", "value": "0x0", - "data": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000f14bba71b75276d611f9abfd8ca373866b27f933", - "nonce": "0xa5", - "accessList": [] + "input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa", + "nonce": "0xbe", + "chainId": "0x2105" }, "additionalContracts": [], "isFixedGasLimit": false @@ -45,40 +22,32 @@ ], "receipts": [ { - "transactionHash": "0xf2f71a563946d6b58700e25f421da9e53d8b8646c883e80342ccbcdd25219f75", - "transactionIndex": "0x1", - "blockHash": "0xda3d2a4dd63f71d862933c0df6a0ee8805f8f97fde6ed566e56e2b2911c39a9f", - "blockNumber": "0xddf207", - "from": "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "to": null, - "cumulativeGasUsed": "0x3ac0fa", - "gasUsed": "0x3a15af", - "contractAddress": "0xf14bBA71B75276D611F9Abfd8CA373866B27f933", - "logs": [ - { - "address": "0xf14bBA71B75276D611F9Abfd8CA373866B27f933", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0xda3d2a4dd63f71d862933c0df6a0ee8805f8f97fde6ed566e56e2b2911c39a9f", - "blockNumber": "0xddf207", - "transactionHash": "0xf2f71a563946d6b58700e25f421da9e53d8b8646c883e80342ccbcdd25219f75", - "transactionIndex": "0x1", - "logIndex": "0x0", - "removed": false - } - ], "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000002000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "cumulativeGasUsed": "0xbf4e11", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "effectiveGasPrice": "0xb67ea9a1" + "transactionHash": "0x35ad49b16668223b35a8fdeba1c4dd96c1231973925bbea8959212c7fb94a7e4", + "transactionIndex": "0x3b", + "blockHash": "0xdfa8f8eed08bd9b7c2cce5b9ebaaebdface4a0a266e84708c4812612160f0d5a", + "blockNumber": "0xf905db", + "gasUsed": "0x8fa3", + "effectiveGasPrice": "0x65e788", + "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", + "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", + "contractAddress": null, + "l1BaseFeeScalar": "0x44d", + "l1BlobBaseFee": "0x11ee80", + "l1BlobBaseFeeScalar": "0xa118b", + "l1Fee": "0x3103044d5", + "l1GasPrice": "0x16807956e", + "l1GasUsed": "0x7ac" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1715880200, + "timestamp": 1719429278, "chain": 8453, - "commit": "a35a3c3" + "commit": "9f10ed7" } \ No newline at end of file diff --git a/broadcast/QuestFactory.s.sol/84532/run-latest.json b/broadcast/QuestFactory.s.sol/84532/run-latest.json index 139f2fc7..c621af8d 100644 --- a/broadcast/QuestFactory.s.sol/84532/run-latest.json +++ b/broadcast/QuestFactory.s.sol/84532/run-latest.json @@ -1,142 +1,40 @@ { "transactions": [ { - "hash": "0xc5c9d41e5b5eb8e8ecf878b7a705352270e6d8df2c29703fba8d967572fc1141", - "transactionType": "CREATE2", - "contractName": null, - "contractAddress": "0xfe9af934a9d1bd4109d0d698635c19385389e85f", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", - "gas": "0x33b58e", - "value": "0x0", - "input": "0x000000000000000000000000000000000000000000000000000000000000002060806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b620019721760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b612b0e806200015c6000396000f3fe608060405234801561001057600080fd5b50600436106102775760003560e01c80637c93f9ee11610160578063cc4aa204116100d8578063e521cb921161008c578063f2fde38b11610071578063f2fde38b146105be578063f8565efd146105d1578063fb41808a146105e457600080fd5b8063e521cb9214610598578063ec461ac4146105ab57600080fd5b8063d547741f116100bd578063d547741f1461055f578063d693e8d314610572578063e1bc3aba1461058557600080fd5b8063cc4aa20414610544578063d4faaa171461054c57600080fd5b806397aba7f91161012f578063a217fddf11610114578063a217fddf14610516578063a96a1cb01461051e578063b4cbdd8b1461053157600080fd5b806397aba7f9146104f0578063a1db1ba41461050357600080fd5b80637c93f9ee146104275780637e4176e31461043a5780638da5cb5b146104a657806391d14854146104b757600080fd5b806343f8bc6f116101f357806367dfa3e7116101c2578063715018a6116101a7578063715018a6146103f957806376319ee01461040157806378077f8d1461041457600080fd5b806367dfa3e7146103b5578063695ef19f146103d657600080fd5b806343f8bc6f1461036957806343ff27d11461037c57806361ab146b1461038f57806364df049e146103a257600080fd5b80632d2554711161024a578063358764761161022f578063358764761461033057806336568abe146103435780633ef17b171461035657600080fd5b80632d255471146103135780632f2ff15d1461031b57600080fd5b806301ffc9a71461027c5780630b6fc163146102a4578063248a9ca3146102cf57806327b0655f14610300575b600080fd5b61028f61028a366004612308565b61060b565b60405190151581526020015b60405180910390f35b60c9546102b7906001600160a01b031681565b6040516001600160a01b03909116815260200161029b565b6102f26102dd36600461234a565b60009081526097602052604090206001015490565b60405190815260200161029b565b61028f61030e366004612436565b6106a4565b6102f26106e6565b61032e610329366004612484565b61072c565b005b61032e61033e3660046124a7565b610756565b61032e610351366004612484565b61096b565b60ce546102b7906001600160a01b031681565b6102b761037736600461252d565b6109f7565b6102f261038a3660046125c8565b61104c565b61032e61039d3660046125fd565b611077565b60ca546102b7906001600160a01b031681565b60d1546103c39061ffff1681565b60405161ffff909116815260200161029b565b61028f6103e43660046125fd565b60d06020526000908152604090205460ff1681565b61032e6110ae565b61032e61040f366004612618565b6110c2565b60cf546102b7906001600160a01b031681565b61032e6104353660046125fd565b6115d8565b6104816104483660046125c8565b805160208183018101805160cd825292820191909301209152600181015460028201546003909201546001600160a01b03909116919083565b604080516001600160a01b03909416845260208401929092529082015260600161029b565b6033546001600160a01b03166102b7565b61028f6104c5366004612484565b60009182526097602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6102b76104fe366004612685565b61160f565b60cb546102b7906001600160a01b031681565b6102f2600081565b61032e61052c3660046125fd565b611671565b61032e61053f3660046125fd565b6116a8565b6102f26116df565b60cc546102b7906001600160a01b031681565b61032e61056d366004612484565b611710565b61032e6105803660046126da565b611735565b61032e610593366004612711565b611768565b61032e6105a63660046125fd565b6117e5565b6104816105b93660046125c8565b61185c565b61032e6105cc3660046125fd565b6118ab565b61032e6105df3660046125fd565b61193b565b6102f27ff9ca453be4e83785e69957dffc5e557020ebe7df32422c6d32ccad977982cadd81565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061069e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600060cd836040516106b69190612759565b90815260408051602092819003830190206001600160a01b0385166000908152925290205460ff16905092915050565b6040517f657263313135350000000000000000000000000000000000000000000000000060208201526027015b6040516020818303038152906040528051906020012081565b60008281526097602052604090206001015461074781611981565b610751838361198b565b505050565b600054610100900460ff16158080156107765750600054600160ff909116105b806107905750303b158015610790575060005460ff166001145b6108075760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b6000805460ff19166001179055801561084757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b61085082611a2d565b610858611ab3565b61086182611b30565b60c980546001600160a01b03808b1673ffffffffffffffffffffffffffffffffffffffff199283161790925560ce80548a841690831617905560cf805489841690831617905560ca805488841690831617905560d180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166107d017905560cb805487841690831617905560cc805492861692909116919091179055801561096157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b6001600160a01b03811633146109e95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016107fe565b6109f38282611b65565b5050565b60007ff9ca453be4e83785e69957dffc5e557020ebe7df32422c6d32ccad977982cadd610a2381611981565b600060cd84604051610a359190612759565b90815260405190819003602001902060018101549091506001600160a01b031615610a8c576040517fb2431b6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f657263323000000000000000000000000000000000000000000000000000000060208201526025016040516020818303038152906040528051906020012085604051602001610adf9190612759565b6040516020818303038152906040528051906020012003610d18576001600160a01b038a16600090815260d0602052604081205460ff1615159003610b50576040517f9f7fdf3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cb54600090610b68906001600160a01b0316611be8565b9050806001600160a01b0316336001600160a01b03167f7ffd904b9426b92270b251e237818b61230a9c7dc857d7e6130dddc21b76193787898f8f8f8f8f604051610bb997969594939291906127a1565b60405180910390a3808260010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550878260020181905550806001600160a01b031663938299b68c8c8c8c8c8b60ce60009054906101000a90046001600160a01b031660d160009054906101000a900461ffff1660ca60009054906101000a90046001600160a01b03166040518a63ffffffff1660e01b8152600401610c69999897969594939291906127fa565b600060405180830381600087803b158015610c8357600080fd5b505af1158015610c97573d6000803e3d6000fd5b50506040517ff2fde38b0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038416925063f2fde38b91506024015b600060405180830381600087803b158015610cf657600080fd5b505af1158015610d0a573d6000803e3d6000fd5b505050508093505050611040565b6040517f657263313135350000000000000000000000000000000000000000000000000060208201526027016040516020818303038152906040528051906020012085604051602001610d6b9190612759565b604051602081830303815290604052805190602001200361100e576033546001600160a01b03163314610dca576040517f764a7c5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cc54600090610de2906001600160a01b0316611be8565b9050806001600160a01b0316336001600160a01b03167f7ffd904b9426b92270b251e237818b61230a9c7dc857d7e6130dddc21b76193787898f8f8f8f8f604051610e3397969594939291906127a1565b60405180910390a3808260010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550878260020181905550806001600160a01b031663b7af306e8c8c8c8c8c8b60ce60009054906101000a90046001600160a01b03166040518863ffffffff1660e01b8152600401610eba979695949392919061285f565b600060405180830381600087803b158015610ed457600080fd5b505af1158015610ee8573d6000803e3d6000fd5b50506040517ff2fde38b0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038416925063f2fde38b9150602401600060405180830381600087803b158015610f4657600080fd5b505af1158015610f5a573d6000803e3d6000fd5b505060cf546001600160a01b03908116908e1603915061100590505760cf546040517f731133e90000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600480840191909152602483018b9052604483018c90526080606484015260848301527f307830300000000000000000000000000000000000000000000000000000000060a48301529091169063731133e99060c401610cdc565b92506110409050565b6040517fd5fde11d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50979650505050505050565b600060cd8260405161105e9190612759565b9081526020016040518091039020600301549050919050565b61107f611c89565b60ce805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6110b6611c89565b6110c06000611ce3565b565b600060cd846040516110d49190612759565b908152602001604051809103902090508060020154816003015460016110fa91906128e0565b1115611132576040517f571e5b1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526020829052604090205460ff161515600103611180576040517ff5f915f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010160009054906101000a90046001600160a01b03166001600160a01b03166316049ddf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f991906128f3565b61122f576040517fe5ec6b0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010160009054906101000a90046001600160a01b03166001600160a01b03166378e979256040518163ffffffff1660e01b8152600401602060405180830381865afa158015611284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a89190612910565b4210156112e1576040517f5971011300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010160009054906101000a90046001600160a01b03166001600160a01b0316633197cbb66040518163ffffffff1660e01b8152600401602060405180830381865afa158015611336573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135a9190612910565b421115611393576040517f8b602a4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8233856040516020016113a7929190612929565b60405160208183030381529060405280519060200120146113f4576040517f0af806e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60c9546001600160a01b031661140a848461160f565b6001600160a01b03161461144a576040517f05d0fdda00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152602082905260408120805460ff1916600117905560038201805490919061147690612974565b9091555060ce546040517fd0def5210000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d0def521906114c5903390889060040161298e565b600060405180830381600087803b1580156114df57600080fd5b505af11580156114f3573d6000803e3d6000fd5b5050505060ce60009054906101000a90046001600160a01b03166001600160a01b031663010a38f56040518163ffffffff1660e01b8152600401602060405180830381865afa15801561154a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156e9190612910565b60cd8560405161157e9190612759565b908152604051908190036020018120600101546001600160a01b03169033907fa9e09a39b54248cb5161a8bad4e544f88b8aa2da99e7c425846bece6703cc1fc906115ca9089906129b0565b60405180910390a450505050565b6115e0611c89565b60cb805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c016040516020818303038152906040528051906020012090506116698184611d42565b949350505050565b611679611c89565b60cf805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6116b0611c89565b60c9805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6040517f65726332300000000000000000000000000000000000000000000000000000006020820152602501610713565b60008281526097602052604090206001015461172b81611981565b6107518383611b65565b61173d611c89565b6001600160a01b0391909116600090815260d060205260409020805460ff1916911515919091179055565b611770611c89565b6127108161ffff1611156117b0576040517f4ae19ab600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60d180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b6117ed611c89565b6001600160a01b03811661182d576040517f0855380c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60ca805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60008060008060cd856040516118729190612759565b908152604051908190036020019020600181015460028201546003909201546001600160a01b0390911695509093509150509193909250565b6118b3611c89565b6001600160a01b03811661192f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fe565b61193881611ce3565b50565b611943611c89565b60cc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b03163b151590565b6119388133611d66565b60008281526097602090815260408083206001600160a01b038516845290915290205460ff166109f35760008281526097602090815260408083206001600160a01b03851684529091529020805460ff191660011790556119e93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600054610100900460ff16611aaa5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b61193881611ddb565b600054610100900460ff166110c05760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b611b3b60008261198b565b6119387ff9ca453be4e83785e69957dffc5e557020ebe7df32422c6d32ccad977982cadd8261198b565b60008281526097602090815260408083206001600160a01b038516845290915290205460ff16156109f35760008281526097602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b038116611c845760405162461bcd60e51b815260206004820152601660248201527f455243313136373a20637265617465206661696c65640000000000000000000060448201526064016107fe565b919050565b6033546001600160a01b031633146110c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b603380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000611d518585611e58565b91509150611d5e81611e9d565b509392505050565b60008281526097602090815260408083206001600160a01b038516845290915290205460ff166109f357611d9981612002565b611da4836020612014565b604051602001611db59291906129c3565b60408051601f198184030181529082905262461bcd60e51b82526107fe916004016129b0565b600054610100900460ff1661192f5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b6000808251604103611e8e5760208301516040840151606085015160001a611e8287828585612244565b94509450505050611e96565b506000905060025b9250929050565b6000816004811115611eb157611eb1612a44565b03611eb95750565b6001816004811115611ecd57611ecd612a44565b03611f1a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107fe565b6002816004811115611f2e57611f2e612a44565b03611f7b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107fe565b6003816004811115611f8f57611f8f612a44565b036119385760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b606061069e6001600160a01b03831660145b60606000612023836002612a73565b61202e9060026128e0565b67ffffffffffffffff81111561204657612046612363565b6040519080825280601f01601f191660200182016040528015612070576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106120a7576120a7612a92565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061210a5761210a612a92565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612146846002612a73565b6121519060016128e0565b90505b60018111156121ee577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061219257612192612a92565b1a60f81b8282815181106121a8576121a8612a92565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936121e781612ac1565b9050612154565b50831561223d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107fe565b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561227b57506000905060036122ff565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156122cf573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166122f8576000600192509250506122ff565b9150600090505b94509492505050565b60006020828403121561231a57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461223d57600080fd5b60006020828403121561235c57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126123a357600080fd5b813567ffffffffffffffff808211156123be576123be612363565b604051601f8301601f19908116603f011681019082821181831017156123e6576123e6612363565b816040528381528660208588010111156123ff57600080fd5b836020870160208301376000602085830101528094505050505092915050565b80356001600160a01b0381168114611c8457600080fd5b6000806040838503121561244957600080fd5b823567ffffffffffffffff81111561246057600080fd5b61246c85828601612392565b92505061247b6020840161241f565b90509250929050565b6000806040838503121561249757600080fd5b8235915061247b6020840161241f565b600080600080600080600060e0888a0312156124c257600080fd5b6124cb8861241f565b96506124d96020890161241f565b95506124e76040890161241f565b94506124f56060890161241f565b93506125036080890161241f565b925061251160a0890161241f565b915061251f60c0890161241f565b905092959891949750929550565b600080600080600080600060e0888a03121561254857600080fd5b6125518861241f565b96506020880135955060408801359450606088013593506080880135925060a088013567ffffffffffffffff8082111561258a57600080fd5b6125968b838c01612392565b935060c08a01359150808211156125ac57600080fd5b506125b98a828b01612392565b91505092959891949750929550565b6000602082840312156125da57600080fd5b813567ffffffffffffffff8111156125f157600080fd5b61166984828501612392565b60006020828403121561260f57600080fd5b61223d8261241f565b60008060006060848603121561262d57600080fd5b833567ffffffffffffffff8082111561264557600080fd5b61265187838801612392565b945060208601359350604086013591508082111561266e57600080fd5b5061267b86828701612392565b9150509250925092565b6000806040838503121561269857600080fd5b82359150602083013567ffffffffffffffff8111156126b657600080fd5b6126c285828601612392565b9150509250929050565b801515811461193857600080fd5b600080604083850312156126ed57600080fd5b6126f68361241f565b91506020830135612706816126cc565b809150509250929050565b60006020828403121561272357600080fd5b813561ffff8116811461223d57600080fd5b60005b83811015612750578181015183820152602001612738565b50506000910152565b6000825161276b818460208701612735565b9190910192915050565b6000815180845261278d816020860160208601612735565b601f01601f19169290920160200192915050565b60e0815260006127b460e083018a612775565b82810360208401526127c6818a612775565b6001600160a01b0398909816604084015250506060810194909452608084019290925260a083015260c09091015292915050565b60006101206001600160a01b03808d1684528b60208501528a60408501528960608501528860808501528160a085015261283682850189612775565b96811660c085015261ffff9590951660e084015250509116610100909101529695505050505050565b60006001600160a01b03808a16835288602084015287604084015286606084015285608084015260e060a084015261289a60e0840186612775565b915080841660c08401525098975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561069e5761069e6128b1565b60006020828403121561290557600080fd5b815161223d816126cc565b60006020828403121561292257600080fd5b5051919050565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008360601b16815260008251612966816014850160208701612735565b919091016014019392505050565b60006000198203612987576129876128b1565b5060010190565b6001600160a01b03831681526040602082015260006116696040830184612775565b60208152600061223d6020830184612775565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516129fb816017850160208801612735565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612a38816028840160208801612735565b01602801949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000816000190483118215151615612a8d57612a8d6128b1565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081612ad057612ad06128b1565b50600019019056fea2646970667358221220c3bb00e7280dbac1936435a41cd209f2c124aded7885147018c2354f87807a5c64736f6c63430008100033", - "nonce": "0x1", - "chainId": "0x14a34" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x611a2296100d2acec8751022bdc212cdc52dda318ad4939a633cbc73ec4cb5ed", - "transactionType": "CREATE2", - "contractName": null, - "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", - "gas": "0xf39f2", - "value": "0x0", - "input": "0x00000000000000000000000000000000000000000000000000000000000000206080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000fe9af934a9d1bd4109d0d698635c19385389e85f000000000000000000000000d28fbf7569f31877922cdc31a1a5b3c504e8faa100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x2", - "chainId": "0x14a34" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x445c80bbcdba91b90f135b07c56deb3e8f6bb1e53316794e3ff58a22f6e03a24", + "hash": "0xa2029c64f8144043b8fb3ff94b857c3a2f19ffa0e3371153bf1bac4173a63023", "transactionType": "CREATE", "contractName": "QuestFactory", - "contractAddress": "0xf7f2b3bed0dabea90d7c431d5bde71dac4e919e6", + "contractAddress": "0xaea1151cedef5a728d10debaed2fe77d867964cf", "function": null, "arguments": null, "transaction": { "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x4b7d00", + "gas": "0x4bf164", "value": "0x0", - "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b60405161438e90816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611f48575080630b6fc16314611f2157806311f4b35b14611f0357806313966db514611ee557806313a4057014611dde578063183a4f6e14611dc55780631c10893f14611d635780631cd64df414611d2957806323e2c1ba14611d065780632569296214611cbb57806327b0655f14611c565780632de9480714611c2357806332f58eb514611bde57806343ff27d114611b905780634a4ee7b114611b67578063514e62fc14611b2e57806354d1f13d14611ae85780635caf9de114611aaa57806364df049e14611a8357806367dfa3e714611a6157806370dfd40a14611973578063715018a61461192d5780637c93f9ee146118ee5780637e4176e3146117bd5780637f7c0ef71461121357806381589b1f1461110a57806384ae2bc6146110e85780638da5cb5b146110bd57806397aba7f914611026578063a1db1ba414610fff578063a2e4459314610fc5578063a5454dbd14610f59578063abab135a14610e31578063b4cbdd8b14610df2578063c42fe71814610d5e578063c6eba76614610c59578063cc923e0c14610c32578063ce53b15214610bbe578063d4faaa1714610b97578063de0580dc146109f1578063e15cfcf514610827578063e1bc3aba146107bf578063e521cb9214610750578063ea22e4ab146106d7578063ec461ac414610655578063ed21bb8314610548578063eddd0d9c146104fa578063f01a5934146103c2578063f04e283e14610341578063f2fde38b146102d3578063f8565efd146102945763fee81cf40361000f573461029157602036600319011261029157610278612143565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b5034610291576020366003190112610291576001600160a01b036102b6612143565b6102be6142f4565b166001600160a01b031960cc54161760cc5580f35b506020366003190112610291576102e8612143565b6102f06142f4565b8060601b15610334576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029157610356612143565b61035e6142f4565b63389a75e1600c528082526020600c20805442116103b55790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b506101209081600319360112610291576103da612143565b9067ffffffffffffffff9060a4358281116104f6576103fd9036906004016122f9565b9160c4358181116104f2576104169036906004016122f9565b9460e4358281116104ee5761042f9036906004016122f9565b91610104359081116104ee576104499036906004016122f9565b91600160d454036104c4576020966104b695600260d4556040519561046d87612193565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152610100840152820152613259565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b5034610291576020366003190112610291577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561053a6142f4565b8060d255604051908152a180f35b5034610291576020806003193601126104f65760043567ffffffffffffffff81116104f257816060936105826105ad9336906004016122f9565b906040805161059081612214565b878152878582015201528160405193828580945193849201612345565b810160cd8152030190209063ffffffff61064960086106368360098701541694610611604051976105dd89612214565b6040516105f8816105f181600786016123c8565b0382612284565b895261060a60405180968193016123c8565b0384612284565b808701928352604087019586526040519788978289525191880152608087019061245e565b9051858203601f1901604087015261245e565b91511660608301520390f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760606106a1602061068e36600487016122f9565b8160405193828580945193849201612345565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915761074c6105f1610738600860206107163660048901612317565b9190826040519384928337810160cd81520301902001604051928380926123c8565b60405191829160208352602083019061245e565b0390f35b5034610291576020366003190112610291576001600160a01b03610772612143565b61077a6142f4565b168015610795576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff6107dc61216f565b6107e46142f4565b1661271081116107fd5761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029157602090816003193601126102915760043567ffffffffffffffff81116104f65761085b903690600401612317565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109c757600101948386541693843b156109c3576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109b8576109a0575b5081906004959697541695604051958680926318cbe5db60e11b82525afa8015610995578690610943575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c494506109396040519485946040865260408601916124bc565b918301520390a280f35b508084813d831161098e575b6109598183612284565b81010312610989577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c493516108ff565b600080fd5b503d61094f565b6040513d88823e3d90fd5b90600495966109af8493612200565b969550906108d4565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029157610160806003193601126104f657610a0d612180565b610a15612159565b9060c4359267ffffffffffffffff938481116109c357610a399036906004016122f9565b9460e4358581116104f657610a529036906004016122f9565b94610104358181116104f257610a6c9036906004016122f9565b91610124359182116102915750610a879036906004016122f9565b90604051958751610a9c818960208c01612345565b870160cd815260018860206001600160a01b039a8b9403019020015416610b6d578660cb541615610b435760209787610b3a9763ffffffff60405198610ae18a6121e3565b168852168987015260443560408701526064356060870152608435608087015260a43560a087015260c086015260e0850152610100840152610b21612483565b610120840152610140830152610144359082015261388b565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360cc5416604051908152f35b5060403660031901126102915767ffffffffffffffff6004358181116104f257610bec903690600401612317565b50506024359081116104f657610c06903690600401612317565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029157806003193601126102915760206001600160a01b0360d35416604051908152f35b50346102915760a03660031901126102915760043567ffffffffffffffff81116104f657610c8b903690600401612317565b90610c94612159565b91606435926001600160a01b03938481168091036109c3578460016040518587823760208187810160cd8152030190200154163303610d34577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d0660405195869560e0875260e08701916124bc565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b50346102915760203660031901126102915761ffff610d7b61216f565b610d836142f4565b166127108111610dc8576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b5034610291576020366003190112610291576001600160a01b03610e14612143565b610e1c6142f4565b166001600160a01b031960c954161760c95580f35b503461029157610100806003193601126104f657610e4d612143565b67ffffffffffffffff929060a4358481116104f257610e709036906004016122f9565b9160c4358581116104f657610e899036906004016122f9565b9460e4359081116104f657610ea29036906004016122f9565b604051948451610eb6818860208901612345565b860160cd815260018760206001600160a01b03998a9403019020015416610b6d578560cb541615610b4357602096610b3a958760405196610ef6886121e3565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f33612483565b610120830152604051610f4581612230565b81815261014083015261016082015261388b565b50346102915760803660031901126102915760243563ffffffff811681036104f65767ffffffffffffffff6044358181116104ee57610f9c9036906004016122f9565b926064359182116102915761074c6107388585610fbc36600488016122f9565b50600435613f20565b5060203660031901126102915760043567ffffffffffffffff81116104f657610ff5610ffc913690600401612317565b33916124f1565b80f35b503461029157806003193601126102915760206001600160a01b0360cb5416604051908152f35b50346102915760403660031901126102915760243567ffffffffffffffff81116104f657366023820112156104f6576110a4602092603c6110746110ac9436906024816004013591016122c2565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c522061423a565b919091614108565b6001600160a01b0360405191168152f35b50346102915780600319360112610291576020638b78c6d819546001600160a01b0360405191168152f35b5034610291578060031936011261029157602061ffff60da5416604051908152f35b503461029157610100908160031936011261029157611127612143565b67ffffffffffffffff9060a4358281116104ee576111499036906004016122f9565b9160c4359081116104ee576111629036906004016122f9565b50604051928251611177818660208701612345565b840160cd815260018560206001600160a01b0397889403019020015416610b6d578360cb541615610b4357602094610b3a9385604051946111b7866121e3565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516111f081612230565b82815260e08401526040519061120582612230565b828252830152610f33612483565b50346102915760203660031901126102915760043567ffffffffffffffff81116104f657602061124a6112a99236906004016122f9565b8361014060405161125a816121c6565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e0820152826101008201528261012082015201528160405193828580945193849201612345565b810160cd8152030190206001600160a01b036001820154169082906112f66040516112db816105f181600487016123c8565b6112e36130eb565b6020815191012090602081519101201490565b156116d7576040516305f5c3df60e21b8152602081600481875afa9081156116cc578591611696575b505b6040519263f7c618c160e01b8452602084600481885afa938415610995578694611665575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109b8578794611644575b506040516378e9792560e01b81526020816004818a5afa908115611639578891611603575b50604051906318cbe5db60e11b82526020826004818b5afa9182156115f85789926115c0575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115b5578a9461157c575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561157157906101409998979695949392916101609c9861153a575b509061ffff916001600160a01b036040519a61147e8c6121c6565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff929198506115629060203d60201161156a575b61155a8183612284565b81019061314f565b979091611463565b503d611550565b6040513d8d823e3d90fd5b9093506020813d6020116115ad575b8161159860209383612284565b810103126115a9575192600361140f565b8980fd5b3d915061158b565b6040513d8c823e3d90fd5b9091506020813d6020116115f0575b816115dc60209383612284565b810103126115ec575190386113d0565b8880fd5b3d91506115cf565b6040513d8b823e3d90fd5b90506020813d602011611631575b8161161e60209383612284565b8101031261162d5751386113aa565b8780fd5b3d9150611611565b6040513d8a823e3d90fd5b61165e91945060203d60201161156a5761155a8183612284565b9238611385565b61168891945060203d60201161168f575b6116808183612284565b8101906130cc565b9238611346565b503d611676565b90506020813d6020116116c4575b816116b160209383612284565b810103126116c057513861131f565b8480fd5b3d91506116a4565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117b2578491611780575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116cc578591611743575b5091611321565b90506020813d602011611778575b8161175e60209383612284565b810103126116c0575161ffff811681036116c0573861173c565b3d9150611751565b90506020813d6020116117aa575b8161179b60209383612284565b810103126104ee5751386116fd565b3d915061178e565b6040513d86823e3d90fd5b5034610291576020366003190112610291576004359067ffffffffffffffff8211610291576117f4602061068e36600486016122f9565b810160cd8152030190206001600160a01b0380600183015416906118e36002840154936118d4600382015493604051611834816105f181600488016123c8565b60058401549180600686015416906118ab604051936118618561185a8160078c016123c8565b0386612284565b63ffffffff6009604051996118848b61187d81600885016123c8565b038c612284565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b019061245e565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e088015261245e565b9084820361010086015261245e565b906101208301520390f35b5034610291576020366003190112610291576001600160a01b03611910612143565b6119186142f4565b166001600160a01b031960cb54161760cb5580f35b5080600319360112610291576119416142f4565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029157611988612143565b67ffffffffffffffff9160a4358381116104f6576119aa9036906004016122f9565b9260c4359081116104f6576119c39036906004016122f9565b50600160d454036104c4576020926104b691600260d455604051916119e783612193565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a2a81612230565b81815260e0830152604051611a3e81612230565b81815261010083015260405190611a5482612230565b8152610120820152613259565b5034610291578060031936011261029157602061ffff60d15416604051908152f35b503461029157806003193601126102915760206001600160a01b0360ca5416604051908152f35b5060403660031901126102915760043567ffffffffffffffff81116104f657611ada610ffc913690600401612317565b611ae2612159565b916124f1565b50806003193601126102915763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029157604036600319011261029157611b48612143565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029157610ffc611b7f612143565b611b876142f4565b60243590614311565b5034610291576020366003190112610291576004359067ffffffffffffffff82116102915760206003611bca8261068e36600488016122f9565b810160cd8152030190200154604051908152f35b5034610291576020366003190112610291576001600160a01b03611c00612143565b611c086142f4565b168015610795576001600160a01b031960d354161760d35580f35b503461029157602036600319011261029157611c3d612143565b90638b78c6d8600c5252602080600c2054604051908152f35b50346102915760403660031901126102915760043567ffffffffffffffff81116104f6576040602092611c8f60ff9336906004016122f9565b6001600160a01b03611ca8611ca2612159565b92612368565b9116825284522054166040519015158152f35b50806003193601126102915763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029157602036600319011261029157611d206142f4565b60043560dc5580f35b503461029157604036600319011261029157602090611d46612143565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029157611d78612143565b611d806142f4565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029157610ffc60043533614311565b5061014036600319011261029157611df4612180565b90611dfd612159565b9060c4359267ffffffffffffffff938481116104f257611e219036906004016122f9565b9160e4358581116104f657611e3a9036906004016122f9565b94610104358181116104f257611e549036906004016122f9565b91610124359182116102915750611e6f9036906004016122f9565b90600160d454036104c4576020956104b694600260d45563ffffffff60405195611e9887612193565b1685526001600160a01b038097168886015260443560408601526064356060860152608435608086015260a43560a086015260c085015260e0840152610100830152610120820152613259565b5034610291578060031936011261029157602060d254604051908152f35b5034610291578060031936011261029157602060dc54604051908152f35b503461029157806003193601126102915760206001600160a01b0360c95416604051908152f35b9050346104f6576101003660031901126104f657611f64612143565b611f6c612159565b6044356001600160a01b03928382168092036109c3576064359184831680930361213f576084359480861680960361162d5760c4359561ffff87168097036115ec57885460ff8160081c16159889809a612132575b801561211b575b156120b3575060ff1981166001178a55886120a2575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc5561206b5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611fde565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611fc85750600160ff831614611fc8565b50600160ff831610611fc1565b8680fd5b600435906001600160a01b038216820361098957565b602435906001600160a01b038216820361098957565b6004359061ffff8216820361098957565b6004359063ffffffff8216820361098957565b610140810190811067ffffffffffffffff8211176121b057604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff8211176121b057604052565b610180810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057604052565b6060810190811067ffffffffffffffff8211176121b057604052565b6020810190811067ffffffffffffffff8211176121b057604052565b6040810190811067ffffffffffffffff8211176121b057604052565b6080810190811067ffffffffffffffff8211176121b057604052565b90601f8019910116810190811067ffffffffffffffff8211176121b057604052565b67ffffffffffffffff81116121b057601f01601f191660200190565b9291926122ce826122a6565b916122dc6040519384612284565b829481845281830111610989578281602093846000960137010152565b9080601f8301121561098957816020612314933591016122c2565b90565b9181601f840112156109895782359167ffffffffffffffff8311610989576020838186019501011161098957565b60005b8381106123585750506000910152565b8181015183820152602001612348565b6020612381918160405193828580945193849201612345565b810160cd81520301902090565b90600182811c921680156123be575b60208310146123a857565b634e487b7160e01b600052602260045260246000fd5b91607f169161239d565b90600092918054916123d98361238e565b91828252600193848116908160001461243b57506001146123fb575b50505050565b90919394506000526020928360002092846000945b8386106124275750505050010190388080806123f5565b805485870183015294019385908201612410565b9294505050602093945060ff191683830152151560051b010190388080806123f5565b9060209161247781518092818552858086019101612345565b601f01601f1916010190565b604051906124908261224c565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361098957565b6124ff9193929336916122c2565b91606092805180612fe9575b505060c08380518101031261098957602083015192604081015191606082015191612538608082016124dd565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109895760c001519063ffffffff82168203610989576040516125868161224c565b60108082527f30313233343536373839616263646566000000000000000000000000000000006020830152604051946125be86612214565b6024865260208601926040368537600091825b848110612ef05750505050506001600160a01b039798938861263361060a612676989661266a9661262e600761261760206126579a604051809381928d51928391612345565b810160cd81520301902001604051948580926123c8565b613f20565b956040519a8b961660208701521660408501526080606085015260a084019061245e565b601f19938484830301608085015261245e565b03908101855284612284565b8060ff1c601b8110612ede575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b166060820152604181526126eb81612268565b8151820191608081602085019403126109895761270a602082016124dd565b91612717604083016124dd565b92606083015167ffffffffffffffff908181116109895786602061273d9287010161308a565b9560808501519182116109895760206127589286010161308a565b92604051602081885161276e8183858d01612345565b810160cd8152030190206003810154600181018111612ec85760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612bde57600096612e9f575b506110a46127fd91600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c862061423a565b6001600160a01b038060c95416911603612e755760d2543410612e4b576001600160a01b03841683528160205260ff604084205416612e215760028201546001820111612df7576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a166044830152604482526128d082612268565b6020825192019034905af13d15612df2573d6128eb816122a6565b906128f96040519283612284565b81528360203d92013e5b15612dc85760046112db826001600160a01b0360016129759501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129626001600160a01b038c1694602083019061245e565b0390a36105f160405180948193016123c8565b15612d1c57506040516305f5c3df60e21b8152602081600481875afa908115612bde57600091612cea575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d8234331604051806129de6001600160a01b03881694898d84613124565b0390a35b6001600160a01b0385166129f9575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612bde57600091612cb8575b5060dc541015612c1e5760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612bde57600092612bea575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612bde57600094612ba3575b50976001600160a01b03819795612b6d9997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b1a957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a019061245e565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e086019061245e565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a13880808080806129f1565b90936020823d602011612bd6575b81612bbe60209383612284565b81010312610291575051926001600160a01b03612aaa565b3d9150612bb1565b6040513d6000823e3d90fd5b90916020823d602011612c16575b81612c0560209383612284565b810103126102915750519038612a6a565b3d9150612bf8565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612b6d96946001600160a01b0360d2549260405193849360c0855283612c8d60c087018d61245e565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612b4b565b906020823d602011612ce2575b81612cd260209383612284565b8101031261029157505138612a1e565b3d9150612cc5565b906020823d602011612d14575b81612d0460209383612284565b81010312610291575051386129a0565b3d9150612cf7565b6040516369d2dc0560e01b8152602081600481885afa918215612dbc578092612d87575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612d7f6001600160a01b03881694898d84613124565b0390a36129e2565b9091506020823d602011612db4575b81612da360209383612284565b810103126102915750513880612d40565b3d9150612d96565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612903565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b6127fd919650612ec06110a49160203d60201161168f576116808183612284565b9691506127bc565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612ec85790612683565b6004898183148015612fdf575b8015612fd5575b8015612fcb575b612f99575b612f74612f6c8493612f569387612f94971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c6140e1565b51169a612f62816140d2565b9b60001a926140e1565b5316866140e1565b511694612f8e612f83826140d2565b9660001a918c6140e1565b536140d2565b6125d1565b94612f74612f6c612f949493602d612fbe85612fb8612f5697916140d2565b9b6140e1565b5393945050505089612f10565b50600a8314612f0b565b5060088314612f04565b5060068314612efd565b6040516004830180518019825260208301975090959284019491935b8097868210156130655760018092019860ff808b5116918215613030575050815301955b9596613005565b60020180516000198552909b50607f925090849082168381111561305a575b505016010195613029565b01388439833861304f565b91909652838103601f190184526000815260200160405291945092509050388061250b565b81601f820112156109895780516130a0816122a6565b926130ae6040519485612284565b81845260208284010111610989576123149160208085019101612345565b9081602091031261098957516001600160a01b03811681036109895790565b604051906130f88261224c565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131446040939695949660608452606084019061245e565b951660208201520152565b90816020910312610989575180151581036109895790565b818110613172575050565b60008155600101613167565b9190601f811161318d57505050565b6131b9926000526020600020906020601f840160051c830193106131bb575b601f0160051c0190613167565b565b90915081906131ac565b97946132296001600160a01b039561321b6101409c999f9e9d9a9661320d8d63ffffffff986131ff6132379961016080855284019061245e565b91602081840391015261245e565b8d810360408f01529061245e565b908b820360608d01526123c8565b9089820360808b015261245e565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c08201519161326b600093612368565b60018101916001600160a01b03835416610b6d5760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b0390921691906132cf81607481015b03601f198101835282612284565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f5801561387e576001600160a01b0390866021521692836001600160a01b031982541617905560808101516002830155613340600483015461238e565b601f811161385c575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116137ce5781906133ed826133e4600788015461238e565b6007880161317e565b602090601f83116001146137ed5788926137e2575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116137ce57819061344e82613445600888015461238e565b6008880161317e565b602090601f831160011461375f578892613754575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b1561213f5761352f9360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e483019061245e565b038183885af1801561099557613741575b50846001600160a01b0360208301511660a08301516080840151823b156104ee5760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af180156137225761372d575b5050823b156116c057846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af180156137225761370e575b5050823b156116c0576040519463f2fde38b60e01b8652336004870152808660248183885af1958615613701578495966136e5575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516136df6101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c6131c5565b0390a390565b81929394506136f390612200565b610291579081849392613661565b50604051903d90823e3d90fd5b61371790612200565b6116c057843861362c565b6040513d84823e3d90fd5b61373690612200565b6116c05784386135e8565b61374d90959195612200565b9338613540565b015190503880613463565b9250600885018852602088209088935b601f19841685106137b3576001945083601f1981161061379a575b505050811b01600883015561347b565b015160001960f88460031b161c1916905538808061378a565b8181015183556020948501946001909301929091019061376f565b602487634e487b7160e01b81526041600452fd5b015190503880613402565b9250600785018852602088209088935b601f1984168510613841576001945083601f19811610613828575b505050811b01600783015561341a565b015160001960f88460031b161c19169055388080613818565b818101518355602094850194600190930192909101906137fd565b6004830186526020862061387891601f0160051c810190613167565b38613349565b633011642586526004601cfd5b60c081015161389b600091612368565b916001600160a01b0360cb541660405160208101906138e3816132c14246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f135760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e0b5781906139c9826139c0600487015461238e565b6004870161317e565b602090601f8311600114613ea4578692613e99575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e0b578190613a2982613a20600787015461238e565b6007870161317e565b602090601f8311600114613e2a578692613e1f575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e0b578190613a8a82613a81600887015461238e565b6008870161317e565b602090601f8311600114613d9c578692613d91575b50508160011b916000199060031b1c19161760088201555b63ffffffff825116600982018163ffffffff19825416179055610140830151917fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd6001600160a01b0387613b4c610100880151958860c08101519160e0820151908660208401511660408401519160608501519360a0608087015196019d8e51976040519b8c9b169e6004339f01928c6131c5565b0390a36001600160a01b03602083015116604083015190606084015192608085015190519060c08601519161ffff60d15416926001600160a01b0360ca541691610160890151936001600160a01b038c163b15613d8d5791613c06918b9897969594936040519a8b998a997ff38be19d000000000000000000000000000000000000000000000000000000008b5260048b015260248a015260448901526064880152608487015261012060a487015261012486019061245e565b9260c485015260e48401526101048301520381836001600160a01b0389165af18015613d6557613d70575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613d655783908192613d30575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d235781606052806040526001600160a01b0383163b156104f65763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561372257613d1157505090565b613d1b8291612200565b610291575090565b637939f42482526004601cfd5b9150506020813d602011613d5d575b81613d4c60209383612284565b810103126109895751826064613c88565b3d9150613d3f565b6040513d85823e3d90fd5b6001600160a01b039192613d85602092612200565b929150613c31565b8a80fd5b015190503880613a9f565b9250600884018652602086209086935b601f1984168510613df0576001945083601f19811610613dd7575b505050811b016008820155613ab7565b015160001960f88460031b161c19169055388080613dc7565b81810151835560209485019460019093019290910190613dac565b602485634e487b7160e01b81526041600452fd5b015190503880613a3e565b9250600784018652602086209086935b601f1984168510613e7e576001945083601f19811610613e65575b505050811b016007820155613a56565b015160001960f88460031b161c19169055388080613e55565b81810151835560209485019460019093019290910190613e3a565b0151905038806139de565b9250600484018652602086209086935b601f1984168510613ef8576001945083601f19811610613edf575b505050811b0160048201556139f6565b015160001960f88460031b161c19169055388080613ecf565b81810151835560209485019460019093019290910190613eb4565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613f7a5790613f51565b5090506140c457601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a906030828206018453049182613fb25791506140546123149660629660808561401e9b81019503018452519889967f7b22616374696f6e5478486173686573223a5b220000000000000000000000006020890152518092603489019060011901612345565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b0000000060348401525180936050840190612345565b017f5d2c22616374696f6e54797065223a2200000000000000000000000000000000605082015261408f825180936020606085019101612345565b017f227d0000000000000000000000000000000000000000000000000000000000006060820152036042810184520182612284565b632194895a6000526004601cfd5b6000198114612ec85760010190565b9081518110156140f2570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561422457806141195750565b6001810361416557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141b157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ba57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461426857614264916020820151906060604084015193015160001a90614272565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116142e85791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137015781516001600160a01b038116156142e2579190565b50600190565b50505050600090600390565b638b78c6d81954330361430357565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea2646970667358221220096e88526d293ee1bcd0c29b9a83a4c4eaecf61872e6c022897ca22e2dfd1b4064736f6c63430008130033", - "nonce": "0x3", + "input": "0x60808060405234620001275760005460ff8160081c16159182809362000119575b801562000100575b15620000a7575060ff1981166001176000558162000094575b5062000058575b6040516143f890816200012d8239f35b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a162000048565b61ffff1916610101176000553862000041565b62461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015620000285750600160ff83161462000028565b50600160ff83161062000020565b600080fdfe608080604052600436101561001a575b50361561001857005b005b600090813560e01c90816302a8a06614611ed6575080630b6fc16314611eaf57806311f4b35b14611e9157806313966db514611e7357806313a4057014611df7578063183a4f6e14611dde5780631c10893f14611d7c5780631cd64df414611d4257806323e2c1ba14611d1f5780632569296214611cd457806327b0655f14611c6f5780632de9480714611c3c57806332f58eb514611bf757806343ff27d114611ba95780634a4ee7b114611b80578063514e62fc14611b4757806354d1f13d14611b015780635caf9de114611ac357806364df049e14611a9c57806367dfa3e714611a7a57806370dfd40a1461198c578063715018a6146119465780637c93f9ee146119075780637e4176e3146117d65780637f7c0ef71461122c57806381589b1f1461112357806384ae2bc6146111015780638da5cb5b146110d657806397aba7f91461103f578063a1db1ba414611018578063a2e4459314610fde578063a5454dbd14610f72578063abab135a14610e50578063b4cbdd8b14610e11578063c42fe71814610d7d578063c6eba76614610c78578063cc923e0c14610c51578063ce53b15214610bdd578063d4faaa1714610bb6578063de0580dc14610abe578063e05d39ac146109fc578063e15cfcf514610832578063e1bc3aba146107ca578063e521cb921461075b578063ea22e4ab146106e2578063ec461ac414610660578063ed21bb8314610553578063eddd0d9c14610505578063f01a5934146103cd578063f04e283e1461034c578063f2fde38b146102de578063f8565efd1461029f5763fee81cf40361000f573461029c57602036600319011261029c576102836120d1565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b503461029c57602036600319011261029c576001600160a01b036102c16120d1565b6102c961435e565b166001600160a01b031960cc54161760cc5580f35b50602036600319011261029c576102f36120d1565b6102fb61435e565b8060601b1561033f576001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae82526004601cfd5b50602036600319011261029c576103616120d1565b61036961435e565b63389a75e1600c528082526020600c20805442116103c05790826001600160a01b03925516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e881883526004601cfd5b50610120908160031936011261029c576103e56120d1565b9067ffffffffffffffff9060a43582811161050157610408903690600401612257565b9160c4358181116104fd57610421903690600401612257565b9460e4358281116104f95761043a903690600401612257565b91610104359081116104f957610454903690600401612257565b91600160d454036104cf576020966104c195600260d455604051956104788761210e565b86526001600160a01b038098168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e08501526101008401528201526132cf565b600160d45560405191168152f35b60046040517fab143c06000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b8280fd5b5080fd5b503461029c57602036600319011261029c577f97aee230ba41961438e908e115df76fa8113f85a0586d85b19ba5be50e6a2274602060043561054561435e565b8060d255604051908152a180f35b503461029c576020806003193601126105015760043567ffffffffffffffff81116104fd578160609361058d6105b8933690600401612257565b906040805161059b81612172565b87815287858201520152816040519382858094519384920161234f565b810160cd8152030190209063ffffffff6106546008610641836009870154169461061c604051976105e889612172565b604051610603816105fc81600786016123d2565b03826121e2565b895261061560405180968193016123d2565b03846121e2565b8087019283526040870195865260405197889782895251918801526080870190612468565b9051858203601f19016040870152612468565b91511660608301520390f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760606106ac60206106993660048701612257565b816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690600360028201549101549060405192835260208301526040820152f35b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c576107576105fc610743600860206107213660048901612321565b9190826040519384928337810160cd81520301902001604051928380926123d2565b604051918291602083526020830190612468565b0390f35b503461029c57602036600319011261029c576001600160a01b0361077d6120d1565b61078561435e565b1680156107a0576001600160a01b031960ca54161760ca5580f35b60046040517f0855380c000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff6107e76120fd565b6107ef61435e565b1661271081116108085761ffff1960d154161760d15580f35b60046040517f4ae19ab6000000000000000000000000000000000000000000000000000000008152fd5b503461029c576020908160031936011261029c5760043567ffffffffffffffff811161050157610866903690600401612321565b9060405182828237848184810160cd815203019020916001600160a01b039283600582015460281c1633036109d257600101948386541693843b156109ce576040517fea8a1af00000000000000000000000000000000000000000000000000000000081528681600481838a5af180156109c3576109ab575b5081906004959697541695604051958680926318cbe5db60e11b82525afa80156109a057869061094e575b7fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c49450610944604051948594604086526040860191612532565b918301520390a280f35b508084813d8311610999575b61096481836121e2565b81010312610994577fa879a4d4784c26310932855117373f0534b4efcb9267b1db8336635850c895c4935161090a565b600080fd5b503d61095a565b6040513d88823e3d90fd5b90600495966109ba849361215e565b969550906108df565b6040513d89823e3d90fd5b8580fd5b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b503461029c57610a0b36612275565b9560409997989995919594929451988451610a2a818c6020890161234f565b8a0160cd815260018b60206001600160a01b039d8e9403019020015416610a94578960cb541615610a6a5760209a610a61996124c6565b60405191168152f35b60046040517fdb2505de000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb2431b61000000000000000000000000000000000000000000000000000000008152fd5b503461029c5761016036600319011261029c576004359063ffffffff8216820361029c57610aea6120e7565b9167ffffffffffffffff60c4358181116104f957610b0c903690600401612257565b9260e43582811161050157610b25903690600401612257565b91610104358181116104fd57610b3f903690600401612257565b916101243591821161029c5750610b5a903690600401612257565b91604051948051610b6f81886020850161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a619560a435916084359160643591604435916124c6565b503461029c578060031936011261029c5760206001600160a01b0360cc5416604051908152f35b50604036600319011261029c5767ffffffffffffffff6004358181116104fd57610c0b903690600401612321565b505060243590811161050157610c25903690600401612321565b505060046040517fc73b9d7c000000000000000000000000000000000000000000000000000000008152fd5b503461029c578060031936011261029c5760206001600160a01b0360d35416604051908152f35b503461029c5760a036600319011261029c5760043567ffffffffffffffff811161050157610caa903690600401612321565b90610cb36120e7565b91606435926001600160a01b03938481168091036109ce578460016040518587823760208187810160cd8152030190200154163303610d53577f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf94610d2560405195869560e0875260e0870191612532565b921660208401526044356040840152606083015260843560808301528460a08301528460c08301520390a180f35b60046040517f7fa75591000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c5761ffff610d9a6120fd565b610da261435e565b166127108111610de7576020817fa7bf2cb2b95a425df48655de4071d888fbb2d429d265bb008a4cea1dc8a895489261ffff1960da54161760da55604051908152a180f35b60046040517faa6e2112000000000000000000000000000000000000000000000000000000008152fd5b503461029c57602036600319011261029c576001600160a01b03610e336120d1565b610e3b61435e565b166001600160a01b031960c954161760c95580f35b503461029c576101008060031936011261050157610e6c6120d1565b67ffffffffffffffff929060a4358481116104fd57610e8f903690600401612257565b9160c43585811161050157610ea8903690600401612257565b9460e43590811161050157610ec1903690600401612257565b604051948451610ed581886020890161234f565b860160cd815260018760206001600160a01b03998a9403019020015416610a94578560cb541615610a6a57602096610a61958760405196610f1588612141565b868852168987015260243560408701526044356060870152606435608087015260843560a087015260c086015260e0850152830152610f5261248d565b61012083015260405190610f658261218e565b8152610140820152613901565b503461029c57608036600319011261029c5760243563ffffffff811681036105015767ffffffffffffffff6044358181116104f957610fb5903690600401612257565b9260643591821161029c576107576107438585610fd53660048801612257565b50600435613f8a565b50602036600319011261029c5760043567ffffffffffffffff81116105015761100e611015913690600401612321565b3391612567565b80f35b503461029c578060031936011261029c5760206001600160a01b0360cb5416604051908152f35b503461029c57604036600319011261029c5760243567ffffffffffffffff81116105015736602382011215610501576110bd602092603c61108d6110c5943690602481600401359101612220565b917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152600435601c52206142a4565b919091614172565b6001600160a01b0360405191168152f35b503461029c578060031936011261029c576020638b78c6d819546001600160a01b0360405191168152f35b503461029c578060031936011261029c57602061ffff60da5416604051908152f35b503461029c57610100908160031936011261029c576111406120d1565b67ffffffffffffffff9060a4358281116104f957611162903690600401612257565b9160c4359081116104f95761117b903690600401612257565b5060405192825161119081866020870161234f565b840160cd815260018560206001600160a01b0397889403019020015416610a94578360cb541615610a6a57602094610a619385604051946111d086612141565b848652168785015260243560408501526044356060850152606435608085015260843560a085015260c08401526040516112098161218e565b82815260e08401526040519061121e8261218e565b828252830152610f5261248d565b503461029c57602036600319011261029c5760043567ffffffffffffffff81116105015760206112636112c2923690600401612257565b8361014060405161127381612141565b82815282858201528260408201528260608201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152816040519382858094519384920161234f565b810160cd8152030190206001600160a01b0360018201541690829061130f6040516112f4816105fc81600487016123d2565b6112fc613161565b6020815191012090602081519101201490565b156116f0576040516305f5c3df60e21b8152602081600481875afa9081156116e55785916116af575b505b6040519263f7c618c160e01b8452602084600481885afa9384156109a057869461167e575b50604051927f16049ddf000000000000000000000000000000000000000000000000000000008452602084600481895afa9384156109c357879461165d575b506040516378e9792560e01b81526020816004818a5afa90811561165257889161161c575b50604051906318cbe5db60e11b82526020826004818b5afa9182156116115789926115d9575b50604051927fa26dbf260000000000000000000000000000000000000000000000000000000084526020846004818c5afa9384156115ce578a94611595575b506003015493604051967f6cb4e6110000000000000000000000000000000000000000000000000000000088526020886004818d5afa97881561158a57906101409998979695949392916101609c98611553575b509061ffff916001600160a01b036040519a6114978c612141565b8d8c521660208b0152151560408a0152166060880152608087015260a086015260c08501528060e08501526101008401526101208301521515828201526040519283526001600160a01b03602082015116602084015260408101511515604084015261ffff60608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010081015161010084015261012081015161012084015201511515610140820152f35b61ffff9291985061157b9060203d602011611583575b61157381836121e2565b8101906131c5565b97909161147c565b503d611569565b6040513d8d823e3d90fd5b9093506020813d6020116115c6575b816115b1602093836121e2565b810103126115c25751926003611428565b8980fd5b3d91506115a4565b6040513d8c823e3d90fd5b9091506020813d602011611609575b816115f5602093836121e2565b81010312611605575190386113e9565b8880fd5b3d91506115e8565b6040513d8b823e3d90fd5b90506020813d60201161164a575b81611637602093836121e2565b810103126116465751386113c3565b8780fd5b3d915061162a565b6040513d8a823e3d90fd5b61167791945060203d6020116115835761157381836121e2565b923861139e565b6116a191945060203d6020116116a8575b61169981836121e2565b810190613142565b923861135f565b503d61168f565b90506020813d6020116116dd575b816116ca602093836121e2565b810103126116d9575138611338565b8480fd5b3d91506116bd565b6040513d87823e3d90fd5b90506040516369d2dc0560e01b8152602081600481865afa9081156117cb578491611799575b50906040517f67dfa3e7000000000000000000000000000000000000000000000000000000008152602081600481875afa9081156116e557859161175c575b509161133a565b90506020813d602011611791575b81611777602093836121e2565b810103126116d9575161ffff811681036116d95738611755565b3d915061176a565b90506020813d6020116117c3575b816117b4602093836121e2565b810103126104f9575138611716565b3d91506117a7565b6040513d86823e3d90fd5b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5761180d60206106993660048601612257565b810160cd8152030190206001600160a01b0380600183015416906118fc6002840154936118ed60038201549360405161184d816105fc81600488016123d2565b60058401549180600686015416906118c46040519361187a856118738160078c016123d2565b03866121e2565b63ffffffff60096040519961189d8b61189681600885016123d2565b038c6121e2565b015416996040519c8d9c8d5260208d015260408c01526101408060608d01528b0190612468565b9364ffffffffff811660808b015260281c1660a089015260c088015286820360e0880152612468565b90848203610100860152612468565b906101208301520390f35b503461029c57602036600319011261029c576001600160a01b036119296120d1565b61193161435e565b166001600160a01b031960cb54161760cb5580f35b508060031936011261029c5761195a61435e565b80638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5060e036600319011261029c576119a16120d1565b67ffffffffffffffff9160a435838111610501576119c3903690600401612257565b9260c435908111610501576119dc903690600401612257565b50600160d454036104cf576020926104c191600260d45560405191611a008361210e565b8183526001600160a01b038095168684015260243560408401526044356060840152606435608084015260843560a084015260c0830152604051611a438161218e565b81815260e0830152604051611a578161218e565b81815261010083015260405190611a6d8261218e565b81526101208201526132cf565b503461029c578060031936011261029c57602061ffff60d15416604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360ca5416604051908152f35b50604036600319011261029c5760043567ffffffffffffffff811161050157611af3611015913690600401612321565b611afb6120e7565b91612567565b508060031936011261029c5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461029c57604036600319011261029c57611b616120d1565b90638b78c6d8600c5252602060243581600c2054161515604051908152f35b50604036600319011261029c57611015611b986120d1565b611ba061435e565b6024359061437b565b503461029c57602036600319011261029c576004359067ffffffffffffffff821161029c5760206003611be3826106993660048801612257565b810160cd8152030190200154604051908152f35b503461029c57602036600319011261029c576001600160a01b03611c196120d1565b611c2161435e565b1680156107a0576001600160a01b031960d354161760d35580f35b503461029c57602036600319011261029c57611c566120d1565b90638b78c6d8600c5252602080600c2054604051908152f35b503461029c57604036600319011261029c5760043567ffffffffffffffff8111610501576040602092611ca860ff933690600401612257565b6001600160a01b03611cc1611cbb6120e7565b92612372565b9116825284522054166040519015158152f35b508060031936011261029c5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461029c57602036600319011261029c57611d3961435e565b60043560dc5580f35b503461029c57604036600319011261029c57602090611d5f6120d1565b60243591638b78c6d8600c52528082600c20541614604051908152f35b50604036600319011261029c57611d916120d1565b611d9961435e565b638b78c6d8600c5281526020600c20602435815417809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe268380a380f35b50602036600319011261029c576110156004353361437b565b611e0036612275565b94600160d49a979a95929594939454036104cf576020996104c198600260d45563ffffffff60405199611e328b61210e565b1689526001600160a01b03809b168c8a015260408901526060880152608087015260a086015260c085015260e08401526101008301526101208201526132cf565b503461029c578060031936011261029c57602060d254604051908152f35b503461029c578060031936011261029c57602060dc54604051908152f35b503461029c578060031936011261029c5760206001600160a01b0360c95416604051908152f35b9050346105015761010036600319011261050157611ef26120d1565b611efa6120e7565b6044356001600160a01b03928382168092036109ce57606435918483168093036120cd57608435948086168096036116465760c4359561ffff871680970361160557885460ff8160081c16159889809a6120c0575b80156120a9575b15612041575060ff1981166001178a5588612030575b5080638b78c6d81955887f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361ffff19946107d08660d154161760d155600160d455816001600160a01b031994168460c954161760c955168260ca54161760ca558160cb54161760cb5560cc54161760cc5560da54161760da5560e43560d2554260dc55611ff95780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b61ffff191661010117895538611f6c565b8062461bcd60e51b6084925260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b158015611f565750600160ff831614611f56565b50600160ff831610611f4f565b8680fd5b600435906001600160a01b038216820361099457565b602435906001600160a01b038216820361099457565b6004359061ffff8216820361099457565b610140810190811067ffffffffffffffff82111761212b57604052565b634e487b7160e01b600052604160045260246000fd5b610160810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57604052565b6060810190811067ffffffffffffffff82111761212b57604052565b6020810190811067ffffffffffffffff82111761212b57604052565b6040810190811067ffffffffffffffff82111761212b57604052565b6080810190811067ffffffffffffffff82111761212b57604052565b90601f8019910116810190811067ffffffffffffffff82111761212b57604052565b67ffffffffffffffff811161212b57601f01601f191660200190565b92919261222c82612204565b9161223a60405193846121e2565b829481845281830111610994578281602093846000960137010152565b9080601f830112156109945781602061227293359101612220565b90565b6101406003198201126109945760043563ffffffff8116810361099457916024356001600160a01b0381168103610994579160443591606435916084359160a4359167ffffffffffffffff9060c43582811161099457816122d891600401612257565b9260e43583811161099457826122f091600401612257565b9261010435818111610994578361230991600401612257565b92610124359182116109945761227291600401612257565b9181601f840112156109945782359167ffffffffffffffff8311610994576020838186019501011161099457565b60005b8381106123625750506000910152565b8181015183820152602001612352565b602061238b91816040519382858094519384920161234f565b810160cd81520301902090565b90600182811c921680156123c8575b60208310146123b257565b634e487b7160e01b600052602260045260246000fd5b91607f16916123a7565b90600092918054916123e383612398565b9182825260019384811690816000146124455750600114612405575b50505050565b90919394506000526020928360002092846000945b8386106124315750505050010190388080806123ff565b80548587018301529401938590820161241a565b9294505050602093945060ff191683830152151560051b010190388080806123ff565b906020916124818151809281855285808601910161234f565b601f01601f1916010190565b6040519061249a826121aa565b600582527f65726332300000000000000000000000000000000000000000000000000000006020830152565b979593916001600160a01b036122729a9896949263ffffffff6040519b6124ec8d612141565b168b521660208a015260408901526060880152608087015260a086015260c085015260e084015261010083015261252161248d565b610120830152610140820152613901565b908060209392818452848401376000828201840152601f01601f1916010190565b51906001600160a01b038216820361099457565b612575919392933691612220565b9160609280518061305f575b505060c083805181010312610994576020830151926040810151916060820151916125ae60808201612553565b9560a0820151917fffffffffffffffffffffffffffffffff00000000000000000000000000000000831683036109945760c001519063ffffffff82168203610994576040516125fc816121aa565b60108082527f303132333435363738396162636465660000000000000000000000000000000060208301526040519461263486612172565b6024865260208601926040368537600091825b848110612f665750505050506001600160a01b03979893886126a96106156126ec98966126e0966126a4600761268d60206126cd9a604051809381928d5192839161234f565b810160cd81520301902001604051948580926123d2565b613f8a565b956040519a8b961660208701521660408501526080606085015260a0840190612468565b601f199384848303016080850152612468565b039081018552846121e2565b8060ff1c601b8110612f54575b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fff000000000000000000000000000000000000000000000000000000000000009260405194602086015216604084015260f81b16606082015260418152612761816121c6565b8151820191608081602085019403126109945761278060208201612553565b9161278d60408301612553565b92606083015167ffffffffffffffff90818111610994578660206127b392870101613100565b9560808501519182116109945760206127ce92860101613100565b9260405160208188516127e48183858d0161234f565b810160cd8152030190206003810154600181018111612f3e5760049460206001600160a01b036001850154166040519788809263f7c618c160e01b82525afa958615612c5457600096612f15575b506110bd61287391600095602081519101207f19457468657265756d205369676e6564204d6573736167653a0a3332000000008752601c52603c86206142a4565b6001600160a01b038060c95416911603612eeb5760d2543410612ec1576001600160a01b03841683528160205260ff604084205416612e975760028201546001820111612e6d576001906001600160a01b038516845282602052604084208260ff1982541617905501600382015581806001600160a01b03600184015416604051907f842acd680000000000000000000000000000000000000000000000000000000060208301526001600160a01b03871660248301526001600160a01b038a16604483015260448252612946826121c6565b6020825192019034905af13d15612e68573d61296181612204565b9061296f60405192836121e2565b81528360203d92013e5b15612e3e5760046112f4826001600160a01b0360016129eb9501541680987f776d31c62981a6d4b846ed3aeace92ca390dcf303bac6d12439917d147c34ae160405160208152806129d86001600160a01b038c16946020830190612468565b0390a36105fc60405180948193016123d2565b15612d9257506040516305f5c3df60e21b8152602081600481875afa908115612c5457600091612d60575b5083817f10301d5d7c155e8a5269fc62b7841a3fd101266acc5768d5df29b6e8d823433160405180612a546001600160a01b03881694898d8461319a565b0390a35b6001600160a01b038516612a6f575b505050505050565b6040516378e9792560e01b8152602081600481885afa908115612c5457600091612d2e575b5060dc541015612c945760d254604051907f17a7e45e000000000000000000000000000000000000000000000000000000008252602082600481895afa918215612c5457600092612c60575b50604051927f098432d20000000000000000000000000000000000000000000000000000000084526020846004818a5afa938415612c5457600094612c19575b50976001600160a01b03819795612be39997957fab16ca8f6268361d1fde10decae70880bd66beb71cfa3047b9c8e86c082219bc95612b90957f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf9d85604051988998610100808b528a0190612468565b9a1660208801526040870152848b166060870152610d05608087015260a086015260c085015260e084015216930390a35b600360d254046001600160a01b0360405194859460e0865260e0860190612468565b92600060208601526000604086015260006060860152600060808601521660a084015260c08301520390a1388080808080612a67565b90936020823d602011612c4c575b81612c34602093836121e2565b8101031261029c575051926001600160a01b03612b20565b3d9150612c27565b6040513d6000823e3d90fd5b90916020823d602011612c8c575b81612c7b602093836121e2565b8101031261029c5750519038612ae0565b3d9150612c6e565b917f9c503975322622df0e05ce3ba5b99b1eace4b358cc8c0af4ddf1610f9ce58bbc7f8e47afab301dea587ea57f7c95a3fe844a798013dd5c177c2e5575c35b1c73bf969492612be396946001600160a01b0360d2549260405193849360c0855283612d0360c087018d612468565b9816602086015260408501528289166060850152610d05608085015260a084015216930390a3612bc1565b906020823d602011612d58575b81612d48602093836121e2565b8101031261029c57505138612a94565b3d9150612d3b565b906020823d602011612d8a575b81612d7a602093836121e2565b8101031261029c57505138612a16565b3d9150612d6d565b6040516369d2dc0560e01b8152602081600481885afa918215612e32578092612dfd575b505083817fd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be960405180612df56001600160a01b03881694898d8461319a565b0390a3612a58565b9091506020823d602011612e2a575b81612e19602093836121e2565b8101031261029c5750513880612db6565b3d9150612e0c565b604051903d90823e3d90fd5b60046040517f360e42e1000000000000000000000000000000000000000000000000000000008152fd5b612979565b60046040517f571e5b18000000000000000000000000000000000000000000000000000000008152fd5b60046040517ff5f915f0000000000000000000000000000000000000000000000000000000008152fd5b60046040517fc288bf8f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f05d0fdda000000000000000000000000000000000000000000000000000000008152fd5b612873919650612f366110bd9160203d6020116116a85761169981836121e2565b969150612832565b634e487b7160e01b600052601160045260246000fd5b601b019060ff8211612f3e57906126f9565b6004898183148015613055575b801561304b575b8015613041575b61300f575b612fea612fe28493612fcc938761300a971a9283927fff00000000000000000000000000000000000000000000000000000000000000968791600f9687911c168c61414b565b51169a612fd88161413c565b9b60001a9261414b565b53168661414b565b511694613004612ff98261413c565b9660001a918c61414b565b5361413c565b612647565b94612fea612fe261300a9493602d6130348561302e612fcc979161413c565b9b61414b565b5393945050505089612f86565b50600a8314612f81565b5060088314612f7a565b5060068314612f73565b6040516004830180518019825260208301975090959284019491935b8097868210156130db5760018092019860ff808b51169182156130a6575050815301955b959661307b565b60020180516000198552909b50607f92509084908216838111156130d0575b50501601019561309f565b0138843983386130c5565b91909652838103601f1901845260008152602001604052919450925090503880612581565b81601f8201121561099457805161311681612204565b9261312460405194856121e2565b8184526020828401011161099457612272916020808501910161234f565b9081602091031261099457516001600160a01b03811681036109945790565b6040519061316e826121aa565b600782527f65726331313535000000000000000000000000000000000000000000000000006020830152565b6001600160a01b036131ba60409396959496606084526060840190612468565b951660208201520152565b90816020910312610994575180151581036109945790565b8181106131e8575050565b600081556001016131dd565b9190601f811161320357505050565b61322f926000526020600020906020601f840160051c83019310613231575b601f0160051c01906131dd565b565b9091508190613222565b979461329f6001600160a01b03956132916101409c999f9e9d9a966132838d63ffffffff986132756132ad99610160808552840190612468565b916020818403910152612468565b8d810360408f015290612468565b908b820360608d01526123d2565b9089820360808b0152612468565b9a1660a08701521660c085015260e08401526101008301526101208201520152565b9060c0820151916132e1600093612372565b60018101916001600160a01b03835416610a945760cc546040516bffffffffffffffffffffffff193360601b16602082019081524660348301524260548301526001600160a01b03909216919061334581607481015b03601f1981018352826121e2565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7386526035600c87f580156138f4576001600160a01b0390866021521692836001600160a01b0319825416179055608081015160028301556133b66004830154612398565b601f81116138d2575b507f657263313135350000000000000000000000000000000000000000000000000e60048301556005820180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905560e081015180519067ffffffffffffffff82116138445781906134638261345a6007880154612398565b600788016131f4565b602090601f8311600114613863578892613858575b50508160011b916000199060031b1c19161760078301555b61010081015180519067ffffffffffffffff82116138445781906134c4826134bb6008880154612398565b600888016131f4565b602090601f83116001146137d55788926137ca575b50508160011b916000199060031b1c19161760088301555b63ffffffff815116600983019063ffffffff198254161790556001600160a01b03602082015116856040830151606084015192608085015160a08601516001600160a01b0360ca541660c0880151918a3b156120cd576135a59360405198899788977feff5c5bd0000000000000000000000000000000000000000000000000000000089526004890152602488015260448701526064860152608485015260a484015260e060c484015260e4830190612468565b038183885af180156109a0576137b7575b50846001600160a01b0360208301511660a08301516080840151823b156104f95760e484928360405195869485937ff242432a0000000000000000000000000000000000000000000000000000000085523360048601528c60248601526044850152606484015260a06084840152600460a48401527f307830300000000000000000000000000000000000000000000000000000000060c48401525af18015613798576137a3575b5050823b156116d957846040517fe10d29ee000000000000000000000000000000000000000000000000000000008152818160048183895af1801561379857613784575b5050823b156116d9576040519463f2fde38b60e01b8652336004870152808660248183885af19586156137775784959661375b575b5050806101207fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd9201516137556101008301519160c08401519360e081015163ffffffff8251166001600160a01b0360208401511660408401519160608501519360a06080870151960151966040519a8b9a6004339f01928c61323b565b0390a390565b81929394506137699061215e565b61029c5790818493926136d7565b50604051903d90823e3d90fd5b61378d9061215e565b6116d95784386136a2565b6040513d84823e3d90fd5b6137ac9061215e565b6116d957843861365e565b6137c39095919561215e565b93386135b6565b0151905038806134d9565b9250600885018852602088209088935b601f1984168510613829576001945083601f19811610613810575b505050811b0160088301556134f1565b015160001960f88460031b161c19169055388080613800565b818101518355602094850194600190930192909101906137e5565b602487634e487b7160e01b81526041600452fd5b015190503880613478565b9250600785018852602088209088935b601f19841685106138b7576001945083601f1981161061389e575b505050811b016007830155613490565b015160001960f88460031b161c1916905538808061388e565b81810151835560209485019460019093019290910190613873565b600483018652602086206138ee91601f0160051c8101906131dd565b386133bf565b633011642586526004601cfd5b60c0810151613911600091612372565b916001600160a01b0360cb54166040516020810190613959816133374246338791605493916bffffffffffffffffffffffff199060601b168352601483015260348201520190565b519020906c5af43d3d93803e602a57fd5bf360215260145273602c3d8160093d39f33d3d3d3d363d3d37363d7383526035600c84f5928315613f7d5760218390526001810180546001600160a01b0319166001600160a01b038616179055608082015160028201556005810180547fffffffffffffff0000000000000000000000000000000000000000ffffffffff163360281b78ffffffffffffffffffffffffffffffffffffffff00000000001617905561012082015180519067ffffffffffffffff8211613e75578190613a3f82613a366004870154612398565b600487016131f4565b602090601f8311600114613f0e578692613f03575b50508160011b916000199060031b1c19161760048201555b60e082015180519067ffffffffffffffff8211613e75578190613a9f82613a966007870154612398565b600787016131f4565b602090601f8311600114613e94578692613e89575b50508160011b916000199060031b1c19161760078201555b61010082015180519067ffffffffffffffff8211613e75578190613b0082613af76008870154612398565b600887016131f4565b602090601f8311600114613e06578692613dfb575b50508160011b916000199060031b1c19161760088201555b815163ffffffff1690600981018263ffffffff19825416179055610140830151906101008401519060c08501519060e0860151928860208801516001600160a01b03169560408901958987519860608201998a519160808401519360a0019c8d5195604051996001600160a01b038b9a169c339c60040191613baf9a8c61323b565b037fc40dcf949d674b2920d8f7cc045e01d207becd5f362fbed0eef71088634722bd91a360208401516001600160a01b03169051915192608085015190519060c086015160d15461ffff169260ca546001600160a01b0316926001600160a01b038b163b156115c25791613c7a918a9796959493604051998a9889987ffb96aa2e000000000000000000000000000000000000000000000000000000008a5260048a0152602489015260448801526064870152608486015261010060a4860152610104850190612468565b9160c484015260e48301520381836001600160a01b0389165af18015613dd357613dde575b5060206001600160a01b03910151166040517f3dd4d94f0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b0388165afa908115613dd35783908192613d9e575b506064601c826020949560405196606052886040523360601b602c526f23b872dd000000000000000000000000600c525af13d156001845114171615613d915781606052806040526001600160a01b0383163b156105015763f2fde38b60e01b81523360048201528181602481836001600160a01b0388165af1801561379857613d7f57505090565b613d89829161215e565b61029c575090565b637939f42482526004601cfd5b9150506020813d602011613dcb575b81613dba602093836121e2565b810103126109945751826064613cf6565b3d9150613dad565b6040513d85823e3d90fd5b6001600160a01b039192613df360209261215e565b929150613c9f565b015190503880613b15565b9250600884018652602086209086935b601f1984168510613e5a576001945083601f19811610613e41575b505050811b016008820155613b2d565b015160001960f88460031b161c19169055388080613e31565b81810151835560209485019460019093019290910190613e16565b602485634e487b7160e01b81526041600452fd5b015190503880613ab4565b9250600784018652602086209086935b601f1984168510613ee8576001945083601f19811610613ecf575b505050811b016007820155613acc565b015160001960f88460031b161c19169055388080613ebf565b81810151835560209485019460019093019290910190613ea4565b015190503880613a54565b9250600484018652602086209086935b601f1984168510613f62576001945083601f19811610613f49575b505050811b016004820155613a6c565b015160001960f88460031b161c19169055388080613f39565b81810151835560209485019460019093019290910190613f1e565b633011642583526004601cfd5b9091604090815190608082019360a08301845260008552600f6f303132333435363738396162636465668152848401915b808216516001198801976000190153818160041c1651875360081c90828714613fe45790613fbb565b50905061412e57601f19946130788686015260828560211981019403018352835163ffffffff608082019260a0830187526000845216915b6000190191600a90603082820601845304918261401c5791506140be612272966062966080856140889b81019503018452519889967f7b22616374696f6e5478486173686573223a5b22000000000000000000000000602089015251809260348901906001190161234f565b8501917f225d2c22616374696f6e4e6574776f726b436861696e496473223a5b000000006034840152518093605084019061234f565b017f5d2c22616374696f6e54797065223a220000000000000000000000000000000060508201526140f982518093602060608501910161234f565b017f227d00000000000000000000000000000000000000000000000000000000000060608201520360428101845201826121e2565b632194895a6000526004601cfd5b6000198114612f3e5760010190565b90815181101561415c570160200190565b634e487b7160e01b600052603260045260246000fd5b600581101561428e57806141835750565b600181036141cf57606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b6002810361421b57606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b60031461422457565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b9060418151146000146142d2576142ce916020820151906060604084015193015160001a906142dc565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143525791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156137775781516001600160a01b0381161561434c579190565b50600190565b50505050600090600390565b638b78c6d81954330361436d57565b6382b429006000526004601cfd5b638b78c6d8600c526000526020600c2090815490811618809155600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a356fea26469706673582212203e7fc49d11f35efc0ae6db80e30dee7264fabb42e7ad8ab7ee6080091a8cda0064736f6c63430008130033", + "nonce": "0x8", "chainId": "0x14a34" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0x00a7eacfb4102e9e8f0fe6caeb7e0f534224eb43063a0f8bb269e6a85070257a", + "hash": "0xd55e76adef60fcc6d055e69adce689f769d3c8b36bfd5436303886d87a036a27", "transactionType": "CALL", - "contractName": null, + "contractName": "ProxyAdmin", "contractAddress": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", "function": "upgrade(address,address)", "arguments": [ "0x52629961F71C1C2564C5aa22372CB1b9fa9EBA3E", - "0xF7f2b3Bed0DaBEA90D7c431d5bDE71DaC4e919E6" + "0xaeA1151CedEf5A728d10dEBAeD2fE77d867964Cf" ], "transaction": { "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", "gas": "0xd0bd", "value": "0x0", - "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000f7f2b3bed0dabea90d7c431d5bde71dac4e919e6", - "nonce": "0x4", - "chainId": "0x14a34" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0xbf640a346bdd057d141063cef2d901a5d21448b0e68a4c8444da12bbe6e7b23c", - "transactionType": "CREATE", - "contractName": "Quest", - "contractAddress": "0x6218cfec353b0b0680b7d59fa77b8b9ade593747", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x207bf5", - "value": "0x0", - "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611c4590816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe6040608081526004908136101561001d575b5050361561001b57005b005b600091823560e01c908163098432d2146116d157816309a69f571461107457816316049ddf146116ad57816317a7e45e1461168e57816325692962146116435781633197cbb6146116245781633dd4d94f146115315781633ef17b171461150957816344a22c3614610ca35781634719b0d4146114ea5781634e71d92d1461119e5781634f51407c1461117357816354d1f13d1461112d5781635c975abb1461110957816364df049e146110de57816367dfa3e7146110bb57816369940d791461109357816369d2dc05146110745781636cb4e6111461104d578163715018a6146110065781637282a4aa14610f2357816378e9792514610f045781637969256414610ddf5781637b16e429146109b8578163842acd6814610d0f57816385f036ce14610cd85781638a2229ce14610ca35781638afbf66914610a675781638da5cb5b14610a3b578163a26dbf2614610a1c578163b0e21e8a146109e0578163cb664436146109b8578163e9870ee514610999578163ea8a1af0146108d0578163ef89c4e614610899578163f04e283e14610815578163f2fde38b146107a6578163f38be19d146102e1578163f4c17a6b1461024657508063f7c618c11461021f5763fee81cf403610011573461021b57602036600319011261021b57602091610205611884565b9063389a75e1600c525281600c20549051908152f35b5080fd5b503461021b578160031936011261021b576020906001600160a01b03609954169051908152f35b9050346102dd57826003193601126102dd576020825180926313d4501f60e21b825281305afa9283156102d25792610298575b5061271061029060209361ffff60a05416906118d9565b049051908152f35b91506020823d82116102ca575b816102b26020938361175c565b810103126102c557905190612710610279565b600080fd5b3d91506102a5565b8251903d90823e3d90fd5b8280fd5b919050346102dd576101203660031901126102dd576102fe611884565b67ffffffffffffffff919060a4358381116107a257366023820112156107a25780850135938661032d8661189a565b9261033a8651948561175c565b868452366024888301011161021b5786602497602098899301838701378401015260c43561ffff811680910361079e5760e435916001600160a01b039384841684036102c55789549860ff8a60081c1615998a809b610791575b801561077a575b1561071257918b98979593918b97959360019c8d9b60ff199e8f8416179055610701575b50602435428111156106d95760443590818111156106b15761010435976101f48911610689577fffffffffffffffffffffffff00000000000000000000000000000000000000009916896099541617609955609a55609b55606435609c55608435609d5581519283116106765750819061043a609f546116f8565b601f8111610604575b508a908d601f84116001146105835792610578575b5050600019600383901b1c191690881b17609f555b7fffffffffffffffffff0000000000000000000000000000000000000000ff000076ffffffffffffffffffffffffffffffffffffffff00000060a0549360181b169216171760a05560a355339060985416176098558285609e541617609e558560a4558560a75533638b78c6d8195533867f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053786549560ff8760081c169061051982611aca565b61052282611aca565b6065541660655561053281611aca565b611aca565b828055610542578480f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989361ff001916855551908152a1388080808480f35b015190503880610458565b609f81528b94507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929190601f198516908e5b8282106105ed57505084116105d4575b505050811b01609f5561046d565b015160001960f88460031b161c191690553880806105c6565b8385015186558e979095019493840193018e6105b6565b909150609f8d527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f840160051c8101918c851061066c575b8e85949392601f8e930160051c0192905b83821061065e57505050610443565b81558594508c91018f61064f565b909150819061063e565b8c6041602492634e487b7160e01b835252fd5b838c517fc547179a000000000000000000000000000000000000000000000000000000008152fd5b828b517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b5088517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff1916610101178d55386103bf565b6084828b8b519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561039b5750600160ff82161461039b565b50600160ff821610610394565b8780fd5b8580fd5b8390602036600319011261021b576107bc611884565b906107c5611b8b565b8160601b1561080a57506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8360203660031901126108965761082a611884565b610832611b8b565b63389a75e1600c528082526020600c20928354421161088b5750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b80fd5b50503461021b57602036600319011261021b57806020926001600160a01b036108c0611884565b16815260a2845220549051908152f35b919050346102dd57826003193601126102dd576001600160a01b0360985416330361098c576108fd611b3b565b609a54421161097f5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610932611b3b565b600160ff19606554161760655551338152a142609b54116000146109595750425b609a5580f35b61038442019081421161096c5750610953565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b5163ce3f000560e01b8152fd5b50503461021b578160031936011261021b5760209060a7549051908152f35b50503461021b578160031936011261021b576020906001600160a01b03609854169051908152f35b50503461021b578160031936011261021b57602090612710610290610a0f610a0661199d565b609d54906118d9565b61ffff60a05416906118d9565b50503461021b578160031936011261021b57602090609c549051908152f35b50503461021b578160031936011261021b576020906001600160a01b03638b78c6d81954915191168152f35b83833461021b578160031936011261021b57609a544210610c945760a090815460ff8160101c16610c85579362010000849562ff000019161783556003610abd610aaf611a37565b610ab761199d565b906118d9565b0490610ac982476118ec565b90638b78c6d81994610adc848754611ba8565b6001600160a01b03610af48482845460181c16611ba8565b85517fb0e21e8a00000000000000000000000000000000000000000000000000000000815260209081818681305afa908115610c7b578a91610c46575b5090610b5b610b49610baa9360a4549060011c6118ec565b846099541685875460181c1690611bc6565b610ba1836099541691306014526f70a082310000000000000000000000008c52808060246010865afa601f3d1116905102610b9b60a45460a754906118ec565b906118ec565b90895490611bc6565b80609854169281835460181c16975497843b15610c42578996879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610c0060a487016118f9565b9460248701526044860152166064840152608483015203925af1908115610c395750610c295750f35b610c3290611732565b6108965780f35b513d84823e3d90fd5b8980fd5b82809b50819392503d8311610c74575b610c60818361175c565b810103126102c55751899890610b5b610b31565b503d610c56565b88513d8c823e3d90fd5b848251636507689f60e01b8152fd5b905051630ee56a2b60e41b8152fd5b50503461021b578160031936011261021b57610cd490610cc161177e565b905191829160208352602083019061185f565b0390f35b50503461021b57602036600319011261021b57806020926001600160a01b03610cff611884565b16815260a5845220549051908152f35b918091506003193601126102dd57610d25611884565b90602435916001600160a01b0390818416948585036102c557609a544211610dd15782609854163303610dc3575090610d6591609d549160995416611bc6565b82610d6e578380f35b610d86610dba926003610d7f611a37565b0490611ba8565b612710610d9860a354609d54906118d9565b0492610da68460a4546118b6565b60a455845260a560205283209182546118b6565b90553880808380f35b835163ce3f000560e01b8152fd5b83516345b0152160e11b8152fd5b8391503461021b57602036600319011261021b57610dfb611884565b92609a544210610ef7576001600160a01b038085169081855260a6602052600160ff8487205416151514610ee85781855260a560205282852054938415610ec15750610e6e847f63ca37a2570a0ee444ede7883d251fbba170cd6c89c66d04c4cc173301c22e4496978360995416611bc6565b81865260a6602052828620600160ff19825416179055610e908460a7546118b6565b60a7556099541692825193849360808552610ead608086016118f9565b93602086015284015260608301520390a180f35b83517f1793d649000000000000000000000000000000000000000000000000000000008152fd5b505051636507689f60e01b8152fd5b51630ee56a2b60e41b8152fd5b50503461021b578160031936011261021b57602090609b549051908152f35b83833461021b57602036600319011261021b57610f3e611884565b600260015414610fc3576002600155609b544210610f9b57610f5e611b3b565b6001600160a01b039182609854163303610f8c575090610f8591609d549160995416611bc6565b6001805580f35b84905163ce3f000560e01b8152fd5b8382517fdd8133e6000000000000000000000000000000000000000000000000000000008152fd5b606484602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126108965761101a611b8b565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b50503461021b578160031936011261021b5760209060ff60a05460101c1690519015158152f35b50503461021b578160031936011261021b57602090609d549051908152f35b50503461021b578160031936011261021b576020906001600160a01b03609954169051908152f35b50503461021b578160031936011261021b5760209061ffff60a054169051908152f35b50503461021b578160031936011261021b576020906001600160a01b0360a05460181c169051908152f35b50503461021b578160031936011261021b5760209060ff6065541690519015158152f35b83806003193601126108965763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b50503461021b578160031936011261021b57602090611197609c54609d54906118d9565b9051908152f35b83600319843682018381126113aa57836001600160a01b03918260985416916111c561177e565b9036891161079e57606080931261079e57606436116114df575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061121d602482018861185f565b0381895afa928315610c7b57908a91829461141f575b508b6112a163ffffffff8b87015116928c87519701516112928d5198899687967fa5454dbd000000000000000000000000000000000000000000000000000000008852803590880152602487015260806044870152608486019061185f565b9184830301606485015261185f565b0381885afa9182156114155789926113c1575b506112f16112de6112fd948951988994338d870152168a85015260808785015260a084019061185f565b601f19938484830301608085015261185f565b0390810185528461175c565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113ae5790859291858552813b156113aa57859283917fce53b15200000000000000000000000000000000000000000000000000000000835286606482015261138761137260a483018361185f565b828103606319016084840152605f199361185f565b03019134905af1908115610c39575061139e575080f35b6113a790611732565b80f35b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e6113d3818361175c565b8101908881830312610c425780519067ffffffffffffffff8211611411576114086112fd9594936112f1936112de9301611a85565b939450506112b4565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e611432818361175c565b8101898282031261141157815167ffffffffffffffff928382116114be57019086828203126114db57895192878401848110828211176114c6578b5282518181116114c25782611483918501611a85565b84528b8301519081116114be57829161149e918c9401611a85565b8b840152015163ffffffff8116810361141157888201529189908c611233565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b50606435821c6111df565b50503461021b578160031936011261021b5760209060a4549051908152f35b50503461021b578160031936011261021b576020906001600160a01b03609754169051908152f35b8284346108965780600319360112610896578151906313d4501f60e21b825260209384838281305afa92831561161a5782936115eb575b5084845180927ff4c17a6b00000000000000000000000000000000000000000000000000000000825281305afa9182156115e05780926115ae575b5050611197916118b6565b9091508482813d83116115d9575b6115c6818361175c565b81010312610896575051611197856115a3565b503d6115bc565b8451903d90823e3d90fd5b9092508481813d8311611613575b611603818361175c565b8101031261021b57519185611568565b503d6115f9565b84513d84823e3d90fd5b50503461021b578160031936011261021b57602090609a549051908152f35b83806003193601126108965763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b50503461021b578160031936011261021b5760209060a3549051908152f35b50503461021b578160031936011261021b5760209060ff609e541690519015158152f35b50503461021b578160031936011261021b5760209061271061029060a354609d54906118d9565b90600182811c92168015611728575b602083101461171257565b634e487b7160e01b600052602260045260246000fd5b91607f1691611707565b67ffffffffffffffff811161174657604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761174657604052565b60405190600082609f5491611792836116f8565b8083529260019081811690811561181a57506001146117bb575b506117b99250038361175c565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b8483106117ff57506117b99350508101602001386117ac565b81935090816020925483858a010152019101909185926117e6565b9050602092506117b994915060ff191682840152151560051b820101386117ac565b60005b83811061184f5750506000910152565b818101518382015260200161183f565b906020916118788151809281855285808601910161183c565b601f01601f1916010190565b600435906001600160a01b03821682036102c557565b67ffffffffffffffff811161174657601f01601f191660200190565b919082018092116118c357565b634e487b7160e01b600052601160045260246000fd5b818102929181159184041417156118c357565b919082039182116118c357565b609f5460009291611909826116f8565b80825291600190818116908115611980575060011461192757505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b84841061196857505060209250010190565b80546020858501810191909152909301928101611956565b915050602093945060ff929192191683830152151560051b010190565b6001600160a01b0360985416602060405180927f43ff27d100000000000000000000000000000000000000000000000000000000825282600483015281806119e7602482016118f9565b03915afa908115611a2b576000916119fd575090565b906020823d8211611a23575b81611a166020938361175c565b8101031261089657505190565b3d9150611a09565b6040513d6000823e3d90fd5b600460206001600160a01b0360985416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa908115611a2b576000916119fd575090565b81601f820112156102c5578051611a9b8161189a565b92611aa9604051948561175c565b818452602082840101116102c557611ac7916020808501910161183c565b90565b15611ad157565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611b4757565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b9a57565b6382b429006000526004601cfd5b600080809338935af115611bb857565b63b12d13eb6000526004601cfd5b60109260209260145260345260446000938480936fa9059cbb00000000000000000000000082525af13d156001835114171615611c0257603452565b6390b8ec1890526004601cfdfea2646970667358221220effae14c1c3189e8bf542fc32efd5ca81ce5a2d9a564a2cbb1af82f8f86d973264736f6c63430008130033", - "nonce": "0x5", - "chainId": "0x14a34" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x354cbd7b3a1afdf843dcc0c6f424a2d4e65bf1a172e7194e3ba5ef173f2ea567", - "transactionType": "CREATE", - "contractName": "Quest1155", - "contractAddress": "0xad34f39893896fb4925e1364178805aece2d43e5", - "function": null, - "arguments": null, - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "gas": "0x1fba06", - "value": "0x0", - "input": "0x608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b604051611b9d90816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608060408181526004918236101561001f575b505050361561001d57005b005b600092833560e01c91826301ffc9a71461155c57508163098432d21461154157816316049ddf1461151a57816317a7e45e146114fb57816317d70f7c146114dc57816325692962146114915781633197cbb61461147257816344a22c3614610e0b5781634e71d92d1461111b57816354d1f13d146110d55781635c975abb146110b157816364df049e1461108957816367dfa3e71461106a5781636cb4e61114611043578163715018a614610ffc5781637282a4aa14610ed657816378e9792514610eb75781637b16e429146109a4578163842acd6814610e405781638a2229ce14610e0b5781638afbf66914610ab75781638da5cb5b14610a8b578163a26dbf2614610a6c578163bc197c81146109cc578163cb664436146109a4578163e10d29ee1461085a578163ea8a1af014610774578163eff5c5bd14610382578163f04e283e14610301578163f23a6e611461028f578163f2fde38b1461022057508063f4c17a6b14610202578063f7c618c1146101db5763fee81cf4146101a55780610012565b346101d75760203660031901126101d7576020916101c1611786565b9063389a75e1600c525281600c20549051908152f35b5080fd5b50346101d757816003193601126101d7576020906001600160a01b03609954169051908152f35b50346101d757816003193601126101d757602090609c549051908152f35b839060203660031901126101d757610236611786565b9061023f611b2c565b8160601b1561028457506001600160a01b0316638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b637448fbae8352601cfd5b8284346102fe5760a03660031901126102fe576102aa611786565b506102b361179c565b506084359067ffffffffffffffff82116102fe57506020926102d791369101611835565b50517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b80fd5b8360203660031901126102fe57610316611786565b61031e611b2c565b63389a75e1600c528082526020600c2092835442116103775750816001600160a01b0392935516638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35580f35b636f5e88188352601cfd5b8383346101d75760e03660031901126101d75761039d611786565b60248035906044359260a435916001600160a01b039081841680940361076f5760c43567ffffffffffffffff9283821161076b573660238301121561076b57818b013593841161076b573683858401011161076b5789549760ff8960081c16159788809961075e575b8015610747575b156106df578b9c60019c9b9c9b8c9b8b60ff199e8f83161783556106cd575b5050428211156106a6578282111561067f5750908594939291609a55609b557fffffffffffffffffffffffff00000000000000000000000000000000000000009516856099541617609955606435609c55608435609d5533856097541617609755610498609f546115fa565b601f811161060d575b508a90601f8411600114610587578b9361057a575b505050600019600383901b1c191690851b17609f555b609854161760985533638b78c6d8195533857f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361053785549360ff8560081c169061051982611a6b565b61052282611a6b565b6065541660655561053281611a6b565b611a6b565b818055610542578380f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989260209261ff001916855551908152a18180808380f35b01013590508980806104b6565b609f8c528894507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28929091601f1985168d5b8181106105f3575085116105d7575b50505050811b01609f556104cc565b60001960f88660031b161c1992010135169055898080806105c8565b82850184013586558b9790950194602092830192016105b9565b90919250609f8b527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28601f850160051c81019160208610610675575b8594939291601f8b920160051c01915b8281106106675750506104a1565b8d81558695508a9101610659565b9091508190610649565b8c517f693944c0000000000000000000000000000000000000000000000000000000008152fd5b8c517f72e54d4d000000000000000000000000000000000000000000000000000000008152fd5b61ffff19166101011790558d8f61042c565b60848d602e8760208f519362461bcd60e51b85528401528201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b50303b15801561040d5750600160ff8b161461040d565b50600160ff8b1610610406565b8980fd5b600080fd5b919050346108565782600319360112610856576001600160a01b03609754163303610830576107a1611adc565b609a5442116108235760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916107d6611adc565b600160ff19606554161760655551338152a142609b54116000146107fd5750425b609a5580f35b61038442019081421161081057506107f7565b826011602492634e487b7160e01b835252fd5b516345b0152160e11b8152fd5b517fce3f0005000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b905034610856578260031936011261085657610874611b2c565b6108b860206001600160a01b0360995416609d549085518080958194627eeac760e11b835230898401602090939291936001600160a01b0360408201951681520152565b03915afa908115610997578491610966575b50609c541161093f575060207f2dba1d9e78f3192742fc9d510383d669fe8a4fa03d039bd7382ef67119078af791740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff609754161760975551428152a180f35b90517fe4455cae000000000000000000000000000000000000000000000000000000008152fd5b90506020813d821161098f575b816109806020938361165e565b8101031261076f5751386108ca565b3d9150610973565b50505051903d90823e3d90fd5b5050346101d757816003193601126101d7576020906001600160a01b03609754169051908152f35b8284346102fe5760a03660031901126102fe576109e7611786565b506109f061179c565b5067ffffffffffffffff906044358281116101d757610a1290369086016117b2565b506064358281116101d757610a2a90369086016117b2565b506084359182116102fe5750602092610a4591369101611835565b50517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b5050346101d757816003193601126101d757602090609c549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03638b78c6d81954915191168152f35b839150346101d757816003193601126101d757609a544210610de4576097549260ff8460a81c16610dbe5775010000000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff851617609755610b28611920565b9381517f43ff27d10000000000000000000000000000000000000000000000000000000081526020958685830152868280610b656024820161187c565b03816001600160a01b038097165afa918215610db4578692610d85575b50818102918183041490151715610d725760039004904790828203918211610d5f57638b78c6d81992610bb6818554611b49565b610bc4838360985416611b49565b8354609954609d548751627eeac760e11b815230818b0190815260208101839052919b93928616918490829081906040010381855afa938415610d55578b94610d25575b5050803b1561076f57849288519b8c948594637921219560e11b8652308d870152166024850152604484015260648301526084820160a090528860a483015260c48201630307830360e41b90525a92600060e4928195f1978815610d1a578798610d0b575b508160975416918060985416945496833b15610d0757889560a093879389519a8b98899788967fc6eba766000000000000000000000000000000000000000000000000000000008852870152610cc560a4870161187c565b9460248701526044860152166064840152608483015203925af1908115610cfe5750610cee5750f35b610cf790611634565b6102fe5780f35b513d84823e3d90fd5b8880fd5b610d1490611634565b88610c6d565b85513d6000823e3d90fd5b9080929450813d8311610d4e575b610d3d818361165e565b8101031261076f5751918b80610c08565b503d610d33565b89513d8d823e3d90fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b9091508681813d8311610dad575b610d9d818361165e565b8101031261076f57519087610b82565b503d610d93565b84513d88823e3d90fd5b517f6507689f000000000000000000000000000000000000000000000000000000008152fd5b82517fd3018d18000000000000000000000000000000000000000000000000000000008152fd5b5050346101d757816003193601126101d757610e3c90610e29611680565b9051918291602083526020830190611761565b0390f35b9180915060031936011261085657610e56611786565b610e5e61179c565b92609a544211610ea9576001600160a01b039283609754163303610830575050610e87906119a8565b8116610e91575080f35b610ea6906003610e9f611920565b0490611b49565b80f35b82516345b0152160e11b8152fd5b5050346101d757816003193601126101d757602090609b549051908152f35b90503461085657602036600319011261085657610ef1611786565b90600260015414610fb9576002600155610f09611adc565b609a544211610ea957609b544210610f92576097549260ff8460a01c1615610f6c576001600160a01b038094163303610830575050610f47906119a8565b609e5480610f58575b826001805580f35b610f659160985416611b49565b3880610f50565b517fccbc0d71000000000000000000000000000000000000000000000000000000008152fd5b82517f6f312cbd000000000000000000000000000000000000000000000000000000008152fd5b606490602084519162461bcd60e51b8352820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b83806003193601126102fe57611010611b2c565b6000638b78c6d8198181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35580f35b5050346101d757816003193601126101d75760209060ff60975460a81c1690519015158152f35b5050346101d757816003193601126101d757602090609e549051908152f35b5050346101d757816003193601126101d7576020906001600160a01b03609854169051908152f35b5050346101d757816003193601126101d75760209060ff6065541690519015158152f35b83806003193601126102fe5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b836003198436820183811261132457836001600160a01b0391826097541691611142611680565b9036891161146e57606080931261146e5760643611611463575b8551907fed21bb83000000000000000000000000000000000000000000000000000000008252602097888b84015289838061119a6024820188611761565b0381895afa92831561145957908a918294611399575b508b61121e63ffffffff8b87015116928c875197015161120f8d5198899687967fa5454dbd0000000000000000000000000000000000000000000000000000000088528035908801526024870152608060448701526084860190611761565b91848303016064850152611761565b0381885afa91821561138f57899261133b575b5061126e61125b61127a948951988994338d870152168a85015260808785015260a0840190611761565b601f199384848303016080850152611761565b0390810185528461165e565b835194602435908601526044358486015283855284019380851067ffffffffffffffff8611176113285790859291858552813b1561132457859283917fce53b1520000000000000000000000000000000000000000000000000000000083528660648201526113046112ef60a4830183611761565b828103606319016084840152605f1993611761565b03019134905af1908115610cfe575061131b575080f35b610ea690611634565b8380fd5b602486604189634e487b7160e01b835252fd5b9091503d808a833e61134d818361165e565b810190888183031261076b5780519067ffffffffffffffff821161138b5761138261127a95949361126e9361125b9301611a26565b93945050611231565b8a80fd5b87513d8b823e3d90fd5b915092503d808b833e6113ac818361165e565b8101898282031261138b57815167ffffffffffffffff9283821161143857019086828203126114555789519287840184811082821117611440578b52825181811161143c57826113fd918501611a26565b84528b830151908111611438578291611418918c9401611a26565b8b840152015163ffffffff8116810361138b57888201529189908c6111b0565b8c80fd5b8d80fd5b505060248c60418f634e487b7160e01b835252fd5b8b80fd5b88513d8c823e3d90fd5b50606435821c61115c565b8780fd5b5050346101d757816003193601126101d757602090609a549051908152f35b83806003193601126102fe5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b5050346101d757816003193601126101d757602090609d549051908152f35b5050346101d757816003193601126101d75760209060a0549051908152f35b5050346101d757816003193601126101d75760209060ff60975460a01c1690519015158152f35b5050346101d757816003193601126101d75751908152602090f35b84913461085657602036600319011261085657357fffffffff00000000000000000000000000000000000000000000000000000000811680910361085657602092507f4e2312e00000000000000000000000000000000000000000000000000000000081149081156115d0575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836115c9565b90600182811c9216801561162a575b602083101461161457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611609565b67ffffffffffffffff811161164857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761164857604052565b60405190600082609f5491611694836115fa565b8083529260019081811690811561171c57506001146116bd575b506116bb9250038361165e565b565b609f600090815291507f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de285b84831061170157506116bb9350508101602001386116ae565b81935090816020925483858a010152019101909185926116e8565b9050602092506116bb94915060ff191682840152151560051b820101386116ae565b60005b8381106117515750506000910152565b8181015183820152602001611741565b9060209161177a8151809281855285808601910161173e565b601f01601f1916010190565b600435906001600160a01b038216820361076f57565b602435906001600160a01b038216820361076f57565b9080601f8301121561076f5781359067ffffffffffffffff8211611648578160051b604051936020936117e78584018761165e565b8552838086019282010192831161076f578301905b82821061180a575050505090565b813581529083019083016117fc565b67ffffffffffffffff811161164857601f01601f191660200190565b81601f8201121561076f5780359061184c82611819565b9261185a604051948561165e565b8284526020838301011161076f57816000926020809301838601378301015290565b609f546000929161188c826115fa565b8082529160019081811690811561190357506001146118aa57505050565b91929350609f6000527f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28916000925b8484106118eb57505060209250010190565b805460208585018101919091529093019281016118d9565b915050602093945060ff929192191683830152151560051b010190565b600460206001600160a01b0360975416604051928380927f13966db50000000000000000000000000000000000000000000000000000000082525afa90811561199c5760009161196e575090565b906020823d8211611994575b816119876020938361165e565b810103126102fe57505190565b3d915061197a565b6040513d6000823e3d90fd5b6001600160a01b0390816099541691609d5492803b1561076f576000928360e4926040519687958694637921219560e11b865230600487015216602485015260448401526001606484015260a06084840152600460a4840152630307830360e41b60c48401525af1801561199c57611a1d5750565b6116bb90611634565b81601f8201121561076f578051611a3c81611819565b92611a4a604051948561165e565b8184526020828401011161076f57611a68916020808501910161173e565b90565b15611a7257565b608460405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152fd5b60ff60655416611ae857565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b638b78c6d819543303611b3b57565b6382b429006000526004601cfd5b600080809338935af115611b5957565b63b12d13eb6000526004601cfdfea2646970667358221220c912acbe25d4f3aaed6efb5de84b71595949988e617f52bf8d5e6820e616fb5564736f6c63430008130033", - "nonce": "0x6", - "chainId": "0x14a34" - }, - "additionalContracts": [], - "isFixedGasLimit": false - }, - { - "hash": "0x32f8b16313e97a9c1d602e596f2cf79db666b8f7d40fc11f2f3fefb265f3c2e4", - "transactionType": "CALL", - "contractName": null, - "contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "function": "initialize(address,address,address,address,address,uint256,uint16,uint256)", - "arguments": [ - "0x22890b38D6ab6090e5123DB7497f4bCE7062929F", - "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "0x6218CfEC353B0B0680B7D59FA77b8B9ade593747", - "0xAD34F39893896Fb4925E1364178805AeCe2D43e5", - "0x017F8Ad14A2E745ea0F756Bd57CD4852400be78c", - "500000000000000", - "5000", - "0" - ], - "transaction": { - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "gas": "0x56d7c", - "value": "0x0", - "input": "0x02a8a06600000000000000000000000022890b38d6ab6090e5123db7497f4bce7062929f000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c0000000000000000000000006218cfec353b0b0680b7d59fa77b8b9ade593747000000000000000000000000ad34f39893896fb4925e1364178805aece2d43e5000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c0000000000000000000000000000000000000000000000000001c6bf5263400000000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x7", + "input": "0x99a88ec400000000000000000000000052629961f71c1c2564c5aa22372cb1b9fa9eba3e000000000000000000000000aea1151cedef5a728d10debaed2fe77d867964cf", + "nonce": "0x9", "chainId": "0x14a34" }, "additionalContracts": [], @@ -146,291 +44,82 @@ "receipts": [ { "status": "0x1", - "cumulativeGasUsed": "0x39edd1", + "cumulativeGasUsed": "0x5e2006", "logs": [ { - "address": "0xfe9af934a9d1bd4109d0d698635c19385389e85f", + "address": "0xaea1151cedef5a728d10debaed2fe77d867964cf", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0xf79f7c8d93d23154d4b1afb8c103c1eeb52706268390adb400a3078d3aea6791", - "blockNumber": "0xb34290", - "transactionHash": "0xc5c9d41e5b5eb8e8ecf878b7a705352270e6d8df2c29703fba8d967572fc1141", - "transactionIndex": "0x9", - "logIndex": "0x1d", + "blockHash": "0xe09b803d5189e389cf5f84240a2e225b5e0dc58d3662c6d9abdcd846cc85e365", + "blockNumber": "0xb474f4", + "transactionHash": "0xa2029c64f8144043b8fb3ff94b857c3a2f19ffa0e3371153bf1bac4173a63023", + "transactionIndex": "0x16", + "logIndex": "0x26", "removed": false } ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001040000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000", "type": "0x2", - "transactionHash": "0xc5c9d41e5b5eb8e8ecf878b7a705352270e6d8df2c29703fba8d967572fc1141", - "transactionIndex": "0x9", - "blockHash": "0xf79f7c8d93d23154d4b1afb8c103c1eeb52706268390adb400a3078d3aea6791", - "blockNumber": "0xb34290", - "gasUsed": "0x257288", - "effectiveGasPrice": "0xf0c9f", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", - "contractAddress": null, - "l1BaseFeeScalar": "0x44d", - "l1BlobBaseFee": "0x1", - "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0xba27001a9", - "l1GasPrice": "0x1fe00515", - "l1GasUsed": "0x14b85" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x44f501", - "logs": [ - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000fe9af934a9d1bd4109d0d698635c19385389e85f" - ], - "data": "0x", - "blockHash": "0xf79f7c8d93d23154d4b1afb8c103c1eeb52706268390adb400a3078d3aea6791", - "blockNumber": "0xb34290", - "transactionHash": "0x611a2296100d2acec8751022bdc212cdc52dda318ad4939a633cbc73ec4cb5ed", - "transactionIndex": "0xa", - "logIndex": "0x1e", - "removed": false - }, - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d28fbf7569f31877922cdc31a1a5b3c504e8faa1", - "blockHash": "0xf79f7c8d93d23154d4b1afb8c103c1eeb52706268390adb400a3078d3aea6791", - "blockNumber": "0xb34290", - "transactionHash": "0x611a2296100d2acec8751022bdc212cdc52dda318ad4939a633cbc73ec4cb5ed", - "transactionIndex": "0xa", - "logIndex": "0x1f", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000000000000000000000000000000000000000800000000080000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000020000000400000000000000000002000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000001", - "type": "0x2", - "transactionHash": "0x611a2296100d2acec8751022bdc212cdc52dda318ad4939a633cbc73ec4cb5ed", - "transactionIndex": "0xa", - "blockHash": "0xf79f7c8d93d23154d4b1afb8c103c1eeb52706268390adb400a3078d3aea6791", - "blockNumber": "0xb34290", - "gasUsed": "0xb0730", - "effectiveGasPrice": "0xf0c9f", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", - "contractAddress": null, - "l1BaseFeeScalar": "0x44d", - "l1BlobBaseFee": "0x1", - "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x4e174be7e", - "l1GasPrice": "0x1fe00515", - "l1GasUsed": "0x8b12" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x491efb", - "logs": [ - { - "address": "0xf7f2b3bed0dabea90d7c431d5bde71dac4e919e6", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "transactionHash": "0x445c80bbcdba91b90f135b07c56deb3e8f6bb1e53316794e3ff58a22f6e03a24", - "transactionIndex": "0x6", - "logIndex": "0xf", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080004000000000000000000000000000000000000000000400100000000200000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0x445c80bbcdba91b90f135b07c56deb3e8f6bb1e53316794e3ff58a22f6e03a24", - "transactionIndex": "0x6", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "gasUsed": "0x3a15af", - "effectiveGasPrice": "0xf0cae", + "transactionHash": "0xa2029c64f8144043b8fb3ff94b857c3a2f19ffa0e3371153bf1bac4173a63023", + "transactionIndex": "0x16", + "blockHash": "0xe09b803d5189e389cf5f84240a2e225b5e0dc58d3662c6d9abdcd846cc85e365", + "blockNumber": "0xb474f4", + "gasUsed": "0x3a6f3f", + "effectiveGasPrice": "0xf4f17", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": null, - "contractAddress": "0xf7f2b3bed0dabea90d7c431d5bde71dac4e919e6", + "contractAddress": "0xaea1151cedef5a728d10debaed2fe77d867964cf", "l1BaseFeeScalar": "0x44d", "l1BlobBaseFee": "0x1", "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x14cf6dbe25", - "l1GasPrice": "0x1fe00515", - "l1GasUsed": "0x250fa" + "l1Fee": "0x1d2823919c5", + "l1GasPrice": "0x2c59bcceb", + "l1GasUsed": "0x2551b" }, { "status": "0x1", - "cumulativeGasUsed": "0x49b61b", + "cumulativeGasUsed": "0x5eb726", "logs": [ { "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000f7f2b3bed0dabea90d7c431d5bde71dac4e919e6" + "0x000000000000000000000000aea1151cedef5a728d10debaed2fe77d867964cf" ], "data": "0x", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "transactionHash": "0x00a7eacfb4102e9e8f0fe6caeb7e0f534224eb43063a0f8bb269e6a85070257a", - "transactionIndex": "0x7", - "logIndex": "0x10", + "blockHash": "0xe09b803d5189e389cf5f84240a2e225b5e0dc58d3662c6d9abdcd846cc85e365", + "blockNumber": "0xb474f4", + "transactionHash": "0xd55e76adef60fcc6d055e69adce689f769d3c8b36bfd5436303886d87a036a27", + "transactionIndex": "0x17", + "logIndex": "0x27", "removed": false } ], - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000080000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000020000000040000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000002000000000000000000000000000000000000010000000000000000000000000000000000002000000000000000000000400000000000000000010000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "transactionHash": "0x00a7eacfb4102e9e8f0fe6caeb7e0f534224eb43063a0f8bb269e6a85070257a", - "transactionIndex": "0x7", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", + "transactionHash": "0xd55e76adef60fcc6d055e69adce689f769d3c8b36bfd5436303886d87a036a27", + "transactionIndex": "0x17", + "blockHash": "0xe09b803d5189e389cf5f84240a2e225b5e0dc58d3662c6d9abdcd846cc85e365", + "blockNumber": "0xb474f4", "gasUsed": "0x9720", - "effectiveGasPrice": "0xf0cae", + "effectiveGasPrice": "0xf4f17", "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", "to": "0xd28fbf7569f31877922cdc31a1a5b3c504e8faa1", "contractAddress": null, "l1BaseFeeScalar": "0x44d", "l1BlobBaseFee": "0x1", "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x3826b125", - "l1GasPrice": "0x1fe00515", + "l1Fee": "0x4e20be7ce", + "l1GasPrice": "0x2c59bcceb", "l1GasUsed": "0x640" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x62b4d1", - "logs": [ - { - "address": "0x6218cfec353b0b0680b7d59fa77b8b9ade593747", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "transactionHash": "0xbf640a346bdd057d141063cef2d901a5d21448b0e68a4c8444da12bbe6e7b23c", - "transactionIndex": "0x8", - "logIndex": "0x11", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000", - "type": "0x2", - "transactionHash": "0xbf640a346bdd057d141063cef2d901a5d21448b0e68a4c8444da12bbe6e7b23c", - "transactionIndex": "0x8", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "gasUsed": "0x18feb6", - "effectiveGasPrice": "0xf0cae", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": null, - "contractAddress": "0x6218cfec353b0b0680b7d59fa77b8b9ade593747", - "l1BaseFeeScalar": "0x44d", - "l1BlobBaseFee": "0x1", - "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x98990c5ff", - "l1GasPrice": "0x1fe00515", - "l1GasUsed": "0x10fc3" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x7b1e4f", - "logs": [ - { - "address": "0xad34f39893896fb4925e1364178805aece2d43e5", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "transactionHash": "0x354cbd7b3a1afdf843dcc0c6f424a2d4e65bf1a172e7194e3ba5ef173f2ea567", - "transactionIndex": "0x9", - "logIndex": "0x12", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000100000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000", - "type": "0x2", - "transactionHash": "0x354cbd7b3a1afdf843dcc0c6f424a2d4e65bf1a172e7194e3ba5ef173f2ea567", - "transactionIndex": "0x9", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "gasUsed": "0x18697e", - "effectiveGasPrice": "0xf0cae", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": null, - "contractAddress": "0xad34f39893896fb4925e1364178805aece2d43e5", - "l1BaseFeeScalar": "0x44d", - "l1BlobBaseFee": "0x1", - "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x94a27cb0c", - "l1GasPrice": "0x1fe00515", - "l1GasUsed": "0x108b4" - }, - { - "status": "0x1", - "cumulativeGasUsed": "0x7f0c46", - "logs": [ - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c" - ], - "data": "0x", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "transactionHash": "0x32f8b16313e97a9c1d602e596f2cf79db666b8f7d40fc11f2f3fefb265f3c2e4", - "transactionIndex": "0xa", - "logIndex": "0x13", - "removed": false - }, - { - "address": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "topics": [ - "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "transactionHash": "0x32f8b16313e97a9c1d602e596f2cf79db666b8f7d40fc11f2f3fefb265f3c2e4", - "transactionIndex": "0xa", - "logIndex": "0x14", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000001000000000000000400000000000000000000020000000000000000000800000000000000000080000000000000400000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000200000000000000000000000000000000000000040000002100000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0x32f8b16313e97a9c1d602e596f2cf79db666b8f7d40fc11f2f3fefb265f3c2e4", - "transactionIndex": "0xa", - "blockHash": "0x86116e9b1eb5812ea71eaa5736154eb270964c1d65962fe970244813e4bcfc3c", - "blockNumber": "0xb34291", - "gasUsed": "0x3edf7", - "effectiveGasPrice": "0xf0cae", - "from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c", - "to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e", - "contractAddress": null, - "l1BaseFeeScalar": "0x44d", - "l1BlobBaseFee": "0x1", - "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x61457aeb", - "l1GasPrice": "0x1fe00515", - "l1GasUsed": "0xad3" } ], "libraries": [], "pending": [], "returns": {}, - "timestamp": 1719264262, + "timestamp": 1719421133, "chain": 84532, - "commit": "5569a66" + "commit": "6cb07c2" } \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 73239b27..f4972b98 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/contracts/Quest.sol b/contracts/Quest.sol index 69916b29..083de1d4 100644 --- a/contracts/Quest.sol +++ b/contracts/Quest.sol @@ -63,13 +63,11 @@ contract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQue uint256 rewardAmountInWei_, string memory questId_, uint16 questFee_, - address protocolFeeRecipient_, - uint256 referralRewardFee_ + address protocolFeeRecipient_ ) external initializer { // Validate inputs if (endTime_ <= block.timestamp) revert EndTimeInPast(); if (endTime_ <= startTime_) revert EndTimeLessThanOrEqualToStartTime(); - if (referralRewardFee_ > 500) revert ReferralRewardFeeTooHigh(); // Maximum 5% // Process input parameters rewardToken = rewardTokenAddress_; @@ -80,13 +78,13 @@ contract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQue questId = questId_; questFee = questFee_; protocolFeeRecipient = protocolFeeRecipient_; - referralRewardFee = referralRewardFee_; // Setup default state questFactoryContract = IQuestFactory(payable(msg.sender)); queued = true; referralClaimTotal = 0; totalReferralsFeesClaimed = 0; + referralRewardFee = 250; // 2.5% _initializeOwner(msg.sender); __Pausable_init(); __ReentrancyGuard_init(); @@ -165,7 +163,7 @@ contract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQue protocolFeeRecipient.safeTransferETH(protocolPayout); // transfer reward tokens - uint256 protocolFeeForRecipient = (this.protocolFee() / 2) - referralClaimTotal; + uint256 protocolFeeForRecipient = this.protocolFee(); rewardToken.safeTransfer(protocolFeeRecipient, protocolFeeForRecipient); uint256 remainingBalanceForOwner = rewardToken.balanceOf(address(this)) - (referralClaimTotal - totalReferralsFeesClaimed); @@ -189,9 +187,9 @@ contract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQue /*////////////////////////////////////////////////////////////// EXTERNAL VIEW //////////////////////////////////////////////////////////////*/ - /// @dev The amount of tokens the quest needs to pay all redeemers plus the protocol fee + /// @dev The amount of tokens the quest creator needs to pay all redeemers, the protocol fee, and the referral fee function totalTransferAmount() external view returns (uint256) { - return this.maxTotalRewards() + this.maxProtocolReward(); + return this.maxTotalRewards() + this.maxProtocolReward() + this.maxReferralFee(); } /// @dev Function that gets the maximum amount of rewards that can be claimed by all users. It does not include the protocol fee @@ -207,6 +205,10 @@ contract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQue return (this.maxTotalRewards() * questFee) / 10_000; } + function maxReferralFee() external view returns (uint256) { + return (this.maxTotalRewards() * referralRewardFee) / 10_000; + } + /// @notice Function that calculates the protocol fee function protocolFee() external view returns (uint256) { return (_redeemedTokens() * rewardAmountInWei * questFee) / 10_000; diff --git a/contracts/QuestFactory.sol b/contracts/QuestFactory.sol index 9656be00..4302a78c 100644 --- a/contracts/QuestFactory.sol +++ b/contracts/QuestFactory.sol @@ -145,7 +145,48 @@ contract QuestFactory is Initializable, LegacyStorage, OwnableRoles, IQuestFacto /// @param actionType_ The action type for the quest /// @param questName_ The name of the quest /// @param projectName_ The name of the project/protocol used for the quest - /// @param referralRewardFee_ The fee amount for referrals. The value is counted against the `rewardAmount` + /// @return address the quest contract address + function createERC20Boost( + uint32 txHashChainId_, + address rewardTokenAddress_, + uint256 endTime_, + uint256 startTime_, + uint256 totalParticipants_, + uint256 rewardAmount_, + string memory questId_, + string memory actionType_, + string memory questName_, + string memory projectName_ + ) external checkQuest(questId_) returns (address) { + return createERC20QuestInternal( + ERC20QuestData( + txHashChainId_, + rewardTokenAddress_, + endTime_, + startTime_, + totalParticipants_, + rewardAmount_, + questId_, + actionType_, + questName_, + "erc20", + projectName_ + ) + ); + } + + /// @dev Create an erc20 quest and start it at the same time. The function will transfer the reward amount to the quest contract + /// @param txHashChainId_ The chain id of the chain the txHash is on + /// @param rewardTokenAddress_ The contract address of the reward token + /// @param endTime_ The end time of the quest + /// @param startTime_ The start time of the quest + /// @param totalParticipants_ The total amount of participants (accounts) the quest will have + /// @param rewardAmount_ The reward amount for an erc20 quest + /// @param questId_ The id of the quest + /// @param actionType_ The action type for the quest + /// @param questName_ The name of the quest + /// @param projectName_ The name of the project/protocol used for the quest + /// @param referralRewardFee_ The fee amount for referrals -- this is no longer used since we now have a flat 2.5% fee /// @return address the quest contract address function createERC20Quest( uint32 txHashChainId_, @@ -172,8 +213,7 @@ contract QuestFactory is Initializable, LegacyStorage, OwnableRoles, IQuestFacto actionType_, questName_, "erc20", - projectName_, - referralRewardFee_ + projectName_ ) ); } @@ -294,8 +334,7 @@ contract QuestFactory is Initializable, LegacyStorage, OwnableRoles, IQuestFacto actionType_, questName_, "erc20", - "", - 0 + "" ) ); } @@ -323,8 +362,7 @@ contract QuestFactory is Initializable, LegacyStorage, OwnableRoles, IQuestFacto "", "", "erc20", - "", - 0 + "" ) ); } @@ -840,8 +878,7 @@ contract QuestFactory is Initializable, LegacyStorage, OwnableRoles, IQuestFacto data_.rewardAmount, data_.questId, questFee, - protocolFeeRecipient, - data_.referralRewardFee + protocolFeeRecipient ); transferTokensAndOwnership(newQuest, data_.rewardTokenAddress); diff --git a/contracts/interfaces/IQuest.sol b/contracts/interfaces/IQuest.sol index 46f66989..93206294 100644 --- a/contracts/interfaces/IQuest.sol +++ b/contracts/interfaces/IQuest.sol @@ -24,7 +24,6 @@ interface IQuest { error OverMaxAllowedToMint(); error AddressAlreadyMinted(); error QuestEnded(); - error ReferralRewardFeeTooHigh(); error NoReferralFees(); function initialize( @@ -35,8 +34,7 @@ interface IQuest { uint256 rewardAmountInWei_, string memory questId_, uint16 questFee_, - address protocolFeeRecipient_, - uint256 referralRewardFee_ + address protocolFeeRecipient_ ) external; function getRewardAmount() external view returns (uint256); function getRewardToken() external view returns (address); diff --git a/contracts/interfaces/IQuestFactory.sol b/contracts/interfaces/IQuestFactory.sol index 359acf7c..d0358e84 100644 --- a/contracts/interfaces/IQuestFactory.sol +++ b/contracts/interfaces/IQuestFactory.sol @@ -89,7 +89,6 @@ interface IQuestFactory { string questName; string questType; string projectName; - uint256 referralRewardFee; } struct ERC1155QuestData { @@ -197,16 +196,18 @@ interface IQuestFactory { function questFee() external view returns (uint16); // Create - function create1155QuestAndQueue( + function createERC20Boost( + uint32 txHashChainId_, address rewardTokenAddress_, uint256 endTime_, uint256 startTime_, uint256 totalParticipants_, - uint256 tokenId_, + uint256 rewardAmount_, string memory questId_, - string memory - ) external payable returns (address); - + string memory actionType_, + string memory questName_, + string memory projectName_ + ) external returns (address); function createERC20Quest( uint32 txHashChainId_, address rewardTokenAddress_, @@ -214,13 +215,22 @@ interface IQuestFactory { uint256 startTime_, uint256 totalParticipants_, uint256 rewardAmount_, - string calldata questId_, - string calldata actionType_, - string calldata questName_, - string calldata projectName_, + string memory questId_, + string memory actionType_, + string memory questName_, + string memory projectName_, uint256 referralRewardFee_ ) external returns (address); + function create1155QuestAndQueue( + address rewardTokenAddress_, + uint256 endTime_, + uint256 startTime_, + uint256 totalParticipants_, + uint256 tokenId_, + string memory questId_, + string memory + ) external payable returns (address); function claimOptimized(bytes calldata signature_, bytes calldata data_) external payable; diff --git a/package.json b/package.json index 2d570d80..bd2b2d3e 100644 --- a/package.json +++ b/package.json @@ -1 +1 @@ -{ "dependencies": { "@openzeppelin/upgrades-core": "^1.30.0", "solhint": "^3.6.2" } } \ No newline at end of file +{ "dependencies": { "@openzeppelin/upgrades-core": "^1.34.1", "solhint": "^3.6.2" } } \ No newline at end of file diff --git a/test/Quest.t.sol b/test/Quest.t.sol index 50500089..84a3212f 100644 --- a/test/Quest.t.sol +++ b/test/Quest.t.sol @@ -24,7 +24,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { string QUEST_ID = "QUEST_ID"; uint16 QUEST_FEE = 2000; // 20% uint256 CLAIM_FEE = 999; - uint256 REFERRAL_REWARD_FEE = 500; // 5% + uint16 REFERRAL_REWARD_FEE = 250; // 2.5% address protocolFeeRecipient = makeAddr("protocolFeeRecipient"); address questFactoryMock; Quest quest; @@ -37,7 +37,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { string constant DEFAULT_ERC20_SYMBOL = "RTC"; function setUp() public { - defaultTotalRewardsPlusFee = calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, REWARD_AMOUNT_IN_WEI, QUEST_FEE); + defaultTotalRewardsPlusFee = calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, REWARD_AMOUNT_IN_WEI, QUEST_FEE, REFERRAL_REWARD_FEE); rewardTokenAddress = address( new SampleERC20( DEFAULT_ERC20_NAME, @@ -58,8 +58,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { REWARD_AMOUNT_IN_WEI, QUEST_ID, QUEST_FEE, - protocolFeeRecipient, - REFERRAL_REWARD_FEE + protocolFeeRecipient ); // Transfer all tokens to quest vm.prank(admin); @@ -97,8 +96,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { REWARD_AMOUNT_IN_WEI, QUEST_ID, QUEST_FEE, - protocolFeeRecipient, - REFERRAL_REWARD_FEE + protocolFeeRecipient ); } @@ -115,26 +113,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { REWARD_AMOUNT_IN_WEI, QUEST_ID, QUEST_FEE, - protocolFeeRecipient, - REFERRAL_REWARD_FEE - ); - } - - function test_RevertIf_initialize_ReferralRewardFeeTooHigh() public { - address payable questAddress = payable(address(new Quest()).cloneDeterministic(keccak256(abi.encodePacked(msg.sender, "SALT")))); - quest = Quest(questAddress); - vm.prank(questFactoryMock); - vm.expectRevert(abi.encodeWithSelector(ReferralRewardFeeTooHigh.selector)); - quest.initialize( - rewardTokenAddress, - END_TIME, - START_TIME, - TOTAL_PARTICIPANTS, - REWARD_AMOUNT_IN_WEI, - QUEST_ID, - QUEST_FEE, - protocolFeeRecipient, - 600 + protocolFeeRecipient ); } @@ -197,7 +176,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { currentTime = bound(currentTime, startTime, endTime - 1); rewardAmountInWei = bound(rewardAmountInWei, 1, REWARD_AMOUNT_IN_WEI * REWARD_AMOUNT_IN_WEI); // Setup a reward token with fuzzed rewardAmountInWei - defaultTotalRewardsPlusFee = calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, rewardAmountInWei, QUEST_FEE); + defaultTotalRewardsPlusFee = calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, rewardAmountInWei, QUEST_FEE, REFERRAL_REWARD_FEE); rewardTokenAddress = address( new SampleERC20( DEFAULT_ERC20_NAME, @@ -221,8 +200,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { rewardAmountInWei, QUEST_ID, QUEST_FEE, - protocolFeeRecipient, - REFERRAL_REWARD_FEE + protocolFeeRecipient ); // Transfer all tokens to quest vm.prank(admin); @@ -268,7 +246,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { // simulate ETH from TOTAL_PARTICIPANTS claims vm.deal(address(quest), (CLAIM_FEE * TOTAL_PARTICIPANTS * 2) / 3); - uint256 totalFees = calculateTotalFees(TOTAL_PARTICIPANTS, REWARD_AMOUNT_IN_WEI, QUEST_FEE) / 2; + uint256 totalFees = calculateTotalProtocolFees(TOTAL_PARTICIPANTS, REWARD_AMOUNT_IN_WEI, QUEST_FEE); uint256 questBalance = SampleERC20(rewardTokenAddress).balanceOf(address(quest)); uint256 questBalanceMinusFees = questBalance - totalFees; @@ -322,15 +300,13 @@ contract TestQuest is Test, TestUtils, Errors, Events { CLAIM REFERRAL FEES //////////////////////////////////////////////////////////////*/ - function test_fuzz_claimReferralFees(uint96 timestamp, uint256 participants, uint256 referralRewardFee) public { + function test_fuzz_claimReferralFees(uint96 timestamp, uint256 participants) public { timestamp = uint96(bound(timestamp, START_TIME+10, END_TIME)); participants = bound(participants, 1, TOTAL_PARTICIPANTS); - referralRewardFee = bound(referralRewardFee, 1, REFERRAL_REWARD_FEE); - vm.startPrank(admin); // Transfer the appropriate amount of Reward tokens to the quest based on fuzzed participants - defaultTotalRewardsPlusFee = calculateTotalRewardsPlusFee(participants, REWARD_AMOUNT_IN_WEI, QUEST_FEE); + defaultTotalRewardsPlusFee = calculateTotalRewardsPlusFee(participants, REWARD_AMOUNT_IN_WEI, QUEST_FEE, REFERRAL_REWARD_FEE); rewardTokenAddress = address( new SampleERC20( DEFAULT_ERC20_NAME, @@ -352,8 +328,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { REWARD_AMOUNT_IN_WEI, QUEST_ID, QUEST_FEE, - protocolFeeRecipient, - referralRewardFee + protocolFeeRecipient ); vm.startPrank(admin); @@ -421,7 +396,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { assertEq( protocolFeeRecipientBalance, - (quest.protocolFee() / 2) - quest.referralClaimTotal(), + quest.protocolFee(), "Protocol fee recipient should get their share of the rewards" ); @@ -432,15 +407,13 @@ contract TestQuest is Test, TestUtils, Errors, Events { ); } - function test_fuzz_claimReferralFees_withdrawAfterClaim(uint96 timestamp, uint256 participants, uint256 referralRewardFee) public { + function test_fuzz_claimReferralFees_withdrawAfterClaim(uint96 timestamp, uint256 participants) public { timestamp = uint96(bound(timestamp, START_TIME+10, END_TIME)); participants = bound(participants, 1, TOTAL_PARTICIPANTS); - referralRewardFee = bound(referralRewardFee, 1, REFERRAL_REWARD_FEE); - vm.startPrank(admin); // Transfer the appropriate amount of Reward tokens to the quest based on fuzzed participants - defaultTotalRewardsPlusFee = calculateTotalRewardsPlusFee(participants, REWARD_AMOUNT_IN_WEI, QUEST_FEE); + defaultTotalRewardsPlusFee = calculateTotalRewardsPlusFee(participants, REWARD_AMOUNT_IN_WEI, QUEST_FEE, REFERRAL_REWARD_FEE); rewardTokenAddress = address( new SampleERC20( DEFAULT_ERC20_NAME, @@ -462,8 +435,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { REWARD_AMOUNT_IN_WEI, QUEST_ID, QUEST_FEE, - protocolFeeRecipient, - referralRewardFee + protocolFeeRecipient ); vm.startPrank(admin); @@ -525,7 +497,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { assertEq( protocolFeeRecipientBalance, - (quest.protocolFee() / 2) - quest.referralClaimTotal(), + quest.protocolFee(), "Protocol fee recipient should get their share of the rewards" ); @@ -586,7 +558,7 @@ contract TestQuest is Test, TestUtils, Errors, Events { function test_maxProtocolReward() public { assertEq( quest.maxProtocolReward(), - calculateTotalFees(TOTAL_PARTICIPANTS, REWARD_AMOUNT_IN_WEI, QUEST_FEE), + calculateTotalProtocolFees(TOTAL_PARTICIPANTS, REWARD_AMOUNT_IN_WEI, QUEST_FEE), "maxProtocolReward should be correct" ); } diff --git a/test/QuestClaimable.t.sol b/test/QuestClaimable.t.sol index 9321aa8f..f26eb1d9 100644 --- a/test/QuestClaimable.t.sol +++ b/test/QuestClaimable.t.sol @@ -35,6 +35,7 @@ contract TestQuestClaimable is Test, Errors, Events, TestUtils { uint256 REWARD_AMOUNT = 10; uint16 QUEST_FEE = 2000; uint256 MINT_FEE = 100; + uint16 REFERRAL_REWARD_FEE = 250; address protocolFeeRecipient = makeAddr("protocolFeeRecipient"); address questCreator = makeAddr(("questCreator")); address participant = makeAddr(("participant")); @@ -71,8 +72,8 @@ contract TestQuestClaimable is Test, Errors, Events, TestUtils { //////////////////////////////////////////////////////////////*/ function test_claim_with_referrer() public { vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, REWARD_AMOUNT, QUEST_FEE, REFERRAL_REWARD_FEE)); + address questAddress = questFactory.createERC20Boost( 101, address(sampleERC20), END_TIME, @@ -82,8 +83,7 @@ contract TestQuestClaimable is Test, Errors, Events, TestUtils { "550e8400-e29b-41d4-a716-446655440000", "actionType", "questName", - "projectName", - 500 + "projectName" ); vm.warp(START_TIME + 1); @@ -108,8 +108,8 @@ contract TestQuestClaimable is Test, Errors, Events, TestUtils { function test_claim_without_referrer() public { referrer = address(0); vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, REWARD_AMOUNT, QUEST_FEE, REFERRAL_REWARD_FEE)); + address questAddress = questFactory.createERC20Boost( 101, address(sampleERC20), END_TIME, @@ -119,8 +119,7 @@ contract TestQuestClaimable is Test, Errors, Events, TestUtils { "550e8400-e29b-41d4-a716-446655440000", "actionType", "questName", - "projectName", - 500 + "projectName" ); vm.warp(START_TIME + 1); diff --git a/test/QuestFactory.t.sol b/test/QuestFactory.t.sol index 2c027625..69d7a2d0 100644 --- a/test/QuestFactory.t.sol +++ b/test/QuestFactory.t.sol @@ -32,7 +32,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { SampleERC1155 sampleERC1155; SampleERC20 sampleERC20; uint256 claimSignerPrivateKey; - uint16 REFERRAL_FEE = 2000; + uint16 REFERRAL_FEE = 250; uint256 NFT_QUEST_FEE = 10; uint16 QUEST_FEE = 2000; uint256 MINT_FEE = 100; @@ -48,8 +48,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { PROJECT_NAME: "projectName", CHAIN_ID : 7777777, TX_HASH : hex'7e1975a6bf513022a8cc382a3cdb1e1dbcd58ebb1cb9abf11e64aadb21262516', - JSON_MSG : '{"actionTxHashes":["0x7e1975a6bf513022a8cc382a3cdb1e1dbcd58ebb1cb9abf11e64aadb21262516"],"actionNetworkChainIds":[7777777],"actionType":"actionType"}', - REFERRAL_REWARD_FEE: 500 + JSON_MSG : '{"actionTxHashes":["0x7e1975a6bf513022a8cc382a3cdb1e1dbcd58ebb1cb9abf11e64aadb21262516"],"actionNetworkChainIds":[7777777],"actionType":"actionType"}' }); address protocolFeeRecipient = makeAddr("protocolFeeRecipient"); address questCreator = makeAddr(("questCreator")); @@ -63,7 +62,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { questFactory = QuestFactory(questFactoryAddress); sampleERC1155 = new SampleERC1155(); - sampleERC20 = new SampleERC20("name", "symbol", calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE), questCreator); + sampleERC20 = new SampleERC20("name", "symbol", calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE), questCreator); claimSignerPrivateKey = uint256(vm.envUint("TEST_CLAIM_SIGNER_PRIVATE_KEY")); vm.deal(owner, 1000000); vm.deal(participant, 1000000); @@ -117,14 +116,14 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { vm.stopPrank(); } - function test_createERC20Quest() public{ + function test_createERC20Boost() public{ vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); vm.expectEmit(true,false,true,true); emit QuestCreated(questCreator, address(0), QUEST.PROJECT_NAME, QUEST.QUEST_NAME, QUEST.QUEST_ID_STRING, "erc20", QUEST.ACTION_TYPE, QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, QUEST.START_TIME, QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT); - address questAddress = questFactory.createERC20Quest( + address questAddress = questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -134,22 +133,21 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); Quest quest = Quest(payable(questAddress)); assertEq(quest.startTime(), QUEST.START_TIME, "startTime should be set"); assertEq(quest.queued(), true, "queued should be set"); - assertEq(sampleERC20.balanceOf(address(quest)), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE), "balance should be set"); + assertEq(sampleERC20.balanceOf(address(quest)), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE), "balance should be set"); vm.stopPrank(); } - function test_RevertIf_createERC20Quest_QuestIdUsed() public{ + function test_RevertIf_createERC20Boost_QuestIdUsed() public{ vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -159,12 +157,11 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); vm.expectRevert(abi.encodeWithSelector(QuestIdUsed.selector)); - questFactory.createERC20Quest( + questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -174,20 +171,19 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); } - function test_RevertIf_createERC20Quest_Erc20QuestAddressNotSet() public{ + function test_RevertIf_createERC20Boost_Erc20QuestAddressNotSet() public{ vm.startPrank(owner); questFactory.setErc20QuestAddress(address(0)); vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); vm.expectRevert(abi.encodeWithSelector(Erc20QuestAddressNotSet.selector)); - questFactory.createERC20Quest( + questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -197,8 +193,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); } @@ -252,8 +247,8 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { vm.deal(participant, 1000000); vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + address questAddress = questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -263,8 +258,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); vm.warp(QUEST.START_TIME + 1); @@ -292,8 +286,8 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { vm.deal(participant, 1000000); vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + address questAddress = questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -303,8 +297,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); vm.warp(QUEST.START_TIME + 1); @@ -324,8 +317,8 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { function test_claimCompressed_erc20_with_ref() public{ vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + address questAddress = questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -335,8 +328,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); vm.warp(QUEST.START_TIME + 1); @@ -391,8 +383,8 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { function test_claimOptimized_revert_deprecated() public{ vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -402,8 +394,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); vm.warp(QUEST.START_TIME + 1); @@ -423,8 +414,8 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { function test_cancelQuest() public { vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + address questAddress = questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -434,8 +425,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); vm.startPrank(questCreator); @@ -448,8 +438,8 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { function test_cancelQuest_alreadyStarted() public { vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + address questAddress = questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -459,8 +449,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); vm.warp(QUEST.START_TIME + 1); @@ -474,8 +463,8 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { function test_cancelQuest_unauthorized() public { vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + address questAddress = questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -485,8 +474,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); vm.startPrank(anyone); @@ -499,8 +487,8 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { //////////////////////////////////////////////////////////////*/ function test_questData() public { vm.startPrank(questCreator); - sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE)); - address questAddress = questFactory.createERC20Quest( + sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE, REFERRAL_FEE)); + address questAddress = questFactory.createERC20Boost( QUEST.CHAIN_ID, address(sampleERC20), QUEST.END_TIME, @@ -510,8 +498,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils { QUEST.QUEST_ID_STRING, QUEST.ACTION_TYPE, QUEST.QUEST_NAME, - QUEST.PROJECT_NAME, - QUEST.REFERRAL_REWARD_FEE + QUEST.PROJECT_NAME ); IQuestFactory.QuestData memory questData = questFactory.questData(QUEST.QUEST_ID_STRING); diff --git a/test/helpers/QuestData.sol b/test/helpers/QuestData.sol index 4dbc980e..3f397b0a 100644 --- a/test/helpers/QuestData.sol +++ b/test/helpers/QuestData.sol @@ -18,7 +18,6 @@ contract QuestData is Test { bytes32 TX_HASH; string JSON_MSG; uint256 REWARD_AMOUNT; - uint256 REFERRAL_REWARD_FEE; } } diff --git a/test/helpers/TestUtils.sol b/test/helpers/TestUtils.sol index 1779ec8c..197992b2 100644 --- a/test/helpers/TestUtils.sol +++ b/test/helpers/TestUtils.sol @@ -8,17 +8,19 @@ contract TestUtils is Test { function calculateTotalRewardsPlusFee( uint256 totalParticipants, uint256 rewardAmount, - uint16 questFee + uint16 questFee, + uint16 referralFee ) internal pure returns (uint256) { return calculateTotalRewards(totalParticipants, rewardAmount) - + calculateTotalFees(totalParticipants, rewardAmount, questFee); + + calculateTotalProtocolFees(totalParticipants, rewardAmount, questFee) + + calculateTotalReferralFees(totalParticipants, rewardAmount, referralFee); } function calculateTotalRewards(uint256 totalParticipants, uint256 rewardAmount) internal pure returns (uint256) { return totalParticipants * rewardAmount; } - function calculateTotalFees( + function calculateTotalProtocolFees( uint256 totalParticipants, uint256 rewardAmount, uint16 questFee @@ -26,6 +28,14 @@ contract TestUtils is Test { return (totalParticipants * rewardAmount * questFee) / 10_000; } + function calculateTotalReferralFees( + uint256 totalParticipants, + uint256 rewardAmount, + uint16 referralFee + ) internal pure returns (uint256) { + return (totalParticipants * rewardAmount * referralFee) / 10_000; + } + function signHash(bytes32 msgHash, uint256 privateKey) internal pure returns (bytes memory) { bytes32 digest = ECDSA.toEthSignedMessageHash(msgHash); (uint8 v, bytes32 r, bytes32 s) = vm.sign(privateKey, digest); diff --git a/test/mocks/QuestFactoryMock.sol b/test/mocks/QuestFactoryMock.sol index 0d6c5bdf..2e066b1e 100644 --- a/test/mocks/QuestFactoryMock.sol +++ b/test/mocks/QuestFactoryMock.sol @@ -57,7 +57,7 @@ contract QuestFactoryMock { return false; } - function questFee() external view returns (uint16) { + function questFee() external pure returns (uint16) { return 2000; }