Source Code
Overview
APE Balance
APE Value
$0.00Multichain Info
N/A
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
HellyHustle
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
/**
* @title HellyHustle
* @notice Upgradeable controller for starting "flights" for selected NFT collections WITHOUT on-chain ownership checks.
* - Owner-only admin for all setters (security-first).
* - Per-user daily flight caps (0 = unlimited).
* - Event/day system: arm start time, set day length, toggle public, and manual day override (owner).
* - User wipe and global mass wipe (epoch bump; O(1), no loops).
* - Whitelist add/remove for allowed collections (+ view getters).
* - Gas-lean stats (total flights, unique pilots, per-user counters, per-collection counters).
* - Fuel wallet: contract-controlled wallet to burn micro APE to a configurable sink; rescue functions included.
* - 12 ultra-cheap, public "emit-only" helicopter-themed ops for fun telemetry.
*
* @dev UUPS upgradeable; storage layout stable; no unbounded loops.
*/
import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import { ReentrancyGuardUpgradeable } from "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol";
import { FuelWallet } from "./FuelWallet.sol";
interface IFuelWalletOwner {
function owner() external view returns (address);
}
contract HellyHustle is Initializable, UUPSUpgradeable, OwnableUpgradeable, ReentrancyGuardUpgradeable {
/*──────────────────────────────*
* ERRORS *
*──────────────────────────────*/
error ZeroAddress();
error NotActive(); // publicActive == false and caller is not owner
error CapExceeded(); // per-user daily cap exceeded
error NotStarted(); // activation not armed yet (for day-based reads)
error DayLengthZero(); // invalid day length
error AlreadyStarted(); // defined; currently unused
error SendFailed();
error CapTooLarge();
error NotWhitelisted();
error BatchTooLarge();
error FuelWalletOwnershipInvalid();
error InvalidFuelWalletImpl(); // <- NEW: wallet must match trusted runtime codehash
/*──────────────────────────────*
* EVENTS *
*──────────────────────────────*/
/// @notice Emitted when a user starts a flight.
event FlightStarted(address indexed pilot, address indexed collection, uint256 dayIndex, bytes32 clientTag);
/// @notice Admin settings & toggles.
event TreasurySet(address indexed treasury);
event PublicActiveSet(bool active);
event EventArmed(uint256 startTs, uint256 dayLength);
event ManualDayOverrideSet(bool on, uint256 value);
event PerUserDailyCapSet(uint256 cap);
event UsageEpochBumped(uint256 newEpoch);
event UpgradesEnabledSet(bool on);
/// @notice Whitelist management.
event CollectionWhitelisted(address indexed collection, bool allowed);
/// @notice Fuel wallet configuration & burns.
event FuelWalletCreated(address indexed wallet);
event FuelWalletSet(address indexed wallet);
event BurnSinkSet(address indexed sink, uint256 amountWei);
event FuelBurned(address indexed sink, uint256 amountWei);
/// @notice 12 ultra-cheap emit ops (just events; no storage writes).
event WarmRotors(address indexed caller, bytes32 tag);
event SpinUp(address indexed caller, bytes32 tag);
event LoadFuel(address indexed caller, bytes32 tag);
event LiftOff(address indexed caller, bytes32 tag);
event BankLeft(address indexed caller, bytes32 tag);
event BankRight(address indexed caller, bytes32 tag);
event AutoHover(address indexed caller, bytes32 tag);
event GainAltitude(address indexed caller, bytes32 tag);
event LoseAltitude(address indexed caller, bytes32 tag);
event EngageMagneto(address indexed caller, bytes32 tag);
event DeploySkids(address indexed caller, bytes32 tag);
event CutEngine(address indexed caller, bytes32 tag);
/*──────────────────────────────*
* STORAGE *
*──────────────────────────────*/
// --- Core config ---
address private _treasury; // reserved for future fees or sinks
bool private _publicActive; // when false, only owner may start flights (for testing/ops)
uint256 private _activationStart; // unix seconds when event starts
uint256 private _dayLength; // length of one "day" in seconds (e.g., 86400 = 24h)
// Manual day override (admin may present a different "day index" to the system)
bool private _dayOverrideOn;
uint256 private _dayOverrideValue;
// Per-user cap (0 = unlimited)
uint256 private _perUserDailyCap;
// Mass-wipe epoch (bump to reset everyone without loops)
uint64 private _usageEpoch;
// --- Usage counters: per user only (per your spec) ---
struct Daily {
uint256 dayIndex; // which day these counts correspond to
uint64 used; // number of flights used that day
uint64 epoch; // to support global wipes
}
mapping(address => Daily) private _userDaily;
// --- Stats ---
uint256 private _totalFlights;
uint256 private _uniquePilots;
mapping(address => bool) private _seenPilot;
mapping(address => uint256) private _flightsByUser;
mapping(address => uint256) private _lastFlightAt;
mapping(address => uint256) private _flightsByCollection;
// --- Whitelist ---
mapping(address => bool) private _isWhitelisted;
address[] private _whitelistList; // for read-all helper
mapping(address => uint256) private _whitelistIndex; // 1-based index for O(1) remove
// --- Fuel wallet / burn sink ---
FuelWallet private _fuelWallet; // contract-owned wallet
address private _burnSink; // default: address(0)
uint256 private _burnAmountWei; // amount to burn per call
// --- Upgrade switch ---
bool private _upgradesEnabled;
// --- NEW: trusted runtime codehash for FuelWallet implementation ---
bytes32 private _fuelWalletCodehash;
// Storage gap for upgrades (reduced by 1 to account for the new slot above)
uint256[38] private __gap;
/*──────────────────────────────*
* INITIALIZE *
*──────────────────────────────*/
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() { _disableInitializers(); }
/**
* @notice One-time initializer. Sets owner (msg.sender), treasury (optional), creates FuelWallet.
* @param treasury_ Optional treasury address for future use (can be zero and set later).
*/
function initialize(address treasury_) external initializer {
__UUPSUpgradeable_init();
__Ownable_init(msg.sender);
__ReentrancyGuard_init();
if (treasury_ != address(0)) {
_treasury = treasury_;
emit TreasurySet(treasury_);
}
// Defaults
_publicActive = false;
_dayLength = 86400; // 24h default
_usageEpoch = 1;
// Create the fuel wallet owned by this contract
_fuelWallet = new FuelWallet(address(this));
emit FuelWalletCreated(address(_fuelWallet));
// Record the canonical runtime codehash of the wallet we just created
_fuelWalletCodehash = _codehash(address(_fuelWallet));
// Upgrades enabled by default
_upgradesEnabled = true;
emit UpgradesEnabledSet(true);
}
function _authorizeUpgrade(address) internal view override onlyOwner {
if (!_upgradesEnabled) revert NotActive();
}
/*──────────────────────────────*
* ADMIN *
* (owner-only, no loops) *
*──────────────────────────────*/
/// @notice Enable/disable upgrades (safety switch).
function setUpgradesEnabled(bool on) external onlyOwner {
_upgradesEnabled = on;
emit UpgradesEnabledSet(on);
}
/// @notice Set treasury (reserved for future fees/sinks).
function setTreasury(address t) external onlyOwner {
_treasury = t;
emit TreasurySet(t);
}
/// @notice Toggle public mode. When false, only owner can start flights.
function setPublicActive(bool on) external onlyOwner {
_publicActive = on;
emit PublicActiveSet(on);
}
/**
* @notice Arm (or re-arm) the event day system.
* @param startTs Start timestamp (0 = now).
* @param dayLength Seconds per day (>0).
*/
function armEvent(uint256 startTs, uint256 dayLength) external onlyOwner {
if (dayLength == 0) revert DayLengthZero();
uint256 s = startTs == 0 ? block.timestamp : startTs;
_activationStart = s;
_dayLength = dayLength;
emit EventArmed(s, dayLength);
}
/// @notice Manually override the day index reported by the contract (UX/admin control).
function setManualDayIndex(uint256 newIndex) external onlyOwner {
_dayOverrideOn = true;
_dayOverrideValue = newIndex;
emit ManualDayOverrideSet(true, newIndex);
}
/// @notice Clear manual day index override (revert to computed day index).
function clearManualDayIndex() external onlyOwner {
_dayOverrideOn = false;
emit ManualDayOverrideSet(false, 0);
}
/// @notice Set the per-user daily cap (0 = unlimited).
function setPerUserDailyCap(uint256 cap) external onlyOwner {
if (cap > type(uint64).max) revert CapTooLarge();
_perUserDailyCap = cap;
emit PerUserDailyCapSet(cap);
}
/// @notice Mass wipe: bump global usage epoch to reset all users.
function bumpUsageEpoch() external onlyOwner {
_usageEpoch += 1;
emit UsageEpochBumped(_usageEpoch);
}
/// @notice Wipe a single user's usage (today) by resetting their counters to current day & epoch.
function wipeUser(address user) external onlyOwner {
(uint256 cdi, ) = _currentDayIndexView();
_userDaily[user] = Daily({ dayIndex: cdi, used: 0, epoch: _usageEpoch });
}
/* ───── Whitelist management ───── */
function setCollectionWhitelist(address collection, bool allowed) public onlyOwner {
if (collection == address(0)) revert ZeroAddress();
bool was = _isWhitelisted[collection];
_isWhitelisted[collection] = allowed;
if (allowed && !was) {
_whitelistList.push(collection);
_whitelistIndex[collection] = _whitelistList.length; // 1-based
} else if (!allowed && was) {
// O(1) remove from list by swap & pop
uint256 idx = _whitelistIndex[collection];
if (idx != 0) {
uint256 last = _whitelistList.length;
if (idx != last) {
address moved = _whitelistList[last - 1];
_whitelistList[idx - 1] = moved;
_whitelistIndex[moved] = idx;
}
_whitelistList.pop();
_whitelistIndex[collection] = 0;
}
}
emit CollectionWhitelisted(collection, allowed);
}
function setCollectionWhitelistBatch(address[] calldata collections, bool allowed) external onlyOwner {
if (collections.length > 500) revert BatchTooLarge();
for (uint256 i; i < collections.length; ) {
setCollectionWhitelist(collections[i], allowed);
unchecked { ++i; }
}
}
/* ───── Fuel wallet & burns ───── */
/// @notice Replace fuel wallet (e.g., after migration). New wallet must set owner to this contract.
function setFuelWallet(address wallet) external onlyOwner {
if (wallet == address(0)) revert ZeroAddress();
// Require contract code to be present and match our trusted runtime codehash
bytes32 ch = _codehash(wallet);
if (ch == bytes32(0)) revert InvalidFuelWalletImpl();
if (ch != _fuelWalletCodehash) revert InvalidFuelWalletImpl();
// And the wallet must recognize this HellyHustle as its owner
if (IFuelWalletOwner(wallet).owner() != address(this)) revert FuelWalletOwnershipInvalid();
_fuelWallet = FuelWallet(payable(wallet));
emit FuelWalletSet(wallet);
}
/// @notice Configure burn sink (destination) and per-tx amount (wei).
function setBurnConfig(address sink, uint256 amountWei) external onlyOwner {
_burnSink = sink; // can be zero-address if you want
_burnAmountWei = amountWei; // can be zero (no-op burns)
emit BurnSinkSet(sink, amountWei);
}
/// @notice Burn fuel: send the configured amount from FuelWallet to the sink. Owner-only.
function burnFuel(uint256 times) external onlyOwner nonReentrant {
if (_burnAmountWei == 0 || times == 0) return; // no-op
address sink = _burnSink;
uint256 total = _burnAmountWei * times;
_fuelWallet.send(payable(sink), total);
emit FuelBurned(sink, total);
}
/// @notice Rescue native APE from the FuelWallet to any address. Owner-only.
function rescueFuelWalletETH(address to, uint256 amount) external onlyOwner nonReentrant {
_fuelWallet.send(payable(to), amount);
}
/// @notice Rescue ERC20 from the FuelWallet to any address. Owner-only.
function rescueFuelWalletERC20(address token, address to, uint256 amount) external onlyOwner nonReentrant {
_fuelWallet.rescueERC20(token, to, amount);
}
/*──────────────────────────────*
* USER ENTRY *
* (No ownership checks, per spec)
*──────────────────────────────*/
/**
* @notice Start a flight for a whitelisted collection. No token ownership checks are performed.
* @param collection The NFT collection address user chose to "fly for".
* @param clientTag Optional short tag from your frontend (e.g., UI or session hint).
*
* Requirements:
* - `collection` must be whitelisted.
* - Public mode must be active, unless caller is the owner (owner bypass enables private testing).
* - Per-user daily cap enforced if configured (>0).
*/
function startFlight(address collection, bytes32 clientTag) external nonReentrant {
if (!_publicActive && msg.sender != owner()) revert NotActive();
if (!_isWhitelisted[collection]) revert NotWhitelisted();
(uint256 cdi, bool started) = _currentDayIndexView();
if (!started) revert NotStarted();
// roll counters & enforce cap
Daily memory d = _userDaily[msg.sender];
if (d.epoch != _usageEpoch) {
d.epoch = _usageEpoch; d.dayIndex = cdi; d.used = 0;
} else if (d.dayIndex != cdi) {
d.dayIndex = cdi; d.used = 0;
}
if (_perUserDailyCap > 0) {
uint64 next = d.used + 1;
if (next > _perUserDailyCap) revert CapExceeded();
d.used = next;
} else {
// unlimited: still bump to have meaningful "used" data; prevent wrap
if (d.used == type(uint64).max) revert CapExceeded();
unchecked { d.used += 1; }
}
_userDaily[msg.sender] = d;
// stats
unchecked { _totalFlights += 1; }
if (!_seenPilot[msg.sender]) { _seenPilot[msg.sender] = true; unchecked { _uniquePilots += 1; } }
unchecked { _flightsByUser[msg.sender] += 1; }
_lastFlightAt[msg.sender] = block.timestamp;
unchecked { _flightsByCollection[collection] += 1; }
emit FlightStarted(msg.sender, collection, cdi, clientTag);
}
/*──────────────────────────────*
* ULTRA-LOW-GAS OPS *
* (public, stateless emitters)
*──────────────────────────────*/
/// @notice Emit-only helpers for telemetry; no storage writes; open to all.
/// @dev External + single LOG op; hyper cheap. No reentrancy guard needed.
function warmRotors(bytes32 tag) external { emit WarmRotors(msg.sender, tag); }
function spinUp(bytes32 tag) external { emit SpinUp(msg.sender, tag); }
function loadFuel(bytes32 tag) external { emit LoadFuel(msg.sender, tag); }
function liftOff(bytes32 tag) external { emit LiftOff(msg.sender, tag); }
function bankLeft(bytes32 tag) external { emit BankLeft(msg.sender, tag); }
function bankRight(bytes32 tag) external { emit BankRight(msg.sender, tag); }
function autoHover(bytes32 tag) external { emit AutoHover(msg.sender, tag); }
function gainAltitude(bytes32 tag) external { emit GainAltitude(msg.sender, tag); }
function loseAltitude(bytes32 tag) external { emit LoseAltitude(msg.sender, tag); }
function engageMagneto(bytes32 tag) external { emit EngageMagneto(msg.sender, tag); }
function deploySkids(bytes32 tag) external { emit DeploySkids(msg.sender, tag); }
function cutEngine(bytes32 tag) external { emit CutEngine(msg.sender, tag); }
/*──────────────────────────────*
* VIEWS *
*──────────────────────────────*/
/// @notice Return whether the contract is publicly active.
function publicActive() external view returns (bool) { return _publicActive; }
/// @notice Return treasury address (reserved for future use).
function treasury() external view returns (address) { return _treasury; }
/// @notice Return fuel wallet address.
function fuelWallet() external view returns (address) { return address(_fuelWallet); }
/// @notice Burn sink and per-tx burn amount (wei).
function burnConfig() external view returns (address sink, uint256 amountWei) { return (_burnSink, _burnAmountWei); }
/// @notice Event scheduling info.
function activationInfo() external view returns (uint256 startTs, uint256 dayLength, bool publicOn) {
return (_activationStart, _dayLength, _publicActive);
}
/// @notice Current day index and whether the event is considered "started".
function currentDayIndex() external view returns (uint256 dayIndex, bool started) {
return _currentDayIndexView();
}
/// @notice Per-user daily usage (today) and epoch.
function usageToday(address user) external view returns (uint256 used, uint256 dayIndex, uint256 epoch) {
(uint256 cdi, bool started) = _currentDayIndexView();
if (!started) return (0, 0, _usageEpoch);
Daily memory d = _userDaily[user];
if (d.epoch != _usageEpoch || d.dayIndex != cdi) return (0, cdi, _usageEpoch);
return (d.used, cdi, d.epoch);
}
/// @notice Current per-user daily cap (0 = unlimited).
function perUserDailyCap() external view returns (uint256) { return _perUserDailyCap; }
/// @notice Stats read helpers.
function totalFlights() external view returns (uint256) { return _totalFlights; }
function uniquePilots() external view returns (uint256) { return _uniquePilots; }
function flightsByUser(address user) external view returns (uint256) { return _flightsByUser[user]; }
function lastFlightAt(address user) external view returns (uint256) { return _lastFlightAt[user]; }
function flightsByCollection(address collection) external view returns (uint256) { return _flightsByCollection[collection]; }
/// @notice Whitelist read helpers.
function isWhitelisted(address collection) external view returns (bool) { return _isWhitelisted[collection]; }
function getWhitelistedCollections() external view returns (address[] memory list) { return _whitelistList; }
/*──────────────────────────────*
* INTERNAL *
*──────────────────────────────*/
function _currentDayIndexView() internal view returns (uint256 dayIndex, bool started) {
if (_dayOverrideOn) return (_dayOverrideValue, true);
if (_activationStart == 0 || _dayLength == 0) return (0, false);
if (block.timestamp < _activationStart) return (0, false);
uint256 idx = (block.timestamp - _activationStart) / _dayLength;
return (idx, true);
}
/// @dev Internal helper to read runtime codehash of an address.
function _codehash(address a) internal view returns (bytes32 h) {
assembly { h := extcodehash(a) }
}
/// @notice Reject direct native APE transfers to this contract.
receive() external payable {
revert SendFailed();
}
/// @notice One-time setter to backfill the trusted FuelWallet codehash after upgrading from v1.
/// Reverts if already set. Call this once as the owner.
function setFuelWalletCodehashOnce() external onlyOwner {
if (_fuelWalletCodehash != bytes32(0)) revert InvalidFuelWalletImpl();
_fuelWalletCodehash = _codehash(address(_fuelWallet));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
/// @custom:storage-location erc7201:openzeppelin.storage.Ownable
struct OwnableStorage {
address _owner;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;
function _getOwnableStorage() private pure returns (OwnableStorage storage $) {
assembly {
$.slot := OwnableStorageLocation
}
}
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
function __Ownable_init(address initialOwner) internal onlyInitializing {
__Ownable_init_unchained(initialOwner);
}
function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
OwnableStorage storage $ = _getOwnableStorage();
return $._owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
OwnableStorage storage $ = _getOwnableStorage();
address oldOwner = $._owner;
$._owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.20;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Storage of the initializable contract.
*
* It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
* when using with upgradeable contracts.
*
* @custom:storage-location erc7201:openzeppelin.storage.Initializable
*/
struct InitializableStorage {
/**
* @dev Indicates that the contract has been initialized.
*/
uint64 _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool _initializing;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;
/**
* @dev The contract is already initialized.
*/
error InvalidInitialization();
/**
* @dev The contract is not initializing.
*/
error NotInitializing();
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint64 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
* number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
* production.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
// Cache values to avoid duplicated sloads
bool isTopLevelCall = !$._initializing;
uint64 initialized = $._initialized;
// Allowed calls:
// - initialSetup: the contract is not in the initializing state and no previous version was
// initialized
// - construction: the contract is initialized at version 1 (no reinitialization) and the
// current contract is just being deployed
bool initialSetup = initialized == 0 && isTopLevelCall;
bool construction = initialized == 1 && address(this).code.length == 0;
if (!initialSetup && !construction) {
revert InvalidInitialization();
}
$._initialized = 1;
if (isTopLevelCall) {
$._initializing = true;
}
_;
if (isTopLevelCall) {
$._initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint64 version) {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
if ($._initializing || $._initialized >= version) {
revert InvalidInitialization();
}
$._initialized = version;
$._initializing = true;
_;
$._initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
_checkInitializing();
_;
}
/**
* @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
*/
function _checkInitializing() internal view virtual {
if (!_isInitializing()) {
revert NotInitializing();
}
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
if ($._initializing) {
revert InvalidInitialization();
}
if ($._initialized != type(uint64).max) {
$._initialized = type(uint64).max;
emit Initialized(type(uint64).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint64) {
return _getInitializableStorage()._initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _getInitializableStorage()._initializing;
}
/**
* @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.
*
* NOTE: Consider following the ERC-7201 formula to derive storage locations.
*/
function _initializableStorageSlot() internal pure virtual returns (bytes32) {
return INITIALIZABLE_STORAGE;
}
/**
* @dev Returns a pointer to the storage namespace.
*/
// solhint-disable-next-line var-name-mixedcase
function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
bytes32 slot = _initializableStorageSlot();
assembly {
$.slot := slot
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)
pragma solidity ^0.8.22;
import {IERC1822Proxiable} from "@openzeppelin/contracts/interfaces/draft-IERC1822.sol";
import {ERC1967Utils} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol";
import {Initializable} from "./Initializable.sol";
/**
* @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
* {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
*
* A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
* reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
* `UUPSUpgradeable` with a custom implementation of upgrades.
*
* The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
*/
abstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {
/// @custom:oz-upgrades-unsafe-allow state-variable-immutable
address private immutable __self = address(this);
/**
* @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`
* and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,
* while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.
* If the getter returns `"5.0.0"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must
* be the empty byte string if no function should be called, making it impossible to invoke the `receive` function
* during an upgrade.
*/
string public constant UPGRADE_INTERFACE_VERSION = "5.0.0";
/**
* @dev The call is from an unauthorized context.
*/
error UUPSUnauthorizedCallContext();
/**
* @dev The storage `slot` is unsupported as a UUID.
*/
error UUPSUnsupportedProxiableUUID(bytes32 slot);
/**
* @dev Check that the execution is being performed through a delegatecall call and that the execution context is
* a proxy contract with an implementation (as defined in ERC-1967) pointing to self. This should only be the case
* for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
* function through ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
* fail.
*/
modifier onlyProxy() {
_checkProxy();
_;
}
/**
* @dev Check that the execution is not being performed through a delegate call. This allows a function to be
* callable on the implementing contract but not through proxies.
*/
modifier notDelegated() {
_checkNotDelegated();
_;
}
function __UUPSUpgradeable_init() internal onlyInitializing {
}
function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
}
/**
* @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the
* implementation. It is used to validate the implementation's compatibility when performing an upgrade.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
*/
function proxiableUUID() external view virtual notDelegated returns (bytes32) {
return ERC1967Utils.IMPLEMENTATION_SLOT;
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
* encoded in `data`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, data);
}
/**
* @dev Reverts if the execution is not performed via delegatecall or the execution
* context is not of a proxy with an ERC-1967 compliant implementation pointing to self.
*/
function _checkProxy() internal view virtual {
if (
address(this) == __self || // Must be called through delegatecall
ERC1967Utils.getImplementation() != __self // Must be called through an active proxy
) {
revert UUPSUnauthorizedCallContext();
}
}
/**
* @dev Reverts if the execution is performed via delegatecall.
* See {notDelegated}.
*/
function _checkNotDelegated() internal view virtual {
if (address(this) != __self) {
// Must not be called through delegatecall
revert UUPSUnauthorizedCallContext();
}
}
/**
* @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
* {upgradeToAndCall}.
*
* Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
*
* ```solidity
* function _authorizeUpgrade(address) internal onlyOwner {}
* ```
*/
function _authorizeUpgrade(address newImplementation) internal virtual;
/**
* @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.
*
* As a security check, {proxiableUUID} is invoked in the new implementation, and the return value
* is expected to be the implementation slot in ERC-1967.
*
* Emits an {IERC1967-Upgraded} event.
*/
function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {
try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {
revert UUPSUnsupportedProxiableUUID(slot);
}
ERC1967Utils.upgradeToAndCall(newImplementation, data);
} catch {
// The implementation is not UUPS
revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuardUpgradeable is Initializable {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
/// @custom:storage-location erc7201:openzeppelin.storage.ReentrancyGuard
struct ReentrancyGuardStorage {
uint256 _status;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ReentrancyGuard")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant ReentrancyGuardStorageLocation = 0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;
function _getReentrancyGuardStorage() private pure returns (ReentrancyGuardStorage storage $) {
assembly {
$.slot := ReentrancyGuardStorageLocation
}
}
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
function __ReentrancyGuard_init() internal onlyInitializing {
__ReentrancyGuard_init_unchained();
}
function __ReentrancyGuard_init_unchained() internal onlyInitializing {
ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();
$._status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();
// On the first call to nonReentrant, _status will be NOT_ENTERED
if ($._status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
$._status = ENTERED;
}
function _nonReentrantAfter() private {
ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
$._status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();
return $._status == ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)
pragma solidity >=0.4.16;
/**
* @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
* proxy whose upgrades are fully controlled by the current implementation.
*/
interface IERC1822Proxiable {
/**
* @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
* address.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy.
*/
function proxiableUUID() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)
pragma solidity >=0.4.11;
/**
* @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
*/
interface IERC1967 {
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Emitted when the beacon is changed.
*/
event BeaconUpgraded(address indexed beacon);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)
pragma solidity >=0.4.16;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {UpgradeableBeacon} will check that this address is a contract.
*/
function implementation() external view returns (address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)
pragma solidity ^0.8.21;
import {IBeacon} from "../beacon/IBeacon.sol";
import {IERC1967} from "../../interfaces/IERC1967.sol";
import {Address} from "../../utils/Address.sol";
import {StorageSlot} from "../../utils/StorageSlot.sol";
/**
* @dev This library provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.
*/
library ERC1967Utils {
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev The `implementation` of the proxy is invalid.
*/
error ERC1967InvalidImplementation(address implementation);
/**
* @dev The `admin` of the proxy is invalid.
*/
error ERC1967InvalidAdmin(address admin);
/**
* @dev The `beacon` of the proxy is invalid.
*/
error ERC1967InvalidBeacon(address beacon);
/**
* @dev An upgrade function sees `msg.value > 0` that may be lost.
*/
error ERC1967NonPayable();
/**
* @dev Returns the current implementation address.
*/
function getImplementation() internal view returns (address) {
return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the ERC-1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
if (newImplementation.code.length == 0) {
revert ERC1967InvalidImplementation(newImplementation);
}
StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Performs implementation upgrade with additional setup call if data is nonempty.
* This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
* to avoid stuck value in the contract.
*
* Emits an {IERC1967-Upgraded} event.
*/
function upgradeToAndCall(address newImplementation, bytes memory data) internal {
_setImplementation(newImplementation);
emit IERC1967.Upgraded(newImplementation);
if (data.length > 0) {
Address.functionDelegateCall(newImplementation, data);
} else {
_checkNonPayable();
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Returns the current admin.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using
* the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
*/
function getAdmin() internal view returns (address) {
return StorageSlot.getAddressSlot(ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the ERC-1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
if (newAdmin == address(0)) {
revert ERC1967InvalidAdmin(address(0));
}
StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {IERC1967-AdminChanged} event.
*/
function changeAdmin(address newAdmin) internal {
emit IERC1967.AdminChanged(getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Returns the current beacon.
*/
function getBeacon() internal view returns (address) {
return StorageSlot.getAddressSlot(BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the ERC-1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
if (newBeacon.code.length == 0) {
revert ERC1967InvalidBeacon(newBeacon);
}
StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;
address beaconImplementation = IBeacon(newBeacon).implementation();
if (beaconImplementation.code.length == 0) {
revert ERC1967InvalidImplementation(beaconImplementation);
}
}
/**
* @dev Change the beacon and trigger a setup call if data is nonempty.
* This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
* to avoid stuck value in the contract.
*
* Emits an {IERC1967-BeaconUpgraded} event.
*
* CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since
* it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for
* efficiency.
*/
function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {
_setBeacon(newBeacon);
emit IERC1967.BeaconUpgraded(newBeacon);
if (data.length > 0) {
Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
} else {
_checkNonPayable();
}
}
/**
* @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract
* if an upgrade doesn't perform an initialization call.
*/
function _checkNonPayable() private {
if (msg.value > 0) {
revert ERC1967NonPayable();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, bytes memory returndata) = recipient.call{value: amount}("");
if (!success) {
_revert(returndata);
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {Errors.FailedCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance(address(this).balance, value);
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
* of an unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {Errors.FailedCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly ("memory-safe") {
revert(add(returndata, 0x20), mload(returndata))
}
} else {
revert Errors.FailedCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC-1967 implementation slot:
* ```solidity
* contract ERC1967 {
* // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* TIP: Consider using this library along with {SlotDerivation}.
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct Int256Slot {
int256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Int256Slot` with member `value` located at `slot`.
*/
function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
assembly ("memory-safe") {
r.slot := store.slot
}
}
/**
* @dev Returns a `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
assembly ("memory-safe") {
r.slot := store.slot
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
/**
* @title FuelWallet
* @notice Minimal owned wallet that can hold native APE and (optionally) ERC20s.
* Owner is expected to be the HellyHustle main contract. Only owner can move funds.
* @dev Keep this contract tiny: no storage loops, no external calls beyond sends on owner request.
*/
interface IERC20Minimal {
function balanceOf(address) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
}
contract FuelWallet {
error NotOwner();
error SendFailed();
error ZeroAddress();
address public owner; // HellyHustle contract
event OwnerSet(address indexed newOwner);
event Sent(address indexed to, uint256 amount);
event RescuedERC20(address indexed token, address indexed to, uint256 amount);
constructor(address _owner) {
if (_owner == address(0)) revert ZeroAddress();
owner = _owner;
emit OwnerSet(_owner);
}
modifier onlyOwner() {
if (msg.sender != owner) revert NotOwner();
_;
}
/// @notice Accept native APE.
receive() external payable {}
/**
* @notice One-time or admin rotation: change owner (must be called by current owner).
* @dev Intended for controlled hand-offs during upgrades or migrations.
*/
function setOwner(address _newOwner) external onlyOwner {
if (_newOwner == address(0)) revert ZeroAddress();
owner = _newOwner;
emit OwnerSet(_newOwner);
}
/**
* @notice Send native APE out. Only owner (main contract) can instruct this wallet.
*/
function send(address payable to, uint256 amount) external onlyOwner {
if (to == address(0)) revert ZeroAddress();
(bool ok, ) = to.call{value: amount}("");
if (!ok) revert SendFailed();
emit Sent(to, amount);
}
/**
* @notice Rescue ERC20 tokens to an address. Only owner.
* @dev Compatible with non-standard ERC-20s that do not return a bool.
*/
function rescueERC20(address token, address to, uint256 amount) external onlyOwner {
if (token == address(0) || to == address(0)) revert ZeroAddress();
(bool ok, bytes memory data) = token.call(abi.encodeWithSelector(IERC20Minimal.transfer.selector, to, amount));
if (!ok || (data.length != 0 && !abi.decode(data, (bool)))) revert SendFailed();
emit RescuedERC20(token, to, amount);
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"viaIR": true,
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[],"name":"AlreadyStarted","type":"error"},{"inputs":[],"name":"BatchTooLarge","type":"error"},{"inputs":[],"name":"CapExceeded","type":"error"},{"inputs":[],"name":"CapTooLarge","type":"error"},{"inputs":[],"name":"DayLengthZero","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[],"name":"FuelWalletOwnershipInvalid","type":"error"},{"inputs":[],"name":"InvalidFuelWalletImpl","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotActive","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"NotStarted","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"SendFailed","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"AutoHover","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"BankLeft","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"BankRight","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sink","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountWei","type":"uint256"}],"name":"BurnSinkSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"bool","name":"allowed","type":"bool"}],"name":"CollectionWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"CutEngine","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"DeploySkids","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"EngageMagneto","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startTs","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dayLength","type":"uint256"}],"name":"EventArmed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pilot","type":"address"},{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"dayIndex","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"clientTag","type":"bytes32"}],"name":"FlightStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sink","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountWei","type":"uint256"}],"name":"FuelBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"FuelWalletCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"FuelWalletSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"GainAltitude","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"LiftOff","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"LoadFuel","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"LoseAltitude","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"on","type":"bool"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ManualDayOverrideSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cap","type":"uint256"}],"name":"PerUserDailyCapSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"PublicActiveSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"SpinUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"treasury","type":"address"}],"name":"TreasurySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"on","type":"bool"}],"name":"UpgradesEnabledSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newEpoch","type":"uint256"}],"name":"UsageEpochBumped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"WarmRotors","type":"event"},{"inputs":[],"name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activationInfo","outputs":[{"internalType":"uint256","name":"startTs","type":"uint256"},{"internalType":"uint256","name":"dayLength","type":"uint256"},{"internalType":"bool","name":"publicOn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTs","type":"uint256"},{"internalType":"uint256","name":"dayLength","type":"uint256"}],"name":"armEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"autoHover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"bankLeft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"bankRight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bumpUsageEpoch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnConfig","outputs":[{"internalType":"address","name":"sink","type":"address"},{"internalType":"uint256","name":"amountWei","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"times","type":"uint256"}],"name":"burnFuel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearManualDayIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentDayIndex","outputs":[{"internalType":"uint256","name":"dayIndex","type":"uint256"},{"internalType":"bool","name":"started","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"cutEngine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"deploySkids","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"engageMagneto","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"flightsByCollection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"flightsByUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fuelWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"gainAltitude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getWhitelistedCollections","outputs":[{"internalType":"address[]","name":"list","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"treasury_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"lastFlightAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"liftOff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"loadFuel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"loseAltitude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"perUserDailyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFuelWalletERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFuelWalletETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sink","type":"address"},{"internalType":"uint256","name":"amountWei","type":"uint256"}],"name":"setBurnConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setCollectionWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setCollectionWhitelistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"setFuelWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setFuelWalletCodehashOnce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newIndex","type":"uint256"}],"name":"setManualDayIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"setPerUserDailyCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"on","type":"bool"}],"name":"setPublicActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"on","type":"bool"}],"name":"setUpgradesEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"spinUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"bytes32","name":"clientTag","type":"bytes32"}],"name":"startFlight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalFlights","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniquePilots","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"usageToday","outputs":[{"internalType":"uint256","name":"used","type":"uint256"},{"internalType":"uint256","name":"dayIndex","type":"uint256"},{"internalType":"uint256","name":"epoch","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"tag","type":"bytes32"}],"name":"warmRotors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"wipeUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60a080604052346100cc57306080527ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009081549060ff8260401c166100bd57506001600160401b036002600160401b031982821601610078575b6040516129e890816100d282396080518181816117bf01526118af0152f35b6001600160401b031990911681179091556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a1388080610059565b63f92ee8a960e01b8152600490fd5b600080fdfe60808060405260043610156200002f575b5036156200001d57600080fd5b6040516381063e5160e01b8152600490fd5b600090813560e01c9081630a71bf2e1462001fd2575080630f36600a1462001f8d5780630fbd252d1462001eea57806317262fa11462001eca578063194c643f1462001c17578063229f20821462001bd25780632a0a8d4a1462001bb25780632d79af1c1462001b6d5780633af32abf1462001b2a5780633f2981cf1462001b0357806344452a891462001ad85780634bf02e7a1462001ab85780634f1ef286146200182a57806352d1902d14620017aa57806357622c64146200176557806361d027b3146200173c578063715018a614620016cd57806372d1b779146200147257806373028e81146200142d57806374008d7614620013e8578063795db53814620013825780637a4c4395146200134857806380432fec1462001310578063843d7d7214620012c55780638aca408c14620012535780638b0279d214620011855780638b63a32b14620010fc5780638da5cb5b14620010c357806399e01edf1462001050578063a37ee7fd1462000f93578063ab43b62a1462000f4e578063ad310bc51462000f11578063ad3cb1cc1462000e67578063b828aa831462000e38578063b8b033d51462000d6d578063b93c36e91462000d28578063bd4f60251462000ce3578063bf83591d1462000c9e578063c1d5c0691462000c61578063c4d66de814620009a8578063c66f12ee1462000963578063d8dafb4a14620006ea578063d9a36b8a14620006a5578063dbb8cc461462000678578063de422fe6146200061f578063f0f4426014620005b3578063f1621e6d1462000534578063f1c3291c14620004f7578063f27a854614620003b8578063f2fde38b1462000383578063f6464d76146200031e5763fdd930d5036200001057346200031b5760203660031901126200031b57600435620002c862002333565b6001600160401b03811162000309576020817f8dc0398a6b349053441cf90989bb01cee30895e15656d762c9ed16fb25464e6492600555604051908152a180f35b604051630123fa5360e01b8152600490fd5b80fd5b50346200031b5760203660031901126200031b577fc163e51870f7f931b6f6a83941cffd9657f12ca1b70444d35518bb449ce3438460406004356200036262002333565b600160ff19600354161760035580600455815190600182526020820152a180f35b50346200031b5760203660031901126200031b57620003b5620003a56200200c565b620003af62002333565b620022bd565b80f35b50346200031b5760203660031901126200031b57620003d66200200c565b620003e062002333565b6001600160a01b03818116918215620004e5573f8015620004d35760155403620004d357604051638da5cb5b60e01b815290602082600481865afa918215620004c857849262000480575b50309116036200046e57601180546001600160a01b031916821790557fab6029f36540e6ba6b51a5f2af8c7dc2870977ddc64e05873cf35bb29b16259a8280a280f35b604051630cc80fbb60e41b8152600490fd5b9091506020813d602011620004bf575b816200049f6020938362002078565b81010312620004bb57518181168103620004bb5790386200042b565b8380fd5b3d915062000490565b6040513d86823e3d90fd5b60405163c337e3e960e01b8152600490fd5b60405163d92e233d60e01b8152600490fd5b50346200031b5760203660031901126200031b576020906040906001600160a01b03620005236200200c565b168152600c83522054604051908152f35b50346200031b5760403660031901126200031b57620005526200200c565b7fd893e93acc9f9c0bf4314165e4ccd1d3b6bb1817eeb71fcd50811911aad916b66020602435926200058362002333565b60018060a01b031692836bffffffffffffffffffffffff60a01b601254161760125580601355604051908152a280f35b50346200031b5760203660031901126200031b57620005d16200200c565b620005db62002333565b81546001600160a01b0319166001600160a01b039190911690811782557f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f8280a280f35b50346200031b57806003193601126200031b576200063c62002333565b60ff19600354166003557fc163e51870f7f931b6f6a83941cffd9657f12ca1b70444d35518bb449ce3438460408051838152836020820152a180f35b50346200031b57806003193601126200031b576040620006976200236e565b825191825215156020820152f35b50346200031b5760203660031901126200031b5760405160043581527ff8769931b41192e7f4b37496fce7879a87db1310b5b7999ae39430d88fdf8a7760203392a280f35b50346200031b5760403660031901126200031b57620007086200200c565b62000712620023e2565b60ff825460a01c1615806200093f575b6200092d576001600160a01b0316808252600e6020908152604083205490919060ff16156200091b57620007556200236e565b156200090957338452600783526040842092604051620007758162002048565b8454808252600180960154916001600160401b03908185820194818116865260401c16866040830194828652846006541680931415600014620008f557505083528581528884525b600554908115620008d65782620007d781875116620021f5565b16918211620008c457889185525b338a526007865260408a20905181550192511667ffffffffffffffff60401b8354925160401b16916001600160801b031916171790558360085401600855600a81526040852084815460ff811615620008ac575b505050600b815260408520848154019055600c8152426040862055828552600d815260408520848154019055604051918252602435908201527fdd135bbd9db676d73e24743b98500cfd2e4e4ecb203a63234dd601a1881fee3e60403392a3600080516020620029738339815191525580f35b60ff1916179055836009540160095538848162000839565b60405163a4875a4960e01b8152600490fd5b9050818085511614620008c457879082828187511601168552620007e5565b149050620007bd57858152888452620007bd565b604051636f312cbd60e01b8152600490fd5b604051630b094f2760e31b8152600490fd5b604051634065aaf160e11b8152600490fd5b5060008051602062002953833981519152546001600160a01b031633141562000722565b50346200031b5760203660031901126200031b5760405160043581527fb92c06cd9a459f4a47f8cf2b7bc19b7684fb7f739d2cb652050c2338930870b760203392a280f35b50346200031b5760203660031901126200031b57620009c66200200c565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0080549160ff8360401c1615906001600160401b038085169485158062000c59575b6001809714908162000c4e575b15908162000c44575b5062000c325767ffffffffffffffff198082168717865586918562000c12575b5062000a4962002414565b62000a5362002414565b62000a5d62002414565b62000a6833620022bd565b62000a7262002414565b62000a7c62002414565b600080516020620029738339815191528290556001600160a01b039384168062000bd7575b5060ff60a01b19885416885562015180600255600654161760065560405190610494808301918383109083111762000bc3576020918391620024bf833930815203019086f0801562000bb8577f62a55d82800973e2a7fa57176abe09392dd2b8bed39b19bf3fa00a12b877778a916020911686601154826bffffffffffffffffffffffff60a01b821617601155161760405190807f15783e80b10e5969cc67cf145041219cdb9bc16d7754db3330269bbeae919e978980a23f6015558560ff196014541617601455858152a162000b76578280f35b805468ff0000000000000000191690556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a138808280f35b6040513d87823e3d90fd5b634e487b7160e01b88526041600452602488fd5b88546001600160a01b031916811789557f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f8980a23862000aa1565b68ffffffffffffffffff1916680100000000000000011786553862000a3e565b60405163f92ee8a960e01b8152600490fd5b9050153862000a1e565b303b15915062000a15565b508362000a08565b50346200031b5760203660031901126200031b57606062000c8b62000c856200200c565b6200220e565b9060405192835260208301526040820152f35b50346200031b5760203660031901126200031b5760405160043581527f689ac3e099490425114eb9710241f3398fcfdc9eee9384fd360d016c39f4e55860203392a280f35b50346200031b5760203660031901126200031b5760405160043581527ffc730677d62c4bfd8e927e15fcc547ea3227802d871fbf20e92aedc6b563dcea60203392a280f35b50346200031b5760203660031901126200031b5760405160043581527fffb0fd758d9ce6e9aa3341175188eeeb11f842e2267f235c1a06354ec250f48560203392a280f35b50346200031b5760403660031901126200031b578062000d8c6200200c565b62000d9662002333565b62000da0620023e2565b6011546001600160a01b0390811691823b1562000e3357604051633419e74d60e21b815291166001600160a01b03166004820152602480359082015290829082908183816044810103925af1801562000e285762000e10575b506001600080516020620029738339815191525580f35b62000e1b9062002064565b6200031b57803862000df9565b6040513d84823e3d90fd5b505050fd5b50346200031b57806003193601126200031b57604060018060a01b036012541660135482519182526020820152f35b50346200031b57806003193601126200031b57604051604081018181106001600160401b0382111762000efb5760405260058152602091640352e302e360dc1b602083015260405192839160208352835191826020850152815b83811062000ee357505060408094508284010152601f80199101168101030190f35b80860182015187820160400152869450810162000ec1565b634e487b7160e01b600052604160045260246000fd5b50346200031b5760203660031901126200031b576020906040906001600160a01b0362000f3d6200200c565b168152600d83522054604051908152f35b50346200031b5760203660031901126200031b5760405160043581527fc9ec6be37acbaf58c6fbc0e923c9d93f65a2a1815cb91643b83bf6a8a5fffa7a60203392a280f35b50346200031b5760603660031901126200031b5762000fb16200200c565b6024356001600160a01b038181169284928490036200104c5762000fd462002333565b62000fde620023e2565b816011541690813b15620004bb5783606492604051968795869463b2118a8d60e01b8652166004850152602484015260443560448401525af1801562000e28576200103a57506001600080516020620029738339815191525580f35b620010459062002064565b3862000df9565b8280fd5b50346200031b57806003193601126200031b576200106d62002333565b7fdc270e54078000ee3e3ca3fe689823eb184d2198c3564d4384ea959680220f7460206006546001600160401b03620010a8818316620021f5565b1680916001600160401b03191617600655604051908152a180f35b50346200031b57806003193601126200031b5760008051602062002953833981519152546040516001600160a01b039091168152602090f35b50346200031b5760403660031901126200031b576024356004356200112062002333565b811562001173577f1a3073350cb205c57725084e6e0e2376c591d72ef8ca4ad39db83c730df2bb7791604091806200116c575042905b816001558060025582519182526020820152a180f35b9062001156565b6040516349c426ab60e11b8152600490fd5b50346200031b57806003193601126200031b576040518091600f549081835260208093018092600f83527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80290835b818110620012355750505084620011ec91038562002078565b60405193838594850191818652518092526040850193925b8281106200121457505050500390f35b83516001600160a01b03168552869550938101939281019260010162001204565b82546001600160a01b031684529286019260019283019201620011d3565b50346200031b5760203660031901126200031b577f3f7643017ca66d9d75a5e4ccaffe8249fa4baf7e7631008e80961b449a791fcb60206200129462002038565b6200129e62002333565b835460ff60a01b191690151560a081901b60ff60a01b16919091178455604051908152a180f35b50346200031b5760203660031901126200031b57620012e362002333565b620012ed620023e2565b620012fa60043562002104565b6001600080516020620029738339815191525580f35b50346200031b57806003193601126200031b576200132d62002333565b601554620004d3576011546001600160a01b03163f60155580f35b50346200031b57806003193601126200031b576060906001549060ff600254915460a01c1690604051928352602083015215156040820152f35b50346200031b5760203660031901126200031b577f62a55d82800973e2a7fa57176abe09392dd2b8bed39b19bf3fa00a12b877778a6020620013c362002038565b620013cd62002333565b151560ff196014541660ff821617601455604051908152a180f35b50346200031b5760203660031901126200031b5760405160043581527f346db3634ac6cc75cf93d2bd1d4245fff3934c15c660335b24e0c933da37223e60203392a280f35b50346200031b5760203660031901126200031b5760405160043581527f9f1f0d12ab513a7d47cca7a1bbc86f3dabd8cdbd9e99dda42f01ab5ba0c8000d60203392a280f35b50346200031b5760403660031901126200031b57620014906200200c565b6200149a62002028565b620014a462002333565b6001600160a01b03828116929091908315620004e557838552602092600e845260408620620014e48460ff835416929060ff801983541691151516179055565b8380620016c4575b156200157b575050600f54600160401b8110156200156757600080516020620029938339815191529392916200152d8260016200154b9401600f55620020b6565b90919060018060a01b038084549260031b9316831b921b1916179055565b600f548486526010835260408620555b6040519015158152a280f35b634e487b7160e01b86526041600452602486fd5b90915082159081620016bb575b50620015a8575b509060008051602062002993833981519152916200155b565b6010835260408520549081620015c0575b506200158f565b600f549081830362001642575b505050600f5480156200162e576000805160206200299383398151915292919060001901620016156200160082620020b6565b81549060018060a01b039060031b1b19169055565b600f5583855260108252846040812055909138620015b9565b634e487b7160e01b85526031600452602485fd5b60001991808301908111620016a7576200165c90620020b6565b90549060031b1c169082018281116200169357816200152d6200167f92620020b6565b8552601083526040852055388080620015cd565b634e487b7160e01b87526011600452602487fd5b634e487b7160e01b88526011600452602488fd5b90503862001588565b508015620014ec565b50346200031b57806003193601126200031b57620016ea62002333565b6000805160206200295383398151915280546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346200031b57806003193601126200031b57546040516001600160a01b039091168152602090f35b50346200031b5760203660031901126200031b5760405160043581527fc4192d66e128b96e7fa4e8c891d3e2c5356129056b426dc980d073113091219a60203392a280f35b50346200031b57806003193601126200031b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163003620018185760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b60405163703e46dd60e11b8152600490fd5b5060403660031901126200031b57620018426200200c565b60249182356001600160401b03811162001ab4573660238201121562001ab457806004013562001872816200209a565b9362001882604051958662002078565b818552602091828601933688838301011162001ab057818692898693018737870101526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811630811490811562001a81575b506200181857620018ec62002333565b60ff60145416156200092d578116946040516352d1902d60e01b815283816004818a5afa86918162001a48575b506200193757604051634c9c8ce360e01b8152600481018890528890fd5b8690887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9182810362001a335750843b1562001a1d575080546001600160a01b031916821790556040518692917fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8480a2815115620019fe5750620019f09482915190845af4903d15620019f4573d620019d1816200209a565b90620019e1604051928362002078565b81528581943d92013e62002456565b5080f35b6060925062002456565b9450505050503462001a0e575080f35b63b398979f60e01b8152600490fd5b604051634c9c8ce360e01b815260048101849052fd5b60405190632a87526960e21b82526004820152fd5b9091508481813d831162001a79575b62001a63818362002078565b8101031262001a755751903862001919565b8680fd5b503d62001a57565b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416141538620018dc565b8580fd5b5080fd5b50346200031b57806003193601126200031b576020600854604051908152f35b50346200031b57806003193601126200031b576011546040516001600160a01b039091168152602090f35b50346200031b57806003193601126200031b5760ff6020915460a01c166040519015158152f35b50346200031b5760203660031901126200031b5760209060ff906040906001600160a01b0362001b596200200c565b168152600e84522054166040519015158152f35b50346200031b5760203660031901126200031b5760405160043581527f4fc9f5de4cd25a559ac9f9d198da068c09368c6c6ea3cb290ab002eda9b66a4260203392a280f35b50346200031b57806003193601126200031b576020600554604051908152f35b50346200031b5760203660031901126200031b5760405160043581527f4ff5d9093e7f52941c1dd47d39e4b001385bf4c39fccdd351983c1980a7f64e360203392a280f35b50346200031b5760403660031901126200031b576001600160401b03806004351162001ab45736602360043501121562001ab45760043560040135116200031b573660246004356004013560051b6004350101116200031b5762001c7a62002028565b62001c8462002333565b6101f4600435600401351162001eb857815b60043560040135811062001ca8578280f35b600435600582901b01602401356001600160a01b03808216820362001eb45762001cd162002333565b80821615620004e5578181168552600e60205260408520805485151560ff90811660ff1983161790925516848062001eab575b1562001d805750600f8054600160401b81101562001d6c578392600080516020620029938339815191529262001d49600197966200152d858a602097018555620020b6565b5481851689526010835260408920555b6040519387151585521692a20162001c96565b634e487b7160e01b87526041600452602487fd5b8415908162001ea2575b5062001dae575b906000805160206200299383398151915260206001949362001d59565b60108060205260408620548062001dc8575b505062001d91565b600f90815480820362001e3b575b50508054801562001e27579260008051602062002993833981519152926020926001979695600019019062001e0f6200160083620020b6565b55818516895282528760408120559293945062001dc0565b634e487b7160e01b88526031600452602488fd5b6000199080820190811162001e8e5762001e568691620020b6565b90549060031b1c1690828181011162001e8e57816200152d62001e7b928501620020b6565b8852826020526040882055388062001dd6565b634e487b7160e01b8a52601160045260248afd5b90503862001d8a565b50801562001d04565b8480fd5b6040516305beb17160e11b8152600490fd5b50346200031b57806003193601126200031b576020600954604051908152f35b50346200031b5760203660031901126200031b5762001f086200200c565b62001f1262002333565b62001f1c6200236e565b506001600160401b0360018160065416926040519062001f3c8262002048565b8152602081019486865260408201948552828060a01b03168652600760205260408620905181550192511667ffffffffffffffff60401b8354925160401b16916001600160801b0319161717905580f35b50346200031b5760203660031901126200031b5760405160043581527f9c4e57adec6c5fe512f993f0a70975c5799b1e8ae9f9f27164f056cfd93a920960203392a280f35b90503462001ab457602036600319011262001ab4576020916040906001600160a01b0362001fff6200200c565b168152600b845220548152f35b600435906001600160a01b03821682036200202357565b600080fd5b6024359081151582036200202357565b6004359081151582036200202357565b606081019081106001600160401b0382111762000efb57604052565b6001600160401b03811162000efb57604052565b90601f801991011681019081106001600160401b0382111762000efb57604052565b6001600160401b03811162000efb57601f01601f191660200190565b600f54811015620020ee57600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020190600090565b634e487b7160e01b600052603260045260246000fd5b6013548015808015620021ec575b620021e7576012546001600160a01b0390811693838102939192918404141715620021d1576011541690813b156200202357604051633419e74d60e21b81526001600160a01b038416600482015260248101829052916000908390604490829084905af1908115620021c5577f6aef86b0f414cebcfa1683b40548e91ef7e0fc5dc66ad9b998758c1d51ce379292602092620021b3575b50604051908152a2565b620021be9062002064565b38620021a9565b6040513d6000823e3d90fd5b634e487b7160e01b600052601160045260246000fd5b505050565b50821562002112565b9060016001600160401b0380931601918211620021d157565b90620022196200236e565b92909215620022a5579060409160018060a01b0316600052600760205281600020825190620022488262002048565b60018154918284520154916001600160401b03908180851694856020840152871c1695869101526006541690858286149182159262002299575b50506200228f5750929190565b9250506000929190565b14159050853862002282565b5090506001600160401b036006541660009160009190565b6001600160a01b039081169081156200231a576000805160206200295383398151915280546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b604051631e4fbdf760e01b815260006004820152602490fd5b60008051602062002953833981519152546001600160a01b031633036200235657565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60035416620023d95760015480158015620023ce575b620023c557804210620023c5574203428111620021d157600254908115620023af570490600190565b634e487b7160e01b600052601260045260246000fd5b50600090600090565b506002541562002386565b60045490600190565b600080516020620029738339815191526002815414620024025760029055565b604051633ee5aeb560e01b8152600490fd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c16156200244457565b604051631afcd79f60e31b8152600490fd5b906200247f57508051156200246d57602081519101fd5b60405163d6bda27560e01b8152600490fd5b81511580620024b4575b62002492575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156200248956fe6080346100b057601f61049438819003918201601f19168301916001600160401b038311848410176100b5578084926020946040528339810103126100b057516001600160a01b038116908190036100b057801561009e57600080546001600160a01b0319168217815560405191907f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe29080a26103c890816100cc8239f35b60405163d92e233d60e01b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040818152600480361015610021575b505050361561001f57600080fd5b005b600092833560e01c90816313af403514610285575080638da5cb5b14610259578063b2118a8d146101075763d0679d340361001157346101035781600319360112610103576001600160a01b038135818116939192908490036100ff576024359285541633036100f15783156100e3578480808086885af16100a1610331565b50156100d557507f510ffb4dcab972ae9d2007a58e13f1b0881776d23cd8f5cc32f8c5be2dbf70d29160209151908152a280f35b90516381063e5160e01b8152fd5b905163d92e233d60e01b8152fd5b90516330cd747160e01b8152fd5b8480fd5b8280fd5b503461010357606036600319011261010357610121610316565b906024359260018060a01b03918285168095036102555760443592808754163303610246578416938415801561023e575b61022f578251602081019063a9059cbb60e01b8252876024820152856044820152604481526080810181811067ffffffffffffffff82111761021c57855251889283929083905af16101a2610331565b90159081156101df575b506100d557507f2c5650189f92c7058626efc371b51fe7e71f37dacb696bc7cad0b1320931974a9160209151908152a380f35b80518015159250826101f4575b5050386101ac565b819250906020918101031261021857602001518015908115036102185738806101ec565b8680fd5b634e487b7160e01b8a526041855260248afd5b50905163d92e233d60e01b8152fd5b508515610152565b5090516330cd747160e01b8152fd5b8580fd5b505034610281578160031936011261028157905490516001600160a01b039091168152602090f35b5080fd5b91905034610312576020366003190112610312576102a1610316565b8454926001600160a01b03919082851633036103045750169283156102f75750506001600160a01b031916811782557f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe28280a280f35b5163d92e233d60e01b8152fd5b6330cd747160e01b81528390fd5b8380fd5b600435906001600160a01b038216820361032c57565b600080fd5b3d1561038d5767ffffffffffffffff903d8281116103775760405192601f8201601f19908116603f01168401908111848210176103775760405282523d6000602084013e565b634e487b7160e01b600052604160045260246000fd5b60609056fea2646970667358221220195cc4d68d048d257b8ae1d547c77a368b22650e3ffbbbd1c5dcfc21d810d1c764736f6c634300081800339016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993009b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0039921e5677c943b0b7f6c29ab86b823c5daa404cb1a0a7e470670595761803c7a26469706673582212204c721a2a5bce3706b41c41c405a2401a62b64d407d2fb7232825e8ddc369d9ec64736f6c63430008180033
Deployed Bytecode
0x60808060405260043610156200002f575b5036156200001d57600080fd5b6040516381063e5160e01b8152600490fd5b600090813560e01c9081630a71bf2e1462001fd2575080630f36600a1462001f8d5780630fbd252d1462001eea57806317262fa11462001eca578063194c643f1462001c17578063229f20821462001bd25780632a0a8d4a1462001bb25780632d79af1c1462001b6d5780633af32abf1462001b2a5780633f2981cf1462001b0357806344452a891462001ad85780634bf02e7a1462001ab85780634f1ef286146200182a57806352d1902d14620017aa57806357622c64146200176557806361d027b3146200173c578063715018a614620016cd57806372d1b779146200147257806373028e81146200142d57806374008d7614620013e8578063795db53814620013825780637a4c4395146200134857806380432fec1462001310578063843d7d7214620012c55780638aca408c14620012535780638b0279d214620011855780638b63a32b14620010fc5780638da5cb5b14620010c357806399e01edf1462001050578063a37ee7fd1462000f93578063ab43b62a1462000f4e578063ad310bc51462000f11578063ad3cb1cc1462000e67578063b828aa831462000e38578063b8b033d51462000d6d578063b93c36e91462000d28578063bd4f60251462000ce3578063bf83591d1462000c9e578063c1d5c0691462000c61578063c4d66de814620009a8578063c66f12ee1462000963578063d8dafb4a14620006ea578063d9a36b8a14620006a5578063dbb8cc461462000678578063de422fe6146200061f578063f0f4426014620005b3578063f1621e6d1462000534578063f1c3291c14620004f7578063f27a854614620003b8578063f2fde38b1462000383578063f6464d76146200031e5763fdd930d5036200001057346200031b5760203660031901126200031b57600435620002c862002333565b6001600160401b03811162000309576020817f8dc0398a6b349053441cf90989bb01cee30895e15656d762c9ed16fb25464e6492600555604051908152a180f35b604051630123fa5360e01b8152600490fd5b80fd5b50346200031b5760203660031901126200031b577fc163e51870f7f931b6f6a83941cffd9657f12ca1b70444d35518bb449ce3438460406004356200036262002333565b600160ff19600354161760035580600455815190600182526020820152a180f35b50346200031b5760203660031901126200031b57620003b5620003a56200200c565b620003af62002333565b620022bd565b80f35b50346200031b5760203660031901126200031b57620003d66200200c565b620003e062002333565b6001600160a01b03818116918215620004e5573f8015620004d35760155403620004d357604051638da5cb5b60e01b815290602082600481865afa918215620004c857849262000480575b50309116036200046e57601180546001600160a01b031916821790557fab6029f36540e6ba6b51a5f2af8c7dc2870977ddc64e05873cf35bb29b16259a8280a280f35b604051630cc80fbb60e41b8152600490fd5b9091506020813d602011620004bf575b816200049f6020938362002078565b81010312620004bb57518181168103620004bb5790386200042b565b8380fd5b3d915062000490565b6040513d86823e3d90fd5b60405163c337e3e960e01b8152600490fd5b60405163d92e233d60e01b8152600490fd5b50346200031b5760203660031901126200031b576020906040906001600160a01b03620005236200200c565b168152600c83522054604051908152f35b50346200031b5760403660031901126200031b57620005526200200c565b7fd893e93acc9f9c0bf4314165e4ccd1d3b6bb1817eeb71fcd50811911aad916b66020602435926200058362002333565b60018060a01b031692836bffffffffffffffffffffffff60a01b601254161760125580601355604051908152a280f35b50346200031b5760203660031901126200031b57620005d16200200c565b620005db62002333565b81546001600160a01b0319166001600160a01b039190911690811782557f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f8280a280f35b50346200031b57806003193601126200031b576200063c62002333565b60ff19600354166003557fc163e51870f7f931b6f6a83941cffd9657f12ca1b70444d35518bb449ce3438460408051838152836020820152a180f35b50346200031b57806003193601126200031b576040620006976200236e565b825191825215156020820152f35b50346200031b5760203660031901126200031b5760405160043581527ff8769931b41192e7f4b37496fce7879a87db1310b5b7999ae39430d88fdf8a7760203392a280f35b50346200031b5760403660031901126200031b57620007086200200c565b62000712620023e2565b60ff825460a01c1615806200093f575b6200092d576001600160a01b0316808252600e6020908152604083205490919060ff16156200091b57620007556200236e565b156200090957338452600783526040842092604051620007758162002048565b8454808252600180960154916001600160401b03908185820194818116865260401c16866040830194828652846006541680931415600014620008f557505083528581528884525b600554908115620008d65782620007d781875116620021f5565b16918211620008c457889185525b338a526007865260408a20905181550192511667ffffffffffffffff60401b8354925160401b16916001600160801b031916171790558360085401600855600a81526040852084815460ff811615620008ac575b505050600b815260408520848154019055600c8152426040862055828552600d815260408520848154019055604051918252602435908201527fdd135bbd9db676d73e24743b98500cfd2e4e4ecb203a63234dd601a1881fee3e60403392a3600080516020620029738339815191525580f35b60ff1916179055836009540160095538848162000839565b60405163a4875a4960e01b8152600490fd5b9050818085511614620008c457879082828187511601168552620007e5565b149050620007bd57858152888452620007bd565b604051636f312cbd60e01b8152600490fd5b604051630b094f2760e31b8152600490fd5b604051634065aaf160e11b8152600490fd5b5060008051602062002953833981519152546001600160a01b031633141562000722565b50346200031b5760203660031901126200031b5760405160043581527fb92c06cd9a459f4a47f8cf2b7bc19b7684fb7f739d2cb652050c2338930870b760203392a280f35b50346200031b5760203660031901126200031b57620009c66200200c565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0080549160ff8360401c1615906001600160401b038085169485158062000c59575b6001809714908162000c4e575b15908162000c44575b5062000c325767ffffffffffffffff198082168717865586918562000c12575b5062000a4962002414565b62000a5362002414565b62000a5d62002414565b62000a6833620022bd565b62000a7262002414565b62000a7c62002414565b600080516020620029738339815191528290556001600160a01b039384168062000bd7575b5060ff60a01b19885416885562015180600255600654161760065560405190610494808301918383109083111762000bc3576020918391620024bf833930815203019086f0801562000bb8577f62a55d82800973e2a7fa57176abe09392dd2b8bed39b19bf3fa00a12b877778a916020911686601154826bffffffffffffffffffffffff60a01b821617601155161760405190807f15783e80b10e5969cc67cf145041219cdb9bc16d7754db3330269bbeae919e978980a23f6015558560ff196014541617601455858152a162000b76578280f35b805468ff0000000000000000191690556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a138808280f35b6040513d87823e3d90fd5b634e487b7160e01b88526041600452602488fd5b88546001600160a01b031916811789557f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f8980a23862000aa1565b68ffffffffffffffffff1916680100000000000000011786553862000a3e565b60405163f92ee8a960e01b8152600490fd5b9050153862000a1e565b303b15915062000a15565b508362000a08565b50346200031b5760203660031901126200031b57606062000c8b62000c856200200c565b6200220e565b9060405192835260208301526040820152f35b50346200031b5760203660031901126200031b5760405160043581527f689ac3e099490425114eb9710241f3398fcfdc9eee9384fd360d016c39f4e55860203392a280f35b50346200031b5760203660031901126200031b5760405160043581527ffc730677d62c4bfd8e927e15fcc547ea3227802d871fbf20e92aedc6b563dcea60203392a280f35b50346200031b5760203660031901126200031b5760405160043581527fffb0fd758d9ce6e9aa3341175188eeeb11f842e2267f235c1a06354ec250f48560203392a280f35b50346200031b5760403660031901126200031b578062000d8c6200200c565b62000d9662002333565b62000da0620023e2565b6011546001600160a01b0390811691823b1562000e3357604051633419e74d60e21b815291166001600160a01b03166004820152602480359082015290829082908183816044810103925af1801562000e285762000e10575b506001600080516020620029738339815191525580f35b62000e1b9062002064565b6200031b57803862000df9565b6040513d84823e3d90fd5b505050fd5b50346200031b57806003193601126200031b57604060018060a01b036012541660135482519182526020820152f35b50346200031b57806003193601126200031b57604051604081018181106001600160401b0382111762000efb5760405260058152602091640352e302e360dc1b602083015260405192839160208352835191826020850152815b83811062000ee357505060408094508284010152601f80199101168101030190f35b80860182015187820160400152869450810162000ec1565b634e487b7160e01b600052604160045260246000fd5b50346200031b5760203660031901126200031b576020906040906001600160a01b0362000f3d6200200c565b168152600d83522054604051908152f35b50346200031b5760203660031901126200031b5760405160043581527fc9ec6be37acbaf58c6fbc0e923c9d93f65a2a1815cb91643b83bf6a8a5fffa7a60203392a280f35b50346200031b5760603660031901126200031b5762000fb16200200c565b6024356001600160a01b038181169284928490036200104c5762000fd462002333565b62000fde620023e2565b816011541690813b15620004bb5783606492604051968795869463b2118a8d60e01b8652166004850152602484015260443560448401525af1801562000e28576200103a57506001600080516020620029738339815191525580f35b620010459062002064565b3862000df9565b8280fd5b50346200031b57806003193601126200031b576200106d62002333565b7fdc270e54078000ee3e3ca3fe689823eb184d2198c3564d4384ea959680220f7460206006546001600160401b03620010a8818316620021f5565b1680916001600160401b03191617600655604051908152a180f35b50346200031b57806003193601126200031b5760008051602062002953833981519152546040516001600160a01b039091168152602090f35b50346200031b5760403660031901126200031b576024356004356200112062002333565b811562001173577f1a3073350cb205c57725084e6e0e2376c591d72ef8ca4ad39db83c730df2bb7791604091806200116c575042905b816001558060025582519182526020820152a180f35b9062001156565b6040516349c426ab60e11b8152600490fd5b50346200031b57806003193601126200031b576040518091600f549081835260208093018092600f83527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80290835b818110620012355750505084620011ec91038562002078565b60405193838594850191818652518092526040850193925b8281106200121457505050500390f35b83516001600160a01b03168552869550938101939281019260010162001204565b82546001600160a01b031684529286019260019283019201620011d3565b50346200031b5760203660031901126200031b577f3f7643017ca66d9d75a5e4ccaffe8249fa4baf7e7631008e80961b449a791fcb60206200129462002038565b6200129e62002333565b835460ff60a01b191690151560a081901b60ff60a01b16919091178455604051908152a180f35b50346200031b5760203660031901126200031b57620012e362002333565b620012ed620023e2565b620012fa60043562002104565b6001600080516020620029738339815191525580f35b50346200031b57806003193601126200031b576200132d62002333565b601554620004d3576011546001600160a01b03163f60155580f35b50346200031b57806003193601126200031b576060906001549060ff600254915460a01c1690604051928352602083015215156040820152f35b50346200031b5760203660031901126200031b577f62a55d82800973e2a7fa57176abe09392dd2b8bed39b19bf3fa00a12b877778a6020620013c362002038565b620013cd62002333565b151560ff196014541660ff821617601455604051908152a180f35b50346200031b5760203660031901126200031b5760405160043581527f346db3634ac6cc75cf93d2bd1d4245fff3934c15c660335b24e0c933da37223e60203392a280f35b50346200031b5760203660031901126200031b5760405160043581527f9f1f0d12ab513a7d47cca7a1bbc86f3dabd8cdbd9e99dda42f01ab5ba0c8000d60203392a280f35b50346200031b5760403660031901126200031b57620014906200200c565b6200149a62002028565b620014a462002333565b6001600160a01b03828116929091908315620004e557838552602092600e845260408620620014e48460ff835416929060ff801983541691151516179055565b8380620016c4575b156200157b575050600f54600160401b8110156200156757600080516020620029938339815191529392916200152d8260016200154b9401600f55620020b6565b90919060018060a01b038084549260031b9316831b921b1916179055565b600f548486526010835260408620555b6040519015158152a280f35b634e487b7160e01b86526041600452602486fd5b90915082159081620016bb575b50620015a8575b509060008051602062002993833981519152916200155b565b6010835260408520549081620015c0575b506200158f565b600f549081830362001642575b505050600f5480156200162e576000805160206200299383398151915292919060001901620016156200160082620020b6565b81549060018060a01b039060031b1b19169055565b600f5583855260108252846040812055909138620015b9565b634e487b7160e01b85526031600452602485fd5b60001991808301908111620016a7576200165c90620020b6565b90549060031b1c169082018281116200169357816200152d6200167f92620020b6565b8552601083526040852055388080620015cd565b634e487b7160e01b87526011600452602487fd5b634e487b7160e01b88526011600452602488fd5b90503862001588565b508015620014ec565b50346200031b57806003193601126200031b57620016ea62002333565b6000805160206200295383398151915280546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346200031b57806003193601126200031b57546040516001600160a01b039091168152602090f35b50346200031b5760203660031901126200031b5760405160043581527fc4192d66e128b96e7fa4e8c891d3e2c5356129056b426dc980d073113091219a60203392a280f35b50346200031b57806003193601126200031b577f0000000000000000000000005b393643914509ae905906ae65d1047821a2ffec6001600160a01b03163003620018185760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b60405163703e46dd60e11b8152600490fd5b5060403660031901126200031b57620018426200200c565b60249182356001600160401b03811162001ab4573660238201121562001ab457806004013562001872816200209a565b9362001882604051958662002078565b818552602091828601933688838301011162001ab057818692898693018737870101526001600160a01b037f0000000000000000000000005b393643914509ae905906ae65d1047821a2ffec811630811490811562001a81575b506200181857620018ec62002333565b60ff60145416156200092d578116946040516352d1902d60e01b815283816004818a5afa86918162001a48575b506200193757604051634c9c8ce360e01b8152600481018890528890fd5b8690887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9182810362001a335750843b1562001a1d575080546001600160a01b031916821790556040518692917fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8480a2815115620019fe5750620019f09482915190845af4903d15620019f4573d620019d1816200209a565b90620019e1604051928362002078565b81528581943d92013e62002456565b5080f35b6060925062002456565b9450505050503462001a0e575080f35b63b398979f60e01b8152600490fd5b604051634c9c8ce360e01b815260048101849052fd5b60405190632a87526960e21b82526004820152fd5b9091508481813d831162001a79575b62001a63818362002078565b8101031262001a755751903862001919565b8680fd5b503d62001a57565b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416141538620018dc565b8580fd5b5080fd5b50346200031b57806003193601126200031b576020600854604051908152f35b50346200031b57806003193601126200031b576011546040516001600160a01b039091168152602090f35b50346200031b57806003193601126200031b5760ff6020915460a01c166040519015158152f35b50346200031b5760203660031901126200031b5760209060ff906040906001600160a01b0362001b596200200c565b168152600e84522054166040519015158152f35b50346200031b5760203660031901126200031b5760405160043581527f4fc9f5de4cd25a559ac9f9d198da068c09368c6c6ea3cb290ab002eda9b66a4260203392a280f35b50346200031b57806003193601126200031b576020600554604051908152f35b50346200031b5760203660031901126200031b5760405160043581527f4ff5d9093e7f52941c1dd47d39e4b001385bf4c39fccdd351983c1980a7f64e360203392a280f35b50346200031b5760403660031901126200031b576001600160401b03806004351162001ab45736602360043501121562001ab45760043560040135116200031b573660246004356004013560051b6004350101116200031b5762001c7a62002028565b62001c8462002333565b6101f4600435600401351162001eb857815b60043560040135811062001ca8578280f35b600435600582901b01602401356001600160a01b03808216820362001eb45762001cd162002333565b80821615620004e5578181168552600e60205260408520805485151560ff90811660ff1983161790925516848062001eab575b1562001d805750600f8054600160401b81101562001d6c578392600080516020620029938339815191529262001d49600197966200152d858a602097018555620020b6565b5481851689526010835260408920555b6040519387151585521692a20162001c96565b634e487b7160e01b87526041600452602487fd5b8415908162001ea2575b5062001dae575b906000805160206200299383398151915260206001949362001d59565b60108060205260408620548062001dc8575b505062001d91565b600f90815480820362001e3b575b50508054801562001e27579260008051602062002993833981519152926020926001979695600019019062001e0f6200160083620020b6565b55818516895282528760408120559293945062001dc0565b634e487b7160e01b88526031600452602488fd5b6000199080820190811162001e8e5762001e568691620020b6565b90549060031b1c1690828181011162001e8e57816200152d62001e7b928501620020b6565b8852826020526040882055388062001dd6565b634e487b7160e01b8a52601160045260248afd5b90503862001d8a565b50801562001d04565b8480fd5b6040516305beb17160e11b8152600490fd5b50346200031b57806003193601126200031b576020600954604051908152f35b50346200031b5760203660031901126200031b5762001f086200200c565b62001f1262002333565b62001f1c6200236e565b506001600160401b0360018160065416926040519062001f3c8262002048565b8152602081019486865260408201948552828060a01b03168652600760205260408620905181550192511667ffffffffffffffff60401b8354925160401b16916001600160801b0319161717905580f35b50346200031b5760203660031901126200031b5760405160043581527f9c4e57adec6c5fe512f993f0a70975c5799b1e8ae9f9f27164f056cfd93a920960203392a280f35b90503462001ab457602036600319011262001ab4576020916040906001600160a01b0362001fff6200200c565b168152600b845220548152f35b600435906001600160a01b03821682036200202357565b600080fd5b6024359081151582036200202357565b6004359081151582036200202357565b606081019081106001600160401b0382111762000efb57604052565b6001600160401b03811162000efb57604052565b90601f801991011681019081106001600160401b0382111762000efb57604052565b6001600160401b03811162000efb57601f01601f191660200190565b600f54811015620020ee57600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020190600090565b634e487b7160e01b600052603260045260246000fd5b6013548015808015620021ec575b620021e7576012546001600160a01b0390811693838102939192918404141715620021d1576011541690813b156200202357604051633419e74d60e21b81526001600160a01b038416600482015260248101829052916000908390604490829084905af1908115620021c5577f6aef86b0f414cebcfa1683b40548e91ef7e0fc5dc66ad9b998758c1d51ce379292602092620021b3575b50604051908152a2565b620021be9062002064565b38620021a9565b6040513d6000823e3d90fd5b634e487b7160e01b600052601160045260246000fd5b505050565b50821562002112565b9060016001600160401b0380931601918211620021d157565b90620022196200236e565b92909215620022a5579060409160018060a01b0316600052600760205281600020825190620022488262002048565b60018154918284520154916001600160401b03908180851694856020840152871c1695869101526006541690858286149182159262002299575b50506200228f5750929190565b9250506000929190565b14159050853862002282565b5090506001600160401b036006541660009160009190565b6001600160a01b039081169081156200231a576000805160206200295383398151915280546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b604051631e4fbdf760e01b815260006004820152602490fd5b60008051602062002953833981519152546001600160a01b031633036200235657565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60035416620023d95760015480158015620023ce575b620023c557804210620023c5574203428111620021d157600254908115620023af570490600190565b634e487b7160e01b600052601260045260246000fd5b50600090600090565b506002541562002386565b60045490600190565b600080516020620029738339815191526002815414620024025760029055565b604051633ee5aeb560e01b8152600490fd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c16156200244457565b604051631afcd79f60e31b8152600490fd5b906200247f57508051156200246d57602081519101fd5b60405163d6bda27560e01b8152600490fd5b81511580620024b4575b62002492575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156200248956fe6080346100b057601f61049438819003918201601f19168301916001600160401b038311848410176100b5578084926020946040528339810103126100b057516001600160a01b038116908190036100b057801561009e57600080546001600160a01b0319168217815560405191907f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe29080a26103c890816100cc8239f35b60405163d92e233d60e01b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040818152600480361015610021575b505050361561001f57600080fd5b005b600092833560e01c90816313af403514610285575080638da5cb5b14610259578063b2118a8d146101075763d0679d340361001157346101035781600319360112610103576001600160a01b038135818116939192908490036100ff576024359285541633036100f15783156100e3578480808086885af16100a1610331565b50156100d557507f510ffb4dcab972ae9d2007a58e13f1b0881776d23cd8f5cc32f8c5be2dbf70d29160209151908152a280f35b90516381063e5160e01b8152fd5b905163d92e233d60e01b8152fd5b90516330cd747160e01b8152fd5b8480fd5b8280fd5b503461010357606036600319011261010357610121610316565b906024359260018060a01b03918285168095036102555760443592808754163303610246578416938415801561023e575b61022f578251602081019063a9059cbb60e01b8252876024820152856044820152604481526080810181811067ffffffffffffffff82111761021c57855251889283929083905af16101a2610331565b90159081156101df575b506100d557507f2c5650189f92c7058626efc371b51fe7e71f37dacb696bc7cad0b1320931974a9160209151908152a380f35b80518015159250826101f4575b5050386101ac565b819250906020918101031261021857602001518015908115036102185738806101ec565b8680fd5b634e487b7160e01b8a526041855260248afd5b50905163d92e233d60e01b8152fd5b508515610152565b5090516330cd747160e01b8152fd5b8580fd5b505034610281578160031936011261028157905490516001600160a01b039091168152602090f35b5080fd5b91905034610312576020366003190112610312576102a1610316565b8454926001600160a01b03919082851633036103045750169283156102f75750506001600160a01b031916811782557f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe28280a280f35b5163d92e233d60e01b8152fd5b6330cd747160e01b81528390fd5b8380fd5b600435906001600160a01b038216820361032c57565b600080fd5b3d1561038d5767ffffffffffffffff903d8281116103775760405192601f8201601f19908116603f01168401908111848210176103775760405282523d6000602084013e565b634e487b7160e01b600052604160045260246000fd5b60609056fea2646970667358221220195cc4d68d048d257b8ae1d547c77a368b22650e3ffbbbd1c5dcfc21d810d1c764736f6c634300081800339016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993009b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0039921e5677c943b0b7f6c29ab86b823c5daa404cb1a0a7e470670595761803c7a26469706673582212204c721a2a5bce3706b41c41c405a2401a62b64d407d2fb7232825e8ddc369d9ec64736f6c63430008180033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.